Wake-up word recognition method, device, equipment and medium combined with dynamic time regularization

By combining dynamic time warping and bi-word joint detection, the problem of low accuracy and slow recognition speed of existing wake word recognition technology in complex noisy environments is solved, achieving high accuracy and low recognition speed on resource-constrained devices. Delayed wake word recognition.

CN118173094BActive Publication Date: 2024-09-03NINGBO SIMSHINE INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410580558.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-11
Publication Date
2024-09-03
Estimated Expiration
2044-05-11

AI Technical Summary

Technical Problem

Existing wake word recognition technology has low accuracy and slow recognition speed in complex noise environments, making it difficult to apply to resource-constrained embedded systems or mobile devices.

Method used

A wake word recognition method that combines dynamic time warping and dual-word joint detection is adopted. Audio features are extracted through a multi-feature fusion algorithm, silent audio clips are eliminated, and the target wake word is identified using a preset duration threshold and dynamic time warping algorithm.

Benefits of technology

It improves the recognition accuracy and response speed in complex environments, adapts to different speech speeds and changing modes, reduces response delays, and is suitable for embedded systems or mobile devices in multiple scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118173094B
    Figure CN118173094B
Patent Text Reader

Abstract

The present invention relates to the field of audio processing technology, solves the problems of low accuracy and high latency in wake-up word recognition in the prior art, and provides a wake-up word recognition method, device, equipment and medium combined with dynamic time warping. The method includes: acquiring real-time audio data in a variety of nursing scenarios; using a multi-feature fusion algorithm to perform silent recognition on the real-time audio data and output a voice audio segment; according to a preset duration threshold corresponding to the wake-up word, eliminating the corresponding audio segments that are longer than the duration threshold and outputting an audio segment to be detected; performing spectral feature extraction on the audio segment to be detected to obtain key feature information related to a preset target wake-up word; using a dynamic time warping algorithm and a two-word joint detection algorithm to process the key feature information and identify the target wake-up word. The present invention improves the accuracy of wake-up word recognition in a variety of usage scenarios and reduces response delays.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of audio processing technology, and in particular to a wake-up word recognition method, device, equipment and medium combined with dynamic time regularization. Background Art

[0002] With the rise of intelligent voice assistants, voice control systems, and smart home devices, people's demand for natural language and voice interaction continues to increase. Under this trend, wake-up word recognition has become a key technology for achieving natural voice interaction, allowing users to wake up the device and input voice commands with simple commands. In addition, energy efficiency and resource management have become particularly critical in mobile devices and embedded systems. By adopting wake-up word technology, the system can monitor environmental sounds in standby or low-power states, and only wake up more complex voice processing systems when specific wake-up words are detected, effectively reducing power consumption and resource usage. With the popularity of virtual assistants such as Apple's Siri, Amazon's Alexa, and Google's Assistant, wake-up word recognition has become particularly critical. This technology allows these virtual assistants to wait for user instructions in the background, and users can trigger various voice functions, including voice search, reminders, and music playback, with simple commands; in the real world, complex noise environments such as traffic noise and human voices pose challenges to voice processing systems. Wake-up word recognition needs to be robust and able to accurately detect wake-up words in these noisy environments to ensure the reliability of the user experience. With the continuous development of deep learning technology, wake-up word recognition has been significantly improved. Deep learning methods are widely used in wake-up word recognition, which greatly improves the accuracy and robustness of the model. In general, the progress of wake-up word recognition technology not only meets the user's urgent needs for natural voice interaction, but also solves a series of technical challenges in speech processing and promotes the development of the entire speech recognition field.

[0003] With the development of deep learning technology, neural networks have become more and more popular in wake-up word recognition. Convolutional neural networks (CNN), recurrent neural networks (RNN), long short-term memory networks (LSTM), and variants such as gated recurrent units (GRU) have been used to model speech features and sequences. However, first of all, the existing wake-up word recognition technology does not perform well in the face of diverse environments. Changes in environmental factors such as noise levels, sound reflections, and space size will affect the accuracy of the wake-up word. The existing wake-up word recognition technology has insufficient robustness when adapting to complex noise environments and different recording conditions. Secondly, the existing wake-up word recognition technology is slow in processing large-scale voice data, especially on resource-constrained embedded systems or mobile devices. The slow recognition speed will cause response time delays and reduce the user experience.

[0004] The existing Chinese patent CN107886957A discloses a voice wake-up method and device combined with voiceprint recognition, the method comprising: S1: receiving the voice to be verified and performing feature extraction to obtain the MFCC features of the voice to be verified; S2: caching the MFCC features of the voice to be verified within a preset time period; S3: judging whether the content of the voice to be verified is a preset wake-up word according to the cached MFCC features of the voice to be verified, if so, executing step S4; S4: inputting the cached MFCC features of the voice to be verified into a preset deep neural network model to obtain the i-vector vector of the voice to be verified; S5: comparing the i-vector vector of the voice to be verified with the preset i-ve ctor vector is compared, and the authority value of the voice to be verified is obtained according to the matching score obtained by the comparison, and it is determined whether the authority value of the voice to be verified is greater than or equal to the authority value corresponding to the preset wake-up word corresponding to the voice to be verified. If so, the operation corresponding to the preset wake-up word corresponding to the voice to be verified is performed; although the above patent discloses collecting audio data, extracting key features from the audio data, and identifying target keywords based on the key features, it is easily affected by the external environment when facing the actual diverse environment, resulting in low accuracy of wake-up word recognition. At the same time, since the above patent has not made much improvement in the recognition speed, the conventional high-latency response speed is difficult to apply to resource-constrained embedded systems or mobile devices.

[0005] Therefore, how to provide a low-latency, high-accuracy wake-up word recognition method for application in resource-constrained embedded systems or mobile devices is an urgent problem to be solved. Summary of the invention

