Model training and calling method, device, computer equipment, storage medium

Through the encoding, transformation and reconstruction of speech data by the deep learning model, combined with parameter adjustment, the problem of low accuracy of speech summary text generation in the existing technology is solved, and higher accuracy of summary text is achieved.

CN113851133BActive Publication Date: 2024-09-24PING AN TECH (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111137341.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-27
Publication Date
2024-09-24
Estimated Expiration
2041-09-27

AI Technical Summary

Technical Problem

In the existing automatic generation technology of speech summary text, the error propagation of the speech recognition system and the text summary system causes the accuracy of the generated summary text to be low and difficult to improve.

Method used

Using the deep learning model training method, the sample speech data is encoded, converted into fully implicit text data, reconstructed into audio data, and the model parameters are adjusted based on the reconstructed data until the model converges, and a trained deep learning model is generated. Used to generate summary text corresponding to speech.

Benefits of technology

It avoids error propagation when the speech recognition system and the text summary system are connected in series, and improves the accuracy of generating speech summary text.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113851133B
    Figure CN113851133B
Patent Text Reader

Abstract

The present application relates to the field of artificial intelligence, and in particular to the field of speech processing technology, and provides a model training and calling method, device, computer equipment, and storage medium, including: encoding sample speech data, generating encoded audio data to input into a deep learning model, converting the encoded audio data into fully implicit text data, and generating a summary text corresponding to the fully implicit text data; reconstructing the summary text to generate reconstructed text data, converting the reconstructed text data into audio data, and generating reconstructed audio data; adjusting the parameters of the deep learning model based on the reconstructed text data and the reconstructed audio data, and returning to execute the steps of encoding the sample speech data and generating the encoded audio data, until the deep learning model converges, and a trained deep learning model is obtained, and the summary text corresponding to the speech generated by the model is highly accurate. The present application also relates to blockchain technology, and the sample speech data can be stored in a blockchain node.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of speech processing technology in the field of artificial intelligence, and in particular to a model training and calling method, device, computer equipment, and storage medium. Background Art

[0002] Nowadays, automatic generation of summary text from speech has a wide range of application scenarios and value. For example, in a meeting scenario, the meeting summary can be automatically generated based on the speech recorded in the meeting, eliminating the need for manual editing and greatly saving time and labor costs.

[0003] At present, the automatic generation technology of summary text usually adopts a model composed of two modules, namely, speech recognition system (ASR, Automatic Speech Recognition) and text summary system (Summarizer), which are connected in series to generate summary text corresponding to speech. Once any module in the speech recognition system or text summary system is disturbed, the final generated summary text result will produce errors. Moreover, if the speech recognition system in the previous processing produces errors, the text summary system will process based on the errors, which will cause the errors in the final result to be further amplified, and the accuracy of the generated summary text will be low.

[0004] Therefore, how to improve the accuracy of the summary text corresponding to the generated speech is an urgent problem to be solved. Summary of the invention

[0005] The present application provides a model training and calling method, apparatus, computer equipment, and storage medium to improve the accuracy of generated speech corresponding summary text.

[0006] In a first aspect, the present application provides a deep learning model training method, the method comprising:

[0007] Encoding the sample speech data to generate encoded audio data;

[0008] Inputting the encoded audio data into a preset deep learning model for training, converting the encoded audio data into fully implicit text data, and generating summary text corresponding to the fully implicit text data;

[0009] Reconstructing the abstract text into fully implicit text data to generate reconstructed text data, and converting the reconstructed text data into audio data to generate reconstructed audio data;

[0010] The parameters of the deep learning model are adjusted based on the reconstructed text data and the reconstructed audio data, and the step of encoding the sample speech data and generating encoded audio data is returned to execute until the deep learning model converges to obtain the trained deep learning model.

[0011] In a second aspect, the present application further provides a deep learning model calling method, wherein the deep learning model is a deep learning model trained using the above-mentioned deep learning model training method, and the deep learning model calling method comprises:

[0012] Obtaining voice data to be processed;

[0013] Encoding the voice data to generate encoded audio data corresponding to the voice data;

[0014] The encoded audio data corresponding to the speech data is input into a trained deep learning model, and a summary text corresponding to the speech data is output.

[0015] In a third aspect, the present application further provides a deep learning model training device, the deep learning model training device comprising:

[0016] A first encoding module, used to encode the sample speech data to generate encoded audio data;

[0017] A first generating module, configured to input the encoded audio data into a preset deep learning model for training, convert the encoded audio data into fully implicit text data, and generate a summary text corresponding to the fully implicit text data;

[0018] A data reconstruction module, used for reconstructing the full implicit text data of the summary text to generate reconstructed text data, and converting the reconstructed text data into audio data to generate reconstructed audio data;

[0019] A parameter adjustment module is used to adjust the parameters of the deep learning model based on the reconstructed text data and the reconstructed audio data until the deep learning model converges to obtain the trained deep learning model.

[0020] In a fourth aspect, the present application further provides a deep learning model calling device, the deep learning model calling device comprising:

[0021] An acquisition module, used to acquire voice data to be processed;

[0022] A second encoding module, used to encode the voice data to generate encoded audio data corresponding to the voice data;

[0023] The second generation module is used to input the encoded audio data corresponding to the speech data into a trained deep learning model, and output the summary text corresponding to the speech data.

[0024] In a fifth aspect, the present application further provides a computer device, the computer device comprising a memory and a processor;

[0025] The memory is used to store computer programs;

[0026] The processor is used to execute the computer program and implement the deep learning model training method as described above, or implement the deep learning model calling method as described above when executing the computer program.

[0027] In a sixth aspect, the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the processor enables the processor to implement the deep learning model training method as described above, or implement the deep learning model calling method as described above.

[0028] The present application discloses a model training and calling method, device, computer equipment, and storage medium, which encodes sample speech data to generate encoded audio data, inputs the encoded audio data into a preset deep learning model, converts the encoded audio data into fully implicit text data through the deep learning model, and generates a summary text corresponding to the fully implicit text data, and reconstructs the summary text with fully implicit text data to generate reconstructed text data, and converts the reconstructed text data into audio data to generate reconstructed audio data, adjusts the parameters of the deep learning model based on the reconstructed text data and the reconstructed audio data, and returns to execute the steps of encoding the sample speech data and generating the encoded audio data, until the deep learning model after the parameter adjustment converges, and obtains a trained deep learning model. The trained deep learning model can generate a summary text corresponding to the speech, which avoids the problem of inaccurate summary text generated due to disturbance of any one of the modules, compared with the method of generating summary text by connecting the speech recognition system and the text summary system in series, thereby improving the accuracy of the summary text generated corresponding to the speech. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] In order to more clearly illustrate the technical solutions of 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 some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0030] Figure 1 It is a schematic flow chart of the steps of a deep learning model training method provided in an embodiment of the present application;

