A method for interaction with elderly care service robots based on speech recognition

By analyzing Mel spectrograms and calculating energy measurement coefficients, combined with MFCC features, the problem of insufficient accuracy of speech recognition for the elderly in noisy environments is solved, and the accuracy of speech recognition and the quality of speech interaction are improved.

CN118398010BActive Publication Date: 2024-09-10深セン市万徳昌創新智能有限公司 +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410822399.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-09-10
Estimated Expiration
2044-06-25

AI Technical Summary

Technical Problem

Existing speech recognition technology has insufficient accuracy and environmental adaptability in speech recognition of the elderly. Especially when the background noise is complex, it is difficult to accurately recognize the instructions of the elderly.

Method used

By analyzing the energy values ​​in the Mel spectrogram, we obtain continuous energy segments, and calculate the energy measurement coefficient and energy distribution measurement index of the neighborhood interval of each frequency band. Combined with the MFCC coefficient feature vector, we obtain the effective voice command characteristics of the speech signal. Vector to implement speech recognition.

Benefits of technology

It effectively distinguishes noise signals from the elderly's voice commands, improves the accuracy of speech recognition, enhances the accuracy of the elderly care service robot's reception of the elderly's voice commands, and improves the quality of voice interaction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118398010B
    Figure CN118398010B
Patent Text Reader

Abstract

The present application relates to the field of speech processing technology, and specifically to a method for interaction with an elderly care service robot based on speech recognition, the method comprising: collecting the speech signal of the elderly and obtaining the Mel spectrogram of the speech signal; constructing the energy sequence of each frequency band of the Mel spectrogram and the local energy sequence of the neighborhood interval of each frame; obtaining each continuous energy fragment of the neighborhood interval of each frame in each frequency band of the Mel spectrogram; determining the energy measurement coefficient of the neighborhood interval of each frame in each frequency band; determining the energy distribution measurement index of each frequency band; obtaining the effective speech feature vector and MFCC coefficient feature vector of each frame in the speech signal; obtaining the recognition result of the speech signal, and realizing speech interaction with the elderly care service robot. The speech recognition method of the present application combined with multi-dimensional features helps to enhance the accuracy of the robot's reception of the voice commands issued by the elderly and improve the quality of voice interaction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of speech processing technology, and in particular to a method for interacting with an elderly care service robot based on speech recognition. Background Art

[0002] In today's society, with the increasing trend of population aging, the demand for elderly care services is growing, and the demand for intelligent and personalized elderly care tools is becoming more urgent. The advancement of science and technology, especially the deep integration of artificial intelligence and Internet of Things technology, has provided possibilities for the innovation of elderly care service models. Among them, elderly care service robots, as an emerging intelligent care method, are gradually becoming an important tool to assist the daily life of the elderly and improve their quality of life. Such robots can perform a variety of tasks, such as health monitoring, daily reminders, emotional companionship, etc., and voice recognition technology plays a vital role as a bridge for human-computer interaction.

[0003] However, there are still limitations in the accuracy and environmental adaptability of speech recognition in existing technical solutions. The changes in speech characteristics of the elderly due to physiological aging, such as reduced volume and lower pitch, especially in the face of complex and changeable elderly care service scenes, such as background noise such as TV broadcasts and conversations, make it difficult for existing speech recognition technology to accurately recognize the elderly's commands. Although the existing noise suppression technology has alleviated some interference to a certain extent, other interference may also exist, which limits the performance of speech recognition when relying on a single sound feature such as Mel-frequency cepstral coefficients (MFCC) for speech recognition. Therefore, how to design an elderly care service robot interaction method that can fully adapt to the voice characteristics of the elderly and combine multi-dimensional features to improve the accuracy of speech recognition has become an urgent problem to be solved. Summary of the invention

[0004] In order to solve the above technical problems, a method for interacting with an elderly care service robot based on speech recognition is provided to solve the existing problems.

[0005] The solution to the technical problem of this application is to provide an elderly care service robot interaction method based on speech recognition, comprising the following steps:

[0006] Collect the speech signal of the elderly and obtain the Mel spectrogram of the speech signal;

[0007] Constructing the energy sequence of each frequency band of the Mel spectrogram and the local energy sequence of the neighborhood interval of each frame; obtaining each continuous energy fragment of the neighborhood interval of each frame in each frequency band of the Mel spectrogram;

[0008] Determine the energy measurement coefficient of the neighborhood interval of each frame in each frequency band according to the distribution disorder degree of the local energy sequence of the neighborhood interval of each frame in each frequency band and the distribution of each continuous energy fragment;

[0009] Determine the energy distribution measurement index of each frequency band according to the disorder degree of the energy sequence of each frequency band and the energy measurement coefficient of the neighborhood interval of each frame;

[0010] Based on the energy distribution measurement index, obtaining a valid voice command feature vector and an MFCC coefficient feature vector for each frame in the voice signal;

[0011] Based on the effective voice command feature vector and the MFCC coefficient feature vector, a recognition result of a voice signal is obtained to achieve voice interaction with the elderly care service robot.

[0012] Preferably, the method for constructing the energy sequence of each frequency band of the Mel spectrogram and the local energy sequence of the neighborhood interval of each frame is:

[0013] Divide all frequencies in the Mel spectrogram into multiple intervals to obtain each frequency band of the Mel spectrogram;

[0014] The sum of all energy values ​​of each frame in each frequency band of the Mel spectrogram is taken as the frame energy of each frame;

[0015] Arrange the frame energies of all frames in each frequency band in the time sequence of each frame to form the energy sequence of each frequency band of the Mel spectrogram;

[0016] Taking each frame in each frequency band as the center, multiple frames in the neighborhood of each frame are used as the neighborhood interval of each frame in each frequency band;

[0017] Based on the frame energy of each frame in the neighborhood interval of each frame in each frequency band and in the time sequence of each frame, a local energy sequence of the neighborhood interval of each frame in each frequency band is composed.

[0018] Preferably, the method for acquiring each continuous energy segment in the neighborhood interval of each frame in each frequency band of the Mel spectrogram is:

[0019] Normalize all energies in the Mel spectrogram and record the normalized result as the basic energy;

[0020] Recording the average of all the basic energies of each frame in the neighborhood interval of each frame in each frequency band as the standard frame energy of each frame in the neighborhood interval of each frame in each frequency band;

[0021] The continuous frames whose standard frame energy of each frame in the neighborhood interval of each frame in each frequency band is greater than the preset energy threshold are recorded as the continuous high-energy value segments of the neighborhood interval of each frame; otherwise, they are recorded as the continuous low-energy value segments of the neighborhood interval of each frame in each frequency band;

[0022] The continuous high-energy value segments and the continuous low-energy value segments in the neighborhood interval of each frame in each frequency band are recorded as the continuous energy segments in the neighborhood interval of each frame in each frequency band.

[0023] Preferably, the determining of the energy measurement coefficient of the neighborhood interval of each frame in each frequency band comprises:

[0024] Calculate the energy fragment characteristic index of the neighborhood interval of each frame in each frequency band according to the distribution of the continuous energy fragments and the number of the continuous energy fragments in the neighborhood interval of each frame in each frequency band;

[0025] Calculate the energy distribution characteristic coefficient of the neighborhood interval of each frame in each frequency band according to the local disorder of the neighborhood interval of each frame in each frequency band and the energy distribution of each continuous low energy value segment;

[0026] Based on the energy segment characteristic index and the energy distribution characteristic coefficient, the energy measurement coefficient of the neighborhood interval of each frame in each frequency band is determined, and the energy measurement coefficient has a positive cooperative relationship with the energy segment characteristic index and a negative cooperative relationship with the energy distribution characteristic coefficient.

[0027] Preferably, the calculation method of the energy segment characteristic index of the neighborhood interval of each frame in each frequency band is:

[0028] Calculate the energy continuous distribution factor of the neighborhood interval of each frame in each frequency band according to the energy value of each continuous energy segment of the neighborhood interval of each frame in each frequency band and the corresponding segment accumulation time;

[0029] Obtain the number of all continuous energy fragments in the neighborhood interval of each frame in each frequency band, and record it as the number of fragments in the neighborhood interval of each frame in each frequency band;

[0030] The energy segment characteristic index of the neighborhood interval of each frame in each frequency band is in a positive cooperative relationship with the energy continuous distribution factor and the number of segments.

[0031] Preferably, the calculation method of the energy distribution characteristic coefficient of the neighborhood interval of each frame in each frequency band is:

[0032] Determine the degree of disorder of the local energy sequence of the neighborhood interval of each frame in each frequency band as the degree of local energy disorder of the neighborhood interval of each frame in each frequency band;

[0033] The average time length of all the continuous low-energy value segments is recorded as the average time length of the neighborhood interval of each frame in each frequency band;

[0034] The energy distribution characteristic coefficients of the neighborhood intervals of each frame in each frequency band are respectively in a positive cooperative relationship with the local energy disorder degree and the average duration.

[0035] Preferably, the calculation method of the energy continuous distribution factor of the neighborhood interval of each frame in each frequency band is:

[0036] Taking the mean value of the energy of all frames of each continuous energy segment as the average energy of each continuous energy segment;

[0037] Obtaining the cumulative time length of all frames of each continuous energy segment, and recording it as the time length of each continuous energy segment;

[0038] The energy continuous distribution coefficients of each continuous energy segment in the neighborhood interval of each frame in each frequency band are respectively in positive cooperative relationship with the average energy and the time length;

[0039] The energy continuity distribution factor of the neighborhood interval of each frame in each frequency band is in a positive cooperative relationship with the energy continuity distribution coefficient of all continuous energy segments.

[0040] Preferably, determining the energy distribution metric index of each frequency band comprises:

[0041] The degree of disorder of the energy sequence of each frequency band is determined as the energy distribution complexity of each frequency band;

[0042] The energy distribution characteristic factor of each frequency band is in a negative synergistic relationship with the energy distribution complexity;

[0043] The energy metric factor of each frequency band is in a positive cooperative relationship with the energy metric coefficients of the neighborhood intervals of all frames;

[0044] Based on the energy measurement factor and the energy distribution characteristic factor, an energy distribution measurement index of each frequency band is determined, and the energy distribution measurement index is in a positive synergistic relationship with the energy measurement factor and the energy distribution characteristic factor, respectively.

