Training method and device for score memory unit
By training score memory units and optimizing weight coefficients using machine learning classifiers and feature vectors, the error and lag issues in real-time QoE evaluation of streaming video are resolved, achieving a more accurate evaluation of user experience quality.
Patent Information
- Application Number
- CN202210283306.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-22
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2042-03-22
AI Technical Summary
Existing technologies cannot effectively evaluate the quality of user experience (QoE) of streaming video in real time, especially under HTTP-based adaptive bitrate streaming protocols, where network performance cannot be directly mapped to QoE, resulting in errors and lag in the evaluation results.
The training method of score memory unit is adopted. The machine learning classifier is trained on offline data, and the weight coefficients are optimized by multiple rounds of iterative training. Combined with feature vectors and initial labels, a QoE evaluation model is constructed to filter out misclassified samples and improve evaluation accuracy.
It enables accurate real-time QoE assessment of streaming video, reduces the error and lag in assessment results, and improves the accuracy of user experience quality assessment.
Smart Images

Figure CN116866672B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of artificial intelligence (AI) technology, and in particular to a training method and device for a scoring memory unit. Background Technology
[0002] Streaming media technology allows video files to be continuously and uninterruptedly transmitted from a server to a terminal device, enabling users to watch video files in real time. To characterize user satisfaction with streaming video services, it is sometimes necessary to evaluate the quality of the streaming video service in real time.
[0003] The Quality of Experience (QoE) defined by the International Telecommunication Union Telecommunication Standardization Sector (ITU-T) is typically used as a standard for evaluating user satisfaction with streaming video services. However, streaming video commonly uses HTTP Live Streaming (HLS), an adaptive bitrate streaming protocol based on the Hypertext Transfer Protocol (HTTP), to provide video-on-demand and live streaming services. Because HLS employs a progressive and adaptive download strategy, it's impossible to simply map network performance to the QoE of streaming video; that is, real-time QoE evaluation of streaming video cannot be achieved using simple network performance metrics. Therefore, how to perform real-time QoE evaluation of streaming video has become a pressing issue. Summary of the Invention
[0004] This application provides a training method and device for a score memory unit, which solves the technical problem of how to perform real-time QoE evaluation on a streaming video that is currently playing.
[0005] To achieve the above objectives, this application adopts the following technical solution:
[0006] In a first aspect, embodiments of this application provide a method for training a scoring memory unit. The method includes:
[0007] Based on offline data, multiple preliminary QoE evaluation results are determined; the offline data consists of terminal-side parameters obtained from log files of streamed videos that have finished playing; these multiple preliminary QoE evaluation results are used to train the scoring memory unit; the multiple preliminary QoE evaluation results include: preliminary QoE evaluation results predicted for time t, and preliminary QoE evaluation results predicted for at least one time before time t.
[0008] In each iteration of training of the score memory unit, the multiple preliminary QoE evaluation results are weighted and summed according to the weight coefficient of each preliminary QoE evaluation result to obtain the final QoE evaluation result at time t. The optimization objective of the score memory unit is to minimize the loss corresponding to the difference between the initial label at time t and the final QoE evaluation result at time t. The initial label at time t is used to indicate whether the streaming video is stuttering or smooth at time t.
[0009] Based on the initial label at time t and the final QoE evaluation result at time t, update the weight coefficients of each preliminary QoE evaluation result. The updated weight coefficients of each preliminary QoE evaluation result are used for the next round of iteration training.
[0010] After the preset number of iterations is reached, the final score memory unit is obtained, which is used to evaluate the QoE of streaming video in real time.
[0011] Using the above approach, given multiple preliminary QoE evaluation results from adjacent time points, these results can be used to iteratively train the scoring memory unit. Since the weight coefficients of each preliminary evaluation result are optimized in each iteration, the optimal scoring memory unit can be obtained after the final iteration. Thus, during subsequent streaming video playback, this scoring memory unit can filter out potentially misclassified samples, improving the accuracy of real-time QoE evaluation.
[0012] In one possible implementation, multiple initial QoE evaluation results are obtained through predictions by a machine learning classifier;
[0013] Multiple preliminary QoE assessment results include: multiple preliminary prediction probabilities, each of which represents the probability that the machine learning classifier predicts that the streaming video will stutter at a given moment; the given moment is time t, or a moment in at least one time preceding time t;
[0014] The final QoE evaluation result at time t includes: the final prediction probability at time t, which represents the probability that the scoring memory unit predicts that the streaming video that has finished playing will be stuttering at time t.
[0015] In one possible implementation, the final QoE evaluation result at time t includes: the final predicted probability at time t;
[0016] The specific optimization objective for the scoring memory unit is as follows:
[0017] Optimize the weighting coefficients of each initial prediction probability to minimize the loss corresponding to the difference between the initial label at time t and the final prediction probability at time t.
[0018] In one possible implementation, the multiple preliminary QoE assessment results are weighted and summed according to the weight coefficient of each preliminary QoE assessment result to obtain the final QoE assessment result at time t. This includes: weighting and summing the multiple preliminary prediction probabilities according to the weight coefficient of each preliminary prediction probability to obtain the final prediction probability at time t.
[0019] Accordingly, based on the initial label at time t and the final QoE evaluation result at time t, the weight coefficients of each preliminary QoE evaluation result are updated, including: determining the cross-entropy loss function based on the initial label at time t and the final prediction probability at time t; and updating the weight coefficients of each preliminary prediction probability based on the cross-entropy loss function; wherein the updated weight coefficients of each preliminary prediction probability are used for the next round of iteration training.
[0020] In one possible implementation, the final QoE evaluation result at time t also includes: the final prediction label at time t, which is used to indicate whether the streaming video predicted by the scoring memory unit to have ended playback is stuttering or smooth at time t.
[0021] The specific optimization objective for the scoring memory unit is as follows:
[0022] Optimize the weighting coefficient of each initial prediction probability to minimize the loss corresponding to the difference between the initial label at time t and the final predicted label at time t.
[0023] In one possible implementation, the multiple preliminary QoE assessment results are weighted and summed according to the weight coefficient of each preliminary QoE assessment result to obtain the final QoE assessment result at time t. This includes: weighting and summing the multiple preliminary prediction probabilities according to the weight coefficient of each preliminary prediction probability to obtain the final prediction probability at time t; and determining the final prediction label at time t based on the final prediction probability at time t.
[0024] Accordingly, based on the initial label at time t and the final QoE evaluation result at time t, the weight coefficients of each preliminary QoE evaluation result are updated, including: determining the cross-entropy loss function based on the initial label at time t and the final predicted label at time t; updating the weight coefficients of each preliminary prediction probability based on the cross-entropy loss function; wherein the updated weight coefficients of each preliminary prediction probability are used for the next round of iterative training.
[0025] In one possible implementation, the weight coefficients of each initial predicted probability are updated according to the cross-entropy loss function, including:
[0026] Based on the cross-entropy loss function, determine the gradient of the weight coefficients for each initial predicted probability;
[0027] Update the weight coefficients of each initial prediction probability based on the gradient of the weight coefficients of each initial prediction probability.
[0028] In one possible implementation, if the final prediction probability at time t is greater than or equal to 0.5, then the final prediction label at time t is used to indicate that the streaming video that has finished playing was stuttering at time t.
[0029] If the final prediction probability at time t is less than 0.5, then the final prediction label at time t is used to indicate that the streaming video that has finished playing was smooth at time t.
[0030] In one possible implementation, the initial label at time t belongs to an initial label set, where each initial label in the initial label set is used to indicate whether the streaming video that has finished playing was stuttering or smooth at a playback time.
[0031] Based on offline data, several preliminary QoE assessment results were determined, including:
[0032] Extract a set of feature vectors from offline data, where each feature vector is used to evaluate the QoE of a streaming video that has finished playing at a playback moment;
[0033] Based on the feature vector set and the initial label set, a machine learning classifier is trained to obtain the mapping relationship between the feature vector and the preliminary QoE evaluation result corresponding to each playback moment, as well as multiple preliminary QoE evaluation results; wherein, the optimization objective of the machine learning classifier is to minimize the loss corresponding to the degree of difference between the initial label and the preliminary QoE evaluation result corresponding to each playback moment.
[0034] In one possible implementation, a set of feature vectors is extracted from offline data, including:
[0035] Normalize the offline data;
[0036] Extract all feature vectors of the normalized offline data;
[0037] Redundant feature vectors are removed from all feature vectors to obtain the feature vector set.
[0038] In one possible implementation, all feature vectors include at least one of the following:
[0039] The global feature vector is a feature vector extracted from all data, which includes offline data from the initial moment when the video application starts playing the streaming video to time t.
[0040] The window feature vector is a feature vector extracted from a portion of the data, which includes offline data at time t and a preset duration prior to time t.
[0041] Other feature vectors, which are feature vectors that are independent of the network data.
[0042] Secondly, this application provides a training apparatus comprising units / modules for performing the method described in the first aspect above. This apparatus can correspond to performing the method described in the first aspect above. For a detailed description of the units / modules in this apparatus, please refer to the description in the first aspect above; for brevity, it will not be repeated here.
[0043] Thirdly, a terminal device is provided, including a processor coupled to a memory, the processor being configured to execute a computer program or instructions stored in the memory, such that the terminal device implements a training method for a scoring memory unit as described in any of the first aspects.
[0044] Fourthly, a chip coupled to a memory is provided for reading and executing a computer program stored in the memory to implement a training method for a scoring memory unit as described in any of the first aspects.
[0045] Fifthly, a computer-readable storage medium is provided that stores a computer program, which, when run on a terminal device, causes the terminal device to execute a training method for a scoring memory unit as described in any of the first aspects.
[0046] Sixthly, a computer program product is provided that, when the computer program product is run on a computer, causes the computer to execute a training method for a scoring memory unit as described in any of the first aspects.
[0047] It is understood that the beneficial effects of the second to sixth aspects mentioned above can be found in the relevant descriptions in the first aspect mentioned above, and will not be repeated here. Attached Figure Description
[0048] Figure 1 This application provides a schematic diagram of the architecture of a communication system.
[0049] Figure 2 This is a schematic diagram of the overall process of the QoE evaluation method provided in the embodiments of this application;
[0050] Figure 3A flowchart illustrating the training method for the scoring memory unit provided in this application embodiment;
[0051] Figure 4 A flowchart illustrating a method for optimizing weight coefficients according to an embodiment of this application;
[0052] Figure 5 A flowchart illustrating a method for optimizing weight coefficients according to another embodiment of this application;
[0053] Figure 6 A schematic diagram of the cross-entropy loss function provided in an embodiment of this application;
[0054] Figure 7 A schematic diagram of the cross-entropy loss function provided in another embodiment of this application;
[0055] Figure 8 A schematic diagram of the feature vector extraction process provided in an embodiment of this application;
[0056] Figure 9 This is a schematic diagram of the structure of the training device provided in the embodiments of this application;
[0057] Figure 10 This is a schematic diagram of the structure of a terminal device provided in an embodiment of this application. Detailed Implementation
[0058] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are some embodiments of this application, but not all embodiments.
[0059] In the description of this application, unless otherwise stated, " / " means "or". For example, A / B can mean A or B. In the description of this application, "and / or" is merely a way of describing the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent three cases: A alone, A and B simultaneously, and B alone.
[0060] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.
[0061] First, some of the terms or concepts used in this application will be explained.
[0062] 1. Streaming media refers to media formats such as audio, video, or multimedia that are continuously played in real time over a network using streaming media technology. Streaming media technology is also known as streaming media technology. It involves compressing continuous video and / or audio information, uploading it to a server, and then having the server transmit the compressed files to terminal devices in real time. This allows users to watch streaming media files while downloading them, without having to wait for the entire compressed file to download to their device. In this application embodiment, when the media format of the streaming media is video, the video is referred to as streaming video or video streaming media, etc. For ease of explanation, the following embodiments use streaming video as an example and do not limit the scope of this application embodiment.
[0063] 2. QoE refers to the overall level of user satisfaction with network services or services under certain objective conditions. QoE is a user's perception of the overall quality of network services or services. It reflects the user's satisfaction with service performance by understanding the user's subjective feelings about the quality and performance of equipment, networks, systems, applications, or services.
[0064] In some embodiments, the parameters used to evaluate QoE are simply referred to as QoE parameters. During video playback, the frequency and total duration of video buffering also affect the video QoE assessment. For example, frequent buffering and / or a large total duration, i.e., stuttering events occurring during video playback, will lower the user's QoE. Furthermore, factors influencing QoE assessment may include other factors such as user expectations, user preferences and privacy, user payment fees, and the type of service offered by the application.
[0065] 3. Quality of Service (QoS) is a technical metric applied to a network to ensure or enhance network QoE quality. QoS can be used to address issues such as network latency and congestion.
[0066] In some embodiments, the parameters used to evaluate QoS are simply referred to as QoS parameters. QoS parameters may include parameters such as system throughput, signal strength, network transmission stability, reliability, transmission latency, latency jitter, packet loss rate, transmission bit rate, bit error rate, transmission failure rate, and security. Based on these QoS parameters, it is possible to assess whether the network communication quality meets the requirements of business communication.
[0067] It should be understood that the QoE and QoS parameters mentioned above are merely illustrative examples and may include other arbitrary parameters. The specific parameters can be determined according to actual usage requirements, and this application embodiment does not impose any limitations.
[0068] It should be noted that both QoE and QoS can be used to measure the overall quality of network services. QoE is related to specific services, and different services have different QoS requirements. For example, some services are more sensitive to latency metrics in QoS, such as Voice over Internet Protocol (VoIP) services; while other services are more sensitive to packet loss rate metrics in QoS, such as file transfer services.
[0069] Based on the above description, since QoE can more completely depict the user's overall level of acceptance of the network service or business used in a certain objective environment, this application adopts QoE as the evaluation standard for user satisfaction with streaming video services.
[0070] In practice, the following QoE evaluation methods are commonly used:
[0071] One method is an offline QoE assessment. During a user's viewing of a streaming video, the terminal device's log file records information about the interactions between the system and the user, automatically capturing data such as the type, content, and timing of these interactions. After the user has finished watching the video, QoE influencing factors are extracted from the log file. Then, a model is built based on these QoE influencing factors to obtain a QoE score. However, this offline assessment method can only predict and assess QoE after the user has finished watching the video, resulting in a time lag.
[0072] Another approach is real-time QoE assessment. This method includes the following steps: first, extracting the round-trip time (RTT) information of uplink data packets in the video stream and constructing an input vector; then, constructing a neural network model containing convolutional and fully connected layers; next, inputting the constructed input vector into the neural network model, extracting features, executing fully connected layers, and predicting the video QoE metric; finally, inputting the round-trip time (RTT) information of the encrypted traffic of the video to be estimated into the trained neural network model to predict the video QoE metric. The above steps involve a large amount of repetitive computation, resulting in wasted resources. Furthermore, this approach only uses RTT as an input parameter, resulting in a relatively singular parameter dimension. This approach is also limited to the Transmission Control Protocol (TCP) and is not applicable to low-latency Internet transport layer protocols such as Quick UDP Internet Connection (QUIC) based on User Datagram Protocol. In addition, because this approach does not consider the correlation of QoE scores between adjacent time points, it leads to "spikes" in the prediction results, i.e., generating more false alarms and reducing the accuracy of QoE prediction.
[0073] In view of this, this application provides a method for training a machine learning classifier for real-time evaluation of the QoE of streaming video: In any scenario of playing streaming video, such as video-on-demand, online live streaming, real-time video conferencing, multimedia news releases, online advertising, e-commerce, distance education, telemedicine, or internet radio, the terminal device first obtains offline data from the log file of the finished streaming video and extracts feature vectors from the offline data; and obtains an initial label set to indicate whether the streaming video is choppy or smooth; then, based on the feature vectors and the initial label set, a machine learning classifier is trained to obtain a mapping relationship between the feature vectors and the preliminary QoE evaluation results at each time step. The optimization objective of the machine learning classifier is to minimize the loss corresponding to the degree of difference between the initial labels and the preliminary QoE evaluation results at each time step.
[0074] For example, a confidence-based learning algorithm can be used to assist in the training of a machine learning classifier. First, a set of feature vectors is obtained from the log file of the finished streaming video. Then, in each iteration of training, the machine learning classifier is trained using the set of feature vectors and the corresponding initial label set; and the initial labels in the initial label set that meet preset conditions are updated to generate the initial label set for the next iteration. This process continues until the preset number of iterations is reached, at which point the iterative training stops, and the final machine learning classifier is obtained.
[0075] It should be noted that the above training framework based on feature engineering and machine learning classifiers assumes that each training sample is temporally independent. However, in actual implementation, there is a temporal dependency between the labels of each training sample. Therefore, the QoE evaluation results output by the machine learning classifier may have "spikes," i.e., more "false alarms," which significantly impacts the accuracy of the QoE evaluation results. Furthermore, the confidence-based learning algorithm used to assist the training of the machine learning classifier may affect the coherence of stuttering and smooth labels, leading to inconsistencies with the coherence patterns of stuttering and smooth labels in real-world scenarios. This results in a deviation between the label distribution output by the machine learning classifier and the label distribution in the real-world scenario, further affecting the accuracy of real-time QoE evaluation.
[0076] To address the "spiking" and bias issues inherent in machine learning classifiers, this application improves upon the aforementioned training method for machine learning classifiers by providing a training method for a score memory unit. After the machine learning classifier determines multiple preliminary QoE assessments for time t and at least one time prior to time t based on offline data, the score memory unit is trained multiple times based on these preliminary QoE assessments and the initial label at time t. This yields a mapping relationship between the multiple preliminary QoE assessments and the final QoE assessment at time t. Thus, using the machine learning model and the score memory unit, a QoE assessment model for real-time QoE evaluation is pre-constructed. When a user watches streaming video online using a terminal device, the underlying parameters can be collected in real-time and input into the QoE assessment model. The machine learning classifier can output multiple preliminary predictions, and the score memory unit can filter out samples with misclassifications in these preliminary predictions, thereby improving the accuracy of real-time QoE evaluation.
[0077] Figure 1 This is a schematic diagram of the architecture of the communication system involved in various embodiments of this application. For example... Figure 1 As shown, the communication system includes a terminal device 1 and a server 2. Terminal device 1 can access a wireless local area network (WLAN) through an access point (AP) device 3, for example, by accessing a wireless-fidelity (Wi-Fi) network through a router, thereby establishing a connection with server 2 and exchanging data. Alternatively, terminal device 1 can access a mobile network (also known as a cellular network or mobile data network) through a network device 4, for example, by accessing a mobile network through a base station, thereby establishing a connection with server 2 and exchanging data.
[0078] The terminal device 1 can be a mobile terminal, a non-mobile terminal, a user device, or other device capable of training machine learning classifiers and score memory units. For example, a mobile terminal can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle terminal, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc., while a non-mobile terminal can be a personal computer (PC), smart screen, television (TV), ATM, or self-service machine, etc. One example is that terminal device 1 can be a smartphone with a built-in Wi-Fi module, or a computer equipped with a wireless network card. This application embodiment does not impose any limitations on the specific type of terminal device.
[0079] Server 2 can be a wide area network (WAN) web server and / or a streaming media server, etc. A streaming media server is also called a streaming media server or an audio / video (A / V) server. The specific type of server is not limited in this embodiment.
[0080] In some embodiments, data transmission between terminal device 1 and server 2 can be performed via connection-oriented TCP or connectionless User Datagram Protocol (UDP).
[0081] In some embodiments, terminal device 1 and server 2 can exchange uplink and / or downlink data. For example, terminal device 1 can send playback request information for a streaming media file to server 2. As another example, server 2 can send streaming media files to terminal device 1 in real time. Yet another example is that terminal device 1 can send streaming media file data packets to other devices through server 2, and receive media file data packets sent by other devices through server 2.
[0082] In some embodiments, server 2 can be used to provide streaming media files, and terminal device 1 can be used to play the streaming media files. Taking a server including a web server and an A / V server as an example, the streaming media transmission process can specifically include:
[0083] After the A / V server obtains the original video file, it preprocesses it to compress it into a streaming media file. When a user selects a streaming media file for playback via terminal device 1, the web browser and web server exchange control information using HTTP / TCP to retrieve the necessary real-time data from the original file. The web browser then launches the audio / video helper (A / Vhelper) program, using HTTP to retrieve relevant parameters from the A / V server to initialize the helper program. These parameters include directory information, the encoding type of the A / V data, and the server address related to A / V retrieval. Afterward, the A / V Helper program and the A / V server run the streaming media protocol to exchange control information required for A / V transmission. This streaming media protocol can be HLS or Dynamic Adaptive Streaming over HTTP (DASH), providing methods for controlling playback, fast forward, rewind, pause, and recording. The A / V server uses Real-Time Transport Protocol (RTP) / UDP to transmit A / V data to the A / V client program, i.e., the A / V helper program. When terminal device 1 receives the A / V data, the A / V client program can play it. During the playback of the A / V data, low-level parameters can be collected in real time and input into a pre-built scoring memory unit, enabling real-time evaluation and prediction of QoE.
[0084] It should be noted that the aforementioned streaming media files can be audio, video, or multimedia files, etc. This embodiment of the application illustrates how server 2 sends various data packets of streaming media video to terminal device 1, and how terminal device 1 records the playback information of the streaming media video in a log file. Subsequently, terminal device 1 trains a machine learning classifier and a score memory unit based on the log file.
[0085] Figure 2 This is a schematic diagram of the overall process of the QoE evaluation method provided in the embodiments of this application.
[0086] like Figure 2 As shown, the QoE evaluation method can include two parts:
[0087] The first part is the offline training process.
[0088] The offline training process is primarily used to train a machine learning classifier and score memory units for real-time QoE evaluation based on the log files of streamed videos that have finished playing. The machine learning classifier is also known as a machine learning model.
[0089] The offline training process can include several sub-processes such as offline dataset collection, parameter normalization, offline feature calculation, feature selection, offline training of machine learning models, and offline training of score memory units.
[0090] For example, during the playback of streaming video through a user's video application (APP) (e.g., APP1 and APP2) on a terminal device, such as video-on-demand, live streaming, real-time video conferencing, multimedia news releases, online advertising, e-commerce, distance education, telemedicine, or internet radio, the terminal device's log file can record information about the interaction between the system and the user. After the streaming video playback ends, the terminal device can obtain an offline dataset based on the log file. This offline dataset includes multiple offline parameters, which are the underlying parameters input during streaming video playback, such as transport layer parameters, QoS parameters, and / or terminal parameters. The terminal device then sequentially performs parameter normalization, offline feature calculation, offline feature selection, offline training of the machine learning model, and offline training of the score memory unit on the offline dataset to construct a QoE evaluation model for real-time QoE assessment.
[0091] The QoE evaluation model mainly includes two sub-models: a machine learning model and a score memory unit.
[0092] Specifically, offline training of the machine learning model is mainly used to: train the machine learning model using offline data to obtain the mapping relationship between the feature vector and the preliminary QoE evaluation result at time t. Offline training of the score memory unit is mainly used to: model the preliminary QoE evaluation results output by the machine learning model at time t and for a period of time before time t based on the correlation between the preliminary QoE evaluation results at adjacent times in the time dimension; that is, to train the parameter weights of the preliminary QoE evaluation results at adjacent times.
[0093] After training to obtain the machine learning allocator and score memory unit, the machine learning allocator and score memory unit can be stored in the terminal device.
[0094] The second part is the online assessment (real-time measurement) process.
[0095] The online evaluation process is mainly used to input the online dataset collected in real time during streaming media playback into a pre-built machine learning classifier and score memory unit, thereby outputting the QoE evaluation result at the current moment.
[0096] The online evaluation process can include several sub-processes such as online dataset collection, parameter normalization, online feature calculation, online inference of machine learning classifiers, and online update of score memory units.
[0097] The parameter normalization method in the online evaluation process is consistent with that in the offline training process; both are used to normalize the parameters. Online feature computation only needs to be performed on certain types of features selected in the offline training process, without needing to perform online computation on features not selected in the offline training process. Online inference of the machine learning model is used to map features to preliminary QoE evaluation results using the machine learning model trained through the offline training process. Online update of the score memory unit is used to input multiple preliminary QoE evaluation results into the score memory unit, and output the preliminary QoE evaluation results from the current time t and a period before the current time t in a linearly weighted manner to obtain the final QoE evaluation result.
[0098] For example, when a user plays a target streaming video using a video-based app (e.g., APP1 and APP2) on a terminal device, the terminal device can acquire an online dataset in real time. This online dataset includes multiple online parameters, which are low-level parameters collected online by the terminal device during the playback of the target streaming video, such as transport layer parameters, QoS parameters, and / or terminal parameters. The terminal device then performs parameter normalization and online feature calculation on the online dataset sequentially to obtain a set of feature vectors for QoE evaluation. This set of feature vectors is then input into a pre-trained machine learning classifier. The score memory unit then linearly weights the preliminary QoE evaluation results from multiple time points to output the final QoE evaluation result for the current time point.
[0099] It should be noted that, in this embodiment of the application, the preliminary QoE evaluation result is used to determine the preliminary QoE score, and the final QoE evaluation result is used to determine the final QoE score. For example, the time interval from time t1 to time t2 will be used to determine the final QoE score. i The final QoE evaluation result is input into the preset model, and a final QoE score is obtained, which can be 1, 2, 3, 4 or 5 points.
[0100] Since the invention of this application lies in how to train the score memory unit to solve the "spiking" and bias problems of machine learning classifiers, thereby achieving accurate real-time evaluation of QoE, the training method of the score memory unit will be introduced in detail below.
[0101] Figure 3 This is a flowchart illustrating the training method for the scoring memory unit provided in an embodiment of this application.
[0102] like Figure 3 As shown, the method may include the following steps S301 to S303.
[0103] S301, The terminal device acquires offline data and an initial tag set.
[0104] The aforementioned set of initial tags may include multiple initial tags. These initial tags may be manually labeled or automatically generated based on the log files of streaming videos that have finished playing.
[0105] For each of the multiple initial labels: an initial label can be used to indicate whether the streaming video that has finished playing was choppy or smooth at a given moment. In some embodiments, an initial label of 0 represents smooth streaming video, and an initial label of 1 represents choppy streaming video. In other embodiments, an initial label of 0 represents choppy streaming video, and an initial label of 1 represents smooth streaming video. It can be understood that these multiple initial labels are the training targets of a machine learning classifier. For ease of description, this application embodiment uses an initial label of 0 representing smooth streaming video and an initial label of 1 representing choppy streaming video as an example for illustrative purposes.
[0106] The aforementioned offline data is also known as offline parameters. This offline data consists of low-level parameters of the terminal device recorded by the log file during the playback of the streaming video, and retrieved by the terminal device from the log file after the streaming video playback ends. In other words, the offline data consists of terminal-side parameters obtained from the log file of the finished streaming video.
[0107] Assume the terminal device operates from time t1 to time t2. i If at least one streaming video has been played continuously or intermittently within a given time period, the terminal device can obtain the offline dataset corresponding to that at least one streaming video after the last streaming video finishes playing. Among them, sample data It can be used to represent time t i The underlying parameters and sample data are recorded in the log file. It can be used to represent time t i-1 The underlying parameters recorded in the log file, ..., sample data It can be used to represent the underlying parameters recorded by the log file at time t1.
[0108] Optionally, the offline parameters may include at least one of the following parameters:
[0109] The first type is the transport layer parameter. This parameter is the primary parameter for training machine learning models. It reflects the network transmission status when streaming video is played on a terminal device, such as the statistical characteristics of data packets per unit time.
[0110] For example, transport layer parameters may include the number of uplink TCP / UDP packets and the total packet length per unit time. As another example, transport layer parameters may include the number of downlink TCP / UDP packets, the total packet length, the RTT value per unit time, and the number and length of retransmitted packets per unit time, among other transport layer data. Here, "unit time" refers to the time interval between two equally spaced moments. Of course, transport layer parameters may also include other parameters, which are not limited in this embodiment.
[0111] The second is the QoS parameter. This QoS parameter is also used to train machine learning models. It is used to evaluate the network's ability to provide services for streaming video.
[0112] For example, QoS parameters mainly include several important environmental parameters such as cellular and Wi-Fi signal strength and Wi-Fi negotiation rate. Of course, QoS parameters can also include availability, throughput, network transmission stability, reliability, latency, latency variation, jitter, transmission bit rate, bit error rate, transmission failure rate, reliability, security, guaranteed flow bit rate (GFBR), maximum flow bit rate (MFBR), average window and aggregate maximum bit rate (AMBR), allocation and retention priority (ARP), etc.
[0113] The third type is terminal parameters. These are the parameters of the terminal device itself when playing streaming video.
[0114] For example, terminal parameters may include audio track information, video track information, brand and model, operating system, identity document (ID), network operator, network access method, and / or IP address. Among these, the audio track information and video track information are independent of network parameters and are used to indicate the playback progress of audio and video during streaming video. In this embodiment, initial tags can be generated based on the audio track information and video track information.
[0115] As an optional implementation, for each video app, the terminal device performs an offline training process based on the offline parameters of the streaming videos played by each video app within a preset time period. This determines the QoE evaluation model corresponding to each video app; that is, different QoE evaluation models are pre-created for different video apps. When a user plays a streaming video online using a video app, the QoE evaluation model corresponding to that video app can be used for real-time QoE evaluation.
[0116] As an alternative implementation, for multiple video apps, the terminal device performs an offline training process based on offline parameters of streaming videos played by these apps within a preset time period. This determines a QoE evaluation model corresponding to each of the multiple video apps; in other words, a QoE evaluation model is pre-created for each video app. When a user plays a streaming video online using any of these video apps, the QoE evaluation model can be used for real-time QoE evaluation.
[0117] S302. The terminal device determines multiple preliminary QoE assessment results based on offline data.
[0118] The aforementioned preliminary QoE assessment results include: preliminary QoE assessment results for time t, and preliminary QoE assessment results for at least one time before time t. Here, "at least one time before time t" refers to at least one time before time t that is adjacent to time t.
[0119] It should be noted that time t can be any moment during the playback of the streaming video. The following examples use time t. i This is illustrated by an example. For instance, multiple preliminary QoE assessment results include time t. i The preliminary assessment results, and at time t i The previous moment t i-1 Preliminary assessment results and time t i-2 The preliminary assessment results.
[0120] Optionally, the aforementioned preliminary QoE assessment results are obtained through prediction by a machine learning classifier. Specifically, the terminal device can first extract a set of feature vectors from offline data, where each feature vector in the set is used to assess the QoE at a given time. Then, based on the feature vectors and the initial label set, a machine learning classifier is trained to obtain the mapping relationship between the feature vectors and the preliminary QoE assessment results at each time point.
[0121] For each of the multiple preliminary QoE assessment results, a preliminary QoE assessment result may include any one of the following:
[0122] 1) A preliminary predicted probability;
[0123] 2) A preliminary prediction label;
[0124] 3) A preliminary predicted probability and a preliminary predicted label.
[0125] Wherein, the preliminary prediction probability is used to represent the probability that the machine learning classifier predicts that the streaming video is choppy at a certain moment; the preliminary prediction label is used to represent whether the machine learning classifier predicts that the streaming video is choppy or smooth at a certain moment.
[0126] Furthermore, there is a correspondence between the initial predicted probability and the initial predicted label at a given moment.
[0127] For example, suppose time t i Preliminary prediction labels It means that time t i The initial predicted probability is used If this is expressed, then the following relation exists:
[0128]
[0129] Among them, if but That is, the initial prediction label is used to represent the streaming video at time t. i For smoothness; if but That is, the initial prediction label is used to represent the streaming video at time t. i For lag.
[0130] In this embodiment, the optimization objective of the machine learning classifier is to minimize the loss corresponding to the degree of difference between the initial label and the preliminary QoE evaluation result at each time step.
[0131] For example, suppose that at time t i Preliminary prediction labels Taking the preliminary QoE evaluation result used to represent the predicted output of a machine learning classifier as an example, the following relationship exists:
[0132]
[0133]
[0134]
[0135] in, For use in evaluating time t i The eigenvectors of QoE.
[0136] F ml The hyphen (·) is used to represent the mapping relationship between the independent variable and the dependent variable. For example, it is used to represent the relationship between the independent variable and the dependent variable at time t. i Corresponding feature vector and preliminary prediction labels The mapping relationship.
[0137] For time t i The initial tag of the streaming video being played.
[0138] L(·) is the loss function, used to represent the "risk" or "loss" of a random event. Indicates preliminary prediction label and initial label The loss corresponding to the degree of difference. Specifically, The loss function is 0-1. When... When the loss function is 0, the loss function is 0; when The loss function is 1. It should be understood that when... At that time, the loss or risk is the lowest.
[0139] "St" is an abbreviation for "subject to," used to indicate that something satisfies a constraint. In this embodiment, "stmin"... This indicates that the loss function The goal of optimizing the training score memory unit is to minimize the loss or risk.
[0140] Optionally, the loss function can be a cross entropy loss function, a hinge loss function, or an exponential loss function, etc., and the embodiments of this application are not limited thereto.
[0141] It should be noted that the above S302 is an example of using a machine learning classifier to determine the preliminary QoE evaluation result, and it does not limit the embodiments of this application. It can be understood that if other methods are used to determine the preliminary QoE evaluation results of multiple adjacent time points in the time dimension, the training method of the score memory unit provided in the embodiments of this application can also be used to train the preliminary QoE evaluation results of multiple time points.
[0142] S303. The terminal device trains a score memory unit based on multiple preliminary QoE evaluation results and an initial label set to obtain the mapping relationship between multiple preliminary QoE evaluation results and the final QoE evaluation result at time t.
[0143] Among them, the score memory unit can be used to evaluate the QoE of streaming video in real time.
[0144] Optionally, time t i The final QoE evaluation result includes any one of the following:
[0145] 1) Time t i The final predicted probability;
[0146] 2) Time t i The final predicted label;
[0147] 3) Time t i The final predicted probability and time t i The final predicted label.
[0148] Wherein, time t i The final prediction probability is used to represent the score memory unit's prediction of the streaming video at time t. i The probability of a stutter; time t i The final prediction label is used to represent the score memory unit's prediction of the streaming video at time t. i For stuttering or smoothness.
[0149] Furthermore, time t i The final predicted probability and time t i The final predicted labels have a corresponding relationship.
[0150] For example, suppose time t i The final predicted label is used It means that time t i The final predicted probability is used If this is expressed, then the following relation exists:
[0151]
[0152] Among them, if but That is, the final predicted label is used to represent the streaming video at time t. i For smoothness; if but That is, the final predicted label is used to represent the streaming video at time t. i For lag.
[0153] In this embodiment of the application, multiple preliminary QoE evaluation results are related to time t. i The mapping relationship of the final QoE evaluation result is: the weighted sum of multiple preliminary predicted probabilities equals time t. i The final predicted probability is then calculated. The following example illustrates how to calculate time t using weighted summation. i Possible ways to achieve the final predicted probability.
[0154] Suppose a machine learning classifier is applied at time t i The initial predicted probability of the streaming video being played is: For time t i The preliminary predicted probabilities for streaming video prediction at various points in time over a previous period are as follows: The training process of the score memory unit is then a process of modeling these preliminary prediction probabilities.
[0155] Score memory unit for time t i The final predicted probability is:
[0156]
[0157] Among them, a j The weighting coefficients represent the initial QoE assessment results, and T represents the time window length. Representing time t i The final QoE evaluation results.
[0158] When j = 0 Representing time t i Preliminary QoE assessment results; when j≠0, Represents time t i Previous moment t i-j Preliminary QoE assessment results.
[0159] Optionally, the time window length T is a predefined hyperparameter, that is, a parameter set before the learning process begins.
[0160] Typically, the time window length T is 2 or 3.
[0161] For example, when T=2,
[0162] For example, when T=3,
[0163] In this embodiment, the optimization objective of the score memory unit is to minimize the loss corresponding to the degree of difference between the initial label and the final QoE evaluation result at each time step.
[0164] (1) If time t i The final QoE evaluation results include the final predicted probability. The specific optimization objective of the scoring memory unit is to optimize the weighting coefficient of each preliminary prediction probability among multiple preliminary prediction probabilities, and to optimize the weighting coefficient of each preliminary prediction probability at time t. i initial tag and time t i Final prediction probability Minimize the loss corresponding to the degree of difference.
[0165] That is, the final prediction probability is obtained through the following formula. and initial label The weighting coefficient a for minimizing the loss corresponding to the degree of difference j :
[0166]
[0167] in, Let time t i The final predicted probability.
[0168] For time t i The initial tag of the streaming video being played.
[0169] L(·) is the loss function, used to represent the "risk" or "loss" of a random event. express Make decisions under certain conditions The corresponding loss or risk, that is, the loss or risk used to represent and The loss corresponds to the degree of difference. It should be understood that... The smaller the value, the lower the loss or risk. For example, This is the cross-entropy loss function.
[0170] "St" is an abbreviation for "subject to," used to indicate that something satisfies a constraint. In this embodiment, "stmin"... This indicates that the loss function The goal of optimizing the training score memory unit is to minimize the loss or risk.
[0171] (2) If time t iThe final QoE evaluation results include the final predicted label. The specific optimization objective of the scoring memory unit is to optimize the weighting coefficient of each preliminary prediction probability among multiple preliminary prediction probabilities, and to correlate it with time t. i Corresponding initial label and final prediction label Minimize the loss corresponding to the degree of difference.
[0172] That is, the final prediction probability is obtained through the following formula. and initial label The weighting coefficient a for minimizing the loss corresponding to the degree of difference j :
[0173]
[0174] in, Let time t i The final predicted label.
[0175] For time t i The initial tag of the streaming video being played.
[0176] L(·) is the loss function, used to represent the "risk" or "loss" of a random event. express Make decisions under certain conditions The corresponding loss or risk, that is, the loss or risk used to represent and The loss corresponds to the degree of difference. It should be understood that... The smaller the value, the lower the loss or risk. Specifically, The loss function is 0-1. When... When the loss function is 0, the loss function is 0; when The loss function is 1. It should be understood that when... At that time, the loss or risk is the lowest.
[0177] "St" is an abbreviation for "subject to," used to indicate that something satisfies a constraint. In this embodiment, "stmin"... This indicates that the loss function The goal of optimizing the training score memory unit is to minimize the loss or risk.
[0178] The training method for the scoring memory unit provided in this application embodiment can be a probabilistic smoothing method, using time t i Preliminary predicted probability and time t i We take a weighted average of the preliminary predicted probabilities from previous times to obtain the result at time t.i The final predicted probability filters out "spurt" samples that are mistakenly identified as buffering, improving the accuracy of the entire QoE evaluation model and reducing the sensitivity of buffering prediction. Thus, when a user watches streaming video online, the online dataset can be acquired in real time. The feature vector of the online dataset is first input into a machine learning classifier, which obtains multiple preliminary predicted probabilities for adjacent time points. Then, a score memory unit performs a weighted average of these preliminary predicted probabilities to obtain the final predicted probability, enabling accurate and real-time QoE evaluation, such as predicting whether the currently viewed streaming video is buffering or smooth. Furthermore, terminal devices can use the real-time QoE evaluation results to determine whether the current network quality meets communication requirements and whether to trigger network acceleration, etc.
[0179] The above embodiment indicates that the optimization objective of the scoring memory unit is to obtain the optimal weight coefficients so as to minimize the loss corresponding to the difference between the initial label and the final evaluation result at time step. To more intuitively understand the optimization objective, the following will illustrate... Figure 4 and Figure 5 An illustrative example is provided of the method for optimizing weight coefficients. After multiple QoE evaluation results are determined by the machine learning separator, the terminal device can perform multiple rounds of iterative training on the score memory unit. For each round of iterative training, the terminal device can... Figure 4 or Figure 5 The method provided optimizes the weight coefficients.
[0180] The following explanation uses the kth iteration of multi-round iterative training as an example.
[0181] like Figure 4 As shown, in the k-th round of iterative training, the terminal device can optimize the weight coefficients according to S41 to S44 below.
[0182] S41, The terminal equipment is configured according to each preliminary predicted probability. Weighting coefficients For multiple preliminary predicted probabilities We obtain the time t by weighted summation. i Final prediction probability
[0183] The final prediction probability of the k-th iteration training can be calculated by weighting and summing multiple initial prediction probabilities using the following formula.
[0184]
[0185] in, Here, T represents the weighting coefficients of the preliminary QoE evaluation results in the k-th round of training iterations, where T is the time window length. The preliminary QoE assessment results are provided for each time point.
[0186] It should be noted that for any initial predicted probability, the weight coefficient corresponding to that initial predicted probability is different in each round of training iteration. Accordingly, the final predicted probability obtained after each round of training iteration is also different. For example, in the (k-1)th round of training iteration, The weighting coefficient is In the k-th round of iterative training, The weighting coefficient is
[0187] In addition, the number of iterations for the score memory unit used in the first round of iteration training is preset, for example, the preset number of iterations is 1000 or 5000.
[0188] S42, Terminal equipment according to time t i Final prediction probability and time t i Corresponding initial label Determine the cross-entropy loss function
[0189] The cross-entropy loss function can be calculated using the following formula:
[0190]
[0191] Where a is the base of the logarithmic function. For example, a can be an irrational number e.
[0192] Furthermore, the terminal device can update the weight coefficients of each preliminary predicted probability according to the cross-entropy loss function, specifically including S43 and S44 below.
[0193] S43. The terminal device uses the cross-entropy loss function. Determine each preliminary prediction probability Weighting coefficients The gradient.
[0194] The probability of each preliminary prediction can be calculated using the following formula. Weighting coefficients gradient:
[0195]
[0196] S44, The terminal device, based on each preliminary predicted probability Weighting coefficients The gradient is used to update each initial predicted probability for the (k+1)th iteration of training. Weighting coefficients
[0197] The initial prediction probabilities used in the (k+1)th round of iterative training can be calculated using the following formula. Weighting coefficients
[0198]
[0199] Where η is a hyperparameter and T is the time window length.
[0200] The weight coefficients are obtained during the update. Subsequently, in the (k+1)th round of iterative training, the terminal device can adjust the weight coefficients accordingly. Continue executing the iterative steps S41 to S44 above... until the preset number of iterations is reached, then stop the iterative training and obtain the final score memory unit. Thus, the machine learning classifier and the final score memory unit constitute the entire QoE evaluation model.
[0201] like Figure 5 As shown, in the k-th round of iterative training, the terminal device can optimize the weight coefficients according to S51 to S54 below.
[0202] S51, The terminal equipment is configured according to each preliminary predicted probability. Weighting coefficients For multiple preliminary predicted probabilities We obtain the time t by weighted summation. i Final prediction probability
[0203] The final prediction probability of the k-th iteration training can be calculated by weighting and summing multiple initial prediction probabilities using the following formula.
[0204]
[0205] in, Here, T represents the weighting coefficients of the preliminary QoE evaluation results in the k-th round of training iterations, where T is the time window length. The preliminary QoE assessment results are provided for each time point.
[0206] S52, Terminal Equipment Determination and Final Prediction Probability Corresponding final predicted label
[0207] The probability of the final prediction can be determined by the following formula. Corresponding final predicted label
[0208]
[0209] S53, Terminal equipment based on the final predicted label and time t i Corresponding initial label Determine the cross-entropy loss function
[0210] The cross-entropy loss function can be calculated using the following formula:
[0211]
[0212] Where a is the base of the logarithmic function. For example, a can be an irrational number e.
[0213] Furthermore, the terminal device can update the weight coefficients of each preliminary predicted probability according to the cross-entropy loss function, specifically including S54 and S55 below.
[0214] S54, The terminal device uses the cross-entropy loss function Determine each preliminary prediction probability Weighting coefficients The gradient.
[0215] The probability of each preliminary prediction can be calculated using the following formula. Weighting coefficients gradient:
[0216]
[0217] S55, the terminal device, based on each preliminary predicted probability Weighting coefficients The gradient is used to update each initial predicted probability for the (k+1)th iteration of training. Weighting coefficients
[0218] The initial prediction probabilities used in the (k+1)th round of iterative training can be calculated using the following formula. Weighting coefficients
[0219]
[0220] Where η is a hyperparameter and T is the time window length.
[0221] The weight coefficients are obtained during the update. Subsequently, in the (k+1)th round of iterative training, the terminal device can adjust the weight coefficients accordingly. Repeat the iterative steps S51 to S55 above... until the preset number of iterations is reached, then stop the iterative training and obtain the final score memory unit. In this way, the machine learning classifier and the final score memory unit constitute the entire QoE evaluation model.
[0222] It should be noted that the above Figure 4 and Figure 5 The differences in the provided optimization methods are: Figure 4 The cross-entropy loss function is determined based on the final predicted probability. Figure 5 The cross-entropy loss function is determined based on the final predicted label. In conjunction with the description of the above embodiments, since there is a correspondence between the final predicted probability and the final predicted label, the cross-entropy loss function can be obtained regardless of the method used, thereby optimizing the weight coefficients of each initial predicted probability.
[0223] To make the cross-entropy loss function easier and more intuitive to understand, let's define the cross-entropy loss function in the above embodiment as follows. The base of the logarithmic function is a = e, and combined with... Figure 6 and Figure 7 An example is provided.
[0224] like Figure 6 As shown, when the initial label At that time, the cross-entropy loss function Where the horizontal axis represents the final prediction probability output by the scoring memory unit. The ordinate represents the cross-entropy loss function L. When the final predicted probability... The closer to the initial label The smaller the cross-entropy loss function L, the higher the final predicted probability. The closer it is to 0, the larger the cross-entropy loss function L becomes.
[0225] like Figure 7 As shown, when the initial label At that time, the cross-entropy loss function Where the horizontal axis represents the final prediction probability output by the scoring memory unit. The ordinate represents the cross-entropy loss function L. When the final predicted probability... The closer to the initial label The smaller the cross-entropy loss function L, the higher the final predicted probability. The closer it is to 1, the larger the cross-entropy loss function L becomes.
[0226] The above Figure 6 and Figure 7 The cross-entropy loss function L in the equation represents the final predicted probability. With initial label The degree of difference. When the final predicted probability With initial label The smaller the difference, the smaller the cross-entropy loss function L, and the smaller the "penalty" on the machine learning classifier. Therefore, when training the score memory unit, the final prediction probability should be minimized as much as possible. With initial label The gap is used to obtain the score memory unit that minimizes the loss function.
[0227] Figure 8 This is a schematic diagram illustrating the process of extracting feature vectors according to an embodiment of this application. Figure 8 As shown, after the terminal device acquires the offline dataset, parameter normalization, offline feature calculation, and offline feature selection can be performed sequentially to obtain a set of feature vectors. The following section describes how to obtain the feature vectors used to evaluate at time t. i The example of the feature vector set of QoE will be used for illustration.
[0228] S81, The terminal device obtains the offline dataset.
[0229] Among them, offline datasets It can include multiple offline parameters.
[0230] For offline datasets, please refer to the description in S301 above, which will not be repeated here.
[0231] S82. The terminal device normalizes the offline parameters in the offline dataset.
[0232] For offline datasets Each offline parameter x in t Normalization is performed:
[0233]
[0234] Where G(·) is the normalization function.
[0235] On the terminal device, offline dataset After normalizing each offline parameter, the offline dataset is updated to... Among them, sample data It can be used to represent offline parameters Parameters after normalization, sample data It can be used to represent offline parameters Normalized parameters, ..., sample data It can be used to represent offline parameters The parameters after normalization.
[0236] Alternatively, normalization methods may include, but are not limited to, standardization, interval scaling, and discretization.
[0237] 1) Standardization Methods
[0238] If the terminal device adopts a standardized approach: Normalizing the offline parameters will normalize them to the (0,1) distribution region, making the processed offline parameters conform to a standard normal distribution. Here, μ is the expected value of all sample data, and σ is the standard deviation of all sample data.
[0239] 2) Range scaling method
[0240] Interval scaling methods are suitable for sample data that do not conform to a normal distribution. Specifically, they can include the following methods:
[0241] Range scaling method:
[0242] Logarithmic method:
[0243] Methods for taking the square root:
[0244] If the terminal device uses the range scaling method: This allows offline parameters with relatively small data differentiation to be scaled to the [0,1] range. max x is the maximum value among all sample data. min It is the minimum value among all sample data.
[0245] If the terminal device uses the interval scaling method: or This allows offline parameters with significant data differentiation and imbalance to be scaled down to a certain range.
[0246] 3) Discretization method
[0247] If the terminal device uses a discretization method, then the continuous value of the offline parameter x can be... t Bucketing to obtain discrete parameters This increases the frequency of identical parameter values, reduces outliers, and effectively filters out abnormal values.
[0248] It should be understood that regardless of which normalization method the terminal device uses to normalize the offline parameters, it can convert dimensional offline parameters into dimensionless offline parameters, i.e., scalar parameters, thereby making the distribution of different parameters more similar, and thus improving the training efficiency and robustness of the model.
[0249] S83. The offline characteristics of the normalized offline parameters calculated by the terminal device.
[0250] In this embodiment of the application, the offline features of the offline parameters can be represented by feature vectors.
[0251] After normalizing the offline parameters of the offline dataset, the terminal device can process data from time t1 to time t2. i Extract the parameters from the offline parameters used to evaluate time t. i eigenvectors of QoE For example, feature vector Where R represents the real number field; N represents the number or dimension of features contained in each sample data. That is, the feature vector. It can be understood as an N-dimensional vector.
[0252] For example, used to evaluate time t i Offline features of QoE Represented as:
[0253]
[0254] Where D(·) is the offline feature extraction function.
[0255] Optionally, the offline features of the offline parameters may include, but are not limited to, window features, global features, and at least one of other features.
[0256] 1) Window features
[0257] Used to evaluate time t i The window characteristics of QoE can be represented as:
[0258]
[0259] Among them, D window (·) is the window feature extraction function.
[0260] In this embodiment of the application, window features Only with time windows [t i -T1+1,t i The input is related to offline parameters. The duration of this time window is T1, and this time window ∈ [t1, t2]. i ].
[0261] Optionally, the terminal device may employ (weighted) average, median, maximum, minimum, standard deviation, and other composite statistical methods, based on the time window [t]. i -T1+1,t i The offline parameters are input, and the window features are calculated.
[0262] It is understandable that, since the duration T1 of the time window can be considered a constant, the time complexity and space complexity of calculating the window features are both O(1), i.e., constant level. Here, time complexity refers to the amount of computation required to execute the algorithm, and space complexity refers to the memory space required to execute the algorithm.
[0263] 2) Global features
[0264] Used to evaluate time t i The global characteristics of QoE can be represented as:
[0265]
[0266] Among them, D whole (·) is the global feature extraction function.
[0267] In this application embodiment, global features With time interval [t1,t] i The input offline parameters are relevant. Among them, the time period [t1,t...] i [This represents the total time period corresponding to the offline dataset.]
[0268] Optionally, the terminal device may use methods such as (weighted) average, maximum, minimum, skewness, and kurtosis to determine the metric based on the time period [t1, t2]. i The input offline parameters are used to calculate global features. Among them, skewness is a feature number that characterizes the degree of asymmetry of the probability density curve relative to the mean, and kurtosis is a feature number that characterizes the height of the peak of the probability density curve at the mean.
[0269] It should be noted that, theoretically, the time and space complexity of calculating global features are both O(t), which is related to the business duration (t). i -t1) shows a linear relationship, that is, the longer the duration of the streaming video service, the higher the frequency of the time complexity and space complexity of the global features.
[0270] 3) Other characteristics
[0271] Features that are unrelated to network parameters can be referred to as other features. For example, other features include the duration of a streaming video service session.
[0272] It should be noted that the time complexity and space complexity of the real-time attributes used to record the entire streaming video service are both O(1), which is constant level.
[0273] S84. The terminal device performs feature selection on offline features.
[0274] Due to the extracted feature vector contains some features with high redundancy, and these features with high redundancy will lead to complicated and time-consuming training of the machine learning classifier. Therefore, the terminal device may use a feature selection algorithm to remove these features with high redundancy, to obtain a simplified feature vector thereby reducing training complexity and increasing training speed. Herein, N' is used to represent the simplified dimension, where N'<N. That is, the feature vector can be understood as an N'-dimensional vector.
[0275] Optionally, the feature selection algorithm may include but is not limited to: a mutual information-based method, a maximum correlation minimum redundancy-based method, and a Wrapper-based feature selection method, etc.
[0276] It should be noted that, in the foregoing embodiments, the method for training the score memory unit and the QoE evaluation method are performed by the terminal device as an example for description. It should be understood that, in actual implementation, the method for training the score memory unit and the QoE evaluation method may also be performed by a server, which is not limited in the embodiments of the present application.
[0277] The solutions provided by the embodiments of the present application are mainly described above from the perspective of the terminal device. It can be understood that, to implement the foregoing functions, the terminal device includes a hardware structure or a software module for executing each function, or a combination of both. A person skilled in the art would easily realize that, with reference to the units and algorithm steps of the examples described in the embodiments disclosed herein, the present application can be implemented by hardware or a combination of hardware and computer software. Whether a function is executed by hardware or computer software-driven hardware depends on the specific application and design constraint condition of the technical solution. A professional technician may use different methods for each specific application to implement the described function, but such implementation should not be considered as beyond the scope of the present application.
[0278] The embodiments of the present application may divide the terminal device into functional modules according to the foregoing method examples. For example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The foregoing integrated module may be implemented in a form of hardware, or in a form of a software functional module. It should be noted that, the division of modules in the embodiments of the present application is schematic, and is merely a logical function division. In actual implementation, other division manners may be used. The following description is made by taking an example of dividing each functional module corresponding to each function.
[0279] Figure 9 is a schematic structural diagram of a training apparatus provided in an embodiment of the present application. As Figure 9As shown, the training device 900 may include a determination module 901, a training module 902, and an update module 903.
[0280] The determination module 901 can be used to determine multiple preliminary QoE evaluation results based on offline data. This offline data consists of terminal-side parameters obtained from the log file of a streamed video that has finished playing. These multiple preliminary QoE evaluation results are used to train the score memory unit. The multiple preliminary QoE evaluation results include: a preliminary QoE evaluation result predicted for time t, and a preliminary QoE evaluation result predicted for at least one time point prior to time t.
[0281] Training module 902 is used to perform a weighted summation of multiple preliminary QoE evaluation results in each iteration, based on the weight coefficients of each preliminary QoE evaluation result, to obtain the final QoE evaluation result at time t. After a preset number of iterations, the final machine learning classifier is obtained. The optimization objective of the score memory unit is to minimize the loss corresponding to the difference between the initial label at time t and the final QoE evaluation result at time t; the initial label at time t indicates whether the streaming video is choppy or smooth at time t. The final score memory unit is used to evaluate the QoE of the streaming video in real time.
[0282] The update module 903 can be used to update the weight coefficients of each preliminary QoE evaluation result based on the initial label at time t and the final QoE evaluation result at time t. The updated weight coefficients of each preliminary QoE evaluation result are then used in the next round of training iterations.
[0283] Optionally, the multiple preliminary QoE evaluation results are obtained through predictions by a machine learning classifier. These multiple preliminary QoE evaluation results include: multiple preliminary prediction probabilities, each of which represents the probability that the machine learning classifier predicts the streaming video will be choppy at a given time. The final QoE evaluation result at time t includes: the final prediction probability at time t, which represents the probability that the scoring memory unit predicts the streaming video will be choppy at time t.
[0284] In one possible implementation, if the final QoE evaluation result at time t includes the final predicted probability at time t, then the optimization objective of the score memory unit is specifically to optimize the weight coefficient of each initial predicted probability and minimize the loss corresponding to the degree of difference between the initial label at time t and the final predicted probability at time t.
[0285] Accordingly, the training module 902 is specifically used to: sum the multiple preliminary prediction probabilities according to the weight coefficient of each preliminary prediction probability to obtain the final prediction probability at time t. The update module 903 is specifically used to: determine the cross-entropy loss function based on the initial label at time t and the final prediction probability at time t; and update the weight coefficient of each preliminary prediction probability according to the cross-entropy loss function. The updated weight coefficient of each preliminary prediction probability is used for the next round of iterative training.
[0286] In one possible implementation, if the final QoE evaluation result at time t also includes the final prediction label at time t, which is used to indicate whether the streaming video predicted by the scoring memory unit is stuttering or smooth at time t, then the optimization objective of the scoring memory unit is specifically to optimize the weight coefficient of each initial prediction probability and minimize the loss corresponding to the degree of difference between the initial label at time t and the final prediction label at time t.
[0287] Accordingly, the training module 902 is specifically used to: sum the multiple preliminary prediction probabilities according to the weight coefficients of each preliminary prediction probability to obtain the final prediction probability at time t; and determine the final prediction label at time t based on the final prediction probability at time t. The update module 903 is specifically used to: determine the cross-entropy loss function based on the initial label at time t and the final prediction label at time t; and update the weight coefficients of each preliminary prediction probability based on the cross-entropy loss function. The updated weight coefficients of each preliminary prediction probability are used for the next round of iterative training.
[0288] The training apparatus of this application embodiment, upon acquiring multiple preliminary QoE evaluation results at adjacent time points, can use these multiple preliminary QoE evaluation results to perform multiple rounds of iterative training on the score memory unit. Since the training apparatus optimizes the weight coefficients of each preliminary evaluation result in each round of iterative training, the optimal score memory unit can be obtained after the final round of iterative training. Thus, during subsequent streaming video playback, using this score memory unit can filter out potentially misjudged samples, improving the accuracy of real-time QoE evaluation.
[0289] The training apparatus of this application embodiment can correspond to the method described in this application embodiment related to the scoring memory unit, and will not be repeated here.
[0290] Figure 10 This is a schematic diagram of the structure of a terminal device provided in an embodiment of this application. Figure 10 As shown, the terminal device may include a processor 101, which is coupled to a memory 103. The processor 101 is used to execute computer programs or instructions stored in the memory to cause the terminal device to implement the methods in the above embodiments.
[0291] The terminal device may also include a communication bus 102, a communication interface 104, an output device 105, and an input device 106.
[0292] The number of processors 101 can be one or more. A processor 101 may include at least one processing unit. For example, a processor may include, Figure 10 The diagram shows at least one central processing unit (CPU). For example, the processor may also include an image signal processor (ISP), a digital signal processor (DSP), a video codec, a neural network processing unit (NPU), a graphics processing unit (GPU), an application processor (AP), a modem processor, and / or a baseband processor. In some embodiments, different processing units may be independent devices or integrated into one or more processors.
[0293] The communication bus 102 may include a path for transmitting information between the processor 101, the memory 103, and the communication interface 104.
[0294] Communication interface 104, using any transceiver-like device, is used to communicate with other devices or communication networks, such as Ethernet, radio access network (RAN), or wireless local area network (WLAN). In this embodiment, communication interface 104 is mainly used for communication with a server, such as transmitting data packets for streaming video.
[0295] The memory 103 may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, or electrically erasable programmable read-only memory (EEPROM), compact disk read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital versatile optical discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but not limited thereto. The memory may exist independently and be connected to the processor via a bus. The memory may also be integrated with the processor.
[0296] The memory 103 stores execution application code, such as the code for a video application, and its execution is controlled by the processor 101. The processor 101 executes the application code stored in the memory 103 to implement the training method for the scoring memory unit in the above embodiment.
[0297] In this embodiment, the memory can also be used for log files, machine learning classifiers, and score memory units. The machine learning classifiers and score memory units stored in the memory are used for real-time QoE evaluation of streaming video.
[0298] Output device 105 communicates with processor 101 and can display information in various ways, such as a streaming video playback interface. Output device 105 may include a display panel, such as a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), or a quantum dot light-emitting diode (QLED), etc.
[0299] Input device 106 communicates with processor 101 and can receive user input in various ways, such as receiving user input for streaming video playback. Input device 106 can be a mouse, keyboard, touchscreen, or sensor device, etc.
[0300] It should be understood that Figure 10 The terminal device shown can correspond to Figure 9 The training device shown. Among them, Figure 10 The processor 101 in the terminal device shown can correspond to Figure 9 The training device includes a determination module 901, a training module 902, and an update module 903.
[0301] This application also provides a computer-readable storage medium storing computer instructions. When the computer-readable storage medium is run on a terminal device, it causes the terminal device to perform the method described above. The computer instructions can be stored in the computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access, or it can include one or more data storage devices such as servers or data centers that can be integrated using media. Available media can be magnetic media (e.g., floppy disks, hard disks, or magnetic tapes), optical media, or semiconductor media (e.g., solid-state drives (SSDs)).
[0302] This application also provides a computer program product, which includes computer program code that, when run on a computer, causes the computer to perform the methods described in the above embodiments.
[0303] This application also provides a chip coupled to a memory, which is used to read and execute computer programs or instructions stored in the memory to perform the methods described in the above embodiments. This chip can be a general-purpose processor or a dedicated processor.
[0304] It should be noted that the chip can be implemented using the following circuits or devices: one or more field programmable gate arrays (FPGAs), programmable logic devices (PLDs), controllers, state machines, gate logic, discrete hardware components, any other suitable circuits, or any combination of circuits capable of performing the various functions described throughout this application.
[0305] The terminal device, training device, computer-readable storage medium, computer program product, and chip provided in the embodiments of this application are all used to execute the methods provided above. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects corresponding to the methods provided above, and will not be repeated here.
[0306] It should be understood that the above description is merely to help those skilled in the art better understand the embodiments of this application, and is not intended to limit the scope of the embodiments of this application. Based on the examples given above, those skilled in the art can obviously make various equivalent modifications or changes. For example, some steps in the various embodiments of the above detection method may be unnecessary, or new steps may be added. Alternatively, any combination of two or more of the above embodiments may be used. Such modifications, changes, or combinations also fall within the scope of the embodiments of this application.
[0307] It should also be understood that the above description of the embodiments of this application focuses on highlighting the differences between the various embodiments. Any similarities or differences not mentioned can be referred to each other. For the sake of brevity, they will not be repeated here.
[0308] It should also be understood that the sequence number of each process does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0309] It should also be understood that in the embodiments of this application, "pre-setting" or "pre-defining" can be achieved by pre-saving the corresponding code, table or other means that can be used to indicate relevant information in the device (e.g., including terminal device), and this application does not limit the specific implementation method.
[0310] It should also be understood that the methods, situations, categories, and classifications of embodiments in this application are for the convenience of description only and should not constitute a special limitation. Various methods, categories, situations, and features in embodiments can be combined without contradiction.
[0311] It should also be understood that, in the various embodiments of this application, unless otherwise specified or in case of logical conflict, the terms and / or descriptions between different embodiments are consistent and can be referenced by each other, and the technical features in different embodiments can be combined to form new embodiments according to their inherent logical relationships.
[0312] Finally, it should be noted that the above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A training method for scoring memory units, characterized in that, The method includes: The machine learning classifier obtains multiple preliminary prediction probabilities based on offline data; the offline data is terminal-side parameters obtained from the log file of a streaming video that has finished playing; the multiple preliminary prediction probabilities include the preliminary prediction probability at time t and at least one time before time t, and each preliminary prediction probability is used to represent the probability that the machine learning classifier predicts that the streaming video is stuttering at a certain time. In each iteration of training of the scoring memory unit, the multiple preliminary prediction probabilities are weighted and summed according to the weight coefficient of each preliminary prediction probability to obtain the final QoE evaluation result at time t; the optimization objective of the scoring memory unit is to minimize the loss corresponding to the difference between the initial label at time t and the final QoE evaluation result at time t; the initial label at time t is used to indicate whether the streaming video is stuttering or smooth at time t; Based on the initial label at time t and the final QoE evaluation result at time t, the weight coefficient of each preliminary prediction probability is updated, and the updated weight coefficient of each preliminary prediction probability is used for the next round of iterative training. After the preset number of iterations is reached, the final score memory unit is obtained, which is used to evaluate the QoE of streaming video in real time. The final QoE evaluation result at time t includes at least one of the final prediction probability and the final prediction label. The final prediction probability is used to represent the probability that the scoring memory unit predicts that the streaming video is stuttering at time t, and the final prediction label is used to represent the probability that the scoring memory unit predicts that the streaming video is stuttering or smooth at time t.
2. The method according to claim 1, characterized in that, The final QoE evaluation result at time t includes the final predicted probability; the optimization objective of the score memory unit is specifically to optimize the weight coefficient of each preliminary predicted probability and minimize the loss corresponding to the difference between the initial label and the final predicted probability at time t.
3. The method according to claim 2, characterized in that, The step of updating the weight coefficient of each preliminary predicted probability based on the initial label at time t and the final QoE evaluation result at time t includes: The cross-entropy loss function is determined based on the initial label at time t and the final prediction probability; The weight coefficients of each preliminary predicted probability are updated according to the cross-entropy loss function.
4. The method according to claim 1, characterized in that, The final QoE evaluation result at time t includes the final predicted label; The optimization objective of the score memory unit is specifically to optimize the weight coefficient of each preliminary prediction probability and minimize the loss corresponding to the difference between the initial label and the final prediction label at time t.
5. The method according to claim 4, characterized in that, The step of updating the weight coefficient of each preliminary predicted probability based on the initial label at time t and the final QoE evaluation result at time t includes: The cross-entropy loss function is determined based on the initial label at time t and the final predicted label at time t. The weight coefficients of each preliminary predicted probability are updated according to the cross-entropy loss function.
6. The method according to claim 3 or 5, characterized in that, The step of updating the weight coefficients of each preliminary predicted probability according to the cross-entropy loss function includes: Based on the cross-entropy loss function, determine the gradient of the weight coefficients of each preliminary predicted probability; The weight coefficients of each preliminary prediction probability are updated based on the gradient of the weight coefficients of each preliminary prediction probability.
7. The method according to any one of claims 1 to 5, characterized in that, If the final prediction probability is greater than or equal to 0.5, then the final prediction label is used to indicate that the streaming video is stuttering at time t; If the final prediction probability is less than 0.5, then the final prediction label is used to indicate that the streaming video is smooth at time t.
8. The method according to any one of claims 1 to 5, characterized in that, The initial label at time t belongs to the initial label set, and each initial label in the initial label set is used to indicate whether the streaming video is stuttering or smooth at a playback moment. The machine learning classifier obtains multiple preliminary predicted probabilities based on the offline data in the following manner: A set of feature vectors is extracted from the offline data, and each feature vector in the set is used to evaluate the QoE of the streaming video at a playback moment; Based on the set of feature vectors and the set of initial labels, a training operation is performed to obtain the mapping relationship between the feature vector and the preliminary prediction probability corresponding to each playback moment, as well as the multiple preliminary prediction probabilities; the optimization objective of the machine learning classifier is to minimize the loss corresponding to the degree of difference between the initial label and the preliminary prediction probability corresponding to each playback moment.
9. The method according to claim 8, characterized in that, The step of extracting a set of feature vectors from the offline data includes: The offline data is normalized. Extract all feature vectors from the normalized offline data; Redundant feature vectors are removed from all the feature vectors to obtain the feature vector set.
10. A terminal device, characterized in that, The device includes a processor coupled to a memory, the processor being configured to execute a computer program or instructions stored in the memory to enable the terminal device to implement the training method for the scoring memory unit as described in any one of claims 1 to 9.
11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when run on a terminal device, causes the terminal device to perform the training method for the scoring memory unit as described in any one of claims 1 to 9.
