Voice wake-up method, device, storage medium and program product

Through the time-domain convolutional neural network and multi-frame smooth wake-up strategy, the problem of false activation of the voice wake-up system in noisy environments is solved, and efficient, low-power voice wake-up on mobile devices is achieved.

CN112825250BActive Publication Date: 2024-08-30YUTOU TECH HANGZHOU
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN201911142923.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-11-20
Publication Date
2024-08-30
Estimated Expiration
2039-11-20

AI Technical Summary

Technical Problem

Existing voice wake-up systems have poor activation performance in AEC and far-field noisy environments, have high false activations, and are difficult to operate effectively on mobile devices with limited resources.

Method used

The time-domain convolutional neural network (TCNN) recognition model is used to reduce the false activation rate and improve Model robustness.

Benefits of technology

It achieves high-precision, low-latency, and low-memory consumption voice wake-up on resource-constrained devices, reduces the false activation rate, and improves the model's robustness and voice wake-up performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112825250B
    Figure CN112825250B
Patent Text Reader

Abstract

The present invention relates to a voice wake-up method, device, storage medium and program product, the method comprising: obtaining voice information input by a user; extracting acoustic features from the voice information; recognizing the acoustic features according to a pre-trained time-domain convolutional neural network recognition model; and making a decision on the recognition result according to a wake-up strategy to determine whether to wake up. The voice wake-up method of the present invention has low memory consumption, low power consumption, and improves robustness and voice wake-up performance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of human-computer interaction technology, and in particular to a voice wake-up method, device, storage medium and program product. Background Art

[0002] With the development of the Internet of Things and the popularity of smart devices, voice interaction systems are becoming more and more common. As the entry point for voice interaction, voice wake-up technology has become an indispensable function in various devices. Therefore, it is necessary to design a system that can continuously monitor specific wake-up words to start voice input and can run in computing-constrained environments such as modern mobile devices to reduce the latency of communicating with remote servers and ensure information security. This requires the system to have the characteristics of high accuracy, low latency, low memory consumption, and low power consumption.

[0003] At present, the activation performance of conventional voice wake-up systems is poor in AEC and far-field noisy environments. Under the condition that the activation requirements are met, the false activation of the wake-up system is high. The time-domain convolutional neural network (TCNN) has outstanding performance compared with the RNN structure in the fields of audio synthesis, character-level language modeling and Chinese translation, but has not yet been applied to the fields of voice wake-up. Summary of the invention

[0004] The purpose of the present invention is to provide a new voice wake-up method, device, storage medium and program product.

[0005] The purpose of the present invention is achieved by the following technical solutions. According to the voice wake-up method proposed in the present invention, the following steps are included: obtaining voice information input by the user; extracting acoustic features from the voice information; recognizing the acoustic features according to a pre-trained time-domain convolutional neural network recognition model; and making a decision on the recognition result according to the wake-up strategy to determine whether to wake up.

[0006] The purpose of the present invention can be further achieved by adopting the following technical measures.

[0007] In the aforementioned voice wake-up method, extracting acoustic features based on the voice information includes: using LOG-FBANK features.

[0008] The aforementioned voice wake-up method, the recognition of the acoustic features according to the pre-trained time domain convolutional neural network recognition model includes: performing global mean variance normalization processing on each dimension of the acoustic features; extracting local features after passing through the convolution layer; then processing through the TCN layer, the TCN layer is composed of a plurality of TCN blocks stacked, and the TCN blocks are connected using Resnet; then processing through the fully connected layer, and then outputting the recognition result through the excitation function.

[0009] The aforementioned voice wake-up method, before the step of obtaining the voice information input by the user, further includes: using Focal loss, CE loss or NCE loss to perform training to pre-train the time domain convolutional neural network recognition model.

[0010] In the aforementioned voice wake-up method, the adopting the Focal loss method for training includes: adopting the minimum cost Focal loss method for training.

[0011] The aforementioned voice wake-up method, wherein the training is performed using the minimum cost Focal loss method, comprises: using the minimum cost Focal loss function

[0012] FL(p i )=-β i α i (1-p i ) γ log(p i )

[0013] to train; where α∈[0,1] is the weight factor of category 1, 1-α is the weight factor of category 0, which is inversely proportional to the prior probability of the category, γ is an adjustable parameter, β i is the cost coefficient, which indicates the cost or loss of incorrect judgment.

[0014] In the aforementioned voice wake-up method, making a decision on the recognition result according to the wake-up strategy includes: adopting a multi-frame smoothing wake-up strategy to make a decision on the recognition result.