[0045] Preferably, the method for obtaining the effective voice command feature vector and the MFCC coefficient feature vector of each frame in the voice signal is:

[0046] The median frequency of each frequency band was recorded as the median frequency;

[0047] Based on the energy distribution measurement index and the frequency median, determining an effective voice command coefficient for each frequency band, wherein the effective voice command coefficient is in a positive synergistic relationship with the energy distribution measurement index and in a negative synergistic relationship with the frequency median;

[0048] Arrange the effective voice command coefficients of all frequency bands in the Mel spectrogram in descending order according to the median frequency to form an effective voice command coefficient vector;

[0049] Using the effective voice command coefficient vector as the effective voice command feature vector of each frame in the voice signal;

[0050] Get the MFCC coefficients of each frame in the speech signal;

[0051] A vector consisting of MFCC coefficients of multiple frames before each frame in the speech signal is selected as the MFCC coefficient feature vector of each frame in the speech signal.

[0052] Preferably, the obtaining of the recognition result of the speech signal includes:

[0053] The speech signal is labeled by using a slot filling method to obtain a slot label of the speech signal;

[0054] The speech signal with slot labels, the effective voice command feature vector and the MFCC coefficient feature vector are taken as input, and a deep learning model is used to output the speech recognition result.

[0055] This application has at least the following beneficial effects:

[0056] The present application obtains each continuous energy segment by analyzing the energy value of each frame in the Mel spectrogram, and its beneficial effect is that the noise signal and the elderly command signal are preliminarily distinguished, and the interference of background noise on voice command recognition is reduced; secondly, according to the energy continuous distribution of each continuous energy segment and the chaos of local energy distribution, the energy measurement coefficient of the neighborhood interval of each frequency band and each frame is calculated, and the energy distribution measurement index of each frequency band is determined, and its beneficial effect is that it can measure the difference between the noise signal and the elderly voice command, and distinguish the noise signal from the elderly voice command; finally, the effective voice command feature vector and MFCC coefficient feature vector of each frame in the voice signal are obtained for voice recognition, and the recognition result of the voice signal is obtained, and the voice interaction with the elderly service robot is completed. Its beneficial effect is that not only the traditional MFCC coefficient is used to measure the sound characteristics, not only the horizontal characteristics of the voice signal are taken into account, but also the sound characteristics of the elderly when issuing voice commands and the frequency characteristics of the effective information in the command are analyzed through the effective voice command characteristics, and the vertical characteristics of the voice signal are taken into account. This voice recognition method combining multi-dimensional features improves the accuracy of voice recognition, helps to enhance the accuracy of the robot receiving voice commands issued by the elderly, and improves the quality of voice interaction. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] The following is a further detailed description of a method for interacting with an elderly care service robot based on speech recognition in the present application in conjunction with the accompanying drawings.

[0058] Figure 1 A flowchart of the steps of a method for interacting with an elderly care service robot based on speech recognition provided in this application;

[0059] Figure 2 A flowchart of the steps of a method for obtaining energy measurement coefficients of a neighborhood interval of each frame in each frequency band provided by the present application;

[0060] Figure 3 A flowchart of the steps of a method for obtaining energy measurement coefficients of a neighborhood interval of each frame in each frequency band provided in the present application. DETAILED DESCRIPTION

[0061] In order to make the purpose, technical solution and advantages of this application more clear, the following is a further detailed description of a speech recognition-based elderly care service robot interaction method proposed in this application in conjunction with the accompanying drawings and implementation examples. It should be understood that the specific embodiments described herein are only used to explain this application and are not used to limit this application.

[0062] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs.

[0063] See also Figure 1 , which shows a flowchart of a method for interacting with an elderly care service robot based on speech recognition provided by an embodiment of the present application, the method comprising the following steps:

[0064] Step 1: collect the speech signal of the elderly and obtain the Mel spectrogram of the speech signal.

[0065] The voice collection system installed on the elderly care service robot collects the voice signals corresponding to the voice commands issued by the elderly. Secondly, the collected voice signals are denoised. Finally, the denoised voice signals are used as input, and pre-emphasis, frame division and windowing are performed in sequence. Among them, frame division is to divide the original signal into several small blocks according to time, and each block represents a frame. After that, the processed voice signal is obtained, and each frame is spliced ​​together in chronological order to finally obtain the Mel spectrogram.

[0066] Preferably, as an embodiment of the present application, the frequency of speech collection is 8kHz; secondly, spectral subtraction is used to denoise the speech signal; when the speech signal is framed, as other implementation methods, the implementer can use other denoising methods in the prior art to denoise the speech signal, for example, using an adaptive filter or Wiener filter for denoising, and this embodiment does not impose any special restrictions on this.

[0067] At this point, the Mel spectrogram of the speech signal is obtained.

[0068] Step 2: construct an energy sequence of each frequency band of the Mel spectrogram and a local energy sequence of the neighborhood interval of each frame; obtain each continuous energy segment of the neighborhood interval of each frame in each frequency band of the Mel spectrogram.