[0006] In view of this, the present invention provides a wake-up word recognition method, device, equipment and medium combined with dynamic time regularization to solve the problems of low wake-up word recognition accuracy and high latency in the prior art.

[0007] The technical solution adopted by the present invention is:

[0008] In a first aspect, the present invention provides a wake-up word recognition method combined with dynamic time warping, the method comprising:

[0009] S1: Acquire real-time audio data in various care scenarios;

[0010] S2: using a multi-feature fusion algorithm to perform silence recognition on the real-time audio data, remove the recognized silence audio segments, and output the speech audio segments;

[0011] S3: According to the preset duration threshold corresponding to the wake-up word, the corresponding audio segments whose duration is longer than the duration threshold in the voice audio segment are removed, and the audio segment to be detected is output;

[0012] S4: Extracting spectrum features of the audio segment to be detected to obtain key feature information related to a preset target wake-up word;

[0013] S5: Use a dynamic time warping algorithm and a two-word joint detection algorithm to process the key feature information and identify the target wake-up word.

[0014] Preferably, the S2 includes:

[0015] S21: obtaining an original audio signal corresponding to each audio frame in the real-time audio data, performing signal feature extraction on the original audio signal, and obtaining multiple audio signal features;

[0016] S22: performing normalization processing on each of the audio signal features, and outputting standard audio signal features corresponding to each of the audio signal features;

[0017] S23: performing weighted fusion processing on the features of the standard audio signals according to preset weights, and outputting a fusion feature vector;

[0018] S24: inputting the fused feature vector into a pre-trained classifier, and outputting a probability that the fused feature vector is recognized as a speech audio segment;

[0019] S25: Identify the speech audio segment according to the probability of the fused feature vector being identified as a speech audio segment and a preset probability threshold.

[0020] Preferably, the S25 includes:

[0021] S251: Obtaining the probability of each fused feature vector being recognized as a speech audio segment and a preset smoothing factor;

[0022] S252: performing smoothing processing on the probability of each fused feature vector being identified as a speech audio segment according to the smoothing factor, and outputting a target probability of each fused feature vector being identified as a speech segment after the smoothing processing;

[0023] S253: Compare each of the target probabilities with the probability threshold, and when the target probability is greater than the probability threshold, identify the audio frame corresponding to the target probability as the speech audio segment.

[0024] Preferably, the S5 includes:

[0025] S51: dividing the audio frame corresponding to the key feature information into a plurality of audio segments according to the key feature information;

[0026] S52: adjusting the step length of the algorithm detection in each audio segment according to the amplitude difference between the audio segments, and outputting the target step length corresponding to each audio segment;

[0027] S53: performing similarity matching on target audio segments at target step intervals in each audio segment using a time warping algorithm according to each target step, and outputting a first target audio segment and a second target audio segment whose similarity is greater than a preset similarity threshold;

[0028] S54: Using the two-word joint detection algorithm, the first target audio segment and the second target audio segment are identified to identify the target wake-up word.

[0029] Preferably, the S54 includes:

[0030] S541: Screening the first target audio segment and the second target audio segment for a time interval, and outputting the first qualified audio segment and the second qualified audio segment that pass the screening;

[0031] S542: Perform wake-up word recognition on the first qualified audio segment and the second qualified audio segment respectively, and output recognition results;

[0032] S543: Based on the recognition result, if the target wake-up word is recognized in both the first qualified audio segment and the second qualified audio segment, it is considered that the recognition of the target wake-up word is completed.

[0033] Preferably, the S541 includes:

[0034] S5411: Acquire the time interval between the first target audio segment and the second target audio segment and a preset time window;

[0035] S5412: Compare the time interval with the time window, and if it is determined that the time interval is within the time window, output a first qualified audio segment and a second qualified audio segment;

[0036] S5413: If it is determined that the time interval is not within the time window, the corresponding first target audio segment and second target audio segment are removed.

[0037] Preferably, the S542 includes:

[0038] S5421: Acquire first training audio data and second training audio data, wherein the first training audio data includes the target wake-up word, and the second training audio data does not include the target wake-up word;

[0039] S5422: Label the first training audio data and the second training audio data, and output label information;

[0040] S5423: Perform feature extraction on the first training audio data and the second training audio data, and output training feature information;

[0041] S5424: Input the label information and the training feature information into a preset classification model for training to obtain a wake-up word recognition model;

[0042] S5425: Input the first qualified audio segment and the second qualified audio segment into the wake-up word recognition model respectively, and output the recognition result.

[0043] In a second aspect, the present invention provides a wake-up word recognition device combined with dynamic time warping, the device comprising:

[0044] Real-time audio acquisition module, used to obtain real-time audio data in various care scenarios;

[0045] A speech segment extraction module is used to use a multi-feature fusion algorithm to perform silence recognition on the real-time audio data, remove the recognized silence audio segments, and output speech audio segments;

[0046] The audio segment extraction module to be detected is used to remove the corresponding audio segments whose duration is longer than the duration threshold in the speech audio segment according to the preset duration threshold corresponding to the wake-up word, and output the audio segment to be detected;

[0047] A key feature extraction module is used to extract key features of the audio segment to be detected and obtain key feature information related to the preset target wake-up word;

[0048] The wake-up word recognition module is used to process the key feature information and identify the target wake-up word by using a dynamic time warping algorithm and a two-word joint detection algorithm.

[0049] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising: at least one processor, at least one memory, and computer program instructions stored in the memory, which, when executed by the processor, implement the method of the first aspect in the above-mentioned embodiment.

[0050] In a fourth aspect, an embodiment of the present invention further provides a storage medium on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the method of the first aspect in the above-mentioned embodiment is implemented.

[0051] In summary, the beneficial effects of the present invention are as follows:

[0052] The present invention provides a wake-up word recognition method, device, equipment and medium combined with dynamic time warping, and the method includes: acquiring real-time audio data in a variety of nursing scenarios; using a multi-feature fusion algorithm to perform silence recognition on the real-time audio data, eliminating the recognized silence audio segments, and outputting speech audio segments; according to a preset duration threshold corresponding to the wake-up word, eliminating the corresponding audio segments in the speech audio segments whose duration is longer than the duration threshold, and outputting the audio segment to be detected; performing spectral feature extraction on the audio segment to be detected to obtain key feature information related to the preset target wake-up word; using a dynamic time warping algorithm and a two-word joint detection algorithm to process the key feature information and identify the target wake-up word. The present invention acquires real-time audio data in a variety of nursing scenarios, fully considers the sound characteristics of different environments, and can better adapt to complex and changeable actual use scenarios; secondly, in the silent recognition stage, the accurate discrimination of the audible and silent parts is improved, and the background noise and non-voice audio can be more effectively removed, which reduces invalid audio clips for subsequent processing, improves work efficiency and reduces response delays; and then by setting a preset wake-up word duration threshold, the voice clips that are too long and obviously do not meet the wake-up word are screened out, avoiding the waste of work resources on long audio clips; finally, in the wake-up word recognition stage, a dynamic time warping algorithm and a two-word joint detection algorithm are adopted. The combination of the two can handle the changes of voice signals more flexibly, and through joint detection, it not only helps to adapt to different voice speeds and change modes, but also can reduce response delays and improve real-time performance; In general, the present invention provides strong technical support for voice wake-up of resource-constrained embedded systems or mobile devices in multiple scenarios by comprehensively considering multiple factors, from data diversity to processing accuracy and real-time performance. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] In order to more clearly illustrate the technical solution of the embodiment of the present invention, the drawings required for use in the embodiment of the present invention will be briefly introduced below. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work, and these are all within the protection scope of the present invention.

[0054] Figure 1 This is a schematic diagram of the overall working process of the wake-up word recognition method combined with dynamic time warping in Example 1 of the present invention;

[0055] Figure 2 This is a schematic diagram of a process for performing silence recognition on the real-time audio data in Embodiment 1 of the present invention;

[0056] Figure 3 This is a schematic diagram of a process for recognizing a speech audio segment in Embodiment 1 of the present invention;

[0057] Figure 4This is a flow chart of processing key feature information and identifying a target wake-up word in Embodiment 1 of the present invention;

[0058] Figure 5 This is a schematic diagram of a process for identifying the first target audio segment and the second target audio segment in Embodiment 1 of the present invention;

[0059] Figure 6 This is a schematic diagram of a process for screening the time interval between the first target audio segment and the second target audio segment in Embodiment 1 of the present invention;

[0060] Figure 7 This is a schematic diagram of a process of performing wake-up word recognition on the first qualified audio segment and the second qualified audio segment respectively in Embodiment 1 of the present invention;

[0061] Figure 8 This is a structural block diagram of a wake-up word recognition device combined with dynamic time warping in Example 3 of the present invention;

[0062] Fig. 9 It is a schematic diagram of the structure of an electronic device in Embodiment 4 of the present invention. DETAILED DESCRIPTION

[0063] In order to make the purpose, technical solution and advantages of the embodiment of the present invention clearer, the technical solution in the embodiment of the present invention will be clearly and completely described in conjunction with the drawings in the embodiment of the present invention. It should be noted that, in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. In the description of the present invention, it should be understood that the orientation or position relationship indicated by the terms "center", "upper", "lower", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc. is based on the orientation or position relationship shown in the drawings, which is only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present invention. Moreover, the term "include", "comprise" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such a process, method, article or device. In the absence of further restrictions, the elements defined by the phrase "comprising..." do not exclude the existence of other identical elements in the process, method, article or device comprising the elements. If there is no conflict, the embodiments of the present invention and the various features in the embodiments can be combined with each other, all within the protection scope of the present invention.

[0064] Example 1

[0065] See also Figure 1 Embodiment 1 of the present invention provides a wake-up word recognition method combined with dynamic time warping, the method comprising:

[0066] S1: Acquire real-time audio data in various care scenarios;

[0067] Specifically, real-time audio data in a variety of care scenarios are obtained; the care scenarios include at least medical institutions, nursing homes, and home care; sensors and equipment used in different care scenarios, such as microphones and surveillance cameras, are used to capture audio information about the monitored object as the real-time audio data.

[0068] S2: using a multi-feature fusion algorithm to perform silence recognition on the real-time audio data, remove the recognized silence audio segments, and output the speech audio segments;

[0069] Specifically, the multi-feature fusion algorithm refers to extracting multiple feature information from real-time audio data, and the feature information includes at least: time domain features (such as energy, zero-crossing rate), frequency domain features (such as Mel-frequency cepstral coefficients MFCC), and time-frequency domain features. These features can reflect different aspects of the audio signal and help to more comprehensively identify silence; the obtained features are fused through a fusion algorithm, such as principal component analysis (PCA) or linear discriminant analysis (LDA), and then a silence recognition model is trained using labeled training data, and a machine learning algorithm is selected for training, such as a support vector machine (SVM) or a deep learning model (such as a recurrent neural network RNN ​​or a long short-term memory network LSTM); real-time audio data is input into the trained silence recognition model, and silence recognition is performed in real time. According to the output of the model, audio segments marked as silence are removed, and segments marked as speech are retained; the audio segments that have been silence recognized and filtered are output as the final speech audio segments. By introducing silence recognition technology, all audio is segmented and key audio segments are effectively extracted, which helps reduce the processing of non-critical silence audio and improves system efficiency and resource utilization.

[0070] In one embodiment, see Figure 2 , said S2 comprises:

[0071] S21: obtaining an original audio signal corresponding to each audio frame in the real-time audio data, performing signal feature extraction on the original audio signal, and obtaining multiple audio signal features;