[0015] The aforementioned voice wake-up method, wherein the multi-frame smooth wake-up strategy is used to make a decision on the recognition result, includes:

[0016] if Then wake up;

[0017] Among them, λ k is satisfied

[0018] Minp t (P=O|S=1)+p t (P=1|S=O)

[0019] unique threshold; 0 represents silence, 1 represents activation, the false alarm rate is p(P=1|S=0), the false rejection rate is p(P=0|S=1), the probability of the model making an error is p(P=1|S=0)+p(P=0|S=1), e represents the preset frequency of false alarms, and n represents the number of times the model determines whether to activate per unit time.

[0020] The aforementioned voice wake-up method, before the step of extracting acoustic features from the voice information, further includes: performing data format standardization and bandpass filtering on the voice information.

[0021] The aforementioned voice wake-up method, before the step of extracting acoustic features from the voice information, further includes: performing one or more of amplitude transformation, linear noise addition, speech speed transformation, and reverberation on the voice information.

[0022] The aforementioned voice wake-up method, before the step of extracting acoustic features from the voice information, further includes: performing data alignment through VAD or a pre-trained DNN model.

[0023] In the aforementioned voice wake-up method, the activation function of the time-domain convolutional neural network recognition model includes a ReLU function, a PRelu function or a Gelu function.

[0024] The purpose of the present invention is also achieved by the following technical solutions. A device proposed in accordance with the present invention includes: a memory for storing non-temporary computer-readable instructions; and a processor for running the computer-readable instructions, so that when the computer-readable instructions are executed by the processor, the following are achieved: obtaining voice information input by the user; extracting acoustic features from the voice information; recognizing the acoustic features according to a pre-trained time-domain convolutional neural network recognition model; and making a decision on the recognition result according to the wake-up strategy to determine whether to wake up.

[0025] The purpose of the present invention can be further achieved by adopting the following technical measures.

[0026] The aforementioned device implements any possible voice wake-up method in any of the above aspects when the computer-readable instructions are executed by the processor.

[0027] The object of the present invention is also achieved by the following technical solutions: A computer storage medium proposed in the present invention includes computer instructions, and when the computer instructions are executed on a device, the device executes any possible voice wake-up method in any of the above aspects.

[0028] The object of the present invention is also achieved by the following technical solutions: According to a computer program product proposed by the present invention, when the computer program product is run on a device, the device is enabled to execute any possible voice wake-up method in any of the above aspects.

[0029] Compared with the prior art, the present invention has obvious advantages and beneficial effects. By means of the above technical solution, the voice wake-up method, device, storage medium and program product proposed by the present invention have at least the following advantages and beneficial effects:

[0030] (1) The TCNN-based voice wake-up system proposed in the present invention has a simple model structure, avoids the gradient explosion / vanishing problem, and has very small computational complexity and system memory usage, and is suitable for deployment on resource-constrained devices such as small mobile devices;

[0031] (2) The present invention can use a very small training data set and, through parallel training, train a model that meets industry standards in just tens of minutes on four Titan X-based GPUs, saving a lot of data collection and time costs;

[0032] (3) In terms of wake-up decision, the present invention adopts a multi-frame smooth wake-up strategy, which can suppress the occurrence of false activation to a certain extent;

[0033] (4) The present invention uses Focal loss to deal with the problem of hard examples such as imbalance between positive and negative samples and similar sounds that are easy to misjudge, thereby improving the robustness of the model and the performance of voice wake-up;

[0034] (5) The present invention improves the robustness of the model and the performance of voice wake-up by combining data preprocessing and data enhancement.

[0035] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the following specifically cites a preferred embodiment and describes it in detail with the accompanying drawings as follows. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 is a flowchart of a voice wake-up method according to an embodiment of the present invention;

[0037] Figure 2 is a schematic diagram of a TCNN model provided by an embodiment of the present invention;

[0038] Figure 3 is a schematic diagram of a TCN block structure provided by an embodiment of the present invention;

[0039] Figure 4 is a schematic diagram of a dilated convolution provided by an embodiment of the present invention;

[0040] Figure 5 is a ROC curve diagram of Focal loss based on minimum cost provided by an embodiment of the present invention;

[0041] Figure 6 is a schematic diagram of a curve showing changes in a threshold value when one error and false awakening occur every n judgments, provided by an embodiment of the present invention;

[0042] Figure 7is a flow chart of data preprocessing provided by an embodiment of the present invention;

[0043] Figure 8 is a schematic diagram of data enhancement provided by an embodiment of the present invention;

[0044] Fig. 9 is a schematic diagram of a deep keyword recognition system provided by an embodiment of the present invention;

