A voiceprint data cleaning method based on neural network
Through the correction of the initial labels and predicted labels of the audio data set, more accurate target labels are generated, which solves the problems of training failure and prediction errors caused by label errors in the deep learning model, and improves model performance.
Patent Information
- Application Number
- CN202111256069.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-27
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-10-27
AI Technical Summary
During the training process of the deep learning model, the label errors of the sample data cause the model training to fail or the prediction result error rate is high, and the labels of the sample data set need to be corrected.
By obtaining the initial label and predicted label of the audio data set, the target label of the audio data is determined, and the label prediction model is used to correct the audio data to generate a more accurate label set.
It improves the label accuracy of audio data sets, reduces model training failures and prediction error rates, and improves the performance of voiceprint recognition and speech recognition models.
Smart Images

Figure CN114090819B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of audio technology, and specifically relates to a voiceprint data cleaning method based on a neural network. Background Art
[0002] In the process of using deep learning to train models, a large number of labeled data samples are required, and the data labels in these data samples often have certain labeling errors. These labeling errors will cause model training failure, or when using the trained model for classification prediction, it will cause a high error rate in the prediction results. Therefore, it is necessary to correct the labels of the sample data set. Summary of the invention
[0003] In view of the above problems, this application proposes a voiceprint data cleaning method based on neural network to improve the above problems.
[0004] In a first aspect, an embodiment of the present application provides a voiceprint data cleaning method based on a neural network, the method comprising: obtaining an audio data set, each audio data in the audio data set having a corresponding initial label; inputting the audio data set into a label prediction model, obtaining the predicted labels corresponding to each audio data in the audio data set output by the label prediction model; and determining a target label corresponding to each audio data in the audio data set based on the initial label and the predicted label.
[0005] The embodiment of the present application provides a voiceprint data cleaning method based on a neural network. First, an audio data set is obtained, in which each audio data in the audio data set has a corresponding initial label, and then the audio data set is input into a label prediction model to obtain the predicted labels corresponding to each audio data in the audio data set output by the label prediction model, and then based on the initial label and the predicted label, the target label of each audio data in the audio data set is determined. Through the above method, by correcting the label of each audio data according to the initial label and the predicted label of each audio data, an audio data set with a more accurate label can be obtained. BRIEF DESCRIPTION OF THE DRAWINGS
[0006] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0007] Figure 1 A schematic diagram of an application scenario of a voiceprint data cleaning method based on a neural network proposed in an embodiment of the present application is shown;
[0008] Figure 2 A flowchart of a voiceprint data cleaning method based on a neural network proposed in an embodiment of the present application is shown;
[0009] Figure 3 A flowchart of a voiceprint data cleaning method based on a neural network proposed in another embodiment of the present application is shown;
[0010] Figure 4 A flowchart of a voiceprint data cleaning method based on a neural network proposed in another embodiment of the present application is shown;
[0011] Figure 5 A flowchart of step S370 in another embodiment of the present application is shown;
[0012] Figure 6 A flowchart of a voiceprint data cleaning method based on a neural network proposed in another embodiment of the present application is shown;
[0013] Figure 7 A flowchart of step S420 in another embodiment of the present application is shown;
[0014] Figure 8 A structural block diagram of a voiceprint data cleaning device based on a neural network proposed in an embodiment of the present application is shown;
[0015] Fig. 9 A structural block diagram of a voiceprint data cleaning device based on a neural network proposed in an embodiment of the present application is shown;
[0016] Fig.10 A structural block diagram of an electronic device used to execute a voiceprint data cleaning method based on a neural network according to an embodiment of the present application is shown in real time in the present application;
[0017] Fig.11 A storage unit in real time of the present application is shown for storing or carrying program codes for implementing a neural network-based voiceprint data cleaning method according to an embodiment of the present application. DETAILED DESCRIPTION
[0018] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0019] Artificial intelligence is a discipline that studies how to use computers to simulate certain human thought processes and intelligent behaviors (such as learning, reasoning, thinking, planning, etc.). The technologies involved in artificial intelligence include both hardware-level technologies and software-level technologies. Among them, artificial intelligence hardware technologies generally include technologies in fields such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, and big data processing. Artificial intelligence software technologies mainly include computer vision technology, speech recognition technology, natural language processing technology, as well as machine learning / deep learning, big data processing technology, knowledge graph technology, and other major directions. Generally speaking, tasks based on artificial intelligence technology need to rely on trained models to complete, and the quality of the data used to train the model has a great impact on the training effect of the model.
[0020] The inventors found in their research on the related neural network-based voiceprint data cleaning method that, in general, the sample data used for model training is collected and aggregated in a variety of ways, and the sample data has many categories and a huge amount, among which there are often many difficult-to-find category inaccuracies. For example, the category labels corresponding to the sample data are inaccurate. Models trained based on such sample data often have difficulty in achieving ideal processing effects in practical applications. Therefore, it is necessary to correct the labels of the sample data set.
[0021] Therefore, the inventors proposed a neural network-based voiceprint data cleaning method in this application. First, an audio data set is obtained, in which each audio data has a corresponding initial label, and then the audio data set is input into a label prediction model to obtain the predicted labels corresponding to each audio data in the audio data set output by the label prediction model, and then based on the initial label and the predicted label, the target label of each audio data in the audio data set is determined. Through the above method, the label of each audio data is corrected according to the initial label and the predicted label of each audio data, so that an audio data set with a more accurate label can be obtained.
[0022] Before further describing the embodiments of the present application in detail, an application environment involved in the embodiments of the present application is introduced.
[0023] Figure 1 FIG. 1 is a schematic diagram of a system 100 in which various methods and devices described in the present application can be implemented according to an embodiment of the present application. Figure 1 The system 100 includes one or more electronic devices 110 , a server 120 , and one or more communication networks 130 coupling the one or more electronic devices to the server 120 .
[0024] In an embodiment of the present application, the server 120 may run one or more services or software applications that enable the execution of a neural network-based voiceprint data cleaning method. In some embodiments, the server 120 may be a server of a distributed system. The server 120 may also be a cloud server, or an intelligent cloud computing server or intelligent cloud host with artificial intelligence technology.
[0025] The user may acquire the audio data set using the electronic device 110. The electronic device 110 may provide an interface that enables the user of the electronic device to interact with the electronic device 110. The electronic device 110 may also output information to the user via the interface, such as the electronic device 110 may input audio data via the interface.
[0026] The electronic device 110 may be various types of computer devices, such as portable handheld devices, general-purpose computers (such as personal computers and laptop computers), and wearable devices. Among them, portable handheld devices may include cellular phones, smart phones, tablet computers, personal digital assistants (PDAs), etc.; wearable devices may include head-mounted displays and other devices. The electronic device 110 is capable of executing various different applications, such as various Internet-related applications, communication applications (such as email applications), short message service (SMS) applications, and may use various communication protocols.
[0027] The network 130 may be any type of network that can support data communications using any of a variety of available protocols, including, but not limited to, TCP / IP, SNA, IPX, etc. By way of example only, the one or more networks 130 may be a local area network (LAN), an Ethernet-based network, a token ring, a wide area network (WAN), the Internet, a virtual network, a virtual private network (VPN), an intranet, an extranet, a public switched telephone network (PSTN), an infrared network, a wireless network (e.g., Bluetooth, WIFI), and / or any combination of these and / or other networks.
[0028] The system 100 may also include one or more databases 140. In some embodiments, these databases may be used to store audio data and other information. For example, one or more of the databases 140 may be used to store information such as audio files and video files. The databases 140 may reside in various locations. For example, the database used by the server 120 may be local to the server 120, or may be remote from the server 120 and may communicate with the server 120 via a network-based or dedicated connection. The databases 140 may be of different types. In some embodiments, the databases used by the server 120 may be relational databases. One or more of these databases may store, update, and retrieve data to and from the databases in response to commands.
[0029] The embodiments of the present application will be described in detail below with reference to the accompanying drawings.
[0030] See also Figure 2 , a neural network-based voiceprint data cleaning method provided in an embodiment of the present application is applied to an electronic device, and the method includes:
[0031] Step S110: Acquire an audio data set, where each audio data in the audio data set has a corresponding initial label.
[0032] In an embodiment of the present application, the audio data set may include audio data for training a voiceprint recognition model or a speech recognition model. The initial label corresponding to each audio data may include at least one of a voiceprint feature label, a speaker identity label, a speaker age label, a speaker gender label, a language label corresponding to the audio, and an emotion label corresponding to the audio. The voiceprint feature label may be at least one of an i-vector feature, an x-vector feature, a d-vector feature, and a Mel-frequency cepstral coefficient (MFCC) feature; the speaker identity label may be a unique identifier that can be set to identify the speaker, for example, the speaker identity label may be the speaker's ID number; the speaker age label may be a label that is set to represent the speaker's age, for example, the speaker age label may be 26 years old; the speaker gender label may be a label that is set to represent the speaker's gender, for example, the speaker gender label may be male; the language label may be set to represent the language corresponding to the audio, for example, the language label may be English; the emotion label may be set to represent the emotion corresponding to the audio, for example, the emotion label may be happy. The initial label may be a label obtained by analyzing and labeling the audio of each speaker through a labeling tool when the audio of the speaker is collected. Optionally, the initial label may also be a label manually labeled after the audio of each speaker is collected.
[0033] The initial label may be included in the audio data set or may not be included in the audio data set, which is not specifically limited here. If the initial label is included in the audio data set, each audio data may include the audio and the initial label corresponding to the audio; if the initial label is not included in the audio data set, after the audio data set is obtained, the corresponding initial label may be set for each audio data in the audio data set.
[0034] In the embodiments of the present application, the audio data set may be acquired in a variety of ways.
[0035] As a method, a pre-stored audio data set can be obtained from the cloud or server in response to a data acquisition instruction. The data acquisition instruction can be an instruction triggered when a user's specified operation is detected, or it can be an instruction sent by other electronic devices. In an embodiment of the present application, the specified operation can be an operation of running a specified application, such as an operation of running an audio recognition application; the optional specified operation can also be an operation of double-clicking the touch screen of the electronic device. When the specified operation is an operation of double-clicking the touch screen of the electronic device, it can be set to trigger the data acquisition instruction when the operation of double-clicking the touch screen of the electronic device is detected after the specified application is run.
[0036] As another way, the corresponding audio data set can be obtained from the specified database in response to the data acquisition instruction. In the embodiment of the present application, a plurality of audio data sets can be pre-stored in the specified database. Optionally, a corresponding identifier can be set in advance for each audio data set, and the identifier characterizes the role of the audio data in the audio data set. Then, the audio data set corresponding to the identifier can be obtained from the specified database according to the identifier carried in the data acquisition instruction. Among them, the specified database can be a database in the server or a separate database, which is not specifically limited here.
[0037] Step S120: input the audio data set into a label prediction model, and obtain the predicted labels corresponding to the audio data in the audio data set output by the label prediction model.
[0038] In an embodiment of the present application, the label prediction model may be a pre-trained neural network model, which may be used to perform classification prediction on audio data.
[0039] After the audio data set is obtained by the above method, the audio data in the obtained audio data set can be sequentially input into the label prediction model, and then the label prediction model can be used to classify and predict each input audio data to obtain the predicted label corresponding to each audio data. When the audio data in the audio data set are sequentially input into the label prediction model, the initial label corresponding to the audio data can also be input into the label prediction model at the same time; optionally, each audio data can also be directly input into the label prediction model in sequence without inputting the initial label corresponding to each audio data.
[0040] In an embodiment of the present application, after the audio data is classified and predicted by the label prediction model, each audio data will have an initial label and a predicted label, the initial label and the predicted label correspond to each other, and one initial label corresponds to one predicted label.
[0041] Step S130: Determine a target label corresponding to each audio data in the audio data set based on the initial label and the predicted label.
[0042] In the embodiment of the present application, the target label corresponding to each audio data is the real label corresponding to each audio data. Since the predicted label is the label predicted by the label prediction model, the predicted label of the audio data may be different from the initial label of the audio data, and the real label of the audio data can be determined according to the predicted label and the initial label corresponding to the audio data.
[0043] The present application provides a voiceprint data cleaning method based on a neural network, first obtaining an audio data set, each audio data in the audio data set having a corresponding initial label, then inputting the audio data set into a label prediction model, obtaining the predicted labels corresponding to each audio data in the audio data set output by the label prediction model, and then determining the target label of each audio data in the audio data set based on the initial label and the predicted label. Through the above method, by correcting the label of each audio data according to the initial label and the predicted label of each audio data, an audio data set with a more accurate label can be obtained.
[0044] See also Figure 3 , a neural network-based voiceprint data cleaning method provided in an embodiment of the present application is applied to an electronic device, and the method includes:
[0045] Step S210: Acquire an audio data set, where each audio data in the audio data set has a corresponding initial label.
[0046] Step S220: input the audio data set into a label prediction model, and obtain the predicted labels corresponding to the audio data in the audio data set output by the label prediction model.
[0047] Step S230: Compare the predicted label corresponding to each audio data in the audio data set with the corresponding initial label.
[0048] In an embodiment of the present application, since the initial label of the audio data may include labels of multiple categories, when comparing the predicted label of the audio data with the initial label, the multiple initial labels corresponding to the audio data and the labels of the same category in the predicted label may be compared in sequence. Exemplarily, if the initial label of the audio data includes label A, label B, and label C, the predicted label of the audio data includes label D, label E, and label F. Among them, label A and label D belong to the same category, label B and label E belong to the same category, and label C and label F belong to the same category. When comparing the initial label with the predicted label, first compare label A included in the initial label with label D, label E, and label F included in the predicted label, then compare label B included in the initial label with label D, label E, and label F included in the predicted label, and finally compare label C included in the initial label with label D, label E, and label F included in the predicted label.
[0049] Optionally, the label prediction model may output the label confidence of the predicted label of each audio data in the audio dataset while outputting the predicted label corresponding to each audio data.
[0050] In an embodiment of the present application, after the predicted label corresponding to each audio data and the label confidence corresponding to the predicted label are obtained by the above method, the label confidence of the predicted label corresponding to each audio data can be compared with the confidence threshold by comparing the initial label and the predicted label corresponding to each audio data. Among them, the confidence threshold can be set to the authenticity threshold of the predicted label output by the label prediction model. Specifically, when the label confidence output by the label prediction model is not less than the confidence threshold, it can be considered that the current predicted label output by the label prediction model is the target label, otherwise, it is considered that the current predicted label output by the label prediction model is not the target label.
[0051] Step S240: taking the audio data in the audio data set whose corresponding predicted label is different from the corresponding initial label as the first audio data.
[0052] In an embodiment of the present application, the first audio data may be audio data determined to have an erroneous label. The corresponding predicted label in the audio data set is different from the corresponding initial label, which can be understood as the predicted label corresponding to the audio data is inconsistent with a label in multiple initial labels. The inconsistency here can be understood as inconsistent label content, inconsistent label types, or both. Exemplarily, if the initial label of the audio data includes label A and label B, and the predicted label of the audio data includes label A1 and label B1, if label A is consistent with label A1, the content of label B and label B1 is inconsistent, or the types of label B and label B1 are inconsistent, then it is determined that the initial label and the predicted label of the audio data are different. The content here is the information represented by the label.
[0053] Optionally, the fact that the corresponding predicted label in the audio data set is different from the corresponding initial label can also be understood as the predicted label and the initial label corresponding to the audio data are inconsistent, and the label confidence is not less than the confidence threshold.
[0054] That is to say, when the predicted label corresponding to the audio data is inconsistent with the initial label, and the label confidence is not less than the confidence threshold, the audio data is determined to be audio data with an incorrect label, that is, the first audio data.
[0055] Step S250: taking the audio data in the audio data set whose corresponding predicted label is the same as the corresponding initial label as the second audio data.
[0056] In an embodiment of the present application, it is determined that the label confidence in the audio data set is not less than the confidence threshold, and the audio data whose predicted label is consistent with the initial label is the second audio data.
[0057] Step S260: Based on the initial label and the predicted label, the labels corresponding to the first audio data and the second audio data are updated to obtain corresponding target labels.
[0058] In the embodiment of the present application, updating the labels corresponding to the first audio data and the second audio data based on the initial label and the predicted label can be understood as cleaning the first audio data and the second audio data. That is, modifying the labels of the first audio data and the second audio data can include adding label content, deleting label content, etc.
[0059] Optionally, the first audio data and the second audio data may be cleaned multiple times based on the initial labels and the predicted labels.
[0060] In the operation of performing multiple cleanings on the first audio data and the second audio data, a confidence threshold can be dynamically set, wherein the label confidence of each audio data in the first audio data whose predicted label is inconsistent with the initial label is not less than the confidence threshold. That is, the audio data in the audio data set whose predicted label is inconsistent with the initial label and whose label confidence is not less than the confidence threshold is determined as the first audio data with an incorrect label for subsequent processing. In this way, the accuracy of identifying the first audio data with an incorrect label can be improved, the workload of subsequent processing can be reduced, and the efficiency of data cleaning can be improved.
[0061] Among them, in multiple iterative cleaning operations on the first audio data and the second audio data, the size of the confidence threshold can change according to the number of iterations. Exemplarily, for two consecutive cleaning operations of the audio data set, the confidence threshold set in the first cleaning operation can be greater than the confidence threshold set in the second cleaning operation. That is, in multiple iterative cleaning operations on the audio data set, the size of the confidence threshold can be continuously reduced as the number of iterations increases. Thus, it is possible to achieve the cleaning of each audio data in the audio data set through a limited number of iterative cleaning operations.
[0062] As a method, the first audio data and the second audio data after the updated label are merged into a new audio data set, and the new audio data set is used as training data for the voiceprint recognition model to train the voiceprint recognition model or the speech recognition model, thereby accelerating the convergence effect of the voiceprint recognition model or the speech recognition model, and making the self-learning of the voiceprint recognition model or the speech recognition model more accurate and effective.
[0063] The present application provides a voiceprint data cleaning method based on a neural network, first obtaining an audio data set, wherein each audio data in the audio data set has a corresponding initial label, inputting the audio data set into a label prediction model, obtaining the predicted labels corresponding to each audio data in the audio data set output by the label prediction model, and then comparing the predicted labels corresponding to each audio data in the audio data set with the corresponding initial labels, taking the audio data whose corresponding predicted labels in the audio data set are different from the corresponding initial labels as the first audio data, taking the audio data whose corresponding predicted labels in the audio data set are the same as the corresponding initial labels as the second audio data, and finally updating the labels corresponding to the first audio data and the second audio data based on the initial labels and the predicted labels to obtain the corresponding target labels. Through the above method, by correcting the labels of each audio data according to the initial labels and the predicted labels of each audio data, an audio data set with more accurate labels can be obtained.
[0064] See also Figure 4, a neural network-based voiceprint data cleaning method provided in an embodiment of the present application is applied to an electronic device, and the method includes:
[0065] Step S310: Acquire an audio data set, where each audio data in the audio data set has a corresponding initial label.
[0066] Step S320: input the audio data set into a label prediction model, and obtain the predicted labels corresponding to the audio data in the audio data set output by the label prediction model.
[0067] Step S330: Compare the predicted label corresponding to each audio data in the audio data set with the corresponding initial label.
[0068] Step S340: taking the audio data in the audio data set whose corresponding predicted label is different from the corresponding initial label as the first audio data.
[0069] Among them, the predicted label and the initial label of the first audio data are different, which can indicate that the first audio data is audio data that is not correctly predicted by the prediction model.
[0070] In an embodiment of the present application, the labels of the audio data whose corresponding predicted labels are different from the corresponding initial labels can be marked, and an identical identifier is added to the label corresponding to the first audio data.
[0071] Step S350: taking the audio data in the audio data set whose corresponding predicted label is the same as the corresponding initial label as the second audio data.
[0072] Among them, the predicted label of the second audio data is the same as the initial label, which can indicate that the second audio data is the audio data predicted correctly by the prediction model.
[0073] In the embodiment of the present application, an identifier different from the identifier of the first audio data may be added to the tag corresponding to the second audio data to distinguish the first audio data from the second audio data based on the identifier.
[0074] Step S360: If the audio data is the second audio data, the corresponding initial label is used as the target label of the audio data.
[0075] In the embodiment of the present application, the newly added identifier of the audio data can be used to determine whether the audio data is the first audio data or the second audio data. If the audio data is determined to be the second audio data based on the newly added identifier, then the corresponding predicted label of the audio data is determined to be consistent with the initial label, so the initial label corresponding to the audio data can be used as the target label of the audio data. In this way, the audio data with the correct label can be screened out, and the number of cleaning operation iterations can be reduced by directly determining its initial label as the target label.
[0076] Step S370: If the audio data is the first audio data, the label of the audio data is updated based on the predicted label and the initial label, and the updated label is used as the target label corresponding to the audio data.
[0077] As a way, see Figure 5 , the step S370 may include:
[0078] Step S371: If the type of the initial label corresponding to the audio data is greater than the type of the corresponding predicted label, the label of the audio data is updated based on the initial label, and the updated label is used as the target label corresponding to the audio data.
[0079] In the embodiment of the present application, the types of labels may include at least one of a voiceprint feature label, a speaker identity label, a speaker age label, a speaker gender label, a language label corresponding to the audio, and an emotion label corresponding to the audio. In other words, the types of labels may be 3, 4, or 1, which is not specifically limited here, and can be marked according to the actual situation of the audio data.
[0080] The "the number of types of initial labels is greater than the number of types of predicted labels" mentioned here can be understood as the number of labels of the initial labels is greater than the number of labels of the predicted labels, and the content of the initial labels includes the content of the predicted labels. For example, if the initial labels of audio data A include "age 26 years old; gender female; language German", and the predicted labels of audio data A include "gender female; language German", it can be determined that the number of types of initial labels of audio data A is greater than the number of types of predicted labels.
[0081] At this time, the label of the audio data can be verified based on the initial label. If after verification, it is determined that the initial label is error-free, the initial label is used as the target label of the audio data; if after verification, it is determined that the initial label is wrong, the wrong content in the initial label is corrected, and the corrected initial label is used as the target label of the audio data. Exemplarily, as mentioned above, when verifying the initial label of audio data A, only the "age 26 years old" in the initial label needs to be verified. If after verification, it is determined that "age 26 years old" is correct, then "age 26 years old; gender female; language German" is used as the target label of audio data A; if after verification, it is determined that "age 26 years old" is wrong, then "age 26 years old" is corrected. If the corrected age is "age 22 years old", "age 22 years old; gender female; language German" is used as the target label of audio data A.
[0082] Step S372: If the type of the initial label corresponding to the audio data is smaller than the type of the corresponding predicted label, the label of the audio data is updated based on the predicted label, and the updated label is used as the target label corresponding to the audio data.
[0083] In an embodiment of the present application, if the number of labels of the initial label is less than the number of labels of the predicted label, and the content of the predicted label includes the content of the initial label, the label corresponding to the audio data can be verified based on the predicted label. If after verification, it is determined that the predicted label is error-free, the predicted label is used as the target label of the audio data; if after verification, it is determined that the predicted label is erroneous, the erroneous content in the predicted label is corrected, and the corrected predicted label is used as the target label of the audio data.
[0084] The present application provides a voiceprint data cleaning method based on a neural network. First, an audio data set is obtained, in which each audio data in the audio data set has a corresponding initial label, the audio data set is input into a label prediction model, and the predicted labels corresponding to the audio data in the audio data set output by the label prediction model are obtained. Then, the predicted labels corresponding to each audio data in the audio data set are compared with the corresponding initial labels, and the audio data whose corresponding predicted labels in the audio data set are different from the corresponding initial labels are taken as the first audio data, and the audio data whose corresponding predicted labels in the audio data set are the same as the corresponding initial labels are taken as the second audio data. If the audio data is the second audio data, the corresponding initial label is taken as the target label of the audio data. If the audio data is the first audio data, the label of the audio data is updated based on the predicted label and the initial label, and the updated label is taken as the target label corresponding to the audio data. Through the above method, by correcting the label of each audio data according to the initial label and the predicted label of each audio data, an audio data set with a more accurate label can be obtained.
[0085] See also Figure 6 , a neural network-based voiceprint data cleaning method provided in an embodiment of the present application is applied to an electronic device, and the method includes:
[0086] Step S410: Acquire an audio data set, where each audio data in the audio data set has a corresponding initial label.
[0087] Step S420: Based on the audio data set and a preset loss function, iteratively train the initial neural network model to obtain a label prediction model.
[0088] In an embodiment of the present application, the initial neural network model can be trained according to a preset loss function and the obtained audio data set; the corresponding loss value is obtained, and when the loss value meets the preset loss value, the training is determined to be completed, and the trained initial neural network model is used as the target model, that is, the label prediction model. Among them, the preset loss function can be any loss function, such as a cross entropy function; the initial neural network model can also be any neural network model, such as a convolutional neural network model.
[0089] As a way, see Figure 7 , step S420 may include:
[0090] Step S421: Iteratively train an initial neural network model based on the audio data set.
[0091] In an embodiment of the present application, an audio data set and its corresponding labels are input into an initial neural network model, and the initial neural network model is iteratively trained.
[0092] Step S422: Obtain the training accuracy corresponding to the initial neural network model after iterative training in each preset time period.
[0093] When iteratively training the initial neural network model, the initial neural network model can output the training accuracy of each iteration to determine whether the model training is completed based on the training accuracy.
[0094] The training accuracy within each preset time period can be calculated using the following formula:
[0095]
[0096] Step S423: If the difference in training accuracy corresponding to the initial neural network model after iteration in adjacent time periods meets a preset condition, the training of the initial neural network model is stopped, and the initial neural network model after the training is stopped is used as the label prediction model.
[0097] In the embodiment of the present application, the difference in training accuracy corresponding to the initial neural network model after iteration in adjacent time periods can be understood as the extent of improvement in training accuracy.
[0098] As a method, the preset conditions of the training results can be set in advance. For example, the improvement of training accuracy can be set to T. When the formula |t1 acc -t2 acc |≤T determines that the improvement in training accuracy is less than or equal to T, determines that the preset conditions are met, and ends the training of the initial neural network model. After the training of the initial neural network model is finished, the parameters of the initial neural network model are fixed, and the initial neural network model after the fixed parameters is used as the label prediction model.
[0099] Step S430: input the audio data set into the label prediction model, and obtain the predicted labels corresponding to the audio data in the audio data set output by the label prediction model.
[0100] Step S440: Compare the predicted label corresponding to each audio data in the audio data set with the corresponding initial label.
[0101] Step S450: taking the audio data in the audio data set whose corresponding predicted label is different from the corresponding initial label as the first audio data.
[0102] Step S460: If the audio data is the first audio data, label information input through an information input interface is received, where the information input interface is used for the user to input the revised label information.
[0103] Generally, when using deep learning to train models, a large number of labeled data samples are required, and the data labels in these data samples often have certain labeling errors. These labeling errors can cause model training failure, or when using the trained model for classification prediction, cause the prediction result to have a high error rate.
[0104] In order to improve the performance of the model and ensure the accuracy of the model's prediction results, it is necessary to control the labeling quality of the data samples. Usually, this can be done by cleaning the labeled data, picking out the incorrectly labeled data, and re-reviewing and labeling them manually to ensure the labeling quality of the data samples.
[0105] In an embodiment of the present application, after the first audio data is determined, the label of the first audio data can be corrected by manual verification. Specifically, the audio corresponding to the first audio data can be played in sequence by the audio playback device of the electronic device, and then the user can determine whether the predicted label and the initial label corresponding to the first audio data are correct based on the information corresponding to the heard audio. If it is determined to be incorrect, such as incorrect speaker identity tag, incorrect age, incorrect gender, incorrect language, incorrect emotion, etc., the correct label corresponding to the audio can be input through the information input interface.
[0106] The authenticity of the labels set for the data samples can be determined by manual verification. Alternatively, the authenticity of the labels set for the data samples can also be determined by other methods including neural networks, which are not limited here.
[0107] Step S470: modifying the initial label of the audio data based on the label information, and using the modified initial label as the target label corresponding to the audio data.
[0108] After receiving the label information input by the user through the information input interface, the corresponding label in the initial label of the audio data is corrected to the label information input by the user to obtain a corrected initial label, and the corrected initial label is used as the target label corresponding to the audio data.
[0109] The present application provides a method for cleaning voiceprint data based on a neural network. First, an audio data set is obtained, in which each audio data in the audio data set has a corresponding initial label. Based on the audio data set and a preset loss function, an initial neural network model is iteratively trained to obtain a label prediction model. Then, the audio data set is input into the label prediction model, and the predicted labels corresponding to the audio data in the audio data set output by the label prediction model are obtained. The predicted labels corresponding to each audio data in the audio data set are compared with the corresponding initial labels. The audio data whose corresponding predicted labels are different from the corresponding initial labels in the audio data set are taken as the first audio data. If the audio data is the first audio data, the label information input through the information input interface is received. The information input interface is used for the user to input the corrected label information, and the initial label of the audio data is corrected based on the label information. The corrected initial label is used as the target label corresponding to the audio data. Through the above method, combined with the training accuracy of the neural network, the search range of the wrong label of the audio data is narrowed, the data is cleaned efficiently, and the time, manpower and material resources of manually checking the voice data are greatly reduced. At the same time, by correcting the label of each audio data according to the initial label and the predicted label of each audio data, an audio data set with a more accurate label can be obtained.
[0110] See also Figure 8 , the embodiment of the present application provides a voiceprint data cleaning device 500 based on a neural network, and the audio processing device 500 includes:
[0111] The data set acquisition unit 510 is used to acquire an audio data set, where each audio data in the audio data set has a corresponding initial label.
[0112] The prediction unit 520 is used to input the audio data set into a label prediction model to obtain the predicted labels corresponding to the audio data in the audio data set output by the label prediction model.
[0113] The determination unit 530 is configured to determine a target label corresponding to each audio data in the audio data set based on the initial label and the predicted label.
[0114] As a method, the determination unit 530 is used to compare the predicted label corresponding to each audio data in the audio data set with the corresponding initial label; use the audio data whose corresponding predicted label in the audio data set is different from the corresponding initial label as the first audio data; use the audio data whose corresponding predicted label in the audio data set is the same as the corresponding initial label as the second audio data; based on the initial label and the predicted label, update the labels corresponding to the first audio data and the second audio data to obtain corresponding target labels.
[0115] As another embodiment, the determination unit 530 is used to, if the audio data is the second audio data, use the corresponding initial label as the target label of the audio data; if the audio data is the first audio data, update the label of the audio data based on the predicted label and the initial label, and use the updated label as the target label corresponding to the audio data.
[0116] Optionally, the determination unit 530 is also used to update the label of the audio data based on the initial label if the type of the initial label corresponding to the audio data is greater than the type of the corresponding predicted label, and use the updated label as the target label corresponding to the audio data; if the type of the initial label corresponding to the audio data is less than the type of the corresponding predicted label, update the label of the audio data based on the predicted label, and use the updated label as the target label corresponding to the audio data.
[0117] Optionally, the determination unit 530 is also used to receive label information input through an information input interface if the audio data is the first audio data, and the information input interface is used for the user to input revised label information; based on the label information, the initial label of the audio data is revised, and the revised initial label is used as the target label corresponding to the audio data.
[0118] See also Fig. 9 , the device 500 further includes:
[0119] The model training unit 540 is used to iteratively train the initial neural network model based on the audio data set and a preset loss function to obtain the label prediction model.
[0120] Optionally, the model training unit 540 is also used to iteratively train an initial neural network model based on the audio data set; obtain the training accuracy corresponding to the initial neural network model after iterative training in each preset time period; if the difference in training accuracy corresponding to the initial neural network model after iteration in adjacent time periods meets a preset condition, stop training the initial neural network model, and use the initial neural network model after stopping training as the label prediction model.
[0121] It should be noted that the device embodiment in the present application corresponds to the aforementioned method embodiment. The specific principles in the device embodiment can be found in the contents of the aforementioned method embodiment and will not be repeated here.
[0122] The following will be combined Fig.10 An electronic device provided by the present application is described.
[0123] See also Fig.10 Based on the above-mentioned neural network-based voiceprint data cleaning method and device, the embodiment of the present application also provides another electronic device 800 that can execute the above-mentioned neural network-based voiceprint data cleaning method. The electronic device 800 includes one or more (only one is shown in the figure) processors 802, a memory 804 and a network module 806 that are coupled to each other. Among them, the memory 804 stores a program that can execute the content of the above-mentioned embodiment, and the processor 802 can execute the program stored in the memory 804.
[0124] Among them, the processor 802 may include one or more processing cores. The processor 802 uses various interfaces and lines to connect various parts of the entire electronic device 800, and executes various functions and processes data of the electronic device 800 by running or executing instructions, programs, code sets or instruction sets stored in the memory 804, and calling data stored in the memory 804. Optionally, the processor 802 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 802 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 802, but may be implemented separately through a communication chip.
[0125] The memory 804 may include a random access memory (RAM) or a read-only memory (ROM). The memory 804 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 804 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc. The data storage area may also store data (such as a phone book, audio and video data, chat record data) created by the electronic device 800 during use.
[0126] The network module 806 is used to receive and send electromagnetic waves, realize the mutual conversion between electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices, such as communicating with electronic devices. The network module 806 may include various existing circuit elements for performing these functions, such as antennas, radio frequency transceivers, digital signal processors, encryption / decryption chips, user identity modules (SIM) cards, memories, etc. The network module 806 may communicate with various networks such as the Internet, corporate intranets, wireless networks, or communicate with other devices via wireless networks. The above-mentioned wireless networks may include cellular telephone networks, wireless local area networks, or metropolitan area networks. For example, the network module 806 may exchange information with a base station.
[0127] Please refer to Fig.11 , which shows a structural block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable medium 900 stores program codes, which can be called by a processor to execute the method described in the above method embodiment.
[0128] The computer-readable storage medium 900 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer-readable storage medium 900 includes a non-transitory computer-readable storage medium. The computer-readable storage medium 900 has storage space for program code 910 that performs any method step in the above method. These program codes can be read from or written to one or more computer program products. The program code 910 can be compressed, for example, in an appropriate form.
[0129] The present application provides a neural network-based voiceprint data cleaning method, device, electronic device and storage medium, firstly obtaining an audio data set, each audio data in the audio data set has a corresponding initial label, then inputting the audio data set into a label prediction model, obtaining the predicted labels corresponding to each audio data in the audio data set output by the label prediction model, and then determining the target label of each audio data in the audio data set based on the initial label and the predicted label. Through the above method, by correcting the label of each audio data according to the initial label and the predicted label of each audio data, an audio data set with a more accurate label can be obtained.
[0130] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.
Claims
1. A voiceprint data cleaning method based on neural network, characterized in that: The method comprises: Acquire an audio data set, wherein each audio data in the audio data set has a corresponding initial label; Inputting the audio data set into a label prediction model, and obtaining predicted labels corresponding to the audio data in the audio data set output by the label prediction model; Compare the predicted label corresponding to each audio data in the audio data set with the corresponding initial label; Using the audio data whose corresponding predicted label is different from the corresponding initial label in the audio data set as the first audio data; Using the audio data with the same predicted label and initial label in the audio data set as the second audio data; If the audio data is the second audio data, using the corresponding initial label as the target label of the audio data; If the audio data is the first audio data, updating the label of the audio data based on the predicted label and the initial label, and using the updated label as the target label corresponding to the audio data; If the audio data is the first audio data, updating the label of the audio data based on the predicted label and the initial label, and using the updated label as the target label corresponding to the audio data, includes: If the type of the initial label corresponding to the audio data is greater than the type of the corresponding predicted label, the label of the audio data is updated based on the initial label, and the updated label is used as the target label corresponding to the audio data; If the type of the initial label corresponding to the audio data is smaller than the type of the corresponding predicted label, the label of the audio data is updated based on the predicted label, and the updated label is used as the target label corresponding to the audio data.
2. The method according to claim 1, characterized in that The updating of the labels corresponding to the first audio data and the second audio data based on the initial label and the predicted label to obtain the corresponding target label further includes: Merging the first audio data and the second audio data after the updated labels into a new audio data set; The new audio data set is used as training data for the voiceprint recognition model.
3. The method according to claim 1, characterized in that If the type of the initial label corresponding to the audio data is greater than the type of the corresponding predicted label, updating the label of the audio data based on the initial label, and using the updated label as the target label corresponding to the audio data, including: If the type of the initial label corresponding to the audio data is greater than the type of the corresponding predicted label, and the content of the initial label includes the content of the predicted label, verifying the label of the audio data based on the initial label; If it is determined that the initial label is correct, the initial label is used as the target label corresponding to the audio data; If it is determined that the initial label has an error, the erroneous content in the initial label is corrected, and the corrected initial label is used as the target label corresponding to the audio data.
4. The method according to claim 1, characterized in that: If the type of the initial label corresponding to the audio data is smaller than the type of the corresponding predicted label, updating the label of the audio data based on the predicted label and using the updated label as the target label corresponding to the audio data includes: If the type of the initial label corresponding to the audio data is smaller than the type of the corresponding predicted label, and the content of the predicted label includes the content of the initial label, verifying the label of the audio data based on the predicted label; If it is determined that the predicted label is correct, the predicted label is used as the target label corresponding to the audio data; If it is determined that the predicted label is erroneous, the erroneous content in the predicted label is corrected, and the corrected predicted label is used as the target label corresponding to the audio data.
5. The method according to claim 1, characterized in that If the audio data is the first audio data, updating the label of the audio data based on the predicted label and the initial label, and using the updated label as the target label corresponding to the audio data, includes: If the audio data is the first audio data, receiving label information input through an information input interface, wherein the information input interface is used by a user to input revised label information; The initial label of the audio data is modified based on the label information, and the modified initial label is used as the target label corresponding to the audio data.
6. The method according to any one of claims 1 to 5, characterized in that: Before inputting the audio data set into the label prediction model and obtaining the predicted labels corresponding to the audio data in the audio data set output by the label prediction model, the method further includes: Based on the audio data set and a preset loss function, an initial neural network model is iteratively trained to obtain the label prediction model.
7. The method according to any one of claims 1 to 5, characterized in that: Before the step of inputting the audio data set into the label prediction model and obtaining the predicted labels corresponding to the audio data in the audio data set output by the label prediction model, the step further includes: Iteratively train an initial neural network model based on the audio data set; Obtaining the training accuracy corresponding to the initial neural network model after iterative training in each preset time period; If the difference in training accuracy corresponding to the initial neural network model after iteration in adjacent time periods meets a preset condition, the training of the initial neural network model is stopped, and the initial neural network model after the training is stopped is used as the label prediction model.
Citation Information
Patent Citations
Data cleaning method and device, storage medium and electronic equipment
CN113342792A