[0072] Specifically, the real-time audio data is decomposed into a plurality of continuous audio frames, and for each audio frame, the corresponding original audio signal is obtained, and features are extracted for each original audio signal, and four features corresponding to the original audio signal, namely, short-time energy, spectrum centroid, harmonic ratio and zero crossing rate, are output.

[0073] S22: performing normalization processing on each of the audio signal features, and outputting standard audio signal features corresponding to each of the audio signal features;

[0074] Specifically, for the above four audio signal features, their mean μ and standard deviation σ are calculated. For example, the mean and standard deviation of feature X are calculated as follows:

[0075] Where N is the number of samples of the audio signal feature, X i is the i-th sample; according to the mean and standard deviation of feature X, the audio signal feature X is normalized, and the normalization formula is x norm =(xu) / σ, the feature before normalization is x, and the feature after normalization is x norm , the above short-time energy, spectrum centroid, harmonic ratio and zero-crossing rate are all normalized according to the above method. Through this process, it can be ensured that the characteristics of each audio signal are on the same scale, avoiding the difficulty of model training due to the problem of different feature dimensions, which has a positive impact on improving the convergence speed and performance of the machine learning model.

[0076] S23: performing weighted fusion processing on the features of the standard audio signals according to preset weights, and outputting a fusion feature vector;

[0077] Specifically, preset weight factors are defined for each standard audio signal feature, and these weight factors are adjusted according to the importance of the feature or the task requirements. Assuming that the four features of short-time energy, spectral centroid, harmonic ratio and zero-crossing rate are X1, X2, X3, and X4, respectively, and the corresponding weight factors are w1, w2, w3, and w4, weight wi is applied to each standard audio signal feature Xi for weighted processing, and the fused feature F is calculated using a linear combination method. The weighted fusion processing allows the contribution of different features to the final feature vector to be balanced by adjusting the weight factors, so that the model can better adapt to the requirements of the task or better capture the characteristics of the data.

[0078] S24: inputting the fused feature vector into a pre-trained classifier, and outputting a probability that the fused feature vector is recognized as a speech audio segment;

[0079] Specifically, a training set is prepared, which contains samples labeled as speech or silence. The training set is used to train a Support Vector Machine (SVM) classifier. The fused feature vector F is provided as input to the SVM classifier. The SVM classifier processes the input fused feature vector and outputs the probability that the vector is recognized as speech activity, denoted as P(speech activity).

[0080] S25: Identify the speech audio segment based on the probability that the fused feature vector is recognized as a speech audio segment and a preset probability threshold.

[0081] Specifically, first, a probability threshold T is set. This threshold will be used to determine whether the fused feature vector is classified as a speech audio segment. This threshold can be adjusted according to task requirements and performance requirements. The probability P(speech|F) of the fused feature vector is compared with the preset probability threshold T. If P(speech|F) ≥ T, the audio segment is classified as a speech segment. If P(speech|F) < T, the audio segment is classified as a non-speech silence segment. Through this process, binary classification of the audio segment is performed based on the predicted probability value, dividing it into speech or non-speech. The selection of the probability threshold depends on the specific requirements of the task and the optimal threshold can be determined through experiments and performance evaluations. In some applications, more attention is paid to accuracy, while in other applications, more attention is paid to recall.

[0082] In one embodiment, see Figure 3 , S25 includes:

[0083] S251: Obtain the probability that each fused feature vector is recognized as a speech audio segment and a preset smoothing factor.

[0084] Specifically, for each fused feature vector Fi, obtain the probability P(speech|Fi) that it is recognized as a speech audio segment, and obtain the preset smoothing factor α, which is used for smoothing the probability.

[0085] S252: Smooth the probability that each fused feature vector is recognized as a speech audio segment according to the smoothing factor, and output the target probability that each fused feature vector is recognized as a speech segment after smoothing.

[0086] Specifically, for the probability P(speech|Fi) of each fused feature vector Fi, use the smoothing factor α for smoothing, and use the moving average method to calculate the smoothed target probability y smooth :

[0087] where y previous is the probability after smoothing at the previous moment, and y current is the probability that the current fused feature vector is recognized as a speech audio segment.

[0088] S253: Compare each of the target probabilities with the probability threshold. When the target probability is greater than the probability threshold, identify the audio frame corresponding to the target probability as the speech audio segment.

[0089] Specifically, for each target probability y after smoothing smooth,i , compare it with a preset probability threshold T; if y smooth,i ≥T, then identify the corresponding audio frame as a speech audio segment; if y smooth,i <T, then identify the corresponding audio frame as a silent segment of non-speech audio. By introducing a smoothing factor α, the jump of the decision is reduced to achieve smoothing of the recognition probability. This helps to reduce sudden decision changes, make the boundary of speech activity smoother, and ensure adjusting the smoothing factor and threshold to meet the specific requirements of the task.

[0090] S3: According to the preset duration threshold corresponding to the wake-up word, remove the corresponding audio segments in the speech audio segment whose duration is higher than the duration threshold, and output the audio segment to be detected;

[0091] Specifically, according to the preset duration threshold corresponding to the wake-up word, remove the corresponding audio segments in the speech audio segment whose duration is higher than the duration threshold, and output the audio segment to be detected. The preset time threshold is to delete redundant audio information. Considering the actual scenario, the speech segment when the user calls the target wake-up word "Haima Haima" is usually very short. For example, the time threshold obtained here is 2 seconds.

[0092] S4: Extract spectral features from the audio segment to be detected to obtain key feature information related to the preset target wake-up word;