[0045] Fig.10 is a hardware block diagram of a device according to an embodiment of the present invention;

[0046] Fig.11 It is a schematic diagram of the structure of a device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0047] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined purpose of the invention, the specific implementation methods, structures, features and effects of the voice wake-up method, device, storage medium and program product proposed in the present invention are described in detail below in combination with the accompanying drawings and preferred embodiments.

[0048] Traditional voice wake-up solutions mainly include "Keyword / Filter Hidden Markov Model System" (Keyword / Filter Hidden Markov Model System, Keyword and Filter System based on HMM) and "Deep KWS System, Deep Keyword spotting System".

[0049] The HMM-based Keyword and Filter system treats voice wake-up as a voice recognition problem, puts words other than keywords into the filter path, and decodes keywords in a targeted manner to improve the decoding speed. However, this system is based on the phoneme-level modeling unit of HMM, and the model parameters are large, which requires a large amount of system memory; and the system relies on a sequence search algorithm, which requires a large amount of calculation. Therefore, this system is not suitable for small mobile devices with limited storage and computing resources.

[0050] The Deep KWS System treats voice wake-up as a binary classification problem and directly generates the final confidence score. It does not require a sequence search algorithm, and its computational complexity and memory usage are smaller than those of the HMM method. In addition, with a small amount of training data, its activation performance is still better than that of the HMM standard system. Therefore, this method is very attractive for devices with low memory, low power consumption, and low latency.

[0051] Afterwards, based on a series of improvements to the Deep KWS System, such as CNN (convolutional neural network), RNNs (recurrent neural network), and CRNN (convolutional recurrent neural network), the activation performance has been improved to a certain extent. At the same time, valuable experience has been summarized in the processing of training data, the design of model structure, the selection of activation functions, and the trade-off between the number of model parameters and the amount of computation.

[0052] The system using CNN architecture is not as adaptable to low signal-to-noise ratio (SNR) signals as CRNN; it has weaker fitting ability for speech, which has strong contextual correlation. The system using RNN architecture occupies a large amount of memory in practical applications; it cannot implement parallel computing, which reduces the model training speed and increases the time cost of model training and iteration; it cannot implement computational reuse, and each wake-up decision needs to be recalculated, which greatly increases the computational complexity of the model; the RNN structure is equivalent to an IIR filter (infinite impulse response filter), which is prone to gradient vanishing / gradient explosion problems, and is prone to false activation, requiring a large number of counter samples to suppress false activation. In addition, the strategy for determining wake-up is a single threshold decision, which is easily interfered by noise and causes false wake-up.

[0053] From the perspective of model structure, CRNN has better adaptability to low signal-to-noise ratio (SNR) than CNN, while CNN requires wider filters or deeper depth to achieve this level of information propagation. Although the RNN structure has a strong fit for contextual relevance, it is more prone to overfitting than DNN / CNN, and is prone to additional abnormal recognition errors due to local non-robustness of training data. From the perspective of signal processing, the structure of RNN can be regarded as a first-order IIR filter, and the first-order IIR filter can be approximated by a high-order FIR filter (finite length unit impulse response filter).

[0054] Figure 1 This is a schematic flow chart of an embodiment of the voice wake-up method of the present invention. Figure 1 The voice wake-up method of the present invention mainly includes the following steps:

[0055] Step S11, obtaining voice information input by the user.

[0056] Optionally, the voice stream is fed into the model as a time window of T seconds.

[0057] Step S12: extracting acoustic features from the speech information.

[0058] Step S13, recognize the acoustic feature according to the recognition model obtained by pre-training. Specifically, the recognition model is a deep neural network (Deep Neural Network, referred to as DNN), mainly including neural network structures such as DNN / CNN / RNN and their deformations, optionally, it can be a temporal convolutional neural network (TCNN, also known as TCN (temporal convolutional network), time domain convolution network, time convolution network) recognition model, a CRNN structure recognition model, or a CNN+DNN structure recognition model.

[0059] Step S14: Make a decision on the recognition result according to the wake-up strategy to determine whether to wake up. Optionally, a static / wake-up signal is obtained and outputted according to the wake-up strategy.

[0060] In some embodiments, in the aforementioned step S12, commonly used feature extraction includes MFCC, FBANK, LPCC and other features. As an optional specific example, the step S12 includes: constructing and stacking 40-dimensional LOG-FBANK features (abbreviated as LFBE) with a frame length of 25ms and a frame shift of 10ms. The selection of the window length can be adjusted according to the duration distribution of the wake-up word.