[0069] When other people are talking or playing TV programs, the background noise from the outside world may affect the elderly care service robot's reception of the elderly's voice commands, or cause the robot to receive the wrong commands. Although noise reduction can reduce the impact of some noise, other interference will also affect the robot's reception of commands to a certain extent. At this time, it is necessary to analyze the denoised voice signal, identify the sound characteristics and sound frequency range when the elderly issue voice commands, and thus combine multi-dimensional features to improve the accuracy of voice command recognition.

[0070] As they age, most elderly people's speaking pitch becomes lower, their voices become slightly hoarse, and their fundamental frequency changes. Therefore, combined with the basic structural characteristics of speech, the basic structure of speech includes vowels and consonants, and most of the information is concentrated in the low-frequency area. In particular, the frequency of vowels that carry most of the information of words in the language is also mainly concentrated in the low-frequency band. Therefore, in the speech signal when the elderly speak, the sound frequency containing the effective information in the elderly's speech is in a low-frequency band; and the hoarseness of the elderly's voice often leads to noise in the high-frequency band, so it is necessary to focus on finding the low-frequency band that contains effective information.

[0071] Based on the above analysis, by analyzing the different frequency bands in the Mel spectrogram, the frequencies in the spectrogram are divided into different frequency bands to reflect the vertical information characteristics of the speech signal. The specific method is as follows:

[0072] Taking frequency f as the interval length, starting from the minimum frequency, all frequencies in the Mel spectrogram are divided into multiple intervals to obtain each frequency band of the Mel spectrogram;

[0073] The sum of all energy values ​​of each frame in each frequency band of the Mel spectrogram is taken as the frame energy of each frame;

[0074] Arrange the frame energies of all frames in each frequency band in the time sequence of each frame to form the energy sequence of each frequency band of the Mel spectrogram;

[0075] Preferably, as an embodiment of the present application, all frequencies in the Mel spectrogram are divided into multiple frequency bands with a frequency interval length of 100 Hz. As other implementation methods, the implementer can set them according to the actual situation, and this embodiment does not impose any special restrictions on this.

[0076] Furthermore, according to the characteristics of the elderly's breath, most elderly people tend to have short breaths, so it is impossible for them to speak continuously for a long time. When they issue voice commands, they often speak slowly and there may be multiple breaths or pauses in the middle of a command, so the characteristics of the voice are short-term and multi-frequency, and the breaths or pauses are short; and the appearance and superposition of various types of noises cause the noise to be a continuous sound for a long time, or if two people are talking, there may be a relatively long pause in the middle due to listening and thinking about how to answer. Therefore, the duration and voice energy are used to further distinguish noise and elderly voice commands. The specific method is:

[0077] Taking each frame in each frequency band as the center, multiple frames in the neighborhood of each frame are used as the neighborhood interval of each frame in each frequency band;

[0078] Based on the frame energies of each frame in the neighborhood interval of each frame in each frequency band and in a time sequence of each frame, a local energy sequence of the neighborhood interval of each frame in each frequency band is formed;

[0079] Normalize all energies in the Mel spectrogram and record the normalized result as the basic energy;

[0080] Recording the average of all the basic energies of each frame in the neighborhood interval of each frame in each frequency band as the standard frame energy of each frame in the neighborhood interval of each frame in each frequency band;

[0081] Preset energy threshold;

[0082] The continuous frames whose standard frame energy of each frame in the neighborhood interval of each frame in each frequency band is greater than the energy threshold are recorded as the continuous high-energy value segments of the neighborhood interval of each frame; the continuous frames whose standard frame energy of each frame is less than or equal to the energy threshold are recorded as the continuous low-energy value segments of the neighborhood interval of each frame in each frequency band;

[0083] Wherein, each continuous high energy value segment and each continuous low energy value segment in the neighborhood interval of each frame in each frequency band are recorded as each continuous energy segment in the neighborhood interval of each frame in each frequency band;

[0084] Preferably, as an embodiment of the present application, 10 frames in the neighborhood of each frame are selected as the neighborhood interval of each frame in each frequency band; the preset energy threshold value is 0.5. As other implementation methods, the implementer can set it according to the actual situation, and this embodiment does not impose any special restrictions on this.

[0085] Step 3, determining the energy measurement coefficient of the neighborhood interval of each frame in each frequency band according to the distribution disorder degree of the local energy sequence of the neighborhood interval of each frame in each frequency band and the energy continuity distribution of each continuous energy segment.

[0086] The external noise that affects the robot's voice recognition of the elderly's commands is often environmental interference sounds such as conversations or TV sounds. These sounds are also in the high-frequency band, and due to the switching of communication between the two parties and the change of emotions during the communication, the energy distribution of these sounds is inconsistent in different time periods. However, when an elderly person issues voice commands to the robot, his tone and emotions are often relatively calm, and there are almost no frequent emotional changes in the entire voice command. Therefore, the energy distribution of the sound when the elderly issue voice commands is relatively consistent and uniform in each time period.

[0087] Based on the above analysis, by analyzing the distribution of sound energy in the Mel spectrogram in each time period, the noise segments and the elderly voice segments are identified. If the sound signal in a frequency band corresponds to the voice command sound signal of the elderly, the energy distribution of the sound signal in this frequency band is relatively consistent, so that in each neighborhood interval, the energy distribution of the sound is also highly consistent. Therefore, the difference between the sound characteristics of the elderly and the sound characteristics of the background noise is analyzed, and the energy measurement coefficient is calculated. The specific method is:

[0088] Taking the mean value of the energy of all frames of each continuous energy segment as the average energy of each continuous energy segment;

[0089] Obtaining the cumulative time length of all frames of each continuous energy segment, and recording it as the time length of each continuous energy segment;

[0090] The energy continuous distribution coefficients of each continuous energy segment in the neighborhood interval of each frame in each frequency band are respectively in positive cooperative relationship with the average energy and the time length;

[0091] The energy continuity distribution factor of the neighborhood interval of each frame in each frequency band is in a positive cooperative relationship with the energy continuity distribution coefficient of all continuous energy segments;

[0092] It can be understood that a positive synergistic relationship means that the dependent variable increases as the independent variable increases, and decreases as the independent variable decreases. The specific relationship can be a multiplication relationship, an addition relationship, or the idempotence of an exponential function, which is determined by actual application and this application does not impose any special restrictions on this.

[0093] Preferably, as an embodiment of the present application, the product of the average energy and the time length is used as the energy continuity distribution coefficient of each continuous energy segment in the neighborhood interval of each frame in each frequency band; secondly, the energy continuity distribution factor of the neighborhood interval of each frame in each frequency band is the sum of the energy continuity distribution coefficients of all continuous energy segments.

[0094] Obtain the number of all continuous energy fragments in the neighborhood interval of each frame in each frequency band, and record it as the number of fragments in the neighborhood interval of each frame in each frequency band;

[0095] The energy fragment characteristic index of the neighborhood interval of each frame in each frequency band is in a positive synergistic relationship with the energy continuous distribution factor and the number of fragments;

[0096] Preferably, as an embodiment of the present application, the product of the energy continuous distribution factor and the number of fragments is used as the energy fragment characteristic index of the neighborhood interval of each frame in each frequency band.

[0097] Determine the degree of disorder of the local energy sequence of the neighborhood interval of each frame in each frequency band as the degree of local energy disorder of the neighborhood interval of each frame in each frequency band;

[0098] Preferably, as an embodiment of the present application, the information entropy of the local energy sequence of the neighborhood interval of each frame in each frequency band is used as the local energy disorder degree of the neighborhood interval of each frame in each frequency band.

[0099] It is understandable that there are many methods for analyzing the degree of disorder of a sequence, such as information entropy, variance, standard deviation, etc. As other implementation methods, implementers can obtain the local energy disorder according to other methods of the prior art, and this embodiment does not impose any special restrictions on this.

[0100] Obtaining the time lengths of all continuous low-energy value segments in the neighborhood interval of each frame in each frequency band, and recording the average time length of all continuous low-energy value segments as the average time length of the neighborhood interval of each frame in each frequency band;

[0101] The energy distribution characteristic coefficients of the neighborhood intervals of each frame in each frequency band are respectively in positive synergistic relationship with the local energy disorder degree and the average duration;

[0102] Preferably, as an embodiment of the present application, the sum of the local energy disorder degree and the average duration is used as the energy distribution characteristic coefficient of the neighborhood interval of each frame in each frequency band.

[0103] Preferably, as another embodiment of the present application, the product of the local energy disorder degree and the average duration is used as the energy distribution characteristic coefficient of the neighborhood interval of each frame in each frequency band.

[0104] Based on the energy segment characteristic index and the energy distribution characteristic coefficient, the energy measurement coefficient of the neighborhood interval of each frame in each frequency band is determined, and the energy measurement coefficient has a positive cooperative relationship with the energy segment characteristic index and a negative cooperative relationship with the energy distribution characteristic coefficient.

[0105] It can be understood that a negative synergistic relationship indicates that the dependent variable decreases as the independent variable increases, and increases as the independent variable decreases. The specific relationship can be a subtraction relationship, a division relationship, a negative exponential idempotence, etc., which is determined by actual application and this application does not impose any special restrictions on this.

[0106] Preferably, as an embodiment of the present application, the ratio of the energy segment characteristic index to the energy distribution characteristic coefficient is used as the energy measurement coefficient of the neighborhood interval of each frame in each frequency band, wherein, in the process of calculating the ratio, in order to avoid the denominator being 0, a preset factor is added to the denominator, and the preset factor value is 0.01.

[0107] Furthermore, the step flow chart of the method for obtaining the energy measurement coefficient of the neighborhood interval of each frame in each frequency band provided by the present application is as follows: Figure 2 shown.

[0108] It should be noted that the voice commands of the elderly are short-term and multi-frequency, and the time of breath or pause is also short, so the energy continuity distribution factor of each continuous energy segment will not decrease significantly, but the number of continuous energy segments will increase significantly, that is, the number of segments will increase, the larger the energy segment characteristic index of the neighborhood interval, the smaller the average duration of the time length of all continuous low-energy segments, the larger the energy measurement coefficient of the neighborhood interval; conversely, if the sound signal of a frequency band corresponds to noise, the noise is often a sound that lasts for a long time or a sound with a relatively long pause time, so the number of continuous energy segments will drop significantly, that is, the number of segments will decrease, and the larger the average duration of the time length of all continuous low-energy segments, the smaller the energy measurement coefficient of the neighborhood interval.