[0093] Specifically, preprocess the audio segment to be detected, such as denoising, normalization, etc., to improve the accuracy of feature extraction; use the MFCC algorithm to process the audio segment to extract its frequency characteristics. MFCC is a commonly used audio feature extraction method. It decomposes the audio signal into frequency bands and then extracts the Mel-frequency cepstral coefficients of each frequency band. These coefficients reflect the characteristics of the speech signal in the frequency domain and help to capture the speech information of the speaker; select the key feature information related to the preset target wake-up word "Haima Haima" from the features extracted by MFCC, including at least the energy and spectral shape within a specific time window.

[0094] S5: Use the dynamic time warping algorithm and the bigram joint detection algorithm to process the key feature information to identify the target wake-up word.

[0095] Specifically, DTW is an algorithm for comparing the similarity between two sequences, which allows the two sequences to be bent on the time axis to find the best match; the two-word joint detection algorithm is a target detection algorithm that detects two related words at the same time, and is used to simultaneously detect the wake-up word "Hippocampus Hippocampus". For the wake-up word detection task, the two-word joint detection algorithm can improve the accuracy of the wake-up word, especially when there is a contextual relationship. After extracting key feature information, the dynamic time warping algorithm is used in combination with the two-word joint detection algorithm to jointly detect the wake-up word and its context. This processing flow can improve the robustness of wake-up word recognition and better cope with changes in different pronunciations, speech speeds, etc.

[0096] In one embodiment, see Figure 4 , the S5 comprises:

[0097] S51: dividing the audio frame corresponding to the key feature information into a plurality of audio segments according to the key feature information;

[0098] Specifically, based on the key feature information, the time is divided into several windows, and the audio frames corresponding to the key feature information are segmented into multiple audio segments, so that each segment can better adapt to the characteristics of different parts, forming multiple continuous audio segments.

[0099] S52: adjusting the step length of the algorithm detection in each audio segment according to the amplitude difference between the audio segments, and outputting the target step length corresponding to each audio segment;

[0100] Specifically, the amplitude of each audio segment is calculated, for example, the average amplitude in each audio segment is calculated, and the amplitude difference between adjacent audio segments is calculated to obtain a difference sequence, which represents the changing trend of the amplitude; an amplitude threshold is set to divide the difference sequence into several intervals, a larger amplitude difference indicates that there are obvious changes between adjacent audio segments, while a smaller difference may indicate that adjacent segments are relatively stable; for each audio segment, the algorithm detection step size in the segment is dynamically adjusted according to the interval in which it is located in the difference sequence; a larger amplitude difference means that the segment contains more changes, so a smaller step size is required for more accurate matching; a smaller amplitude difference indicates that adjacent segments are relatively stable, and a larger step size is used to improve calculation efficiency, and the target step size corresponding to each audio segment is output, so that each segment has a step size that adapts to its own characteristics, wherein the step size refers to the distance the window moves on the time axis when applying a feature extraction algorithm to an audio signal.

[0101] S53: performing similarity matching on target audio segments at target step intervals in each audio segment using a time warping algorithm according to each target step, and outputting a first target audio segment and a second target audio segment whose similarity is greater than a preset similarity threshold;

[0102] Specifically, based on each of the target step sizes, a time warping algorithm (such as DTW) is used to perform similarity matching in each audio segment to ensure that the matching time interval adapts to the characteristics of each segment, and outputs a first target audio segment and a second target audio segment whose similarity is greater than a preset similarity threshold.

[0103] S54: Using the two-word joint detection algorithm, the first target audio segment and the second target audio segment are identified to identify the target wake-up word.

[0104] Specifically, the two-word joint detection algorithm involves the simultaneous detection of two related words, where the two-word refers to the target wake-up word "hippocampus hippocampus"; the two-word joint detection algorithm is applied to the first target audio paragraph, and the target wake-up word "hippocampus hippocampus" is used as the main focus word; similarly, the two-word joint detection algorithm is applied to the second target audio paragraph, and the target wake-up word "hippocampus hippocampus" is also used as the main focus word; through the algorithm, the recognition result of whether the target wake-up word "hippocampus hippocampus" exists in each target audio paragraph is output.

[0105] In one embodiment, see Figure 5 , the S54 comprises:

[0106] S541: Screening the first target audio segment and the second target audio segment for a time interval, and outputting the first qualified audio segment and the second qualified audio segment that pass the screening;

[0107] In one embodiment, see Figure 6 , the S541 includes:

[0108] S5411: Acquire the time interval between the first target audio segment and the second target audio segment and a preset time window;

[0109] Specifically, from the first target audio segment and the second target audio segment obtained by the above-mentioned DTW algorithm, the time interval between the first target audio segment and the second target audio segment is obtained, and a preset time window is obtained, that is, the minimum and maximum time intervals between two "hippocampus" words are specified. The setting of this time window can be based on the actual application scenario and needs.

[0110] S5412: Compare the time interval with the time window, and if it is determined that the time interval is within the time window, output a first qualified audio segment and a second qualified audio segment;

[0111] Specifically, the obtained time interval is compared with a preset time window. It is determined whether the time interval is within the time window; if the time interval is within the preset time window, it means that the time between the two "Hippocampus" words is reasonable, and the corresponding first target audio segment and the second target audio segment are output as qualified audio segments.

[0112] S5413: If it is determined that the time interval is not within the time window, the corresponding first target audio segment and second target audio segment are removed.

[0113] Specifically, if it is determined that the time interval is not within the preset time window, it means that the time between the two "hippocampus" words does not meet the set conditions. At this time, the corresponding first target audio segment and the second target audio segment need to be removed and not included in the output result.

[0114] S542: Perform wake-up word recognition on the first qualified audio segment and the second qualified audio segment respectively, and output recognition results;

[0115] In one embodiment, see Figure 7 , the S542 includes:

[0116] S5421: Acquire first training audio data and second training audio data, wherein the first training audio data includes the target wake-up word, and the second training audio data does not include the target wake-up word;