[0061] Figure 2 A schematic diagram of a TCNN (time domain convolutional neural network) model provided for an embodiment of the voice wake-up method of the present invention, wherein the TCNN model includes a TCN layer. Figure 3 A schematic diagram of the structure of a TCN block (a time domain convolutional network block, which is stacked to form a TCN layer) provided for an embodiment of the voice wake-up method of the present invention. Figure 2 and Figure 3 In some embodiments, in the aforementioned step S13, the acoustic features are identified using a recognition model of a TCNN structure, specifically including:

[0062] Perform CMVN (global mean variance normalization) processing on each dimension of the acoustic features;

[0063] After the convolution layer, local features are extracted, and the model calculation amount and the size of the feature map are reduced by setting the convolution step size. The number of filters in the convolution layer is N. C , the filter size is L T ×L F , the step length is S T ;

[0064] Then it is processed by the TCN layer (time domain convolutional network layer), which is composed of multiple TCN blocks (time domain convolutional network blocks) stacked together. The TCN blocks are connected using Resnet (Residual Neural Network), so that a very deep network can be realized. The number of filters in the TCN layer is N T , the filter size is L T ×L F , the expansion coefficient is S D ;

[0065] Then it is processed by the fully connected layer, and then the recognition result is output through the excitation function. Optionally, the excitation function is a Softmax function.

[0066] As an optional embodiment, Figure 3 As shown, a TCN block contains Dilated Causal Conv (Dilated Causal Conv), ReLU (Rectified Linear Unit), and Dropout (Random Inactivation). Optionally, the TCN block also contains Norm (Standardization) and 1×1Conv (1×1 Convolution).

[0067] Table 1 is an example parameter of the TCNN model structure. As a specific example, the data feature map size is 240×40, the number of time frames is defined as m, the feature dimension is r, the step size is s, the number of channels is n, and the dilated convolution coefficient is d. The aforementioned step S13 specifically includes the following steps:

[0068] First, two layers of one-dimensional convolution with a step size of s=2 are used to learn local features, while reducing the computational complexity of feature maps and models;

[0069] Then a TCN block is used to increase the expressiveness of the model;

[0070] Next, a one-dimensional convolution with a step size of s=2 is performed to further reduce the computational complexity of the feature map and model.

[0071] Then, the TCN blocks with dilated convolution coefficients d=2 and d=5 are used to increase the receptive field of the model and obtain longer valid historical information;

[0072] Finally, after a fully connected layer and a softmax function, the probability of 0 / 1 is output as the recognition result. The entire model has 16.7k parameters and 0.33M / s of computation.

[0073] Table 1. Example parameters of TCNN model

[0074]

[0075] It should be noted that the voice wake-up method proposed in the present invention, by adopting the TCNN recognition model for recognition, has at least the following advantages:

[0076] The TCNN model has a simple structure and a small number of parameters (as low as 10k);

[0077] Since TCN only uses CNN network structure, which is a non-recursive neural network structure, the calculation results can be reused, so it can achieve parallel training and low memory requirements, greatly saving computing resources;

[0078] like Figure 4 The dilated convolution diagram shown in Figure 1 shows that the dilated convolution can greatly improve the receptive field of the model and obtain longer effective historical information. As the dilated convolution coefficient d increases and the model depth continues to deepen, the receptive field of the model continues to increase. The receptive field of the model at the same depth is larger than that of the ordinary CNN network structure. The TCNN network structure adopts the dilated convolution structure, which allows the model to see longer context information at the same depth.

[0079] The TCN block uses Resnet connections to achieve very deep networks that can learn and process long context information;

[0080] Optionally, a 1×1 convolution is used, thus ensuring that the input tensor and the output tensor have the same shape;

[0081] The use of one-dimensional causal convolution allows the model to be trained in parallel, greatly saving the time cost of training and model iteration, and avoiding the gradient vanishing / gradient exploding problem caused by RNN.

[0082] In some embodiments, the activation function of the TCNN recognition model includes a ReLU (rectified linear unit) function, a PRelu (parameterized rectified linear unit) function, or a Gelu (Gaussian error linear unit) function.

[0083] In some embodiments, before performing the aforementioned step S11, the recognition model mentioned in step S13 is pre-trained. Specifically, Focal loss (focal loss), CE loss (cross_entropy_loss) or NCE loss (Noise-Constrastive Estimation Loss) is used for training to pre-train the TCNN recognition model.

[0084] Furthermore, the minimum cost Focal loss method can be used for training.

[0085] Specifically, in the KWS task, the distribution of positive samples and negative samples (or anti-samples) is extremely unbalanced, and the number of negative samples is often much larger than that of positive samples. At the same time, in the training corpus, hard examples such as similar pronunciations contribute more to the model and need to be assigned a larger weight.

