A speech event extraction method based on deep learning classification combination
Through the combination of deep learning convolutional neural network and continuity processing algorithm, the problem of poor performance and fragmentation of traditional speech event extraction under noise and interference conditions is solved, and more sensitive and accurate speech event extraction is achieved.
Patent Information
- Application Number
- CN202111071917.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-14
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-09-14
AI Technical Summary
Traditional speech event extraction methods have poor results under conditions of strong noise, strong interference and signal attenuation, and can easily lead to too fragmented speech events and unsatisfactory extraction results.
A classification combination method based on deep learning is used to preprocess and feature extract the speech signal, use the deep learning convolutional neural network model for prediction and classification, and combine the continuity processing algorithm to combine intermittent speech events into complete events.
It improves the sensitivity and anti-noise ability of speech event extraction, reduces the fragmentation of speech events, ensures the authenticity and extraction effect of speech signals, and can effectively extract speech events even under weak signal conditions.
Smart Images

Figure CN113961676B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of voice event extraction, and in particular to a voice event extraction method based on deep learning classification combination. Background Art
[0002] Traditional speech event extraction methods and general deep learning target detection methods have good results when the speech is clear and the noise is very weak, but the results are often unsatisfactory under complex conditions such as strong noise, strong interference, and signal attenuation. At the same time, in speech event extraction, due to the change in speech strength or signal interference, the speech event extraction will be too fragmented and the extraction effect is not ideal. Summary of the invention
[0003] The present invention aims to provide a voice event extraction method based on deep learning classification combination to solve the above-mentioned technical problems.
[0004] The present invention provides a method for extracting speech events based on deep learning classification combination, comprising the following steps:
[0005] Step S10, preprocessing the speech signal file used for training to obtain a training speech sample file and a sample label, and making the training speech sample file and the sample label into a training data set;
[0006] Step S20, using the training data set to train the deep learning convolutional neural network model;
[0007] Step S30, preprocessing the speech signal file to be predicted to obtain a data set to be predicted including a number of speech image sample files to be predicted;
[0008] Step S40, inputting the data set to be predicted into the trained deep learning convolutional neural network model for prediction classification, obtaining a number of classification results, and splicing the classification results into a feature vector;
[0009] Step S50, performing continuity processing on the feature vector to obtain position information of the speech event, and then extracting the speech event from the original speech signal file to be predicted according to the position information of the speech event.
[0010] Furthermore, the method of preprocessing the speech signal file for training in step S10 includes:
[0011] Step S11, performing short-time Fourier transform on the speech signal file used for training to obtain a training time-frequency matrix;
[0012] Step S12, mapping the training time-frequency matrix onto the image to generate a training signal speech sample;
[0013] Step S13, segmenting the training signal speech graph sample to obtain a plurality of training speech graph sample files;
[0014] Step S14, performing binary classification according to whether there is a speech event in the training speech graph sample file, and making a sample label according to the classification result;
[0015] Step S15, associate and map the training speech-graph sample files and sample labels to produce a training data set.
[0016] Furthermore, the processing of using the training data set to train the deep learning convolutional neural network model in step S20 includes:
[0017] Step S21, inputting the training data set into the deep learning convolutional neural network model;
[0018] Step S22, using convolution kernels of four scales to extract features and standardize the input training data set to obtain a first feature matrix;
[0019] Step S23, superimposing and pooling the first feature matrix, and extracting features from the pooling result using 256 convolution kernels to obtain a second feature matrix;
[0020] Step S24, extracting features from the second feature matrix using convolution kernels of four scales and standardizing the features to obtain a third feature matrix;
[0021] Step S25, superimposing and pooling the third feature matrix, and extracting features from the pooling result using 512 convolution kernels to obtain a fourth feature matrix;
[0022] Step S26, using convolution kernels of four scales to perform feature extraction and standardization on the fourth feature matrix to obtain a fifth feature matrix;
[0023] Step S27, superimposing and pooling the fifth feature matrix, and using 512 convolution kernels to perform feature extraction on the pooling result to obtain a sixth feature matrix;
[0024] Step S28, flattening the sixth characteristic matrix and fully connecting it to the characteristic vector with a length of 1, and performing nonlinear processing;
[0025] Step S29, the processing process of steps S21 to S28 is trained using a loss function, and the training is stopped after the loss value converges to obtain a trained deep learning convolutional neural network model.
[0026] Furthermore, the method for preprocessing the speech signal file to be predicted in step S30 includes:
[0027] Step S31, performing short-time Fourier transform on the speech signal file to be predicted to obtain a time-frequency matrix to be predicted;
[0028] Step S32, mapping the time-frequency matrix to be predicted onto the picture to generate a speech graph sample of the signal to be predicted;
[0029] Step S33, segmenting the speech graph sample of the signal to be predicted to obtain a number of speech graph sample files to be predicted;
[0030] Step S34: taking a number of speech-graph sample files to be predicted as data sets to be predicted.
[0031] Furthermore, in step S40, the process of inputting the to-be-predicted data set into the trained deep learning convolutional neural network model for prediction and classification includes:
[0032] Step S41, inputting the data set to be predicted into the deep learning convolutional neural network model;
[0033] Step S42, using four scales of convolution kernels to extract and standardize features of each speech-image sample file to be predicted in the prediction data set, to obtain a seventh feature matrix;
[0034] Step S43, superimposing and pooling the seventh feature matrix, and extracting features from the pooling result using 256 convolution kernels to obtain an eighth feature matrix;
[0035] Step S44, using convolution kernels of four scales to perform feature extraction and standardization on the eighth feature matrix to obtain a ninth feature matrix;
[0036] Step S45, superimposing and pooling the ninth feature matrix, and extracting features from the pooling result using 512 convolution kernels to obtain a tenth feature matrix;
[0037] Step S46, using convolution kernels of four scales to perform feature extraction and standardization on the tenth feature matrix to obtain an eleventh feature matrix;
[0038] Step S47, superimposing and pooling the eleventh feature matrix, and extracting features from the pooling result using 512 convolution kernels to obtain a twelfth feature matrix;
[0039] Step S48, flattening the twelfth feature matrix and fully connecting it to a feature vector with a length of 1, and performing nonlinear processing to obtain a classification result of each speech and image sample file to be predicted;
[0040] Step S49, concatenating the classification results obtained from each speech-graph sample file to be predicted into a feature vector.
[0041] Furthermore, the method for performing continuity processing on the feature vector in step S50 includes:
[0042] Step S51, setting the eigenvalues in the eigenvector greater than or equal to the classification threshold a to 1, and setting the eigenvalues less than the classification threshold a to 0, and obtaining a first eigenprocessing vector after processing;
[0043] Step S52, based on the changes of 0 and 1 in the first feature processing vector, a signal position determination method is used to determine the preliminary area of the voice event;
[0044] Step S53, processing the first feature processing vector using a breakpoint position supplementation method according to the preliminary region of the voice event to obtain a second feature processing vector;
[0045] Step S54, processing the second feature processing vector using a region connection method according to the preliminary region of the speech signal to obtain a third feature processing vector;
[0046] Step S55: Use a signal position determination method to determine the specific area of the voice event for the third feature processing vector.
[0047] Furthermore, the length of each training speech graph sample file is equal.
[0048] Furthermore, the lengths of each speech graph sample file to be predicted are equal.
[0049] Furthermore, the length of each training speech graph sample file and the length of the speech graph sample file to be predicted are equal.
[0050] Furthermore, if the length of the training speech-graph sample file and / or the speech-graph sample file to be predicted is insufficient, zero padding is performed.
[0051] In summary, due to the adoption of the above technical solution, the beneficial effects of the present invention are:
[0052] 1. The present invention uses a deep learning binary classification processing method. Through segmentation processing and deep learning classification prediction, its receptive field is larger, it is more sensitive to voice events, and has strong noise resistance. Even if the voice signal is weak, it will have a good effect. In addition, the present invention uses a continuity algorithm for processing. The continuity algorithm does not participate in training and can better solve the problem of voice event fragmentation. When the voice signal is disturbed, the voice event is in an intermittent state. The continuity algorithm can combine these intermittent voice events together as a voice event for extraction.
[0053] 2. The deep learning convolutional neural network model of the present invention has a simple structure and is easier to train, with small amount of calculation and less time consumption.
[0054] 3. The file size of the speech-image sample input into the deep learning convolutional neural network model of the present invention is not compressed or stretched, thereby ensuring the authenticity of the speech event. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0056] Figure 1 The figure is an overall flow chart of a method for extracting voice events based on deep learning classification combination according to an embodiment of the present invention.
[0057] Figure 2 The present invention is a flowchart of preprocessing a speech signal file for training according to an embodiment of the present invention.
[0058] Figure 3 This is a structural diagram of a deep learning convolutional neural network model according to an embodiment of the present invention.
[0059] Figure 4 This is a flow chart of preprocessing and predicting and classifying a speech signal file to be predicted according to an embodiment of the present invention.
[0060] Figure 5 The flowchart of the embodiment of the present invention is to carry out continuity processing of feature vectors and extract speech events. DETAILED DESCRIPTION
[0061] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.
[0062] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0063] Example
[0064] like Figure 1 As shown, this embodiment proposes a voice event extraction method based on deep learning classification combination, comprising the following steps:
[0065] Step S10, preprocessing the speech signal file used for training to obtain a training speech sample file and a sample label, and making the training speech sample file and the sample label into a training data set, such as Figure 2 As shown, it specifically includes the following sub-steps:
[0066] Step S11, performing short-time Fourier transform on the speech signal file used for training to obtain a training time-frequency matrix;
[0067] Step S12, mapping the training time-frequency matrix onto the image to generate a training signal speech sample;
[0068] Step S13, the training signal speech graph sample is segmented to obtain a plurality of training speech graph sample files; the length of each training speech graph sample file is W, W is a positive integer, and W=512 is taken in this embodiment; further, the training speech graph sample files whose length is less than W are padded with 0 until the length is W=512;
[0069] Step S14, performing binary classification according to whether there is a speech event in the training speech graph sample file, and making a sample label according to the classification result;
[0070] Step S15, associate and map the training speech-graph sample files and sample labels to produce a training data set.
[0071] Step S20, using the training data set to train the deep learning convolutional neural network model; the deep learning convolutional neural network model constructed in this embodiment is as follows Figure 3 As shown, step S20 includes the following sub-steps:
[0072] Step S21, inputting the training data set into the deep learning convolutional neural network model; the size of the training speech and image sample file in the training data set is 256×512×3;
[0073] Step S22, using 64 3×3 convolution kernels to extract features from the input training data set and standardize the features to obtain a first feature matrix;
[0074] Step S23, superimposing and pooling the first feature matrix, and extracting features from the pooling result using 256 convolution kernels to obtain a second feature matrix;
[0075] Step S24, extracting features from the second feature matrix using 256 3×3 convolution kernels and standardizing the features to obtain a third feature matrix;
[0076] Step S25, superimposing and pooling the third feature matrix, and extracting features from the pooling result using 512 convolution kernels to obtain a fourth feature matrix;
[0077] Step S26, using 512 3×3 convolution kernels to perform feature extraction and standardization on the fourth feature matrix to obtain a fifth feature matrix;
[0078] Step S27, superimposing and pooling the fifth feature matrix, and using 512 convolution kernels to perform feature extraction on the pooling result to obtain a sixth feature matrix;
[0079] Step S28, flattening the sixth characteristic matrix and fully connecting it to the characteristic vector with a length of 1, and performing nonlinear processing;
[0080] Step S29, the processing of step S21 to step S28 is trained using a loss function, and the training is stopped after the loss value converges (the loss value is less than a preset threshold value, which is convergence, and the preset threshold value can generally be 0.02), and a trained deep learning convolutional neural network model is obtained. Among them, the loss function can select a commonly used loss function, such as the MAE loss function. The deep learning convolutional neural network model has a simple structure and is easier to train, with a small amount of calculation and less time consumption. It also uses a deep learning binary classification processing method. Through segmentation processing and deep learning classification prediction, its receptive field is larger, it is more sensitive to voice events, and has strong noise resistance. Even if the voice signal is weak, it will have a good effect; in addition, the size of the speech image sample file input into the deep learning convolutional neural network model has not been compressed or stretched, which ensures the authenticity of the voice event.
[0081] Step S30, preprocessing the speech signal file to be predicted to obtain a number of speech graph sample files to be predicted; the preprocessing in step S30 is similar to step S10, and specifically includes the following sub-steps:
[0082] Step S31, performing short-time Fourier transform on the speech signal file to be predicted to obtain a time-frequency matrix to be predicted;
[0083] Step S32, mapping the time-frequency matrix to be predicted onto the picture to generate a speech graph sample of the signal to be predicted;
[0084] Step S33, the speech graph samples of the signal to be predicted are segmented to obtain a number of speech graph sample files to be predicted; similarly, the length of each speech graph sample file to be predicted is also W, W is a positive integer, W=512; further, for the speech graph sample files to be predicted whose length is less than W, 0 is added until the length is W=512;
[0085] Step S34: taking a number of speech-graph sample files to be predicted as data sets to be predicted.
[0086] Step S40, input the data set to be predicted into the trained deep learning convolutional neural network model for prediction and classification, obtain several classification results, and splice the classification results into a feature vector; Figure 4 As shown, it specifically includes the following sub-steps:
[0087] Step S41, inputting the data set to be predicted into the deep learning convolutional neural network model; the size of the speech-image sample file to be predicted in the data set to be predicted is 256×512×3, indicating a three-channel speech-image sample file to be predicted with a length of 512 and a height of 256;
[0088] Step S42, using 64 3×3 convolution kernels to extract features from each speech image sample file to be predicted and normalizing the features to obtain a seventh feature matrix;
[0089] Step S43, superimposing and pooling the seventh feature matrix, and extracting features from the pooling result using 256 convolution kernels to obtain an eighth feature matrix;
[0090] Step S44, using 256 3×3 convolution kernels to perform feature extraction and standardization on the eighth feature matrix to obtain a ninth feature matrix;
[0091] Step S45, superimposing and pooling the ninth feature matrix, and extracting features from the pooling result using 512 convolution kernels to obtain a tenth feature matrix;
[0092] Step S46, using 512 3×3 convolution kernels to perform feature extraction and standardization on the tenth feature matrix to obtain an eleventh feature matrix;
[0093] Step S47, superimposing and pooling the eleventh feature matrix, and extracting features from the pooling result using 512 convolution kernels to obtain a twelfth feature matrix;
[0094] Step S48, flattening the twelfth feature matrix and fully connecting it to a feature vector with a length of 1, and performing nonlinear processing to obtain a classification result of each speech and image sample file to be predicted;
[0095] Step S49, the classification results obtained from each speech graph sample file to be predicted are spliced into a feature vector, wherein splicing refers to splicing in the order of the original segmentation processing.
[0096] Step S50, performing continuity processing on the feature vector to obtain the position information of the speech event, and then extracting the speech event from the speech signal file to be predicted according to the position information of the speech event. Figure 5 As shown, it specifically includes the following sub-steps:
[0097] Step S51, setting the eigenvalues in the eigenvector greater than or equal to the classification threshold a to 1, and setting the eigenvalues less than the classification threshold a to 0, and obtaining a first eigenprocessing vector after processing;
[0098] Step S52, based on the changes of 0 and 1 in the first feature processing vector, a signal position determination method is used to determine the preliminary area of the voice event;
[0099] Step S53, processing the first feature processing vector by using the breakpoint position supplementation method according to the preliminary region of the voice event to obtain the second feature processing vector: judging the feature value of the preliminary region of the voice event in the first feature processing vector, when the distance between the preliminary regions of the two voice events is less than the first distance threshold K1 and the feature values in the preliminary regions of the two voice events are both greater than the feature value threshold b, setting the positions corresponding to the preliminary regions of the two voice events in the first feature processing vector to 1, thereby obtaining the second feature processing vector;
[0100] Step S54, processing the second feature processing vector by using a region connection method according to the preliminary region of the speech signal to obtain a third feature processing vector: in the second feature processing vector, when the lengths of the preliminary regions of two adjacent speech events are both greater than a length threshold J and the lengths of the preliminary regions of two adjacent speech events are greater than J and the distance between the preliminary regions of the two speech events is less than a second distance threshold K2, the preliminary regions of the two adjacent speech events are connected to obtain a third feature processing vector;
[0101] Step S55, use the signal position judgment method to judge the position information of the voice event on the third feature processing vector, and then extract the voice event from the original voice signal file to be predicted based on the position information of the voice event: the position with the feature value of 1 in the third feature processing vector indicates that there is a voice event, and the position with the feature value of 0 indicates that there is no voice event. The starting position and the ending position of the voice event can be judged through the position with the feature value of 1, and the voice event can be extracted from the original voice signal file to be predicted based on the starting position and the ending position of the voice event.
[0102] In the traditional deep learning speech recognition method, due to the influence of noise and interference, the speech signal often has obvious changes in strength, so that in the process of speech event extraction, a speech event will be split into multiple speech events, thereby generating a large number of speech event fragments, making the speech event extraction effect unsatisfactory. In this step S50, a continuity algorithm is used for processing. The continuity algorithm does not participate in training and can better solve the problem of speech event fragmentation. When the speech signal is disturbed, the speech event is in an intermittent state. The continuity algorithm can combine these intermittent speech events together as a speech event for extraction.
[0103] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for extracting speech events based on deep learning classification combination, characterized in that: The steps include: Step S10, preprocessing the speech signal file used for training to obtain a training speech sample file and a sample label, and making the training speech sample file and the sample label into a training data set; Step S20, using the training data set to train the deep learning convolutional neural network model; Step S30, preprocessing the speech signal file to be predicted to obtain a data set to be predicted including a number of speech image sample files to be predicted; Step S40, inputting the data set to be predicted into the trained deep learning convolutional neural network model for prediction classification, obtaining a number of classification results, and splicing the classification results into a feature vector; Step S50, performing continuity processing on the feature vector to obtain position information of the speech event, and then extracting the speech event from the original speech signal file to be predicted according to the position information of the speech event; The method for preprocessing the speech signal file for training in step S10 includes: Step S11, performing short-time Fourier transform on the speech signal file used for training to obtain a training time-frequency matrix; Step S12, mapping the training time-frequency matrix onto the image to generate a training signal speech sample; Step S13, segmenting the training signal speech graph sample to obtain a plurality of training speech graph sample files; Step S14, performing binary classification according to whether there is a speech event in the training speech graph sample file, and making a sample label according to the classification result; Step S15, mapping the training speech-image sample files and sample labels into a training data set; The process of using the training data set to train the deep learning convolutional neural network model in step S20 includes: Step S21, inputting the training data set into the deep learning convolutional neural network model; Step S22, using convolution kernels of four scales to extract features and standardize the input training data set to obtain a first feature matrix; Step S23, superimposing and pooling the first feature matrix, and extracting features from the pooling result using 256 convolution kernels to obtain a second feature matrix; Step S24, extracting features from the second feature matrix using convolution kernels of four scales and standardizing the features to obtain a third feature matrix; Step S25, superimposing and pooling the third feature matrix, and extracting features from the pooling result using 512 convolution kernels to obtain a fourth feature matrix; Step S26, using convolution kernels of four scales to perform feature extraction and standardization on the fourth feature matrix to obtain a fifth feature matrix; Step S27, superimposing and pooling the fifth feature matrix, and using 512 convolution kernels to perform feature extraction on the pooling result to obtain a sixth feature matrix; Step S28, flattening the sixth characteristic matrix and fully connecting it to the characteristic vector with a length of 1, and performing nonlinear processing; Step S29, training the processing of steps S21 to S28 using a loss function, stopping the training after the loss value converges, and obtaining a trained deep learning convolutional neural network model; The method for preprocessing the speech signal file to be predicted in step S30 includes: Step S31, performing short-time Fourier transform on the speech signal file to be predicted to obtain a time-frequency matrix to be predicted; Step S32, mapping the time-frequency matrix to be predicted onto the picture to generate a speech graph sample of the signal to be predicted; Step S33, segmenting the speech graph sample of the signal to be predicted to obtain a number of speech graph sample files to be predicted; Step S34, taking a number of speech and image sample files to be predicted as data sets to be predicted; The process of inputting the to-be-predicted data set into the trained deep learning convolutional neural network model for prediction and classification in step S40 includes: Step S41, inputting the data set to be predicted into the deep learning convolutional neural network model; Step S42, using four scales of convolution kernels to extract and standardize features of each speech-image sample file to be predicted in the prediction data set, to obtain a seventh feature matrix; Step S43, superimposing and pooling the seventh feature matrix, and extracting features from the pooling result using 256 convolution kernels to obtain an eighth feature matrix; Step S44, using convolution kernels of four scales to perform feature extraction and standardization on the eighth feature matrix to obtain a ninth feature matrix; Step S45, superimposing and pooling the ninth feature matrix, and extracting features from the pooling result using 512 convolution kernels to obtain a tenth feature matrix; Step S46, using convolution kernels of four scales to perform feature extraction and standardization on the tenth feature matrix to obtain an eleventh feature matrix; Step S47, superimposing and pooling the eleventh feature matrix, and extracting features from the pooling result using 512 convolution kernels to obtain a twelfth feature matrix; Step S48, flattening the twelfth feature matrix and fully connecting it to a feature vector with a length of 1, and performing nonlinear processing to obtain a classification result of each speech and image sample file to be predicted; Step S49, concatenating the classification results obtained from each speech-graph sample file to be predicted into a feature vector; The method for performing continuity processing on the feature vector in step S50 includes: Step S51, setting the eigenvalues in the eigenvector greater than or equal to the classification threshold a to 1, and setting the eigenvalues less than the classification threshold a to 0, and obtaining a first eigenprocessing vector after processing; Step S52, based on the changes of 0 and 1 in the first feature processing vector, a signal position determination method is used to determine the preliminary area of the voice event; Step S53, processing the first feature processing vector using a breakpoint position supplementation method according to the preliminary region of the voice event to obtain a second feature processing vector; Step S54, processing the second feature processing vector using a region connection method according to the preliminary region of the speech signal to obtain a third feature processing vector; Step S55: Use a signal position determination method to determine the specific area of the voice event for the third feature processing vector.
2. The method for extracting speech events based on deep learning classification combination according to claim 1, characterized in that: The length of each training speech graph sample file is equal.
3. The method for extracting speech events based on deep learning classification combination according to claim 2, characterized in that: The length of each speech graph sample file to be predicted is equal.
4. The method for extracting speech events based on deep learning classification combination according to claim 3, characterized in that: The lengths of each training speech graph sample file and the speech graph sample file to be predicted are equal.
5. The method for extracting speech events based on deep learning classification combination according to claim 4, characterized in that: If the length of the training speech-graph sample file and / or the speech-graph sample file to be predicted is insufficient, zero padding is performed.
Citation Information
Patent Citations
Deep neural network-based multi-task speech classification method
CN107578775A
Voice event detection method and device, electronic equipment and computer storage medium
CN112447189A