[0117] Specifically, a speech data set containing a large number of "hippocampus" words is collected as the first training audio data to ensure that a variety of speech characteristics, environments and speakers are covered; at the same time, negative example data is collected as the second training audio data, that is, speech data that does not contain the word "hippocampus", so as to train the model to distinguish between positive and negative examples.

[0118] S5422: Label the first training audio data and the second training audio data, and output label information;

[0119] Specifically, the first training audio data and the second training audio data are labeled, and each audio sample is associated with its corresponding label to mark whether it contains the target wake-up word. This can be a binary label, such as "contains" or "does not contain".

[0120] S5423: Perform feature extraction on the first training audio data and the second training audio data, and output training feature information;

[0121] Specifically, the MFCC algorithm is used to extract features from the first training audio data and the second training audio data, and the features are converted into matrices containing audio features so that the computer learning model can process them.

[0122] S5424: Input the label information and the training feature information into a preset classification model for training to obtain a wake-up word recognition model;

[0123] Specifically, the label information and MFCC features are integrated to create a training data set to ensure the balance of the data set, that is, the number of positive examples and negative examples is similar, and the Resnet18 model is selected, which is a classic convolutional neural network (CNN) suitable for image and audio processing tasks; the Resnet18 model is trained using the label information and the training feature information, and the model parameters are iteratively optimized so that it can accurately distinguish between audio samples containing and not containing the target wake-up word, thereby obtaining the wake-up word recognition model.

[0124] S5425: Input the first qualified audio segment and the second qualified audio segment into the wake-up word recognition model respectively, and output the recognition result.

[0125] Specifically, the first qualified audio segment and the second qualified audio segment screened by time interval are input into the trained wake-up word recognition model. The model outputs the recognition result corresponding to each input audio segment. The recognition result is a probability value indicating whether the target wake-up word is contained. The threshold is set to decide whether the target wake-up word is considered to exist.

[0126] S543: Based on the recognition result, if the target wake-up word is recognized in both the first qualified audio segment and the second qualified audio segment, it is considered that the recognition of the target wake-up word is completed.

[0127] Specifically, according to the recognition results, if the first qualified audio segment and the second qualified audio segment are both analyzed by the wake-up word recognition model and are identified as containing the target wake-up word "Hippocampus Hippocampus", it is determined that the recognition task of the target wake-up word has been successfully completed, which means that in the two audio segments screened at a specific time interval, the wake-up word expected by the user has been successfully detected. This result can be used as a trigger condition to start subsequent voice commands or other corresponding processing, thereby realizing a wider range of voice interaction applications.

[0128] Example 2

[0129] Embodiment 1 provides a wake-up word recognition method combined with dynamic time warping. However, in real life scenarios, attention should be paid to challenges in false wake-up, resource management, and privacy security, especially for mobile and embedded devices that rely on battery power. This undoubtedly increases the pressure on energy management, thereby affecting the performance and user experience of the device. Therefore, on the basis of Embodiment 1, false wake-up and unauthorized operation are further avoided. Therefore, after S4, the following steps are also included:

[0130] Acquire key feature information extracted from a pre-recorded audio segment of a target object and an audio segment to be detected, wherein the target object includes at least a child and an unauthorized user;

[0131] Specifically, feature extraction of pre-recorded audio clips of the target object is to obtain key feature information in the audio of children and unauthorized users, so as to effectively identify the wake-up words and prevent false wake-ups. First, the pre-recorded audio clips of the target object are collected and stored, and then these audio clips are pre-processed by digital signal processing, such as denoising and normalization, to reduce noise interference and maintain consistent audio quality.

[0132] Extracting features from the pre-recorded audio clip to obtain feature template information corresponding to the target object;

[0133] Specifically, the MFCC, or Mel-Frequency Cepstral Coefficients, feature extraction method is used to convert the audio signal into a spectral feature representation. The MFCC method involves short-time Fourier transform, filter bank analysis, and Mel-frequency cepstral transform of the audio signal, and finally obtains a set of coefficients reflecting the audio features. The MFCC coefficients contain the frequency and energy distribution information of the audio signal, have good discrimination and expression ability, and can accurately capture the audio features of the target object. The MFCC coefficients are used as the feature template information corresponding to the target object. The feature template information is used to establish an audio feature model of the target object so as to subsequently match and verify the audio segment to be detected. In this step, the application of machine learning algorithms, such as support vector machines (SVM) and Gaussian mixture models (GMM), is involved. These algorithms are used to train and model the MFCC features to learn the audio feature patterns of the target object and output the trained audio feature model.

[0134] The key feature information and the feature template information are matched, and if the match is successful, the key feature information is removed.

[0135] Specifically, feature matching and elimination are to verify whether the voice features of the target object exist in the audio segment to be detected, and to prevent false awakening or unauthorized operation in time. In this step, the MFCC features of the audio segment to be detected are extracted and input into the trained audio feature model to match the feature template of the target object. The matching process usually adopts a similarity calculation method, such as Euclidean distance and cosine similarity. If the MFCC features of the audio segment to be detected match the feature template of the target object successfully, it means that the audio segment contains the audio features of the target object. The audio segment is immediately eliminated to avoid false awakening or unauthorized operation. The elimination method can be to directly discard the segment or mark it as untrustworthy, so as to take further follow-up measures, such as reminding the user or recording abnormal events for subsequent analysis. Through feature matching and elimination, it is possible to effectively identify and prevent false awakening behaviors of children and unauthorized users, thereby improving the security of the device and user experience.

[0136] Example 3

[0137] See also Figure 8 Embodiment 3 of the present invention further provides a wake-up word recognition device combined with dynamic time warping, the device comprising:

[0138] Real-time audio acquisition module, used to obtain real-time audio data in various care scenarios;

[0139] A speech segment extraction module is used to use a multi-feature fusion algorithm to perform silence recognition on the real-time audio data, remove the recognized silence audio segments, and output speech audio segments;