[0086] Focal loss can be expressed as formula (1), where α∈[0,1] is the weight factor for class 1 and 1-α is the weight factor for class 0. In practice, α can be set inversely proportional to the class frequency, inversely proportional to the prior probability of the class, or treated as a hyperparameter in the cross-validation setting. γ is an adjustable parameter with a default value of 2. Focal loss achieves a balanced corpus through α, and (1-p i ) γ Assign different weights to hard examples and easy examples.

[0087] FL(p i )=-α i (1-p i ) γ log(p i ) (1)

[0088] However, in practice, the cost of false awakening is usually higher than that of not awakening. At the same time, the prior probability estimate of positive samples in the training set is often higher than the actual situation. Therefore, it is necessary to multiply equation (1) by the cost coefficient β i , get the Focalloss with the minimum cost.

[0089] FL(p i )=-β i α i (1-p i ) γ log(p i ) (2)

[0090] Among them, α is set by the inverse of the prior probability of the class. β i It is the cost coefficient, which indicates the cost or loss of incorrect judgment. It is generally believed that the cost of false activation is higher than the cost of non-activation.

[0091] Figure 5 A ROC curve (receiver operating characteristic curve) diagram based on the minimum cost Focal loss is provided for an embodiment of the voice wake-up method of the present invention. Figure 5 , where the ratio in the diagram is the ratio of the cost weight of the negative sample to the cost weight of the positive sample. The lower the ROC curve in the figure, the better the model performance. It can be seen that the minimum cost Focal loss has better model performance than the original Focal loss (1:1).

[0092] In some embodiments, the input of the recognition model in the aforementioned step S13 is the acoustic feature, and the output is the posterior probability of each keyword and non-keyword. Since the recognition model outputs the posterior value in frames, it is necessary to smooth the posterior value with a certain window length, and if the smoothed posterior value exceeds a certain threshold, it will be considered as awakening.

[0093] In some embodiments, the aforementioned step S14 includes: using a multi-frame smooth wake-up strategy (or a wake-up strategy called a multi-threshold decision, a k-frame smooth wake-up strategy, a multi-frame wake-up strategy) to make a decision on the recognition result.

[0094] It should be noted that for the classification problem of isolated samples such as images, a simple method is to judge whether the confidence calculated by the neural network is higher than a predetermined threshold. However, for context-dependent sequence modeling problems, the confidence level based on a single sample often leads to wrong judgments due to the existence of original posterior noise, and we often cannot tolerate false awakenings. It is still impossible for a trained model to completely separate the two categories by threshold. Therefore, it is necessary to collect information in real time and use the K-frame smoothing algorithm to reduce the probability of misjudgment.

[0095] Let's define the label of the original sample as S, the result predicted by the neural network as P, and the neural network model makes n decisions per second, that is, n represents the number of times the model determines whether to activate per unit time. Use 0 to represent silence and 1 to represent activation. Then the false alarm rate is p(P=1|S=0), the false rejection rate is p(P=0|S=1), and the probability of the model making a mistake is p(P=1|S=0)+p(P=0|S=1). In the KWS problem, the frequency of false alarms can be preset to e times per hour.

[0096] For a single-frame decision algorithm, that is, without any smoothing, the decision algorithm at time t needs to meet the following conditions:

[0097] Min p t (P=0|S=1)+p t (P=1|S=0)

[0098] stp t (P=1|S=0)≤e / 3600n (3)

[0099] Figure 6 A schematic diagram of the change of threshold value for the voice wake-up method of the present invention, where one error occurs every n judgments and false wake-ups occur. Figure 6, where the solid line represents the curve of the threshold λ changing with one false alarm for every 1 / p(P=1|S=0) judgments, and the dotted line represents the curve of the threshold λ changing with one false alarm for every 1 / [p(P=0|S=1)+p(P=1|S=0)] judgments. Obviously, we can always find a unique threshold λ1 (0≤λ1≤1) that meets the above requirements. At this time, if p t ≥λ1, the device is awakened.

[0100] For two frames, the same model makes two independent judgments on consecutive time frames, so a judgment can be made based on the above two prediction results:

[0101] p t (p=1|S=O)·p t-1 (P=1|S=0)≤e / 3600n (4) Although Figure 6 It can be seen from the figure that 1 / p (P = 1 | S = 0) and λ do not show a linear relationship. However, due to P t and P t-1 The same model makes two independent judgments on consecutive time frames, so it can be simplified to:

[0102]

[0103] Wherein, e represents the preset number of false activations per hour, and n represents the number of times the model determines whether to activate per unit time (per second).

