Voice quality assessment method, device, electronic device and storage medium
Through the voice quality assessment model based on the extreme gradient boosting algorithm, the real-time transmission protocol communication parameters and delay parameters are used to solve the problem of low efficiency of traditional voice service quality assessment, achieve fast and accurate voice quality assessment, and reduce costs.
Patent Information
- Application Number
- CN202210787995.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-06
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2042-07-06
AI Technical Summary
Traditional voice service quality assessment methods require professionals and equipment, are inefficient and costly, and cannot quickly and accurately assess voice quality.
A voice quality assessment model based on the extreme gradient boosting algorithm is used to evaluate the voice quality by obtaining the real-time transmission protocol communication parameters and delay parameters of the terminal, achieving rapid assessment without the need for on-site data collection and professionals.
It improves the efficiency and accuracy of voice quality assessment, saves time and cost, and enables fast and convenient voice quality assessment.
Smart Images

Figure CN115175233B
Abstract
Description
Technical Field
[0001] The present application relates to the field of communications, and in particular to a voice quality assessment method, device, electronic device and storage medium. Background Art
[0002] With the development of mobile network communication technology, the quality optimization of data and voice services is becoming more and more important. For example, in network optimization and evaluation, the evaluation of voice service quality is one of the most important indicators.
[0003] At present, the evaluation method of voice service quality is traditional road testing, which requires professional testers, road testing equipment and vehicles. Professional testers drive through the target route and conduct field tests to obtain the evaluation results of voice service instructions. It can be seen that the traditional road testing method has certain requirements on personnel skills, and also requires professional equipment and vehicles to collect data on site for evaluation. The evaluation efficiency is relatively low and it takes a lot of time and cost. Summary of the invention
[0004] The present application provides a speech quality assessment method, device, electronic device and storage medium for realizing convenient and fast speech quality assessment.
[0005] On the one hand, the present application provides a voice quality assessment method, comprising: obtaining call bill data of a terminal to be assessed during a time period to be assessed; obtaining feature data of the terminal to be assessed from the call bill data of the terminal to be assessed; wherein the feature data includes real-time transport protocol communication parameters and delay parameters; inputting the feature data of the terminal to be assessed into a voice quality assessment model, and obtaining a voice quality assessment result of the terminal to be assessed during the time period to be assessed output by the voice quality assessment model; wherein the voice quality assessment model is a model established based on an extreme gradient boosting algorithm and trained.
[0006] In one embodiment, the method also includes: establishing an initial model based on an extreme gradient boosting algorithm; obtaining training data, the training data including the voice quality assessment results of each test terminal and feature data corresponding to the voice quality assessment results of each test terminal; based on the training data, training the initial model until the voice quality assessment model is obtained.
[0007] In some embodiments, the method further includes: obtaining training drive test data of each test terminal at each time moment, the training drive test data including an identifier of the test terminal and a voice quality assessment result of the test terminal; obtaining training call list data of each test terminal at each time period, the training call list data including an identifier of the test terminal and feature data of the test terminal; for each test terminal, based on the identifier of the test terminal, establishing an association between the voice quality assessment result of the test terminal and the feature data of the test terminal to obtain the training data.
[0008] In some embodiments, for each test terminal, based on the identifier of the test terminal, an association is established between the voice quality assessment result of the test terminal and the feature data of the test terminal to obtain the training data, and further includes: preprocessing the training data, wherein the preprocessing includes at least one of the following: missing value filling, outlier processing, normalization processing, one-hot encoding processing, and feature fusion and disassembly processing.
[0009] In some implementations, for each test terminal, based on the identification of the test terminal, establishing an association between the voice quality evaluation result of the test terminal and the feature data of the test terminal to obtain the training data, includes: for each test terminal, based on the identification of the test terminal, obtaining the training drive test data of the test terminal at each time and the training call list data of the test terminal at each time period; according to the time corresponding to each training drive test data of the test terminal and the time period corresponding to each training call list data of the test terminal, determining the training call list data corresponding to each training drive test data of the test terminal; wherein , the time corresponding to the training drive test data is within the time period corresponding to the training call sheet data corresponding to the training drive test data; for each training call sheet data of the test terminal, if there is one training drive test data corresponding to the training call sheet data, then an association is established between the voice quality evaluation result in the training drive test data and the feature data in the training call sheet data; and, if there are multiple training drive test data corresponding to the training call sheet data, then an average value of the voice quality evaluation results in the multiple training drive test data is taken as the final voice quality evaluation result, and an association is established between the final voice quality evaluation result and the feature data in the training call sheet data.
[0010] In some embodiments, the initial model is trained based on the training data until the speech quality assessment model is obtained, including: dividing the training data to obtain a training set and a test set; training the initial model based on the training data in the training set to obtain a current model; inputting the feature data in the test set into the current model to obtain a first speech quality assessment result output by the model; calculating the correlation coefficient between the first speech quality assessment result and the corresponding speech quality assessment result in the test set until the current correlation coefficient meets the predetermined requirements, and then determining that the training is completed.
[0011] On the other hand, the present application provides a voice quality assessment device, comprising: a first acquisition module, which acquires call bill data of a terminal to be assessed during a time period to be assessed; the first acquisition module is also used to obtain feature data of the terminal to be assessed from the call bill data of the terminal to be assessed; wherein the feature data includes real-time transport protocol communication parameters and delay parameters; a processing module, which is used to input the feature data of the terminal to be assessed into a voice quality assessment model, and obtain the voice quality assessment result of the terminal to be assessed during the time period to be assessed output by the voice quality assessment model; wherein the voice quality assessment model is a model established based on an extreme gradient boosting algorithm and trained.
[0012] In some embodiments, the device also includes: a model building module, used to build an initial model based on an extreme gradient boosting algorithm; a second acquisition module, used to acquire training data, the training data including the voice quality assessment results of each test terminal and feature data corresponding to the voice quality assessment results of each test terminal; a training module, used to train the initial model based on the training data until the voice quality assessment model is obtained.
[0013] In some embodiments, the second acquisition module includes: an acquisition unit, which is used to acquire training drive test data of each test terminal at each time moment, and the training drive test data includes the identification of the test terminal and the voice quality evaluation result of the test terminal; the acquisition unit is also used to acquire training call list data of each test terminal in each time period, and the training call list data includes the identification of the test terminal and the characteristic data of the test terminal; an association unit is used to establish, for each test terminal, an association between the voice quality evaluation result of the test terminal and the characteristic data of the test terminal based on the identification of the test terminal, so as to obtain the training data.
[0014] In some embodiments, the device further includes: a preprocessing module for preprocessing the training data, wherein the preprocessing includes at least one of the following: missing value filling, outlier processing, normalization processing, one-hot encoding processing, and feature fusion and disassembly processing.
[0015] In some embodiments, the association unit is specifically used to: for each test terminal, based on the identification of the test terminal, obtain the training drive test data of the test terminal at each time and the training call sheet data of the test terminal in each time period; determine the training call sheet data corresponding to each training drive test data of the test terminal according to the time corresponding to each training drive test data of the test terminal and the time period corresponding to each training call sheet data of the test terminal; wherein the time corresponding to the training drive test data is within the time period corresponding to the training call sheet data corresponding to the training drive test data; for each training call sheet data of the test terminal, if the training drive test data corresponds to one training drive test data, establish an association between the voice quality evaluation result in the training drive test data and the feature data in the training call sheet data; and, if the training call sheet data corresponds to multiple training drive test data, take the average of the voice quality evaluation results in the multiple training drive test data as the final voice quality evaluation result, and establish an association between the final voice quality evaluation result and the feature data in the training call sheet data.
[0016] In some embodiments, the training module is specifically used to: divide the training data to obtain a training set and a test set; train the initial model based on the training data in the training set to obtain a current model; input the feature data in the test set into the current model to obtain a first speech quality assessment result output by the model; calculate the correlation coefficient between the first speech quality assessment result and the corresponding speech quality assessment result in the test set, until the current correlation coefficient meets the predetermined requirements, then determine that the training is completed.
[0017] On the other hand, the present application provides an electronic device, comprising: a processor, and a memory communicatively connected to the processor; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory to implement the method described above.
[0018] On the other hand, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the method as described above.
[0019] In the voice quality assessment method, device, electronic device and storage medium provided in the present application, the call data of the terminal to be assessed during the period to be assessed is obtained; the feature data of the terminal to be assessed is obtained from the call data of the terminal to be assessed; the feature data of the terminal to be assessed is input into the voice quality assessment model to obtain the voice quality assessment result of the terminal to be assessed during the period to be assessed output by the voice quality assessment model. In the scheme of the present application, the voice quality assessment model is established and trained based on the extreme gradient boosting algorithm, and can output accurate voice quality assessment results based on the input feature data. The scheme does not need to rely on professionals and does not need to conduct on-site data collection and assessment, thereby effectively improving the efficiency of voice quality assessment and saving a lot of time and cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0021] Figure 1 A schematic diagram of a scenario of a traditional road speech quality assessment method;
[0022] Figure 2 A flowchart of a method for evaluating speech quality provided in Example 1 of the present application;
[0023] Figure 3 A flowchart of a voice quality assessment method provided in Embodiment 2 of the present application;
[0024] Figure 4 A schematic diagram of the structure of a speech quality assessment device provided in Embodiment 3 of the present application;
[0025] Figure 5 A schematic diagram of the structure of a speech quality assessment device provided in Embodiment 4 of the present application;
[0026] Figure 6 A schematic diagram of the structure of an electronic device provided in Example 5 of the present application.
[0027] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0028] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0029] It should be noted that the brief description of terms in this application is only for the convenience of understanding the embodiments described below, and is not intended to limit the embodiments of this application. Unless otherwise specified, these terms should be understood according to their common and usual meanings.
[0030] The terms "first", "second", etc. in the specification and claims of this application and the above drawings are used to distinguish similar or similar objects or entities, and do not necessarily mean to limit a specific order or sequence, unless otherwise indicated. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, for example, they can be implemented in an order other than those given in the diagrams or descriptions of the embodiments of this application.
[0031] In addition, the terms "including" and "having" and any variations thereof are intended to cover but not exclude inclusion, for example, a product or device comprising a series of components is not necessarily limited to those components explicitly listed, but may include other components not explicitly listed or inherent to these products or devices. The term "module" as used in this application refers to any known or later developed hardware, software, firmware, artificial intelligence, fuzzy logic or combination of hardware and / or software code that can perform the functions associated with the element.
[0032] Figure 1 Figure 1 is a schematic diagram of the scenario of the traditional road speech quality assessment method. Figure 1 As shown, the intersection 101 is a road section for evaluating road speech quality, a vehicle 104 passes through the intersection 101, and a base station 102 is located near the intersection and is a mobile communication exchange center.
[0033] Professional testers drive a vehicle 104 through the intersection 101, and the voice quality evaluation results can be directly measured by field testing using a road test device. In actual scenarios, voice services usually occur on the road voice quality evaluation section. For example, when a pedestrian 103 passes through the intersection 101, a terminal device, such as a mobile terminal, a tablet computer, a smart watch, etc., can be used for high-definition voice services. Wireless terminals and / or wired terminals can also be used. A wireless terminal can be a device that provides voice and / or other business data connectivity to a user, a handheld device with a wireless connection function, or other processing devices connected to a wireless modem. The wireless terminal can also communicate with one or more core network devices via a radio access network (Radio Access Network, referred to as RAN). The wireless terminal can be a mobile terminal, such as a mobile phone (or "cellular" phone) and a computer with a mobile terminal, for example, a portable, pocket-sized, handheld, computer-built-in or vehicle-mounted mobile device, which exchanges language and / or data with the radio access network. For another example, the wireless terminal may also be a Personal Communication Service (PCS) phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA) and other devices. The wireless terminal may also be referred to as a system, a subscriber unit, a subscriber station, a mobile station, a mobile station, a remote station, a remote terminal, an access terminal, a user terminal, a user agent, a user device or user equipment, which are not limited here. The terminal device transmits the voice communication information to the base station 102 through the uplink channel, and the base station 102 transmits the voice communication information to other users through the downlink channel. The application path test device can measure the voice quality evaluation result under the voice quality evaluation section based on the voice service situation occurring under the voice quality evaluation section.
[0034] However, the implementation of this solution requires professional testers, road test equipment and vehicles, the efficiency of voice quality assessment is low, and it takes a lot of time and cost. Therefore, this application establishes a voice quality assessment model, which analyzes user data through the model to obtain voice quality assessment results similar to traditional road tests, which can improve the efficiency of voice quality assessment while saving time and cost.
[0035] The technical solutions of the present application and the technical solutions of the present application are described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. In the description of the present application, unless otherwise clearly specified and limited, each term should be understood in a broad sense in the art. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0036] Figure 2 This is a flow chart of a method for evaluating speech quality provided in the first embodiment of the present application. The implementation subject of this embodiment may be a speech quality evaluation device, such as Figure 2 As shown, the method includes:
[0037] S201, obtaining the call list data of the terminal to be evaluated during the period to be evaluated;
[0038] S202, obtaining characteristic data of the terminal to be evaluated from the call list data of the terminal to be evaluated; wherein the characteristic data includes real-time transport protocol communication parameters and delay parameters;
[0039] S203, inputting the characteristic data of the terminal to be evaluated into a speech quality evaluation model, and obtaining the speech quality evaluation result of the terminal to be evaluated in the period to be evaluated output by the speech quality evaluation model; wherein the speech quality evaluation model is a model established based on an extreme gradient boosting algorithm and trained.
[0040] The call record data may be External Data Representation (XDR) call record data. There are many data types in XDR call record data, such as basic information, such as service start time, session ID, etc.; or, for example, user information, such as user ID, mobile station device ID, network access ID, etc.; or, for example, quality information, such as latency, number of out-of-order messages, number of retransmitted messages, number of retransmitted bytes, record closure reason, etc.; or, for example, traffic information, such as number of messages, number of bytes, etc. In practical applications, the XDR call record collection system can flexibly generate XDR call record data for the time period to be evaluated as needed.
[0041] In practical applications, the execution subject of the speech quality assessment method can be a speech quality assessment device, which can be implemented in many ways, for example, it can be implemented through a computer program, such as application software, etc.; or, for example, a chip, etc. It can also be implemented as a medium storing relevant computer programs, such as a USB disk, a cloud disk, etc.; or, it can also be implemented through a physical device integrated or installed with relevant computer programs, such as a server, etc.
[0042] In practical applications, the characteristic data is part of the data in the call log data that is related to the voice quality assessment method. For example, factors such as voice coding, delay, packet loss and jitter will affect the voice quality. Specifically, in S202, the characteristic data of the terminal to be evaluated is obtained from the call log data of the terminal to be evaluated; wherein the characteristic data includes real-time transport protocol communication parameters and delay parameters. For example, the real-time transport protocol communication parameters may include: real-time transport protocol data packet count, real-time transport protocol jitter, real-time transport protocol packet loss number, real-time transport control protocol data packet count, real-time transport control protocol jitter, real-time transport control protocol packet loss number; delay parameters may include: average encoding and decoding rate, loop delay, average delay, etc.
[0043] Correspondingly, in S203, the characteristic data of the terminal to be evaluated is input into the voice quality evaluation model to obtain the voice quality evaluation result of the terminal to be evaluated in the time period to be evaluated output by the voice quality evaluation model; wherein the voice quality evaluation model is a model established based on the extreme gradient boosting algorithm and trained. For example, the characteristic data of the terminal to be evaluated may include: real-time transport protocol communication parameters, such as real-time transport protocol jitter, real-time transport protocol packet loss number; or, delay parameters, such as average encoding and decoding rate, loop delay. The characteristic data of the terminal to be evaluated is input into the voice quality evaluation model to obtain the voice quality evaluation result of the terminal to be evaluated in the time period to be evaluated output by the voice quality evaluation model.
[0044] In the voice quality assessment method provided in this embodiment, the call data of the terminal to be assessed during the period to be assessed is obtained; the characteristic data of the terminal to be assessed is obtained from the call data of the terminal to be assessed; wherein the characteristic data includes real-time transport protocol communication parameters and delay parameters; the characteristic data of the terminal to be assessed is input into the voice quality assessment model to obtain the voice quality assessment result of the terminal to be assessed during the period to be assessed output by the voice quality assessment model; wherein the voice quality assessment model is a model established and trained based on the extreme gradient boosting algorithm. This embodiment obtains the voice quality assessment result of the terminal to be assessed during the period to be assessed output by the voice quality assessment model by inputting the characteristic data of the terminal to be assessed during the period to be assessed into the voice quality assessment model, thereby achieving the purpose of obtaining the voice quality assessment result through the voice quality assessment model, thereby effectively improving the efficiency of voice quality assessment and saving the cost of obtaining voice quality assessment results by traditional road tests.
[0045] Figure 3 A flow chart of a voice quality assessment method provided in Embodiment 2 of the present application is shown in FIG. Figure 3 As shown, the method also includes:
[0046] S301, establishing an initial model based on the extreme gradient boosting algorithm;
[0047] S302, acquiring training data, where the training data includes a voice quality evaluation result of each test terminal and feature data corresponding to the voice quality evaluation result of each test terminal;
[0048] S303: Based on the training data, the initial model is trained until the speech quality assessment model is obtained.
[0049] Among them, the speech quality evaluation result is obtained through traditional road testing. In practical applications, the speech quality evaluation result can be the mean opinion score (MOS). For example, the 3Fold Quality Evaluation Of Speech In Telecommunications (3QUEST) standard uses three parameters, namely, Speech Mean Opinion Score (SMOS), Noise Mean Opinion Score (NMOS), and Global Mean Opinion Score (GMOS), to describe the speech quality in three dimensions: naturalness of speech, presence of noise, and overall speech quality. The MOS value ranges from 0 to 5. The larger the MOS value, the better the speech quality.
[0050] In practical applications, there are many feature data that affect voice quality. Obviously, considering multiple feature data together can obtain more accurate voice quality assessment results. The extreme gradient boosting algorithm uses an iterative serial form to obtain the predicted value of the voice quality assessment result. Each iteration of the extreme gradient boosting algorithm constructs a new decision tree. Each decision tree represents a feature data type. Each iteration obtains a new predicted value, which is equal to the sum of the predicted value of the current decision tree and the previous predicted value.
[0051] Specifically, in S301, an initial model is established based on the extreme gradient boosting algorithm. For example, assuming that the iteration has reached t-1 times, the i-th sample x i The predicted value expression is as follows:
[0052]
[0053] Here k is the number of decision trees. In the next iteration, the newly generated integrated model is trained to have the smallest loss on the training set. In the tth iteration, the i-th sample x i The predicted value expression is as follows:
[0054]
[0055] The objective function of the extreme gradient boosting algorithm includes the loss function L and the regularization term Ω. The objective function can be written as:
[0056]
[0057] According to the i-th sample x at the t-th iteration i The predicted value f t (x i ), the objective function can be written as:
[0058]
[0059] Using Taylor's formula, the objective function is expanded by Taylor's second order, and we get
[0060]
[0061] where g i is the first-order derivative of the loss function, h i is the second-order derivative of the loss function. When the loss function takes the square loss, the objective function is approximately:
[0062]
[0063] Furthermore, the basis function is taken as the decision tree model f t (X) = ω q(x), q(x) represents the leaf node where sample x is located. At the same time, the number of leaf nodes of the decision tree is set to T. This value determines the complexity of the decision tree. The larger the value, the more complex the model. At this time, the regular term of the objective function is expressed as:
[0064]
[0065] Since each sample x i Eventually, they all fall on leaf nodes, and each leaf node contains multiple samples, so traversing all samples x i Finding the loss function is equivalent to traversing all leaf nodes to find the loss function. Let the sample set contained in the jth leaf node be I j ={i}, then the loss function is:
[0066]
[0067] To simplify the formula, define G i =∑ i∈I , g i , H i =∑ i∈I h i , the objective function is:
[0068]
[0069] Then to ω j Find the first-order derivative and set it to 0, and the weight and optimal objective function corresponding to the leaf node j are:
[0070]
[0071] The t-th decision tree is constructed according to the weight corresponding to the leaf node j and the optimal objective function, and the current prediction value can be obtained according to the nodes of the t-th decision tree.
[0072] In this embodiment, an initial model is established based on an extreme gradient algorithm. Training data including the speech quality evaluation results of each test terminal and feature data corresponding to the speech quality evaluation results of each test terminal is obtained, and the initial model is trained based on the training data to obtain a speech quality evaluation model. Using the speech quality evaluation model for the speech quality evaluation results saves the cost of obtaining the speech quality evaluation results in actual road tests.
[0073] In addition, taking into account that the voice quality evaluation results of different test terminals are different, in order to establish training data, in one embodiment, S302 specifically includes: obtaining training drive test data of each test terminal at each time, the training drive test data including the identification of the test terminal and the voice quality evaluation result of the test terminal; obtaining training call list data of each test terminal in each time period, the training call list data including the identification of the test terminal and the characteristic data of the test terminal; for each test terminal, based on the identification of the test terminal, establishing an association between the voice quality evaluation result of the test terminal and the characteristic data of the test terminal to obtain the training data.
[0074] The identification of the test terminal is the user identification of the test terminal user, including but not limited to: International Mobile Subscriber Identity (IMSI), Mobile Subscriber International ISDN / PSTN Number (MSISDN), Temporary Mobile Subscriber Identity (TMSI).
[0075] In actual applications, it is possible to obtain training drive test data of multiple test terminals and training call bill data of multiple test terminals, both of which include the identification of the test terminal, and the voice quality evaluation result and feature data of the same test terminal are associated according to the identification of the test terminal. For example, the obtained training drive test data include the training drive test data of test terminal 1 (including the identification and voice quality evaluation result of test terminal 1) and the training drive test data of test terminal 2 (including the identification and voice quality evaluation result of test terminal 2), and the obtained training call bill data include the training call bill data of test terminal 2 (including the identification and feature data of test terminal 2) and the training call bill data of test terminal 3 (including the identification and feature data of test terminal 3). Based on the identification of the test terminal, the drive test data and call bill data corresponding to the same identification can be associated, for example, the voice quality evaluation result in the training drive test data of test terminal 2 is associated with the feature data in the training call bill data of test terminal 2.
[0076] In this implementation, the voice quality evaluation result and feature data corresponding to the same test terminal are associated according to the test terminal identifier obtained in the training drive test data and the training call record data. In this way, the feature data corresponding to the test terminal is input into the initial model, and the first voice quality evaluation result corresponding to the same test terminal can be obtained. By comparing the voice quality evaluation result of the same test terminal with the first voice quality evaluation result, a more reliable comparison effect can be obtained.
[0077] In addition, in order to process abnormal data that may exist in the training data, in one embodiment, for each test terminal, based on the identifier of the test terminal, an association is established between the voice quality assessment result of the test terminal and the feature data of the test terminal to obtain the training data, and it also includes: preprocessing the training data, and the preprocessing includes at least one of the following: missing value filling, outlier processing, normalization processing, one-hot encoding processing, and feature fusion and disassembly processing.
[0078] In practical applications, in the process of training the initial model, after obtaining the training data, in order to obtain a better training effect, the training data will be preprocessed. For example, if there is a problem of missing data in the training data, the missing values can be filled by methods such as front filling, back filling, mean filling, mode filling, and median filling. Alternatively, if outliers appear in the training data, it will cause serious deviations in the training results of the initial model. The outliers can be processed by methods such as deletion, mean correction, regression interpolation, and multiple interpolation. Alternatively, in different ranges in the training data, the training data can be limited to a certain range by applying normalization processing. Alternatively, the unique hot encoding processing can expand the discrete data in the training data to the Euclidean space, which is convenient for calculating the similarity between the training data. Alternatively, the fusion of multiple data in the training data or the disassembly of a certain data can improve the performance of model training, and feature fusion and disassembly processing can be applied to improve the performance of model training. It should be noted that the above preprocessing methods can be implemented separately or in combination.
[0079] In this implementation, by preprocessing the training data, reliable training data can be obtained, saving the cost of subsequent training due to abnormal data.
[0080] In addition, considering that the training call list data in a certain period may correspond to the training drive test data at multiple times, in one implementation, for each test terminal, based on the identifier of the test terminal, an association is established between the voice quality evaluation result of the test terminal and the feature data of the test terminal to obtain the training data, specifically including:
[0081] For each test terminal, based on the identification of the test terminal, obtaining the training drive test data of the test terminal at each time and the training call list data of the test terminal at each time period;
[0082] Determine the training call sheet data corresponding to each training drive test data of the test terminal according to the time corresponding to each training drive test data of the test terminal and the time period corresponding to each training call sheet data of the test terminal; wherein the time corresponding to the training drive test data is within the time period corresponding to the training call sheet data corresponding to the training drive test data;
[0083] For each training call sheet data of the test terminal, if the training call sheet data corresponds to one training drive test data, an association is established between the voice quality assessment result in the training drive test data and the feature data in the training call sheet data; and, if the training call sheet data corresponds to multiple training drive test data, an average value of the voice quality assessment results in the multiple training drive test data is taken as the final voice quality assessment result, and an association is established between the final voice quality assessment result and the feature data in the training call sheet data.
[0084] In actual applications, voice quality evaluation results are collected at fixed intervals. For example, the operator test specification stipulates that for the same test terminal, the road test device collects a MOS value every 9 seconds. For example, for test terminal A, MOS1 is measured at 10:00:00, MOS2 is measured at 10:00:09, and MOS3 is measured at 10:00:18.
[0085] In actual applications, for the same test terminal, the call record data is collected by the deep messaging system, and in the process of being transmitted to the call record server through the unified collection and instruction adaptation platform, the call record data is divided into training call record data of fixed duration. For example, training call record data 1 of test terminal A in the time period from 10:00:00 to 10:00:12, and training call record data 2 in the time period from 10:00:12 to 10:00:24 are obtained. It should be noted that the time period duration of the training data is consistent with the time period to be evaluated, and the duration can be specified as needed.
[0086] Specifically, for each training call sheet data of the test terminal, if the training call sheet data corresponds to one training drive test data, then an association is established between the voice quality evaluation result in the training drive test data and the feature data in the training call sheet data; and, if the training call sheet data corresponds to multiple training drive test data, then the average value of the voice quality evaluation results in the multiple training drive test data is used as the final voice quality evaluation result, and an association is established between the final voice quality evaluation result and the feature data in the training call sheet data. In combination with the above example, the collection time of MOS1 and MOS2 both fall within the time period corresponding to training call sheet data 1; the collection time of MOS3 falls within the time period corresponding to training call sheet data 2. The MOS value corresponding to the feature data in training call sheet data 1 is the average value of MOS1 and MOS2; the MOS value corresponding to the feature data in training call sheet data 2 is MOS3.
[0087] In this implementation, for the same test terminal, a one-to-one correspondence between feature data and speech evaluation results in a certain period of time is established, which facilitates comparison between the first speech evaluation result and the speech evaluation result corresponding to the feature data output by the model in a certain period of time, thereby improving the efficiency of model training.
[0088] In addition, in order to determine whether the model has completed training, in one embodiment, S303 specifically includes: dividing the training data to obtain a training set and a test set; training the initial model based on the training data in the training set to obtain a current model; inputting the feature data in the test set into the current model to obtain a first speech quality assessment result output by the model; calculating the correlation coefficient between the first speech quality assessment result and the corresponding speech quality assessment result in the test set, until the current correlation coefficient meets the predetermined requirements, then determining that the training is completed.
[0089] In practical applications, the value of the correlation coefficient is the basis for determining whether the current model has completed training, and the predetermined requirements for the correlation coefficient value can be set in advance. The larger the value of the correlation coefficient, the higher the similarity between the first speech quality assessment result and the corresponding speech quality assessment result in the test set. For example, it can be set that when the correlation coefficient is greater than 2, the current model meets the application requirements and completes training.
[0090] Specifically, the correlation coefficient between the first speech quality evaluation result and the corresponding speech quality evaluation result in the test set is calculated until the current correlation coefficient meets the predetermined requirement, and then the training is determined to be completed. For example, if the correlation coefficient is 1.9 and the current model does not meet the preset requirement, the current model is continued to be trained based on the training data in the training set. For another example, if the correlation coefficient is 2.4 and the current model meets the preset requirement, then the training is determined to be completed.
[0091] In this implementation, by calculating the correlation coefficient between the first speech quality evaluation result and the corresponding speech quality evaluation result in the test set, it is determined whether the current model has completed training, and the trained speech quality evaluation can be obtained in time, avoiding the cost of multiple training.
[0092] In the voice quality assessment method provided in this embodiment, an initial model is established based on an extreme gradient boosting algorithm; training data is obtained, and the training data includes the voice quality assessment results of each test terminal and the feature data corresponding to the voice quality assessment results of each test terminal; based on the training data, the initial model is trained until a voice quality assessment model is obtained. In this embodiment, in the process of training the initial model based on the extreme gradient boosting algorithm, the training data is used to train the initial model, and a voice quality assessment model that can replace the actual road test is obtained. The voice quality assessment model is used to obtain the voice quality assessment result, which saves the cost of obtaining the voice quality assessment result in the actual road test.
[0093] Figure 4 This is a schematic diagram of the structure of the speech quality assessment device provided in Example 3 of the present application, such as Figure 4 As shown, the device comprises:
[0094] The first acquisition module 41 acquires the call record data of the terminal to be evaluated during the period to be evaluated;
[0095] The first acquisition module 41 is further used to obtain characteristic data of the terminal to be evaluated from the call list data of the terminal to be evaluated; wherein the characteristic data includes real-time transport protocol communication parameters and delay parameters;
[0096] The processing module 42 is used to input the characteristic data of the terminal to be evaluated into the voice quality evaluation model to obtain the voice quality evaluation result of the terminal to be evaluated in the time period to be evaluated output by the voice quality evaluation model; wherein the voice quality evaluation model is a model established based on the extreme gradient boosting algorithm and trained.
[0097] The call record data may be external data representation (XDR) call record data. In practical applications, the XDR call record collection system may flexibly generate XDR call record data for the time period to be evaluated as required.
[0098] In practical applications, the characteristic data is part of the data in the call data related to the voice quality assessment method. The processing module 42 inputs the characteristic data of the terminal to be assessed into the voice quality assessment model to obtain the voice quality assessment result of the terminal to be assessed in the period to be assessed output by the voice quality assessment model.
[0099] In the voice quality assessment device provided in this embodiment, the call data of the terminal to be assessed during the period to be assessed is obtained; the characteristic data of the terminal to be assessed is obtained from the call data of the terminal to be assessed; wherein the characteristic data includes real-time transport protocol communication parameters and delay parameters; the characteristic data of the terminal to be assessed is input into the voice quality assessment model, and the voice quality assessment result of the terminal to be assessed during the period to be assessed output by the voice quality assessment model is obtained; wherein the voice quality assessment model is a model established and trained based on the extreme gradient boosting algorithm. This embodiment obtains the voice quality assessment result through the voice quality assessment model by inputting the characteristic data of the terminal to be assessed during the period to be assessed into the voice quality assessment model, and obtains the voice quality assessment result of the terminal to be assessed during the period to be assessed output by the voice quality assessment model, thereby saving the cost of obtaining the voice quality assessment result by traditional road test and achieving effective voice quality monitoring and analysis.
[0100] Figure 5 This is a structural diagram of a speech quality assessment device provided in Embodiment 4 of the present application, such as Figure 5 As shown, the device also includes:
[0101] A model building module 51, used for building an initial model based on an extreme gradient boosting algorithm;
[0102] A second acquisition module 52, configured to acquire training data, wherein the training data includes a speech quality evaluation result of each test terminal and feature data corresponding to the speech quality evaluation result of each test terminal;
[0103] The training module 53 is used to train the initial model based on the training data until the speech quality assessment model is obtained.
[0104] The voice quality evaluation result is obtained through traditional road testing. In practical applications, the voice quality evaluation result can be a mean opinion score. The MOS value range is 0 to 5. The larger the MOS value, the better the voice quality.
[0105] In practical applications, there are many feature data that affect voice quality. Obviously, considering multiple feature data together can obtain more accurate voice quality assessment results. The extreme gradient boosting algorithm uses an iterative serial form to obtain the predicted value of the voice quality assessment result. Each iteration of the extreme gradient boosting algorithm constructs a new decision tree. Each decision tree represents a feature data type. Each iteration obtains a new predicted value, which is equal to the sum of the predicted value of the current decision tree and the previous predicted value.
[0106] In this embodiment, an initial model is established based on an extreme gradient algorithm. Training data including the speech quality evaluation results of each test terminal and feature data corresponding to the speech quality evaluation results of each test terminal is obtained, and the initial model is trained based on the training data to obtain a speech quality evaluation model. Using the speech quality evaluation model for the speech quality evaluation results saves the cost of obtaining the speech quality evaluation results in actual road tests.
[0107] In addition, taking into account that the voice quality evaluation results of different test terminals are different, in order to establish training data, in one embodiment, the second acquisition module 52 includes: an acquisition unit, which is used to obtain the training drive test data of each test terminal at each time, and the training drive test data includes the identification of the test terminal and the voice quality evaluation result of the test terminal; the acquisition unit is also used to obtain the training call list data of each test terminal in each time period, and the training call list data includes the identification of the test terminal and the characteristic data of the test terminal; an association unit is used to establish, for each test terminal, an association between the voice quality evaluation result of the test terminal and the characteristic data of the test terminal based on the identification of the test terminal, so as to obtain the training data.
[0108] The identification of the test terminal is the user identification of the test terminal user. In practical applications, it is possible to obtain training drive test data of multiple test terminals and training call list data of multiple test terminals, both of which include the identification of the test terminal. The voice quality evaluation result and feature data of the same test terminal are associated according to the identification of the test terminal.
[0109] In this implementation, the voice quality evaluation result and feature data corresponding to the same test terminal are associated according to the test terminal identifier obtained in the training drive test data and the training call record data. In this way, the feature data corresponding to the test terminal is input into the initial model, and the first voice quality evaluation result corresponding to the same test terminal can be obtained. By comparing the voice quality evaluation result of the same test terminal with the first voice quality evaluation result, a more reliable comparison effect can be obtained.
[0110] In addition, in order to process abnormal data that may exist in the training data, in one embodiment, the device also includes: a preprocessing module for preprocessing the training data, and the preprocessing includes at least one of the following: missing value filling, outlier processing, normalization processing, one-hot encoding processing, and feature fusion and disassembly processing.
[0111] In practical applications, in the process of training the initial model, after obtaining the training data, in order to obtain a better training effect, the training data will be preprocessed. It should be noted that the above preprocessing methods can be implemented separately or in combination. In this embodiment, by preprocessing the training data, reliable training data can be obtained, saving the cost of subsequent training due to abnormal data.
[0112] In addition, considering that the training call sheet data in a certain time period may correspond to the training drive test data in multiple time periods, in one embodiment, the association unit is specifically used to: for each test terminal, based on the identification of the test terminal, obtain the training drive test data of the test terminal at each time and the training call sheet data of the test terminal in each time period; determine the training call sheet data corresponding to each training drive test data of the test terminal according to the time corresponding to each training drive test data of the test terminal and the time period corresponding to each training call sheet data of the test terminal; wherein the time corresponding to the training drive test data is within the time period corresponding to the training call sheet data corresponding to the training drive test data; for each training call sheet data of the test terminal, if the training call sheet data corresponds to one training drive test data, establish an association between the voice quality evaluation result in the training drive test data and the feature data in the training call sheet data; and, if the training call sheet data corresponds to multiple training drive test data, take the average value of the voice quality evaluation results in the multiple training drive test data as the final voice quality evaluation result, and establish an association between the final voice quality evaluation result and the feature data in the training call sheet data.
[0113] In actual applications, voice quality assessment results are collected at fixed intervals. In actual applications, for the same test terminal, the call record data is collected through the deep message system, and in the process of being transmitted to the call record server through the unified collection and command adaptation platform, the call record data is divided into training call record data of fixed duration. It should be noted that the duration of the training data period is consistent with the duration of the period to be evaluated, and the duration can be specified as needed.
[0114] In this implementation, for the same test terminal, a one-to-one correspondence between feature data and speech evaluation results in a certain period of time is established, which facilitates comparison between the first speech evaluation result and the speech evaluation result corresponding to the feature data output by the model in a certain period of time, thereby improving the efficiency of model training.
[0115] In addition, in order to determine whether the model has completed training, in one embodiment, the training module 53 is specifically used to: divide the training data to obtain a training set and a test set; train the initial model based on the training data in the training set to obtain a current model; input the feature data in the test set into the current model to obtain a first speech quality assessment result output by the model; calculate the correlation coefficient between the first speech quality assessment result and the corresponding speech quality assessment result in the test set, until the current correlation coefficient meets the predetermined requirements, then it is determined that the training is completed.
[0116] In practical applications, the value of the correlation coefficient is the basis for determining whether the current model has completed training, and the predetermined value requirement of the correlation coefficient can be set in advance. The larger the value of the correlation coefficient, the higher the similarity between the first speech quality evaluation result and the corresponding speech quality evaluation result in the test set.
[0117] In this implementation, by calculating the correlation coefficient between the first speech quality evaluation result and the corresponding speech quality evaluation result in the test set, it is determined whether the current model has completed training, and the trained speech quality evaluation can be obtained in time, avoiding the cost of multiple training.
[0118] In the speech quality assessment device provided in this embodiment, an initial model is established based on the extreme gradient boosting algorithm; training data is obtained, and the training data includes the speech quality assessment results of each test terminal and the feature data corresponding to the speech quality assessment results of each test terminal; based on the training data, the initial model is trained until a speech quality assessment model is obtained. In this embodiment, in the process of training the initial model based on the extreme gradient boosting algorithm, the training data is used to train the initial model, and a speech quality assessment model that can replace the actual road test is obtained. The speech quality assessment model is used to obtain the speech quality assessment result, which saves the cost of obtaining the speech quality assessment result in the actual road test.
[0119] Figure 6 A schematic diagram of the structure of an electronic device provided in Embodiment 5 of the present application is shown in FIG. Figure 6 As shown, the electronic device includes:
[0120] The electronic device includes a processor 61 and a memory 62; it may also include a communication interface 63 and a bus 64. The processor 61, the memory 62, and the communication interface 63 may communicate with each other through the bus 64. The communication interface 63 may be used for information transmission. The processor 61 may call the logic instructions in the memory 64 to execute the method of the above embodiment.
[0121] In addition, the logic instructions in the memory 62 described above may be implemented in the form of software functional units and when sold or used as independent products, may be stored in a computer-readable storage medium.
[0122] The memory 62 is a computer-readable storage medium that can be used to store software programs and computer executable programs, such as program instructions / modules corresponding to the methods in the embodiments of the present application. The processor 61 executes functional applications and data processing by running the software programs, instructions, and modules stored in the memory 62, that is, implementing the methods in the above method embodiments.
[0123] The memory 62 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 62 may include a high-speed random access memory and may also include a non-volatile memory.
[0124] An embodiment of the present application provides a non-temporary computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the method described in the above embodiment.
[0125] In an exemplary embodiment, a computer program product is also provided, including a computer program, and the computer program implements the above method when executed by a processor.
[0126] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0127] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A method for evaluating speech quality, characterized in that: include: Obtain the call record data of the terminal to be evaluated during the period to be evaluated; Obtaining characteristic data of the terminal to be evaluated from the call list data of the terminal to be evaluated; wherein the characteristic data includes real-time transport protocol communication parameters and delay parameters; Inputting the characteristic data of the terminal to be evaluated into a speech quality evaluation model, and obtaining a speech quality evaluation result of the terminal to be evaluated in a time period to be evaluated output by the speech quality evaluation model; The speech quality assessment model is trained by the following method: Based on the extreme gradient boosting algorithm, an initial model is established; Acquire training drive test data of each test terminal at each time, wherein the training drive test data includes an identifier of the test terminal and a voice quality evaluation result of the test terminal; Acquire training call list data of each test terminal in each time period, wherein the training call list data includes an identifier of the test terminal and feature data of the test terminal; For each test terminal, based on the identification of the test terminal, obtaining the training drive test data of the test terminal at each time and the training call list data of the test terminal at each time period; Determine the training call sheet data corresponding to each training drive test data of the test terminal according to the time corresponding to each training drive test data of the test terminal and the time period corresponding to each training call sheet data of the test terminal; wherein the time corresponding to the training drive test data is within the time period corresponding to the training call sheet data corresponding to the training drive test data; For each training call sheet data of the test terminal, if the training call sheet data corresponds to one training drive test data, then an association is established between the voice quality evaluation result in the training drive test data and the feature data in the training call sheet data; and, if the training call sheet data corresponds to multiple training drive test data, then an average value of the voice quality evaluation results in the multiple training drive test data is used as the final voice quality evaluation result, and an association is established between the final voice quality evaluation result and the feature data in the training call sheet data, so as to obtain the training data; Based on the training data, the initial model is trained until the speech quality assessment model is obtained.
2. The method according to claim 1, characterized in that Also includes: The training data is preprocessed, and the preprocessing includes at least one of the following: missing value filling, outlier processing, normalization, one-hot encoding, and feature fusion and decomposition.
3. The method according to claim 1, characterized in that The step of training the initial model based on the training data until the speech quality assessment model is obtained comprises: Dividing the training data into a training set and a test set; Based on the training data in the training set, the initial model is trained to obtain a current model; Inputting the feature data in the test set into the current model to obtain a first speech quality assessment result output by the model; The correlation coefficient between the first speech quality evaluation result and the corresponding speech quality evaluation result in the test set is calculated until the current correlation coefficient meets the predetermined requirement, and then it is determined that the training is completed.
4. A speech quality assessment device, characterized in that: include: The first acquisition module acquires the call list data of the terminal to be evaluated during the period to be evaluated; The first acquisition module is further used to obtain characteristic data of the terminal to be evaluated from the call list data of the terminal to be evaluated; wherein the characteristic data includes real-time transport protocol communication parameters and delay parameters; A processing module, used for inputting the characteristic data of the terminal to be evaluated into a speech quality evaluation model, and obtaining a speech quality evaluation result of the terminal to be evaluated in a time period to be evaluated output by the speech quality evaluation model; Model building module, used to build the initial model based on the extreme gradient boosting algorithm; The second acquisition module includes: An acquisition unit, configured to acquire training drive test data of each test terminal at each time, wherein the training drive test data includes an identifier of the test terminal and a voice quality evaluation result of the test terminal; The acquisition unit is further used to acquire training call list data of each test terminal in each time period, wherein the training call list data includes an identifier of the test terminal and feature data of the test terminal; An association unit is used to obtain, for each test terminal, the training drive test data of the test terminal at each time and the training call sheet data of the test terminal at each time period based on the identification of the test terminal; determine the training call sheet data corresponding to each training drive test data of the test terminal according to the time corresponding to each training drive test data of the test terminal and the time period corresponding to each training call sheet data of the test terminal; wherein the time corresponding to the training drive test data is within the time period corresponding to the training call sheet data corresponding to the training drive test data; for each training call sheet data of the test terminal, if there is one training drive test data corresponding to the training call sheet data, establish an association between the voice quality evaluation result in the training drive test data and the feature data in the training call sheet data; and, if there are multiple training drive test data corresponding to the training call sheet data, take the average value of the voice quality evaluation results in the multiple training drive test data as the final voice quality evaluation result, establish an association between the final voice quality evaluation result and the feature data in the training call sheet data, so as to obtain the training data; The training module is used to train the initial model based on the training data until the speech quality assessment model is obtained.
5. The device according to claim 4, characterized in that The device also includes: A preprocessing module is used to preprocess the training data, and the preprocessing includes at least one of the following: missing value filling, outlier processing, normalization, one-hot encoding, and feature fusion and decomposition.
6. The device according to any one of claims 4, characterized in that: The training module is specifically used for: Dividing the training data into a training set and a test set; Based on the training data in the training set, the initial model is trained to obtain a current model; Inputting the feature data in the test set into the current model to obtain a first speech quality assessment result output by the model; The correlation coefficient between the first speech quality evaluation result and the corresponding speech quality evaluation result in the test set is calculated until the current correlation coefficient meets the predetermined requirement, and then it is determined that the training is completed.
7. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 3.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 3 when executed by a processor.
9. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method described in any one of claims 1 to 3 is implemented.
Citation Information
Patent Citations
Voice quality evaluation method and device, electronic device and storage medium
CN110401622A
Video call quality evaluation method and device
CN111314691A
Voice quality evaluation model, training evaluation method and system, equipment and medium
CN112562724A
METHODS AND SYSTEMS FOR EVALUATING VOICE OVER WI-FI (VoWiFi) CALL QUALITY
US20180006957A1
Voice Quality Evaluation Method, Apparatus, and Device
US20180082704A1
Cited By
Prometheus-based telephone voice communication line quality monitoring system and feedback device
CN121924211A