[0031] Figure 2 It is a schematic flow chart of the sub-steps of converting the encoded audio data into fully implicit text data and generating a summary text corresponding to the fully implicit text data provided by an embodiment of the present application;

[0032] Figure 3 The embodiment of the present application provides a schematic flow chart of the sub-steps of performing full implicit text data reconstruction on the summary text, generating reconstructed text data, converting the reconstructed text data into audio data, and generating reconstructed audio data;

[0033] Figure 4 It is a schematic flowchart of the sub-steps of adjusting the parameters of the deep learning model based on the reconstructed text data and the reconstructed audio data provided by an embodiment of the present application;

[0034] Figure 5 It is a schematic structural block diagram of a deep learning model provided in an embodiment of the present application;

[0035] Figure 6 It is a schematic flow chart of the steps of a deep learning model calling method provided in an embodiment of the present application;

[0036] Figure 7 is a schematic block diagram of a deep learning model training device provided in an embodiment of the present application;

[0037] Figure 8 is a schematic block diagram of a deep learning model calling device provided in an embodiment of the present application;

[0038] Fig. 9 It is a schematic block diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0039] 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 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.

[0040] The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may also be decomposed, combined or partially merged, so the actual execution order may change according to actual conditions.

[0041] It should be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0042] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0043] The embodiments of the present application provide a deep learning model training and calling method, apparatus, computer equipment, and storage medium for improving the accuracy of machine reading comprehension.

[0044] See also Figure 1 , Figure 1 1 is a flowchart of a deep learning model training method provided by an embodiment of the present application. The method can be applied to a computer device, and the application scenario of the method is not limited in the present application. The following takes the application of the deep learning model training method to a computer device as an example to introduce the deep learning model training method in detail.

[0045] like Figure 1 As shown, the deep learning model training method specifically includes steps S101 to S105.

[0046] S101. Encode sample speech data to generate encoded audio data.

[0047] The sample voice data may be conference voice data or other types of voice data. Exemplarily, a large amount of sample voice data is used to form a sample voice data set, sample voice data is selected from the sample voice data set, and then the sample voice data is encoded.

[0048] In some embodiments, the sample voice data is encoded (Encoding) by adopting a sampling method, and discrete points are sampled in the continuous time domain waveform corresponding to the sample voice data according to a preset sampling frequency, and the amplitude of each discrete point is quantized and encoded as 0 or 1 to obtain the encoded audio data corresponding to the sample voice data.