[0104] Obviously, we can always find a unique threshold λ2 (0≤λ2≤1) that meets the above requirements. The device is awakened.

[0105] Similarly, we can get the K frame wake-up strategy:

[0106]

[0107] By using the voice wake-up method of the present invention, a multi-frame wake-up strategy is adopted, the output probabilities of multiple adjacent time windows are used for smoothing processing, and multi-threshold judgment output is performed, so that the probability of misjudgment can be reduced.

[0108] It should be noted that the TCNN-based voice wake-up method proposed in the present invention regards voice wake-up as a binary classification problem and directly generates the final confidence score. It does not require a sequence search algorithm, and the amount of calculation and memory usage are smaller than those of the Keyword / Filter Hidden Markov Model System method. In some embodiments of the present invention, the TCNN-based voice wake-up method can be divided into 6 parts: (1) data preprocessing and data enhancement (2) data alignment (3) feature extraction (4) TCNN model (5) Focal loss (6) wake-up strategy.

[0109] Figure 7 A data preprocessing flow chart for an embodiment of the voice wake-up method of the present invention. Figure 7 In some embodiments, before performing the aforementioned step S12 of extracting acoustic features, the voice wake-up method of the present invention further includes: performing data preprocessing on the voice information. Data preprocessing mainly includes two parts: data format standardization and bandpass filtering. Data format standardization is to convert the original audio data of different sampling rates and data types into standard sampling rates and data types. For example, 16kHz / 16bit, 8kHz / 16bit, and so on. Bandpass filtering filters the low-frequency / high-frequency noise signals in the non-voice band by setting a bandpass filter, thereby achieving the effect of improving the signal SNR (signal-to-noise ratio), reducing noise interference, and improving data alignment accuracy. After the voice information is preprocessed, data enhancement can be performed.

[0110] Figure 8 A data enhancement diagram for an embodiment of the voice wake-up method of the present invention. Figure 8 In some embodiments, before extracting acoustic features in step S12, the voice wake-up method of the present invention further includes: performing data enhancement on the voice information, including one or more of amplitude transformation, linear noise addition, speech speed transformation, and reverberation. Data enhancement can effectively expand the data set based on limited data and improve the robustness of the model.

[0111] In some embodiments, before performing the aforementioned step S12 of extracting acoustic features, the voice wake-up method of the present invention further includes: performing data alignment. Specifically, data alignment can be performed by VAD (Voice Activity Detection, silence suppression, also known as voice activity detection) or a pre-trained DNN model. If the original audio SNR is high and the text information is known, alignment can be performed by VAD, otherwise DNN should be used for data alignment. The quality of data alignment directly affects the performance of the model.

[0112] Fig. 9A schematic diagram of a deep keyword recognition system (Deep KWSSystem) provided for an embodiment of the voice wake-up method of the present invention. Fig. 9 , a Deep KWS System can be divided into three parts, feature extraction, DNN neural network, and posterior probability processing. Commonly used feature extraction includes MFCC, FBANK, LPCC and other features. DNN neural networks mainly include DNN / CNN / RNN and other neural network structures and their deformations. Posterior probability processing is to smooth the output probability of the time frame in each time window according to the volatility of the output probability of a single frame of the model. In some embodiments of the present invention, the DNN network structure adopts the TCNN network structure. The multi-frame wake-up strategy is to use the output probabilities of multiple adjacent time windows for smoothing processing and multi-threshold judgment output.

[0113] Optionally, the TCNN structure in the above embodiment can be replaced with a CRNN structure, and the rest of the data preparation, training process, and wake-up strategy remain unchanged. In this case, the voice wake-up effect is slightly worse, because the RNN structure makes it impossible to reuse the calculation results and parallelize the calculation, which greatly increases the model calculation amount and training time.

[0114] Optionally, the TCNN structure in the above embodiment can be replaced with a CNN+DNN structure, and the rest of the data preparation, training process, and wake-up strategy remain unchanged. In this case, the depth and receptive field of the model are limited, and the voice wake-up effect is slightly worse.

[0115] Optionally, the model structure, data preparation, and wake-up strategy in the above embodiment remain unchanged, and the Focal loss in the training process is changed to CE loss. In this case, the serious imbalance of positive and negative samples in voice wake-up cannot be solved, resulting in a high model threshold and a slightly poor voice wake-up effect.

[0116] Optionally, the model structure, data preparation, and wake-up strategy in the above-mentioned embodiment remain unchanged, and the Focal loss in the training process is changed to NCE loss. In this case, the problem that hard examples such as similar sounds in voice wake-up are prone to false activation cannot be alleviated, resulting in a high model threshold and a slightly poor voice wake-up effect.