[0140] The audio segment extraction module to be detected is used to remove the corresponding audio segments whose duration is longer than the duration threshold in the speech audio segment according to the preset duration threshold corresponding to the wake-up word, and output the audio segment to be detected;

[0141] A key feature extraction module is used to extract key features of the audio segment to be detected and obtain key feature information related to the preset target wake-up word;

[0142] The wake-up word recognition module is used to process the key feature information and identify the target wake-up word by using a dynamic time warping algorithm and a two-word joint detection algorithm.

[0143] Specifically, a wake-up word recognition device combined with dynamic time warping provided in an embodiment of the present invention is adopted, and the device includes: a real-time audio acquisition module, used to obtain real-time audio data in various nursing scenarios; a speech segment extraction module, used to use a multi-feature fusion algorithm to perform silence recognition on the real-time audio data, eliminate the recognized silence audio segments, and output speech audio segments; a to-be-detected audio segment extraction module, used to eliminate the corresponding audio segments in the speech audio segment whose duration is longer than the duration threshold corresponding to the preset wake-up word, and output the audio segment to be detected; a key feature extraction module, used to extract key features of the audio segment to be detected, and obtain key feature information related to the preset target wake-up word; a wake-up word recognition module, used to use a dynamic time warping algorithm and a two-word joint detection algorithm to process the key feature information and identify the target wake-up word. This device acquires real-time audio data in a variety of care scenarios, fully considers the sound characteristics of different environments, and can better adapt to complex and changeable actual use scenarios; secondly, in the silent recognition stage, it improves the accurate discrimination of the audible and silent parts, can more effectively remove background noise and non-voice audio, reduces invalid audio clips for subsequent processing, improves work efficiency and reduces response delays; then, by setting a preset wake-up word duration threshold, it filters out voice clips that are too long and obviously do not meet the wake-up word, avoiding the waste of work resources on long audio clips; finally, in the wake-up word recognition stage, a dynamic time warping algorithm and a two-word joint detection algorithm are used. The combination of the two can handle changes in voice signals more flexibly, and through joint detection, it not only helps to adapt to different voice speeds and change patterns, but also can reduce response delays and improve real-time performance; Overall, this device provides strong technical support for voice wake-up of resource-constrained embedded systems or mobile devices in multiple scenarios by comprehensively considering multiple factors, from data diversity to processing accuracy and real-time performance.

[0144] Example 4

[0145] In addition, combined Figure 1 The wake-up word recognition method combined with dynamic time warping described in Example 1 of the present invention can be implemented by an electronic device. Fig. 9 A schematic diagram of the hardware structure of an electronic device provided in Embodiment 4 of the present invention is shown.

[0146] The electronic device may include a processor and a memory storing computer program instructions.

[0147] Specifically, the processor may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiment of the present invention.

[0148] The memory may include a large capacity memory for data or instructions. By way of example and not limitation, the memory may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. Where appropriate, the memory may include a removable or non-removable (or fixed) medium. Where appropriate, the memory may be inside or outside the data processing device. In a particular embodiment, the memory is a non-volatile solid-state memory. In a particular embodiment, the memory includes a read-only memory (ROM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM) or a flash memory or a combination of two or more of these.

[0149] The processor implements any one of the wake-up word recognition methods combined with dynamic time regularization in the above embodiments by reading and executing computer program instructions stored in the memory.

[0150] In one example, the electronic device may further include a communication interface and a bus. Fig. 9 As shown, the processor, memory, and communication interface are connected via a bus and communicate with each other.

[0151] The communication interface is mainly used to implement communication between the modules, devices, units and / or equipment in the embodiments of the present invention.

[0152] The bus includes hardware, software or both, and the components of the device are coupled to each other. For example, but not limitation, the bus may include an accelerated graphics port (AGP) or other graphics bus, an enhanced industrial standard architecture (EISA) bus, a front-side bus (FSB), a hypertransport (HT) interconnection, an industrial standard architecture (ISA) bus, an infinite bandwidth interconnection, a low pin count (LPC) bus, a memory bus, a microchannel architecture (MCA) bus, a peripheral component interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a serial advanced technology attachment (SATA) bus, a video electronics standard association local (VLB) bus or other suitable bus or a combination of two or more of these. Where appropriate, the bus may include one or more buses. Although the embodiments of the present invention describe and illustrate a specific bus, the present invention contemplates any suitable bus or interconnection.

[0153] Example 5

[0154] In addition, in combination with the wake-up word recognition method combined with dynamic time warping in the above embodiment 1, embodiment 5 of the present invention can also provide a computer-readable storage medium for implementation. The computer-readable storage medium stores computer program instructions; when the computer program instructions are executed by the processor, any one of the wake-up word recognition methods combined with dynamic time warping in the above embodiments is implemented.

[0155] In summary, the embodiments of the present invention provide a wake-up word recognition method, device, equipment and medium combined with dynamic time regularization.

[0156] It should be clear that the present invention is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present invention.

[0157] The functional blocks shown in the structural block diagram described above can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present invention are programs or code segments used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier. "Machine-readable medium" may include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROMs, flash memories, erasable ROMs (EROMs), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.

[0158] It should also be noted that the exemplary embodiments mentioned in the present invention describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiments, or in a different order from the embodiments, or several steps can be performed simultaneously.

[0159] The above is only a specific implementation of the present invention. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the system, module and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. It should be understood that the protection scope of the present invention is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be covered within the protection scope of the present invention.

Claims