[0049] S102: input the encoded audio data into a preset deep learning model for training, convert the encoded audio data into fully implicit text data, and generate a summary text corresponding to the fully implicit text data.

[0050] Since independent speech recognition systems and text summary systems are used to generate summary texts, the results of each module's independent task execution will affect another module, thereby affecting the final result. In order to avoid this problem, a corresponding deep learning model is pre-built. Exemplarily, the deep learning model is an end-to-end model (end-to-end learning), from data input to result output, from the input end to the output end, the neural network in the middle is self-contained and can be treated as a black box, and will not be affected by a certain independent module.

[0051] After obtaining the encoded audio data corresponding to the sample speech data, the encoded audio data is input into the constructed deep learning model, the deep learning model is trained, the encoded audio data is processed by the deep learning model, the encoded audio data is converted into fully implicit text data, and a summary text corresponding to the fully implicit text data is generated.

[0052] In some embodiments, Figure 2 As shown, step S102 may include sub-step S1021 and sub-step S1022.

[0053] S1021. Input the encoded audio data into a first BiRNN+Attention model, and output the fully implicit text data through the first BiRNN+Attention model.

[0054] Exemplarily, the deep learning model includes a first BiRNN+Attention model and a first BERT model. Compared with the traditional BiRNN+Attention model, the first BiRNN+Attention model lacks the last fully connected layer of the traditional BiRNN+Attention model, and the first BERT model has the same structure as the traditional BERT model.

[0055] After obtaining the encoded audio data corresponding to the sample speech data, the encoded audio data is input into the first BiRNN+Attention model of the deep learning model, and text recognition is performed through the first BiRNN+Attention model to output fully implicit text data.

[0056] S1022: Input the fully implicit text data into a first BERT model, and output the summary text through the first BERT model.

[0057] The fully implicit text data obtained by the first BiRNN+Attention model is input into the first BERT model of the deep learning model, and machine reading comprehension is performed through the first BERT model to output the corresponding summary text.

[0058] S103, reconstructing the abstract text into fully implicit text data to generate reconstructed text data, and converting the reconstructed text data into audio data to generate reconstructed audio data.

[0059] After obtaining the summary text, the fully implicit text data is reconstructed based on the summary text, that is, the reverse operation of generating the summary text is performed, and the corresponding fully implicit text data is obtained from the summary text. In order to facilitate the distinction of descriptions, the generated fully implicit text data is called reconstructed text data. In addition, based on the reconstructed text data, the text is converted into audio data, and the reconstructed audio data is generated.

[0060] In some embodiments, Figure 3 As shown, step S103 may include sub-step S1031 and sub-step S1032.

[0061] S1031. Input the summary text into a second BERT model, and output the reconstructed text data through the second BERT model.

[0062] Exemplarily, the deep learning model also includes a second BiRNN+Attention model and a second BERT model. The second BiRNN+Attention model has the same structure as the first BiRNN+Attention model, but lacks the last fully connected layer of the traditional BiRNN+Attention model; the second BERT model has the same structure as the first BERT model.

[0063] After obtaining the summary text, the summary text is input into the second BERT model, and the generated summary text is converted back to full implicit text through the second BERT model. In order to facilitate the distinction of descriptions, the obtained full implicit text data is called reconstructed text data.

[0064] S1032. Input the reconstructed text data into a second BiRNN+Attention model, and output the reconstructed audio data through the second BiRNN+Attention model.

[0065] After obtaining the reconstructed text data, the reconstructed text data is input into the second BiRNN+Attention model, and the audio data corresponding to the reconstructed text data is output by the second BiRNN+Attention model. In order to facilitate the distinction of descriptions, it is called reconstructed audio data.

[0066] S104, adjusting parameters of the deep learning model based on the reconstructed text data and the reconstructed audio data, and determining whether the deep learning model has converged; if not, executing step S101; if yes, executing step S105;

[0067] S105: End the training and obtain the trained deep learning model.

[0068] The parameters of the deep learning model include but are not limited to weights, biases, etc. Exemplarily, the parameters of the deep learning model are updated using a gradient descent method, and the parameters of the deep learning model are updated along the gradient direction using the gradient of the parameters.

[0069] In some embodiments, Figure 4 As shown, step S104 may include sub-step S1041 and sub-step S1042.

[0070] S1041. Calculate a first difference between the reconstructed text data and the fully implicit text data, and use the first difference as a loss to adjust parameters of the first BERT model.

[0071] Exemplarily, the difference between the reconstructed text data and the fully implicit text data is calculated using a loss function calculation formula. For ease of description, the difference between the reconstructed text data and the fully implicit text data is referred to as the first difference below. For example, the first difference is calculated using the mean absolute error (MAE), that is, the L1Loss loss function. The first difference obtained by calculation is used as the loss to determine whether the first BERT model is optimized, that is, whether the first difference tends to a minimum value. If the first difference tends to a minimum value, the first BERT model is optimized. If the first difference has not yet tended to a minimum value, the parameters of the first BERT model are adjusted to minimize the first difference.