[0117] Optionally, the data preparation, model structure, and training process in the above embodiments remain unchanged, and the wake-up strategy is replaced with a single threshold wake-up. At this time, the model is susceptible to the influence of model output probability fluctuations and other factors, resulting in false activation. At the same time, in terms of threshold selection, the threshold is selected by brute force search, which consumes a certain amount of time.

[0118] Optionally, the activation function of the model in the above embodiment can be replaced from ReLU to PRelu / Gelu. In this case, the wake-up effect will be better, but it will bring additional parameters and calculations. Among them, the Gelu activation function has better performance than Elu and Relu in computer vision, natural language processing and speech tasks, and can achieve faster convergence.

[0119] It should be noted that in various embodiments of the present invention, the present invention does not limit the specific presentation effect of the interactive interface, and the specific presentation effect can be adjusted accordingly according to development requirements and user usage requirements.

[0120] Optionally, the voice wake-up method proposed in the present invention can be implemented using an application (Application, referred to as APP) or software such as a service running in the background of a device. The relevant device is installed with an application or service for implementing the voice wake-up method proposed in the present invention, so that the device can be used for interaction.

[0121] Fig.10 1 is a hardware block diagram illustrating a device according to an embodiment of the present invention. Fig.10 As shown, the device 100 according to an embodiment of the present invention includes a memory 101 and a processor 102. The components in the device 100 are interconnected via a bus system and / or other forms of connection mechanisms (not shown). The device 100 of the present invention can be implemented in various forms, including but not limited to handheld mobile devices such as mobile phones, vehicle-mounted systems, smart speakers, smart glasses, televisions, air conditioners, sweeping robots and other Internet of Things devices.

[0122] The memory 101 is used to store non-temporary computer-readable instructions. Specifically, the memory 101 may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, a random access memory (RAM) and / or a cache memory (cache), etc. The non-volatile memory may include, for example, a read-only memory (ROM), a hard disk, a flash memory, etc.

[0123] The processor 102 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the device 100 to perform desired functions. In one embodiment of the present invention, the processor 102 is used to run the computer-readable instructions stored in the memory 101, so that the device 100 performs all or part of the steps of the voice wake-up method of each embodiment of the present invention described above.

[0124] It is understandable that, in order to implement the above functions, the device includes hardware and / or software modules corresponding to the execution of each function. In combination with the algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in combination with the embodiments, but such implementation should not be considered to be beyond the scope of this application.

[0125] In this embodiment, the device may be divided into functional modules according to the above method example. For example, each functional module may be divided according to each function, or two or more functions may be integrated into one processing module.

[0126] The above integrated modules can be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0127] In the case of dividing each functional module into corresponding functional modules, Fig.11 A possible schematic diagram of the composition of the equipment involved in the above embodiment is shown. Fig.11 As shown, the device 200 mainly includes: an acquisition module 201, a feature extraction module 202, a recognition module 203 and a wake-up decision module 204.

[0128] The acquisition module 201 may be used to support the device 200 to execute the above-mentioned step S11, etc., and / or other processes of the technology described herein.

[0129] The feature extraction module 202 can be used to support the device 200 to execute the above-mentioned step S12, etc., and / or be used for other processes of the technology described in this document.

[0130] The identification module 203 can be used to support the device 200 to execute the above-mentioned step S13, etc., and / or be used for other processes of the technology described in this document.

[0131] The wake-up decision module 204 may be used to support the device 200 to execute the above-mentioned step S14 and / or other processes of the technology described herein.

[0132] It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.

[0133] The device provided in this embodiment is used to execute the above-mentioned voice wake-up method, and thus can achieve the same effect as the above-mentioned implementation method.

[0134] An embodiment of the present invention further provides a computer storage medium, in which computer instructions are stored. When the computer instructions are executed on a device, the device executes the above-mentioned related method steps to implement the voice wake-up method in the above-mentioned embodiment.

[0135] An embodiment of the present invention further provides a computer program product. When the computer program product is run on a computer, the computer is enabled to execute the above-mentioned related steps to implement the voice wake-up method in the above-mentioned embodiment.

[0136] In addition, an embodiment of the present invention also provides a device, which can specifically be a chip, a component or a module, and the device may include a connected processor and a memory; wherein the memory is used to store computer-executable instructions, and when the device is running, the processor can execute the computer-executable instructions stored in the memory so that the chip executes the voice wake-up method in the above-mentioned method embodiments.

[0137] Among them, the equipment, computer storage medium, computer program product or chip provided by the present invention are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.