[0109] Step 4: Determine the energy distribution measurement index of each frequency band according to the disorder degree of the energy sequence of each frequency band and the energy measurement coefficient of the neighborhood interval of each frame.

[0110] Based on the above analysis, the energy measurement coefficient of the neighborhood interval of each frame in each frequency band is used to reflect the local energy distribution of each frame in each frequency band. Further, based on the energy distribution of all frames in each frequency band, the energy distribution measurement index is calculated. The specific method is as follows:

[0111] The degree of disorder of the energy sequence of each frequency band is determined as the energy distribution complexity of each frequency band;

[0112] The energy distribution characteristic factor of each frequency band is in a negative synergistic relationship with the energy distribution complexity;

[0113] Preferably, as an embodiment of the present application, the information entropy of the energy sequence of each frequency band is calculated as the energy distribution complexity of each frequency band; secondly, the inverse of the energy distribution complexity is used as the energy distribution characteristic factor of each frequency band. In the process of calculating the inverse, in order to avoid the denominator being 0, a preset factor is added to the denominator, and the preset factor value is 0.01.

[0114] The energy metric factor of each frequency band is in a positive cooperative relationship with the energy metric coefficients of the neighborhood intervals of all frames;

[0115] Based on the energy measurement factor and the energy distribution characteristic factor, determining an energy distribution measurement index for each frequency band, wherein the energy distribution measurement index is in a positive synergistic relationship with the energy measurement factor and the energy distribution characteristic factor respectively;

[0116] Preferably, as an embodiment of the present application, the energy measurement factor of each frequency band is the sum of the energy measurement coefficients of the neighborhood intervals of all frames; secondly, the sum of the energy measurement factor and the energy distribution characteristic factor is used as the energy distribution measurement index of each frequency band.

[0117] Furthermore, the step flow chart of the method for obtaining the energy measurement coefficient of the neighborhood interval of each frame in each frequency band provided by the present application is as follows: Figure 3 shown.

[0118] It can be understood that if the sound signal of each frequency band corresponds to the voice command sound signal of the elderly, the energy measurement coefficient of each neighborhood interval in the frequency band is larger, the larger the energy measurement factor, and the energy distribution characteristics in the frequency band are more consistent, so the energy distribution measurement index of the frequency band is larger. Conversely, if the sound signal of the frequency band corresponds to noise, the energy distribution measurement index of the frequency band is smaller.

[0119] Step 5: Based on the energy distribution measurement index, obtain the effective voice command feature vector and MFCC coefficient feature vector of each frame in the voice signal.

[0120] Since the sound frequency of the effective information of the elderly is in a low frequency band when they speak, the effective voice command coefficient can be used to analyze the possibility that each frequency band contains effective information in the voice command issued by the elderly. The specific method is as follows:

[0121] The median frequency of each frequency band was recorded as the median frequency;

[0122] Based on the energy distribution measurement index and the frequency median, an effective voice command coefficient for each frequency band is determined, and the effective voice command coefficient is in a positive synergistic relationship with the energy distribution measurement index and in a negative synergistic relationship with the frequency median.

[0123] Preferably, as an embodiment of the present application, the ratio of the energy distribution measurement index to the frequency median is used as the effective voice command coefficient of each frequency band.

[0124] It can be understood that the larger the effective voice command coefficient of each frequency band, the more likely it is that the frequency band is a signal containing effective voice command information issued by the elderly; the smaller the effective voice command coefficient of each frequency band, the more likely it is that the frequency band is a noise signal.

[0125] Furthermore, the traditional use of MFCC coefficients to extract a single sound feature for speech recognition only extracts the horizontal features of the speech signal, which may cause some errors in the extracted sound features, thus affecting the accuracy of speech recognition. Therefore, based on the MFCC coefficients, the sound characteristics of the elderly when issuing voice commands and the frequency range of the effective information of the voice commands are considered. Based on these characteristics, the effective voice command feature vector of the voice signal is constructed to reflect the vertical characteristics of the voice signal. The specific method is as follows:

[0126] Arrange the effective voice command coefficients of all frequency bands in the Mel spectrogram in descending order according to the median frequency to form an effective voice command coefficient vector;

[0127] Using the effective voice command coefficient vector as the effective voice command feature vector of each frame in the voice signal;

[0128] The denoised speech signal is subjected to Mel-frequency cepstral coefficients (MFCC coefficients) to obtain the MFCC coefficients of each frame in the speech signal;

[0129] A vector composed of MFCC coefficients of multiple frames before each frame in the speech signal is selected as the MFCC coefficient feature vector of each frame in the speech signal;

[0130] Preferably, as an embodiment of the present application, the MFCC coefficients of the 12 frames before each frame in the speech signal are selected to construct the MFCC coefficient feature vector. The calculation of the MFCC coefficients is a well-known technology, and the specific process will not be repeated.

[0131] Step 6: Based on the effective voice command feature vector and the MFCC coefficient feature vector, obtain the recognition result of the voice signal to achieve voice interaction with the elderly care service robot.