[0072] S1042. Calculate a second difference between the reconstructed audio data and the encoded audio data, and use the second difference as a loss to adjust parameters of the first BiRNN+Attention model and the first BERT model.

[0073] Exemplarily, the difference between the reconstructed audio data and the encoded audio data is calculated using a loss function calculation formula. For ease of description, the difference between the reconstructed audio data and the encoded audio data is referred to as the second difference below. For example, the second difference is calculated using the L1Loss loss function. By calculating the second difference, using the second difference as the loss, it is determined whether the first BiRNN+Attention model and the first BERT model are optimized, that is, whether the second difference tends to a minimum value. If the second difference tends to a minimum value, the first BiRNN+Attention model and the first BERT model are optimized. If the second difference has not yet tended to a minimum value, the parameters of the first BiRNN+Attention model and the first BERT model are adjusted to minimize the second difference.

[0074] After updating the parameters of the deep learning model, the operations in the above steps are repeated based on the deep learning model with updated parameters until the first difference and the second difference are calculated to be close to the minimum value, the deep learning model converges, and the training process of the deep learning model is ended to obtain a trained deep learning model.

[0075] In some embodiments, the deep learning model also includes a Classifier model, and exemplarily, the Classifier model is a Softmax Classifier with a gradient reversal layer. The deep learning model training method also includes: inputting the target summary text into the Classifier model, and determining the type of the target summary text, wherein the type of the target summary text includes machine-generated summary text and artificially generated summary text; if the target summary text is machine-generated summary text, and it is determined to be artificially generated summary text by the Classifier model, then the parameters of the Classifier model are updated by a gradient reversal method; if the target summary text is artificially generated summary text, and it is determined to be machine-generated summary text by the Classifier model, then the parameters of the first BiRNN+Attention model, the first BERT model, and the Classifier model are updated by a gradient reversal method.

[0076] There are two types of summary texts: one is manually generated summary text, and the other is machine generated summary text generated by deep learning model processing. Exemplarily, a summary text is randomly selected as the target summary text, and the target summary text may be a manually generated summary text or a machine generated summary text.

[0077] After selecting the target summary text, the target summary text is input into the Classifier model, and the Classifier model is used to determine whether the target summary text is a manually generated summary text or a machine generated summary text.

[0078] The first case is that the target summary text is an artificially generated summary text, and the Classifier model determines that it is an artificially generated summary text, that is, the determination is correct. In this case, no response operation is performed.

[0079] The second case is that the target summary text is a machine-generated summary text, and the Classifier model determines that it is a machine-generated summary text, that is, the determination is correct. In this case, no response operation is performed.

[0080] The third case is that the target summary text is a machine-generated summary text, and the Classifier model judges it as an artificially generated summary text, that is, the judgment is wrong. At this time, the parameters of the Classifier model are updated by gradient reversal. Exemplarily, the loss of judging the machine-generated summary text as an artificially generated summary text is calculated, that is, the current loss function value of the Classifier model, and the loss value is negatively fed back to the Classifier model through the gradient reversal method, and the gradient calculation is performed according to the loss value, and then the parameters of the Classifier model are updated.

[0081] The fourth case is that the target summary text is manually generated summary text, and the Classifier model determines it to be machine generated summary text, that is, the judgment is wrong. At this time, in addition to updating the parameters of the Classifier model by gradient reversal, the parameters of the first BiRNN+Attention model and the first BERT model are also updated. Exemplarily, the parameter update method of the first BiRNN+Attention model and the first BERT model can refer to the parameter update method of the Classifier model, which will not be repeated here.

[0082] The Classifier model is in an adversarial relationship with the first BiRNN+Attention model and the first BERT model. That is, the goal of the Classifier model is to strive to achieve 100% summary text discrimination accuracy, but the goal of the first BiRNN+Attention model and the first BERT model is to make the Classifier model misjudge and discriminate the machine-generated summary text it generates as artificially generated summary text. Therefore, the Classifier model is in an adversarial relationship with the first BiRNN+Attention model and the first BERT model.

[0083] The Classifier model competes with the first BiRNN+Attention model and the first BERT model, making the generated summary text closer to human writing. At the same time, it also avoids the problem of low readability and low accuracy of summary text generated by the text summary system in the traditional cascade model.