[0138] The above description is only a preferred embodiment of the present invention and does not limit the present invention in any form. Although the present invention has been disclosed as a preferred embodiment as above, it is not used to limit the present invention. Any technician familiar with the profession can make some changes or modify the technical contents disclosed above into equivalent embodiments without departing from the scope of the technical solution of the present invention. However, any simple modification, equivalent change and modification made to the above embodiments according to the technical essence of the present invention without departing from the content of the technical solution of the present invention still fall within the scope of the technical solution of the present invention.

Claims

1. A voice wake-up method, characterized in that: The method comprises the following steps: Get the voice information input by the user; Extracting acoustic features from the speech information; Recognize the acoustic features according to a pre-trained time-domain convolutional neural network recognition model; According to the wake-up strategy, a decision is made on the recognition result, and a static / wake-up signal is obtained and output through the wake-up strategy to determine whether to wake up; The step of making a decision on the recognition result according to the wake-up strategy includes: using a k-frame smoothing wake-up strategy, using the output probabilities of multiple adjacent time windows for smoothing, and outputting a multi-threshold decision.

2. The voice wake-up method according to claim 1, characterized in that: Extracting acoustic features based on the speech information includes: using LOG-FBANK features.

3. The voice wake-up method according to claim 1, characterized in that: The identifying of the acoustic features according to the pre-trained time-domain convolutional neural network recognition model includes: Performing global mean-variance normalization processing on each dimension of the acoustic features; After the convolution layer, local features are extracted; Then it is processed by the TCN layer, which is composed of a plurality of TCN blocks stacked together, and the TCN blocks are connected using Resnet; It is then processed by the fully connected layer and then outputs the recognition result through the activation function.

4. The voice wake-up method according to claim 1, characterized in that: Before the step of obtaining the voice information input by the user, the method further includes: Focal loss, CE loss or NCE loss is used for training to pre-train the time-domain convolutional neural network recognition model.

5. The voice wake-up method according to claim 4, characterized in that: The adopting the Focal loss method for training includes: adopting the minimum cost Focal loss method for training.

6. The voice wake-up method according to claim 4, characterized in that: The training using the minimum cost Focal loss method includes: Using the Focal loss function with the minimum cost FL(p i )=-β i α i (1-p i ) γ log(p i ) for training; where α∈[0,1] is the weight factor of category 1, 1-α is the weight factor of category 0, which is inversely proportional to the prior probability of the category, γ is an adjustable parameter, β i is the cost coefficient, which indicates the cost or loss of incorrect judgment.

7. The voice wake-up method according to claim 1, characterized in that: The k-frame smoothing wake-up strategy uses the output probabilities of multiple adjacent time windows for smoothing processing, and the multi-threshold judgment output includes: if Then wake up; Among them, λ k is satisfied Min p t (P=0|S=1)+p t (P=1|S=0) The only threshold value of Use 0 to represent silence, 1 to represent activation, the false alarm rate is p(P=1|S=0), the false rejection rate is p(P=0|S=1), the probability of the model making an error is p(P=1|S=0)+p(P=0|S=1), e represents the preset frequency of false alarms, and n represents the number of times the model determines whether to activate per unit time.

8. The voice wake-up method according to claim 1, characterized in that: Before the step of extracting acoustic features from the speech information, the method further includes: performing data format standardization and bandpass filtering on the speech information.

9. The voice wake-up method according to claim 1, characterized in that: Before the step of extracting acoustic features from the speech information, the method further includes: performing one or more of amplitude transformation, linear noise addition, speech speed transformation, and reverberation on the speech information.

10. The voice wake-up method according to claim 1, characterized in that: Before the step of extracting acoustic features from the speech information, the method further includes: Data alignment is performed through VAD or a pre-trained DNN model.

11. The voice wake-up method according to claim 1, characterized in that: The activation function of the time-domain convolutional neural network recognition model includes a ReLU function, a PRelu function or a Gelu function.

12. A device comprising: a memory for storing non-transitory computer-readable instructions; as well as A processor is used to run the computer-readable instructions, so that when the computer-readable instructions are executed by the processor, the voice wake-up method described in any one of claims 1 to 11 is implemented.

13. A computer storage medium, characterized in that: The method comprises computer instructions, and when the computer instructions are executed on a device, the device executes the voice wake-up method according to any one of claims 1 to 11.

14. A computer program product, characterized in that When the computer program product is run on a computer, the computer is enabled to execute the voice wake-up method according to any one of claims 1 to 11.

Citation Information

Patent Citations

  • Speech gender recognition method and device based on deep learning, and medium

    CN108962223A

  • Voice waking-up method and system thereof

    CN109036412A