[0132] In various daily environments, including quiet environments and environments with various background noises, voice signals of multiple elderly people are collected to obtain the effective voice command feature vector and MFCC coefficient feature vector of each voice signal; the slot filling method is used for labeling to obtain the slot label of each signal, where the slot filling method is a well-known technology and the specific process will not be repeated here.

[0133] 65% of the samples in all speech signals are used as training sets to train the model, and 35% of the samples are used as test sets to test the performance of the model. Therefore, the training samples of speech signals with slot labels, valid speech command feature vectors, and MFCC coefficient feature vectors are used as inputs and trained using a deep learning model.

[0134] Preferably, as an embodiment of the present application, a deep neural network-hidden Markov is used for training, the Softmax function is used as the activation function, the BP algorithm is used to back-propagate the error, the cross entropy criterion (CE) is used for parameter optimization, and the SGD algorithm is used for weight update, wherein the deep neural network-hidden Markov model is a well-known technology, and the specific process will not be repeated here.

[0135] It is understandable that this embodiment only provides a deep learning model, namely, a deep neural network-hidden Markov model. As other implementation methods, implementers can use other deep learning models of the prior art for training, and this embodiment does not impose any special restrictions on this.

[0136] The recognition result of the speech signal is obtained by taking each speech signal with a slot label, the effective voice command feature vector and the MFCC coefficient feature vector as the input of the trained deep learning model.

[0137] The elderly start the voice IVR navigation built into the elderly care service robot through voice commands, and realize natural language navigation to the required service module, such as querying health data, setting reminders or initiating video calls, etc. The voice IVR navigation navigates to the required service module based on the recognition result of the voice signal output by the model. After completing the task of the service module corresponding to the voice command, the text result of the task is converted into a voice answer signal through speech synthesis (TTS) technology, and finally played through the elderly care service robot, thereby completing the voice interaction between the elderly care service robot and the elderly. Among them, voice IVR navigation and TTS semantic recognition are well-known technologies, and the specific process will not be repeated.

[0138] It should be understood that although Figure 1 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0139] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0140] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the present application. It should be pointed out that, for those of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application. Therefore, any simple modification, equivalent change and modification made to the above embodiments according to the technical essence of the present application without departing from the content of the technical solution of the present application, shall fall within the protection scope of the technical solution of the present application.

Claims

1. An interaction method for elderly care service robots based on speech recognition, It is characterized in that The method comprises the following steps: Collect the speech signal of the elderly and obtain the Mel spectrogram of the speech signal; Constructing the energy sequence of each frequency band of the Mel spectrogram and the local energy sequence of the neighborhood interval of each frame; obtaining each continuous energy fragment of the neighborhood interval of each frame in each frequency band of the Mel spectrogram; Determine the energy measurement coefficient of the neighborhood interval of each frame in each frequency band according to the distribution disorder degree of the local energy sequence of the neighborhood interval of each frame in each frequency band and the distribution of each continuous energy fragment; Determine the energy distribution measurement index of each frequency band according to the disorder degree of the energy sequence of each frequency band and the energy measurement coefficient of the neighborhood interval of each frame; Based on the energy distribution measurement index, obtaining a valid voice command feature vector and an MFCC coefficient feature vector for each frame in the voice signal; Based on the effective voice command feature vector and the MFCC coefficient feature vector, a recognition result of a voice signal is obtained to realize voice interaction with the elderly care service robot; The step of determining the energy measurement coefficient of the neighborhood interval of each frame in each frequency band comprises: Calculate the energy fragment characteristic index of the neighborhood interval of each frame in each frequency band according to the distribution of the continuous energy fragments and the number of the continuous energy fragments in the neighborhood interval of each frame in each frequency band; Calculate the energy distribution characteristic coefficient of the neighborhood interval of each frame in each frequency band according to the local disorder of the neighborhood interval of each frame in each frequency band and the energy distribution of each continuous low energy value segment; Based on the energy segment characteristic index and the energy distribution characteristic coefficient, the energy measurement coefficient of the neighborhood interval of each frame in each frequency band is determined, and the energy measurement coefficient has a positive cooperative relationship with the energy segment characteristic index and a negative cooperative relationship with the energy distribution characteristic coefficient.

2. A method for interacting with an elderly care service robot based on speech recognition as claimed in claim 1, It is characterized in that The method for constructing the energy sequence of each frequency band of the Mel spectrogram and the local energy sequence of the neighborhood interval of each frame is as follows: Divide all frequencies in the Mel spectrogram into multiple intervals to obtain each frequency band of the Mel spectrogram; The sum of all energy values ​​of each frame in each frequency band of the Mel spectrogram is taken as the frame energy of each frame; Arrange the frame energies of all frames in each frequency band in the time sequence of each frame to form the energy sequence of each frequency band of the Mel spectrogram; Taking each frame in each frequency band as the center, multiple frames in the neighborhood of each frame are used as the neighborhood interval of each frame in each frequency band; Based on the frame energy of each frame in the neighborhood interval of each frame in each frequency band and in the time sequence of each frame, a local energy sequence of the neighborhood interval of each frame in each frequency band is composed.