[0084] In some embodiments, Figure 5 As shown, Figure 5The schematic structural block diagram of the constructed deep learning model. The deep learning model is divided into three modules: the generation module (Generator), the readability verification module (ReadableClassifier), and the generation calibration module (Reconstructor). Among them, the Generator module includes the BiRNN+Attention model and the BERT model. The purpose of the BiRNN+Attention model is to convert the encoded audio data into fully implicit text data, and the purpose of the BERT model is to convert the fully implicit text data into the output summary text. Compared with the traditional BiRNN+Attention model, the BiRNN+Attention model removes the last fully connected layer. Therefore, the output of the BiRNN+Attention model is not explicit text data, but fully implicit text data.

[0085] The Readable Classifier module is a SoftmaxClassifier with a gradient reversal layer. The input of this module is the randomly selected summary text and reference summary text generated by the Generator module. For the input reference summary text, the Readable Classifier module should recognize all of them as manual summary texts. For the input summary text generated by the Generator module, the Readable Classifier module should recognize all of them as machine summary texts. For the input summary text generated by the Generator module, if the Readable Classifier module misjudges it as manual summary text, the gradient of the Generator module will not be reversed, and only the gradient of the Readable Classifier module will be reversed. For the input reference summary text, if the Readable Classifier module misjudges it as machine summary text, the gradient of the Readable Classifier module and the Generator module will be reversed, and the model parameters will be updated. Therefore, the purposes of the Readable Classifier module and the Generator module conflict, forming an adversarial relationship.

[0086] The Reconstructor module contains the BERT model and the BiRNN+Attention model. The purpose of the BERT model is to convert the generated summary text back into fully implicit text data, called reconstructed text data. The purpose of the BiRNN+Attention model is to convert the reconstructed text data back into encoded audio data, called reconstructed audio data. One is to compare the difference between the reconstructed text data and the fully implicit text data, and adjust the parameters of the BERT model; the other is to compare the difference between the reconstructed audio data and the encoded audio data, and adjust the parameters of the BERT model and the BiRNN+Attention model.

[0087] In the above embodiment, the sample speech data is encoded to generate encoded audio data, the encoded audio data is input into a preset deep learning model, the encoded audio data is converted into fully implicit text data through the deep learning model, and a summary text corresponding to the fully implicit text data is generated, and the summary text is reconstructed by fully implicit text data to generate reconstructed text data, and the reconstructed text data is converted into audio data to generate reconstructed audio data, and the deep learning model is parameter adjusted based on the reconstructed text data and the reconstructed audio data, and the step of encoding the sample speech data and generating the encoded audio data is returned to execute until the deep learning model after parameter adjustment converges to obtain a trained deep learning model. The summary text corresponding to the speech can be generated by the trained deep learning model. Compared with the method of generating the summary text by connecting the speech recognition system and the text summary system in series, the problem of inaccurate summary text generated due to disturbance of any one of the modules is avoided, and therefore, the accuracy of the summary text corresponding to the generated speech is improved.

[0088] See also Figure 6 , Figure 6 1 is a flowchart of a deep learning model calling method provided by an embodiment of the present application. The method can be applied to a computer device, and the application scenario of the method is not limited in the present application. The following takes the application of the deep learning model calling method to a computer device as an example to introduce the deep learning model calling method in detail.

[0089] Among them, the called deep learning model is a deep learning model trained by the deep learning model training method in the above embodiment.

[0090] like Figure 6 As shown, the deep learning model calling method specifically includes steps S201 to S202.

[0091] S201: Acquire voice data to be processed.

[0092] For example, when a meeting summary is to be generated, the speech at the meeting is recorded by a recording device such as a voice recorder to generate a recording file, and the voice data to be processed is obtained by reading the recording file.

[0093] S202: Encode the voice data to generate encoded audio data corresponding to the voice data.

[0094] Exemplarily, the voice data is encoded by adopting a sampling method, and discrete points are sampled in the continuous time domain waveform corresponding to the voice data to be processed according to a preset sampling frequency, and the amplitude of each discrete point is quantized and encoded as 0 or 1 to obtain the encoded audio data corresponding to the voice data.

[0095] S203: Input the encoded audio data corresponding to the speech data into a trained deep learning model, and output a summary text corresponding to the speech data.

[0096] It should be noted that the deep learning model is a deep learning model trained by the deep learning model training method in the above embodiment. After generating the encoded audio data corresponding to the speech data, the encoded audio data corresponding to the speech data is input into the trained deep learning model, and the summary text corresponding to the speech data is output.

[0097] Exemplarily, the deep learning model includes a first BiRNN+Attention model and a first BERT model. Compared with the traditional BiRNN+Attention model, the first BiRNN+Attention model lacks the last fully connected layer of the traditional BiRNN+Attention model, and the first BERT model has the same structure as the traditional BERT model.