1. A wake-up word recognition method combined with dynamic time warping, characterized in that: The method comprises: S1: Acquire real-time audio data in various care scenarios; S2: using a multi-feature fusion algorithm to perform silence recognition on the real-time audio data, remove the recognized silence audio segments, and output the speech audio segments; S3: According to the preset duration threshold corresponding to the wake-up word, the corresponding audio segments whose duration is longer than the duration threshold in the voice audio segment are removed, and the audio segment to be detected is output; S4: Extracting spectrum features of the audio segment to be detected to obtain key feature information related to a preset target wake-up word; S5: Process the key feature information using a dynamic time warping algorithm and a two-word joint detection algorithm to identify a target wake-up word; The S5 includes: S51: dividing the audio frame corresponding to the key feature information into a plurality of audio segments according to the key feature information; S52: adjusting the step length of the algorithm detection in each audio segment according to the amplitude difference between the audio segments, and outputting the target step length corresponding to each audio segment; S53: performing similarity matching on target audio segments at target step intervals in each audio segment using a time warping algorithm according to each target step, and outputting a first target audio segment and a second target audio segment whose similarity is greater than a preset similarity threshold; S54: using the two-word joint detection algorithm, identifying the first target audio segment and the second target audio segment to identify the target wake-up word; Among them, the two-word joint detection algorithm is a target detection algorithm that simultaneously detects two related words, and is used to simultaneously detect the wake-up word "Hippocampus Hippocampus".

2. The wake-up word recognition method combined with dynamic time warping according to claim 1, characterized in that: The S2 includes: S21: obtaining an original audio signal corresponding to each audio frame in the real-time audio data, performing signal feature extraction on the original audio signal, and obtaining multiple audio signal features; S22: performing normalization processing on each of the audio signal features, and outputting standard audio signal features corresponding to each of the audio signal features; S23: performing weighted fusion processing on the features of the standard audio signals according to preset weights, and outputting a fusion feature vector; S24: inputting the fused feature vector into a pre-trained classifier, and outputting a probability that the fused feature vector is recognized as a speech audio segment; S25: Identify the speech audio segment according to the probability of the fused feature vector being identified as a speech audio segment and a preset probability threshold.

3. The wake-up word recognition method combined with dynamic time warping according to claim 2, characterized in that: The S25 includes: S251: Obtaining the probability of each fused feature vector being recognized as a speech audio segment and a preset smoothing factor; S252: performing smoothing processing on the probability of each fused feature vector being identified as a speech audio segment according to the smoothing factor, and outputting a target probability of each fused feature vector being identified as a speech segment after the smoothing processing; S253: Compare each of the target probabilities with the probability threshold, and when the target probability is greater than the probability threshold, identify the audio frame corresponding to the target probability as the speech audio segment.

4. The wake-up word recognition method combined with dynamic time warping according to claim 1, characterized in that: The S54 includes: S541: Screening the first target audio segment and the second target audio segment for a time interval, and outputting the first qualified audio segment and the second qualified audio segment that pass the screening; S542: Perform wake-up word recognition on the first qualified audio segment and the second qualified audio segment respectively, and output recognition results; S543: Based on the recognition result, if the target wake-up word is recognized in both the first qualified audio segment and the second qualified audio segment, it is considered that the recognition of the target wake-up word is completed.

5. The wake-up word recognition method combined with dynamic time warping according to claim 4, characterized in that: The S541 includes: S5411: Acquire the time interval between the first target audio segment and the second target audio segment and a preset time window; S5412: Compare the time interval with the time window, and if it is determined that the time interval is within the time window, output a first qualified audio segment and a second qualified audio segment; S5413: If it is determined that the time interval is not within the time window, the corresponding first target audio segment and second target audio segment are removed.

6. The wake-up word recognition method combined with dynamic time warping according to claim 4, characterized in that: The S542 includes: S5421: Acquire first training audio data and second training audio data, wherein the first training audio data includes the target wake-up word, and the second training audio data does not include the target wake-up word; S5422: Label the first training audio data and the second training audio data, and output label information; S5423: Perform feature extraction on the first training audio data and the second training audio data, and output training feature information; S5424: Input the label information and the training feature information into a preset classification model for training to obtain a wake-up word recognition model; S5425: Input the first qualified audio segment and the second qualified audio segment into the wake-up word recognition model respectively, and output the recognition result.

7. A wake-up word recognition device combined with dynamic time warping, characterized in that: The device comprises: Real-time audio acquisition module, used to obtain real-time audio data in various care scenarios; A speech segment extraction module is used to use a multi-feature fusion algorithm to perform silence recognition on the real-time audio data, remove the recognized silence audio segments, and output speech audio segments; The audio segment extraction module to be detected is used to remove the corresponding audio segments whose duration is longer than the duration threshold in the speech audio segment according to the preset duration threshold corresponding to the wake-up word, and output the audio segment to be detected; A key feature extraction module is used to extract key features of the audio segment to be detected and obtain key feature information related to the preset target wake-up word; A wake-up word recognition module, used to process the key feature information and recognize the target wake-up word by using a dynamic time warping algorithm and a two-word joint detection algorithm; The process of processing the key feature information by using the dynamic time warping algorithm and the two-word joint detection algorithm to identify the target wake-up word includes: According to the key feature information, the audio frame corresponding to the key feature information is divided into a plurality of audio segments; According to the amplitude difference between each audio segment, the step size of the algorithm detection in each audio segment is adjusted, and the target step size corresponding to each audio segment is output; According to each of the target step lengths, using a time warping algorithm, similarity matching is performed on each of the target audio segments at the target step length intervals in each audio segment, and a first target audio segment and a second target audio segment whose similarity is greater than a preset similarity threshold are output; Using the two-word joint detection algorithm, identifying the first target audio segment and the second target audio segment, and identifying the target wake-up word; Among them, the two-word joint detection algorithm is a target detection algorithm that simultaneously detects two related words, and is used to simultaneously detect the wake-up word "Hippocampus Hippocampus".

8. An electronic device, characterized in that: include: At least one processor, at least one memory and computer program instructions stored in the memory, when the computer program instructions are executed by the processor, implement the method according to any one of claims 1 to 6.

9. A storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the method according to any one of claims 1 to 6 is implemented.