3. The elderly care service robot interaction method based on speech recognition as claimed in claim 1, It is characterized in that The method for obtaining each continuous energy segment of the neighborhood interval of each frame in each frequency band of the Mel spectrogram is as follows: Normalize all energies in the Mel spectrogram and record the normalized result as the basic energy; Recording the average of all the basic energies of each frame in the neighborhood interval of each frame in each frequency band as the standard frame energy of each frame in the neighborhood interval of each frame in each frequency band; The continuous frames whose standard frame energy of each frame in the neighborhood interval of each frame in each frequency band is greater than the preset energy threshold are recorded as the continuous high-energy value segments of the neighborhood interval of each frame; otherwise, they are recorded as the continuous low-energy value segments of the neighborhood interval of each frame in each frequency band; The continuous high-energy value segments and the continuous low-energy value segments in the neighborhood interval of each frame in each frequency band are recorded as the continuous energy segments in the neighborhood interval of each frame in each frequency band.

4. The elderly care service robot interaction method based on speech recognition as claimed in claim 1, It is characterized in that The calculation method of the energy segment characteristic index of the neighborhood interval of each frame in each frequency band is: Calculate the energy continuous distribution factor of the neighborhood interval of each frame in each frequency band according to the energy value of each continuous energy segment of the neighborhood interval of each frame in each frequency band and the corresponding segment accumulation time; Obtain the number of all continuous energy fragments in the neighborhood interval of each frame in each frequency band, and record it as the number of fragments in the neighborhood interval of each frame in each frequency band; The energy segment characteristic index of the neighborhood interval of each frame in each frequency band is in a positive cooperative relationship with the energy continuous distribution factor and the number of segments.

5. The elderly care service robot interaction method based on speech recognition as claimed in claim 1, It is characterized in that The calculation method of the energy distribution characteristic coefficient of the neighborhood interval of each frame in each frequency band is: Determine the degree of disorder of the local energy sequence of the neighborhood interval of each frame in each frequency band as the degree of local energy disorder of the neighborhood interval of each frame in each frequency band; Obtaining the time lengths of all continuous low-energy value segments in the neighborhood interval of each frame in each frequency band, and recording the average time length of all continuous low-energy value segments as the average time length of the neighborhood interval of each frame in each frequency band; The energy distribution characteristic coefficients of the neighborhood intervals of each frame in each frequency band are respectively in a positive cooperative relationship with the local energy disorder degree and the average duration.

6. The elderly care service robot interaction method based on speech recognition as claimed in claim 4, It is characterized in that The calculation method of the energy continuous distribution factor of the neighborhood interval of each frame in each frequency band is: Taking the mean value of the energy of all frames of each continuous energy segment as the average energy of each continuous energy segment; Obtaining the cumulative time length of all frames of each continuous energy segment, and recording it as the time length of each continuous energy segment; The energy continuous distribution coefficients of each continuous energy segment in the neighborhood interval of each frame in each frequency band are respectively in positive synergistic relationship with the average energy and the time length; The energy continuity distribution factor of the neighborhood interval of each frame in each frequency band is in a positive cooperative relationship with the energy continuity distribution coefficient of all continuous energy segments.

7. The elderly care service robot interaction method based on speech recognition as claimed in claim 1, It is characterized in that Determining the energy distribution metric index of each frequency band includes: The degree of disorder of the energy sequence of each frequency band is determined as the energy distribution complexity of each frequency band; The energy distribution characteristic factor of each frequency band is in a negative synergistic relationship with the energy distribution complexity; The energy metric factor of each frequency band is in a positive cooperative relationship with the energy metric coefficients of the neighborhood intervals of all frames; Based on the energy measurement factor and the energy distribution characteristic factor, an energy distribution measurement index of each frequency band is determined, and the energy distribution measurement index is in a positive synergistic relationship with the energy measurement factor and the energy distribution characteristic factor, respectively.

8. The elderly care service robot interaction method based on speech recognition as claimed in claim 1, It is characterized in that The method for obtaining the effective voice command feature vector and MFCC coefficient feature vector of each frame in the voice signal is as follows: The median frequency of each frequency band was recorded as the median frequency; Based on the energy distribution measurement index and the frequency median, determining an effective voice command coefficient for each frequency band, wherein the effective voice command coefficient is in a positive synergistic relationship with the energy distribution measurement index and in a negative synergistic relationship with the frequency median; Arrange the effective voice command coefficients of all frequency bands in the Mel spectrogram in descending order according to the median frequency to form an effective voice command coefficient vector; Using the effective voice command coefficient vector as the effective voice command feature vector of each frame in the voice signal; Get the MFCC coefficients of each frame in the speech signal; A vector consisting of MFCC coefficients of multiple frames before each frame in the speech signal is selected as the MFCC coefficient feature vector of each frame in the speech signal.

9. The elderly care service robot interaction method based on speech recognition as claimed in claim 1, It is characterized in that The obtaining of the recognition result of the speech signal comprises: The speech signal is labeled by using a slot filling method to obtain a slot label of the speech signal; The speech signal with slot labels, the effective voice command feature vector and the MFCC coefficient feature vector are taken as input, and a deep learning model is used to output the recognition result of the speech signal.