[0098] The encoded audio data corresponding to the speech data to be processed is input into the first BiRNN+Attention model of the deep learning model, text recognition is performed through the first BiRNN+Attention model, and fully implicit text data is output.

[0099] Afterwards, the fully implicit text data is input into the first BERT model of the deep learning model, and machine reading comprehension is performed through the first BERT model to output the corresponding summary text.

[0100] In this embodiment, by obtaining speech data to be processed, encoding the speech data, generating encoded audio data corresponding to the speech data, inputting the encoded audio data corresponding to the speech data into a trained deep learning model, and outputting summary text corresponding to the speech data, the accuracy of generating summary text corresponding to the speech is improved compared to the method of generating summary text using a traditional cascade model.

[0101] See also Figure 7 , Figure 7 It is a schematic block diagram of a deep learning model training device provided in an embodiment of the present application. The deep learning model training device can be configured in a computer device to execute the aforementioned deep learning model training method.

[0102] like Figure 7 As shown, the deep learning model training device 1000 includes: a first encoding module 1001, a first generation module 1002, a data reconstruction module 1003 and a parameter adjustment module 1004.

[0103] The first encoding module 1001 is used to encode the sample speech data to generate encoded audio data;

[0104] The first generating module 1002 is used to input the encoded audio data into a preset deep learning model for training, convert the encoded audio data into fully implicit text data, and generate a summary text corresponding to the fully implicit text data;

[0105] The data reconstruction module 1003 is used to reconstruct the full implicit text data of the summary text to generate reconstructed text data, and convert the reconstructed text data into audio data to generate reconstructed audio data;

[0106] The parameter adjustment module 1004 is used to adjust the parameters of the deep learning model based on the reconstructed text data and the reconstructed audio data until the deep learning model converges to obtain the trained deep learning model.

[0107] In one embodiment, the deep learning model includes a first BiRNN+Attention model and a first BERT model, and the first generation module 1002 is further used to:

[0108] The encoded audio data is input into a first BiRNN+Attention model, and the fully implicit text data is output through the first BiRNN+Attention model; the fully implicit text data is input into a first BERT model, and the summary text is output through the first BERT model.

[0109] In one embodiment, the deep learning model further includes a second BiRNN+Attention model and a second BERT model, and the data reconstruction module 1003 is further used to:

[0110] The summary text is input into a second BERT model, and the reconstructed text data is output through the second BERT model; the reconstructed text data is input into a second BiRNN+Attention model, and the reconstructed audio data is output through the second BiRNN+Attention model.

[0111] In one embodiment, the parameter adjustment module 1004 is further used to:

[0112] Calculating a first difference between the reconstructed text data and the fully implicit text data, and adjusting parameters of the first BERT model using the first difference as a loss;

[0113] A second difference between the reconstructed audio data and the encoded audio data is calculated, and the parameters of the first BiRNN+Attention model and the first BERT model are adjusted using the second difference as a loss.

[0114] In one embodiment, the deep learning model training device 1000 further includes a discrimination module for:

[0115] Inputting the target summary text into the Classifier model to determine the type of the target summary text, wherein the type of the target summary text includes a machine-generated summary text and a manually-generated summary text;

[0116] The parameter adjustment module 1004 is also used for:

[0117] If the target summary text is a machine-generated summary text and is determined to be an artificially generated summary text by the Classifier model, the parameters of the Classifier model are updated by a gradient reversal method; if the target summary text is an artificially generated summary text and is determined to be a machine-generated summary text by the Classifier model, the parameters of the first BiRNN+Attention model, the first BERT model, and the Classifier model are updated by a gradient reversal method.

[0118] It should be noted that technical personnel in the relevant field can clearly understand that, for the convenience and conciseness of description, the specific working process of the above-described device and each module can refer to the corresponding process in the aforementioned deep learning model training method embodiment, and will not be repeated here.

[0119] See also Figure 8 , Figure 8 It is a schematic block diagram of a deep learning model calling device provided in an embodiment of the present application. The deep learning model calling device can be configured in a computer device to execute the aforementioned deep learning model calling method.

[0120] like Figure 8 As shown, the deep learning model calling device 2000 includes: an acquisition module 2001, a second encoding module 2002 and a second generation module 2003.

[0121] An acquisition module 2001 is used to acquire voice data to be processed;

[0122] The second encoding module 2002 is used to encode the voice data to generate encoded audio data corresponding to the voice data;

[0123] The second generation module 2003 is used to input the encoded audio data corresponding to the speech data into the trained deep learning model, and output the summary text corresponding to the speech data.

[0124] It should be noted that technical personnel in the relevant field can clearly understand that, for the convenience and conciseness of description, the specific working process of the above-described device and each module can refer to the corresponding process in the aforementioned deep learning model calling method embodiment, and will not be repeated here.

