Stutter type detection method based on PANNs structure
Through the stuttering type detection method based on the PANNs structure, diversity training data is generated and deep features are extracted using the PANNs-CNN14 model, which solves the problem of stuttering detection that cannot be adapted to multilingual in the existing technology, and achieves the accuracy of audio data in various languages Identification and classification improves the universality and adaptability of the system.
Patent Information
- Application Number
- CN202411194757.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-29
- Publication Date
- 2024-11-15
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing stutter detection method based on ASR model needs to be trained and optimized for specific languages, and cannot adapt to audio data in various languages, resulting in insufficient universality and adaptability of the system.
Using the stutter type detection method based on the PANNs structure, the original training data is acquired and transformed, and the training data of diversity is generated, and it is placed into the PANNs-CNN14 model for pre-training, extract deep features and identify audio features, and finally decoded. The output tag completes the classification and identification of stuttering events.
The speech recognition characteristics that do not rely on specific languages are realized, and can adapt to audio data in various languages, improve the universality and adaptability of the system, and accurately identify and classify different types of stuttering events.
Smart Images

Figure CN118969014A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of medical detection technology, and in particular to a stuttering type detection method based on a PANNs structure. Background Art
[0002] Stuttering is a neurodevelopmental language disorder that affects the rhythm and fluency of speech. According to the World Health Organization (WHO), stuttering is characterized by frequent repetitions, prolongation of sounds, syllables or words, and pauses or hesitations that interrupt the fluency of speech. The goal of automatic stuttering event detection (SED) is to detect behaviors such as repetitions, obstructions and prolongations in speech in order to assess the severity of stuttering. With the development of speech technology and artificial intelligence, stuttering event detection has gradually matured, mainly using technologies such as speech signal processing, machine learning and deep learning to achieve the recognition and analysis of stuttering phenomena.
[0003] The prior art discloses a stuttering detection method based on an ASR model. The stuttering event detection method based on an automatic speech recognition (ASR) model detects stuttering events by identifying and analyzing text transcriptions in speech signals. The ASR model first converts speech signals into text, and then detects disfluency by analyzing the fluency and structure of the text. Stuttering events are identified by detecting repeated words, long pauses, and non-standard pronunciations in speech.
[0004] However, using the above method, since the ASR model usually needs to be trained and optimized for a specific language, it needs to rely on the speech recognition characteristics of the specific language, which makes it impossible to adapt to audio data in various languages. Summary of the invention
[0005] The purpose of the present invention is to provide a stuttering type detection method based on a PANNs structure, which achieves speech recognition characteristics that are independent of a specific language, can adapt to audio data in various languages, and improves the versatility and adaptability of the system.
[0006] To achieve the above object, the present invention provides a stuttering type detection method based on a PANNs structure, comprising:
[0007] Obtain the original training data and perform various transformations to generate diverse training data;
[0008] The diverse training data is placed into the PANNs-CNN14 model to pre-train the PANNs-CNN14 model;
[0009] Extract deep features of sound based on the pre-trained PANNs-CNN14 model and identify different audio features;
[0010] The PANNs-CNN14 model output is decoded to output labels, and specific stuttering event labels are obtained to complete the classification and identification of stuttering events.
[0011] The specific steps of obtaining the original training data and performing various transformation processes to generate diverse training data include:
[0012] Audio data enhancement is performed by applying various transformations on the spectrogram to obtain enhanced audio data;
[0013] In the acquired augmented audio data, a music sample file is randomly selected from the MUSAN dataset and added to the original clean stuttering speech sample;
[0014] Adjust the signal-to-noise ratio of the original clean stuttering speech sample, and trim or repeat the music sample file according to the actual situation to match the duration of the stuttering speech sample;
[0015] The signal from the MUSAN noise sample is added once per second to the stuttered speech;
[0016] Set the signal-to-noise ratio of the added noise samples to simulate different noise environments;
[0017] The clean stuttering speech samples are convolved with the simulated room impulse response to increase the reverberation effect of the audio to simulate the speech characteristics in different room environments and generate diverse training data.
[0018] The signal-to-noise ratio of the original clean stuttering speech sample is adjusted to a range of 5 to 10 dB.
[0019] The signal-to-noise ratio of the noise sample is set in a range of 0 to 15 dB.
[0020] The specific steps of extracting the deep features of the sound based on the pre-trained PANNs-CNN14 model and identifying different audio features include:
[0021] The stuttering sound is obtained based on the pre-trained PANNs-CNN14 model. The CNN consists of multiple convolutional layers, each of which contains multiple kernels. These kernels are convolved with the input feature map to capture its local pattern. The logarithmic Mel spectrogram is used as input. The spectrogram is calculated by applying the short-time Fourier transform (STFT) to the time domain waveform.
[0022] A Mel filter bank is applied to the spectrogram and logarithm operation is performed to extract the log-Mel spectrogram.
[0023] Through the 6 convolutional layers contained in the PANNs-CNN14 model, global pooling is applied after the last convolutional layer to summarize the feature map into a fixed-length vector;
[0024] Combining the advantages of average pooling and maximum pooling, the average vector and the maximum vector are added to obtain a fixed-length vector;
[0025] After obtaining the fixed-length vector, add a fully connected layer to further extract features and increase representation capabilities;
[0026] Identify and classify different stuttering types through the PANNs-CNN14 model.
[0027] The PANNs-CNN14 model contains 6 convolutional layers, each convolutional block consists of 2 convolutional layers, and the convolution kernel size is 3×3.
[0028] The specific steps of decoding the PANNs-CNN14 model output to output a label, obtaining a specific stuttering event label, and completing the classification and identification of the stuttering event include:
[0029] Get the output probability matrix from the PANNs-CNN14 model;
[0030] Set a threshold to convert probabilities into binary labels;
[0031] After threshold processing, each time step is marked as a stuttering event occurring or not occurring, forming a label sequence for the entire audio clip;
[0032] Post-process the preliminary labels to eliminate noise and redundancy and obtain the final label sequence;
[0033] The probability distribution output by the PANNs-CNN14 model is effectively converted into specific stuttering event labels to complete the classification and identification of stuttering events.
[0034] The invention discloses a stuttering type detection method based on a PANNs structure, which obtains original data for various transformations and processing to generate new data samples to increase the diversity of training data, and places the trained diversity data into a PANNs-CNN14 model to obtain a data model framework for stuttering detection, extracts deep features of sound based on a pre-trained PANNs-CNN14 model, accurately identifies and classifies different stuttering types, decodes and converts the PANNs-CNN14 model output into a binary label, obtains a specific stuttering event label, completes the classification and identification of stuttering events, achieves a speech recognition feature that is not dependent on a specific language, can adapt to audio data in various languages, and improves the versatility and adaptability of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art are briefly introduced below.
[0036] Figure 1 It is a flow chart of a stuttering type detection method based on a PANNs structure of the present invention.
[0037] Figure 2 It is a flowchart of the present invention for obtaining original training data and performing various transformation processes to generate training data with diversity.
[0038] Figure 3 This is a flowchart of the present invention for extracting deep features of sound and identifying different audio features based on a pre-trained PANNs-CNN14 model.
[0039] Figure 4 This is a flowchart of the present invention for decoding the PANNs-CNN14 model output to output a label, obtaining a specific stuttering event label, and completing the classification and identification of the stuttering event.
[0040] Figure 5 This is a structural diagram of the PANNs-CNN14 model of the present invention. DETAILED DESCRIPTION
[0041] See also Figure 1-Figure 5 ,in, Figure 1 is a flow chart of a stuttering type detection method based on a PANNs structure of the present invention, Figure 2 It is a flowchart of the present invention for obtaining original training data and performing various transformation processes to generate training data with diversity. Figure 3 This is a flowchart of the present invention for extracting deep features of sound and identifying different audio features based on the pre-trained PANNs-CNN14 model. Figure 4 The present invention decodes the PANNs-CNN14 model output to output a label, obtains a specific stuttering event label, and completes the flow chart of classifying and identifying stuttering events. Figure 5 This is a structural diagram of the PANNs-CNN14 model of the present invention.
[0042] The present invention provides a stuttering type detection method based on a PANNs structure, comprising:
[0043] S1 obtains the original training data and performs various transformations to generate diverse training data;
[0044] The specific steps include:
[0045] S11 performs audio data enhancement by applying various transformations on the spectrogram to obtain enhanced audio data;
[0046] A method of data augmentation by applying various transformations to the spectrogram (i.e., the time-frequency representation of the speech signal), randomly selecting an interval on the time axis or frequency axis of the spectrogram, and setting the values in the interval to zero or other constant values to simulate missing data in different time periods or frequency bands.
[0047] S12 randomly selects a music sample file from the MUSAN dataset in the acquired augmented audio data and adds it to the original clean stuttering speech sample;
[0048] A music sample file is randomly selected from the MUSAN dataset and added to the original clean stuttering speech sample for music injection.
[0049] S13 adjusts the signal-to-noise ratio of the original clean stuttering speech sample, and trims or repeats the music sample file according to actual conditions to match the duration of the stuttering speech sample;
[0050] Adjust the signal-to-noise ratio (SNR) between 5 and 15 dB, trimming or repeating the music sample file if necessary to match the duration of the stuttered speech sample.
[0051] S14 adds a signal from MUSAN noise samples once per second to the stuttered speech;
[0052] Noise injection was performed by adding a signal from MUSAN noise samples once per second to the stuttered speech.
[0053] S15 sets the signal-to-noise ratio of the added noise samples to simulate different noise environments;
[0054] The signal-to-noise ratio was set between 0 and 15 dB during noise injection to simulate different noise environments.
[0055] S16 convolves clean stuttering speech samples with simulated room impulse responses to increase the reverberation effect of the audio to simulate speech characteristics in different room environments and generate diverse training data;
[0056] The clean stuttering speech samples are convolved with the simulated room impulse response to increase the reverberation effect of the audio to simulate the speech characteristics in different room environments, and finally the trained model data is obtained.
[0057] S2 puts the diverse training data into the PANNs-CNN14 model to pre-train the PANNs-CNN14 model;
[0058] The diverse training data is placed into the PANNs-CNN14 model to expand the database, and then audio data training is performed based on the PANNs-CNN14 model.
[0059] S3 extracts deep features of sound based on the pre-trained PANNs-CNN14 model and identifies different audio features;
[0060] The specific steps include:
[0061] S31 obtains stuttering sounds based on the pre-trained PANNs-CNN14 model. The CNN consists of multiple convolutional layers, each of which contains multiple kernels that are convolved with the input feature map to capture its local pattern. The log-Mel spectrogram is used as input and the spectrogram is calculated by applying the short-time Fourier transform (STFT) to the time domain waveform.
[0062] The implementation is based on the pre-trained PANNs-CNN14 model. CNN consists of multiple convolutional layers, each of which contains multiple kernels that are convolved with the input feature map to capture its local pattern. CNN usually uses log-Mel spectrogram as input, and the spectrogram is calculated by applying the short-time Fourier transform (STFT) to the time domain waveform.
[0063] S32 applies a Mel filter bank to the spectrogram and performs a logarithmic operation to extract a logarithmic Mel spectrogram;
[0064] A Mel filter bank is applied to the spectrogram and logarithm operation is performed to extract the log-Mel spectrogram.
[0065] S33 passes through the 6 convolutional layers contained in the PANNs-CNN14 model. After the last convolutional layer, global pooling is applied to summarize the feature map into a fixed-length vector;
[0066] The PANNs-CNN14 model contains 6 convolutional layers, each convolutional block consists of 2 convolutional layers, the convolution kernel size is 3×3, batch normalization is applied between convolutional blocks to stabilize and accelerate the training process, and ReLU nonlinear function is used for activation. After each convolutional block, 2×2 average pooling is applied for downsampling. Studies have shown that 2×2 average pooling outperforms 2×2 maximum pooling in performance. After the last convolutional layer, global pooling is applied to summarize the feature map into a vector of fixed length.
[0067] S34 combines the advantages of average pooling and maximum pooling, adding the average vector and the maximum vector to obtain a fixed-length vector;
[0068] Apply global pooling to summarize the feature map into a fixed-length vector. This combines the advantages of average pooling and maximum pooling, adding the average vector and the maximum vector to get a fixed-length vector.
[0069] After S35 obtains the fixed-length vector, a fully connected layer is added to further extract features and increase the representation capability;
[0070] After the fixed-length vector, a fully connected layer is added to further extract embedding features and enhance the representation ability.
[0071] S36 Identify and classify different stuttering types through the PANNs-CNN14 model;
[0072] With this improved network structure and data processing method, the PANNs-CNN14 model performs well in the stuttering event detection task and can more accurately identify and classify different types of stuttering;
[0073] S4 decodes the PANNs-CNN14 model output to output a label, obtains a specific stuttering event label, and completes the classification and identification of the stuttering event;
[0074] The specific steps include:
[0075] S41 obtains the output probability matrix from the PANNs-CNN14 model;
[0076] The output probability matrix is obtained from the PANNs-CNN14 model. After processing the input speech segment, the model outputs a probability matrix, where each row represents a time step and each column represents the probability value of a stuttering event category. For example, the shape of the output matrix is (T, C), where T is the number of time steps and C is the number of stuttering event categories.
[0077] S42 sets a threshold and converts the probability into a binary label;
[0078] Set a threshold to convert the probability into a binary label. According to actual needs, set a threshold for each stuttering event category. For example, the threshold can be set to 0.5. If the probability value of a category is greater than 0.5, it is considered that a stuttering event of this category has occurred at this time step.
[0079] After threshold processing, S43 marks each time step as a stuttering event occurring or not occurring, forming a label sequence of the entire audio clip;
[0080] After thresholding, each time step will be labeled as a stuttering event occurring or not occurring. The labels of multiple time steps constitute the label sequence of the entire audio segment.
[0081] S44 performs post-processing on the preliminary labels to eliminate noise and redundancy and obtain the final label sequence;
[0082] The preliminary labels are post-processed to eliminate noise and redundancy to obtain the final label sequence. The post-processing steps mainly include noise elimination and redundancy processing. The noise elimination step aims to remove short-term false positives, while the redundancy processing step merges adjacent identical labels.
[0083] S45 effectively converts the probability distribution output by the PANNs-CNN14 model into specific stuttering event labels to complete the classification and identification of stuttering events;
[0084] The probability distribution output by the PANNs-CNN14 model is effectively converted into specific stuttering event labels, thereby realizing the classification and identification of stuttering events and achieving rapid analysis of stuttering types.
[0085] The present invention discloses a stuttering type detection method based on a PANNs structure, which performs data enhancement by applying various transformations to a spectrogram (i.e., a time-frequency representation of a speech signal), randomly selects an interval on the time axis or frequency axis of the spectrogram, sets the value in the interval to zero or other constant values, simulates missing data in different time periods or frequency segments, randomly selects a music sample file from the MUSAN data set, and adds it to the original clean stuttering speech sample for music injection, adjusts the signal-to-noise ratio (SNR) between 5 and 15 dB, trims or repeats the music sample file when necessary to match the duration of the stuttering speech sample, adds a signal from a MUSAN noise sample to the stuttering speech once per second for noise injection, and sets the signal-to-noise ratio between 0 and 15 dB during noise injection to simulate different noise environments, convolves the clean stuttering speech sample with a simulated room impulse response, and increases the reverberation effect of the audio to simulate The speech characteristics in different room environments are used to adapt the trained model data. Finally, the trained model data is obtained. The adaptation is based on the pre-trained PANNs-CNN14 model. CNN consists of multiple convolutional layers, each of which contains multiple kernels. These kernels are convolved with the input feature map to capture its local pattern. CNN usually uses log-Mel spectrogram as input. The spectrogram is calculated by applying the short-time Fourier transform (STFT) to the time domain waveform, and the Mel filter group is applied to the spectrogram. Logarithmic operations are performed to extract the log-Mel spectrogram. The PANNs-CNN14 model contains 6 convolutional layers, each convolutional block consists of 2 convolutional layers, and the convolution kernel size is 3×3. Batch normalization is applied between convolutional blocks to stabilize and accelerate the training process, and ReLU nonlinear function is used for activation. After each convolutional block, 2×2 average pooling is applied. Pooling) is used for downsampling. Studies have shown that 2×2 average pooling is better than 2×2 maximum pooling in performance. After the last convolutional layer, global pooling is applied to summarize the feature map into a fixed-length vector. Global pooling is applied to summarize the feature map into a fixed-length vector. The advantages of average pooling and maximum pooling are combined here. The average vector and the maximum vector are added to obtain a fixed-length vector. After the fixed-length vector, a fully connected layer is added to further extract embedded features and enhance the representation ability. Through this improved network structure and data processing method, the PANNs-CNN14 model performs well in the stuttering event detection task and can more accurately identify and classify different types of stuttering. The output probability matrix is obtained from the PANNs-CNN14 model. After processing the input speech segment, the model outputs a probability matrix. Each row represents a time step and each column represents the probability value of a stuttering event category. For example, the shape of the output matrix is (T,C), where T is the number of time steps, C is the number of stuttering event categories, and a threshold is set to convert the probability into a binary label. According to actual needs, a threshold is set for each stuttering event category. For example, the threshold can be set to 0.5. If the probability value of a certain category is greater than 0.5, it is considered that a stuttering event of this category has occurred at this time step. After threshold processing, each time step will be marked as a stuttering event that has occurred or not occurred. The labels of multiple time steps constitute the label sequence of the entire audio segment. The preliminary labels are post-processed to eliminate noise and redundancy to obtain the final label sequence. The post-processing steps mainly include noise elimination and redundancy processing. The noise elimination step is intended to remove short-term false alarms, while the redundant processing step merges adjacent identical labels, effectively converting the probability distribution output by the PANNs-CNN14 model into a specific stuttering event label, thereby realizing the classification and recognition of stuttering events, achieving speech recognition characteristics that are not dependent on a specific language, and can adapt to audio data in various languages, improving the versatility and adaptability of the system. ,
[0086] What is disclosed above is only one or more preferred embodiments of the present application, and cannot be used to limit the scope of rights of the present application. Ordinary technicians in this field can understand that all or part of the processes of implementing the above embodiments and equivalent changes made according to the claims of the present application are still within the scope covered by the present application.
Claims
1. A stuttering type detection method based on PANNs structure, characterized in that: include: Obtain the original training data and perform various transformations to generate diverse training data; The diverse training data is placed into the PANNs-CNN14 model to pre-train the PANNs-CNN14 model; Extract deep features of sound based on the pre-trained PANNs-CNN14 model and identify different audio features; The PANNs-CNN14 model output is decoded to output labels, and specific stuttering event labels are obtained to complete the classification and identification of stuttering events.
2. A stuttering type detection method based on a PANNs structure as claimed in claim 1, characterized in that: The specific steps of obtaining the original training data and performing various transformation processes to generate diverse training data include: Audio data enhancement is performed by applying various transformations on the spectrogram to obtain enhanced audio data; In the acquired augmented audio data, a music sample file is randomly selected from the MUSAN dataset and added to the original clean stuttering speech sample; Adjust the signal-to-noise ratio of the original clean stuttering speech sample, and trim or repeat the music sample file according to the actual situation to match the duration of the stuttering speech sample; The signal from the MUSAN noise sample is added once per second to the stuttered speech; Set the signal-to-noise ratio of the added noise samples to simulate different noise environments; The clean stuttering speech samples are convolved with the simulated room impulse response to increase the reverberation effect of the audio to simulate the speech characteristics in different room environments and generate diverse training data.
3. A stuttering type detection method based on a PANNs structure as claimed in claim 2, characterized in that: The original clean stuttering speech samples are adjusted to a signal-to-noise ratio ranging from 5 to 10 dB.
4. A stuttering type detection method based on a PANNs structure as claimed in claim 3, characterized in that: The noise sample signal-to-noise ratio is set in the range of 0 to 15 dB.
5. A stuttering type detection method based on a PANNs structure as claimed in claim 4, characterized in that: The specific steps of extracting the deep features of the sound based on the pre-trained PANNs-CNN14 model and identifying different audio features include: The stuttering sound is obtained based on the pre-trained PANNs-CNN14 model. The CNN consists of multiple convolutional layers, each of which contains multiple kernels. These kernels are convolved with the input feature map to capture its local pattern. The logarithmic Mel spectrogram is used as input. The spectrogram is calculated by applying the short-time Fourier transform to the time domain waveform. Applying a Mel filter bank to the spectrogram and performing a logarithmic operation to extract a log Mel spectrogram; Through the 6 convolutional layers contained in the PANNs-CNN14 model, global pooling is applied after the last convolutional layer to summarize the feature map into a fixed-length vector; Combining the advantages of average pooling and maximum pooling, the average vector and the maximum vector are added to obtain a fixed-length vector; After obtaining the fixed-length vector, add a fully connected layer to further extract features and increase representation capabilities; Identify and classify different stuttering types through the PANNs-CNN14 model.
6. A stuttering type detection method based on a PANNs structure as claimed in claim 5, characterized in that: The PANNs-CNN14 model contains 6 convolutional layers, each convolutional block consists of 2 convolutional layers, and the convolution kernel size is 3×3.
7. The stuttering type detection method based on the PANNs structure as claimed in claim 6, characterized in that: The specific steps of decoding the PANNs-CNN14 model output to output a label, obtaining a specific stuttering event label, and completing the classification and identification of the stuttering event include: Get the output probability matrix from the PANNs-CNN14 model; Set a threshold to convert probabilities into binary labels; After threshold processing, each time step is marked as a stuttering event occurring or not occurring, forming a label sequence for the entire audio clip; Post-process the preliminary labels to eliminate noise and redundancy and obtain the final label sequence; The probability distribution output by the PANNs-CNN14 model is effectively converted into specific stuttering event labels to complete the classification and identification of stuttering events.
Citation Information
Patent Citations
Voice signal processing method and apparatus
CN105448303A
Processing method and device for voice recognition in vehicle and electronic equipment
CN108022591A
Method for mobile phone source identification in additive noise environment based on constant Q transform domain
CN109285538A
Voice wake-up method based on deep neural network in noise environment
CN114067789A
Deep neural net based filter prediction for audio event classification and extraction
US20160284346A1