[0125] The method and apparatus of the present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronic devices, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.

[0126] Exemplarily, the above method and apparatus may be implemented in the form of a computer program. The computer program may be implemented in the form of a computer program. Fig. 9 Runs on the computer device shown.

[0127] See also Fig. 9 , Fig. 9 It is a schematic block diagram of the structure of a computer device provided in an embodiment of the present application.

[0128] See also Fig. 9 The computer device includes a processor and a memory connected via a system bus, wherein the memory may include a non-volatile storage medium and an internal memory.

[0129] The processor is used to provide computing and control capabilities and support the operation of the entire computer equipment.

[0130] The internal memory provides an environment for the operation of the computer program in the non-volatile storage medium. When the computer program is executed by the processor, the processor can execute any deep learning model training method or deep learning model calling method.

[0131] It should be understood that the processor may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0132] In one embodiment, the processor is used to run a computer program stored in the memory to implement the following steps:

[0133] Encode the sample speech data to generate encoded audio data; input the encoded audio data into a preset deep learning model for training, convert the encoded audio data into fully implicit text data, and generate a summary text corresponding to the fully implicit text data; reconstruct the summary text into fully implicit text data to generate reconstructed text data, and convert the reconstructed text data into audio data to generate reconstructed audio data; adjust the parameters of the deep learning model based on the reconstructed text data and the reconstructed audio data, and return to execute the step of encoding the sample speech data to generate encoded audio data, until the deep learning model converges, and the trained deep learning model is obtained.

[0134] In one embodiment, the deep learning model includes a first BiRNN+Attention model and a first BERT model, and the processor, when implementing the step of inputting the encoded audio data into a preset deep learning model for training, converting the encoded audio data into fully implicit text data, and generating a summary text corresponding to the fully implicit text data, is used to implement:

[0135] The encoded audio data is input into a first BiRNN+Attention model, and the fully implicit text data is output through the first BiRNN+Attention model; the fully implicit text data is input into a first BERT model, and the summary text is output through the first BERT model.

[0136] In one embodiment, the deep learning model further includes a second BiRNN+Attention model and a second BERT model, and the processor, when implementing the full implicit text data reconstruction of the summary text, generating reconstructed text data, and converting the reconstructed text data into audio data, and generating reconstructed audio data, is used to implement:

[0137] The summary text is input into a second BERT model, and the reconstructed text data is output through the second BERT model; the reconstructed text data is input into a second BiRNN+Attention model, and the reconstructed audio data is output through the second BiRNN+Attention model.

[0138] In one embodiment, when the processor implements the parameter adjustment of the deep learning model based on the reconstructed text data and the reconstructed audio data, it is used to implement:

[0139] Calculate a first difference between the reconstructed text data and the fully implicit text data, and use the first difference as a loss to adjust the parameters of the first BERT model; calculate a second difference between the reconstructed audio data and the encoded audio data, and use the second difference as a loss to adjust the parameters of the first BiRNN+Attention model and the first BERT model.

[0140] In one embodiment, the processor is further configured to implement:

[0141] The target summary text is input into the Classifier model to determine the type of the target summary text, wherein the type of the target summary text includes a machine-generated summary text and an artificially generated summary text; if the target summary text is a machine-generated summary text and is determined to be an artificially generated summary text by the Classifier model, the parameters of the Classifier model are updated by a gradient reversal method; if the target summary text is an artificially generated summary text and is determined to be a machine-generated summary text by the Classifier model, the parameters of the first BiRNN+Attention model, the first BERT model, and the Classifier model are updated by a gradient reversal method.

[0142] In one embodiment, the processor is used to run a computer program stored in the memory to implement the following steps:

[0143] Acquire speech data to be processed; encode the speech data to generate encoded audio data corresponding to the speech data; input the encoded audio data corresponding to the speech data into a trained deep learning model, and output a summary text corresponding to the speech data.

[0144] The computer-readable storage medium may be an internal storage unit of the computer device described in the above embodiment, such as a hard disk or memory of the computer device. The computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a smart memory card (SmartMedia Card, SMC), a secure digital card (Secure Digital Card, SD Card), a flash card (Flash Card), etc. equipped on the computer device.

[0145] Furthermore, the computer-readable storage medium may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function, etc.; the data storage area may store data created according to the use of the blockchain node, etc.

[0146] The blockchain referred to in this application is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.

[0147] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A deep learning model training method, characterized in that: The deep learning model training method comprises: Encoding the sample speech data to generate encoded audio data; Inputting the encoded audio data into a preset deep learning model for training, converting the encoded audio data into fully implicit text data, and generating summary text corresponding to the fully implicit text data; Reconstructing the full implicit text data of the summary text, performing the reverse operation of generating the summary text, obtaining the corresponding full implicit text data from the summary text, using the full implicit text data corresponding to the summary text as reconstructed text data, and converting the reconstructed text data into audio data to generate reconstructed audio data; The deep learning model is parameterized based on the reconstructed text data and the reconstructed audio data, and the step of encoding the sample speech data and generating the encoded audio data is returned to execute until the deep learning model converges to obtain the trained deep learning model. The deep learning model includes a first BiRNN+Attention model, and the step of inputting the encoded audio data into a preset deep learning model for training, and converting the encoded audio data into fully implicit text data includes: The encoded audio data is input into a first BiRNN+Attention model, and the fully implicit text data is output through the first BiRNN+Attention model.

2. The deep learning model training method according to claim 1, characterized in that: The deep learning model includes a first BERT model, and the generating of summary text corresponding to the fully implicit text data includes: The fully implicit text data is input into a first BERT model, and the summary text is output through the first BERT model.

3. The deep learning model training method according to claim 2, characterized in that: The deep learning model further includes a second BiRNN+Attention model and a second BERT model. The step of reconstructing the abstract text with full implicit text data to generate reconstructed text data and converting the reconstructed text data into audio data to generate reconstructed audio data includes: Input the summary text into a second BERT model, and output the reconstructed text data through the second BERT model; The reconstructed text data is input into a second BiRNN+Attention model, and the reconstructed audio data is output through the second BiRNN+Attention model.

4. The deep learning model training method according to claim 2, characterized in that: The step of adjusting parameters of the deep learning model based on the reconstructed text data and the reconstructed audio data includes: Calculating a first difference between the reconstructed text data and the fully implicit text data, and adjusting parameters of the first BERT model using the first difference as a loss; A second difference between the reconstructed audio data and the encoded audio data is calculated, and the parameters of the first BiRNN+Attention model and the first BERT model are adjusted using the second difference as a loss.

5. The deep learning model training method according to any one of claims 2 to 4, characterized in that: The deep learning model also includes a Classifier model, and the method further includes: Inputting the target summary text into the Classifier model to determine the type of the target summary text, wherein the type of the target summary text includes a machine-generated summary text and a manually-generated summary text; If the target summary text is a machine-generated summary text and is determined to be a manually generated summary text by the Classifier model, then the parameters of the Classifier model are updated by adopting a gradient reversal method; If the target summary text is a manually generated summary text and is determined to be a machine-generated summary text by the Classifier model, the parameters of the first BiRNN+Attention model, the first BERT model, and the Classifier model are updated by using a gradient reversal method.

6. A deep learning model calling method, characterized in that: The deep learning model is a deep learning model trained by the deep learning model training method according to any one of claims 1 to 5, and the deep learning model calling method includes: Obtaining voice data to be processed; Encoding the voice data to generate encoded audio data corresponding to the voice data; The encoded audio data corresponding to the speech data is input into a trained deep learning model, and a summary text corresponding to the speech data is output.

7. A deep learning model training device, characterized in that: include: A first encoding module, used to encode the sample speech data to generate encoded audio data; A first generating module, configured to input the encoded audio data into a preset deep learning model for training, convert the encoded audio data into fully implicit text data, and generate a summary text corresponding to the fully implicit text data; A data reconstruction module, used to reconstruct the full implicit text data of the summary text, perform the reverse operation of generating the summary text, obtain the corresponding full implicit text data from the summary text, use the full implicit text data corresponding to the summary text as the reconstructed text data, and convert the reconstructed text data into audio data to generate reconstructed audio data; A parameter adjustment module, used to adjust the parameters of the deep learning model based on the reconstructed text data and the reconstructed audio data until the deep learning model converges to obtain the trained deep learning model; The deep learning model includes a first BiRNN+Attention model, and the first generation module is further used for: The encoded audio data is input into a first BiRNN+Attention model, and the fully implicit text data is output through the first BiRNN+Attention model.

8. A deep learning model calling device, characterized in that: The method comprises the deep learning model training device as claimed in claim 7, and further comprising: An acquisition module, used to acquire voice data to be processed; A second encoding module, used to encode the voice data to generate encoded audio data corresponding to the voice data; The second generation module is used to input the encoded audio data corresponding to the speech data into a trained deep learning model, and output the summary text corresponding to the speech data.

9. A computer device, characterized in that: The computer device includes a memory and a processor; The memory is used to store computer programs; The processor is used to execute the computer program and implement the deep learning model training method as described in any one of claims 1 to 5, or implement the deep learning model calling method as described in claim 6 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed by a processor, enables the processor to implement the deep learning model training method as described in any one of claims 1 to 5, or implement the deep learning model calling method as described in claim 6.