A sound recognition method based on edge computing processing on PDA
By performing sound data processing and recognition locally on the PDA device, and using the similarity between the multi-convolution fusion feature sequence and the pre-stored standard sequence of words and sentences for identification, the strong network dependence and privacy leakage caused by the reliance on cloud computing in sound recognition in the existing technology are solved. problem, achieving fast, efficient and secure speech recognition.
Patent Information
- Application Number
- CN202410901094.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-05
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-07-05
AI Technical Summary
Existing voice recognition methods rely on cloud computing resources, resulting in strong network dependence, long response times, and risks of privacy leakage.
Acquire, process and identify sound data locally on the PDA device, perform dynamic noise reduction by analyzing the environmental noise spectrum in real time, calculate the speech power spectrum and use the similarity between the multi-convolution fusion feature sequence and the pre-stored standard sequence of words and sentences for identification to achieve edge calculate.
It achieves fast, efficient and secure speech recognition, reduces dependence on cloud computing, avoids the risk of privacy leakage, and adapts to the floating point computing power of the PDA side.
Smart Images

Figure CN118430527B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of voice recognition, and in particular to a voice recognition method based on edge computing processing on a PDA terminal. Background Art
[0002] PDA (Personal Digital Assistant) is also called a handheld computer. It can help people work, study and entertain on the move. It is mainly divided into industrial-grade PDA and consumer PDA. Barcode scanners, RFID (Radio Frequency Identification) readers and writers, POS (Point Of Sale terminal), and handheld devices used by broadband engineers for WIFI speed testing and optical fiber transmission testing are all industrial-grade PDAs.
[0003] With the popularity of PDA devices and the improvement of computing power, more and more applications need to process data directly on the device side to reduce dependence on central servers, reduce latency, and improve user privacy protection. As an important way of human-computer interaction, voice recognition has an increasing demand for applications on mobile devices such as PDAs. However, the existing voice recognition methods mostly rely on cloud computing resources, which have problems such as strong network dependence, long response time, and privacy leakage risks. Summary of the invention
[0004] In view of the above-mentioned deficiencies in the prior art, the present invention provides a sound recognition method based on edge computing processing on the PDA side, which realizes a fast, efficient and secure sound recognition function by collecting, processing and identifying sound data locally on the PDA device, thereby solving the problems of the existing sound recognition method relying on cloud computing resources, having strong network dependence, long response time and risk of privacy leakage.
[0005] In order to achieve the above-mentioned object of the invention, the technical solution adopted by the present invention is:
[0006] A method for voice recognition based on edge computing processing on a PDA terminal comprises the following steps:
[0007] S1, when the user is silent, multiple recordings are made through the built-in microphone of the PDA to obtain multiple environmental noise signal sequences;
[0008] S2. Calculate the noise average power spectrum according to each segment of the environmental noise signal sequence;
[0009] S3, when the user speaks, the built-in microphone of the PDA is used to record the speech and obtain a speech signal sequence;
[0010] S4, calculating the speech power spectrum according to the speech signal sequence, and performing noise reduction processing on the speech power spectrum according to the noise average power spectrum;
[0011] S5. Calculate and obtain a multi-convolution fusion feature sequence according to the speech power spectrum after noise reduction;
[0012] S6. Calculate the similarity between the multi-convolution fusion feature sequence and the standard sequence of each word and sentence to identify the words and sentences spoken by the user.
[0013] The beneficial effects of the present invention are as follows: the present invention dynamically and actively reduces the noise of user speech by real-time analysis of the environmental noise spectrum, so that the spectrum analysis of the voice signal is more accurate; different from the traditional speech recognition process of cepstrum transform, DCT transform, and deep convolutional neural network analysis, the present invention takes into account the weak floating-point computing capability of the PDA end, and calculates the similarity between the multi-convolution fusion feature sequence of the speech power spectrum after noise reduction and the standard sequence of each word and sentence, and judges whether the user has said the words and sentences pre-stored in the PDA from the similarity, thereby relying on edge computing without cloud processing, the user's voice can be quickly, efficiently and securely recognized, which solves the problems of existing voice recognition methods relying on cloud computing resources, strong network dependence, long response time and privacy leakage risks.
[0014] Furthermore, the recording times of S1 and S3 are the same;
[0015] The lengths of the speech signal sequence and each segment of the environmental noise sequence are equal, and the value is N, where N is a positive integer greater than 511.
[0016] The beneficial effect of the above further solution is that speech and noise sequences of the same length facilitate data alignment, while too short a time domain sequence is not conducive to obtaining an accurate spectrum during discrete signal processing.
[0017] Furthermore, the S2 comprises the following sub-steps:
[0018] S21. Add Kaiser window to each environmental noise signal sequence by the following formula:
[0019] ,in, is the ambient noise signal sequence after windowing in the mth segment, x noise,m is the mth environmental noise signal sequence, w is the Kaiser window function;
[0020] S22, calculating each noise power spectrum according to each windowed environmental noise signal sequence;
[0021] S23. Calculate the average noise power spectrum according to each noise power spectrum.
[0022] Furthermore, the S22 calculates the mth noise power spectrum according to the mth windowed environmental noise signal sequence by the following formula:
[0023] , where P noise,m (k) is the power value of the kth frequency point of the mth noise power spectrum, is the nth amplitude of the mth windowed ambient noise signal sequence, e is a natural constant, j is an imaginary part identifier, π is pi, and k and n are both integers in the closed interval [1,N].
[0024] Furthermore, the S23 calculates the noise average power spectrum according to each noise power spectrum by the following formula: , where P noise (k) is the power value of the kth frequency point of the noise average power spectrum, and M is the number of environmental noise signal sequences.
[0025] The beneficial effects of the above further scheme are: since speech recognition requires accurate power spectrum, by adding Kaiser window and pre-distortion processing on the time domain discrete sequence, the spectrum leakage and aliasing problems caused by the sidelobe effect when the finite length sequence is transformed in the time domain and frequency domain can be effectively suppressed; by sampling different noises multiple times and calculating the average, the noise power spectrum can be obtained more accurately.
[0026] Furthermore, the S4 comprises the following sub-steps:
[0027] S41. Add Kaiser window to the speech signal sequence by the following formula: ,in, is the windowed speech signal sequence, x voice is a speech signal sequence;
[0028] S42, by the following formula, according to the windowed speech signal sequence, the speech power spectrum is calculated: , where P voice (k) is the power value of the kth frequency point of the speech power spectrum, is the nth amplitude in the windowed speech signal sequence;
[0029] S43, performing noise reduction processing on the speech power spectrum according to the noise average power spectrum through the following formula: , where P valid (k) is the power value of the kth frequency point of the speech power spectrum after noise reduction.
[0030] The beneficial effect of the above further scheme is: the above process analyzes the environmental noise spectrum in real time, dynamically and actively reduces the noise of the speech power spectrum containing user speech information in the frequency domain, and obtains a more accurate speech power spectrum compared to various existing fixed filtering algorithms.
[0031] Furthermore, the S5 comprises the following sub-steps:
[0032] S51, performing convolution operations on the denoised speech power spectrum with the first rectangular window, the second rectangular window and the third rectangular window respectively to obtain a first scale feature sequence, a second scale spectrum feature sequence and a third scale spectrum feature sequence;
[0033] S52. By performing weighted summation on the denoised speech power spectrum, the first scale spectrum feature, the second scale spectrum feature and the third scale spectrum feature, a multi-convolution fusion feature sequence is obtained through the following formula:
[0034] ,
[0035] Among them, r(k) is the kth element value of the multi-convolution fusion feature sequence, r1(k) is the kth element value of the first scale feature sequence, r2(k) is the kth element value of the second scale feature sequence, r3(k) is the kth element value of the third scale feature sequence, α0 is the weighting coefficient zero, α1 is the weighting coefficient one, α2 is the weighting coefficient two, and α3 is the weighting coefficient three.
[0036] The beneficial effect of the above further scheme is that Mandarin speech is composed of a combination of initials, finals, tones and syllables, which is reflected in the signal as a combination of different frequencies and different amplitudes. The present invention can obtain sampling values of frequency combinations of different scales through convolution operations of different rectangular windows, and can extract multi-scale speech information through weighted fusion.
[0037] Furthermore, the standard sequence of words and sentences in S6 is a multi-convolution fusion feature sequence corresponding to the standard pronunciation of the words and sentences pre-stored in the PDA.
[0038] Furthermore, the S6 comprises the following sub-steps:
[0039] S61. Calculate the similarity between the multi-convolution fusion feature sequence and each word and sentence standard sequence through the following formula:
[0040] , where s x is the similarity between the multi-convolution fusion feature sequence and the x-th word and sentence standard sequence, b x (k) is the value of the kth element of the standard sequence of the xth phrase;
[0041] S62. Determine whether the similarity between the multi-convolution fusion feature sequence and each standard sequence of words and sentences is greater than a similarity threshold. If the similarity between the multi-convolution fusion feature sequence and the x-th standard sequence of words and sentences is greater than the similarity threshold, the word or sentence spoken by the user in the recording is the x-th word or sentence.
[0042] The beneficial effect of the above further scheme is: unlike big data cloud computing, the PDA end has a specific working environment, so its voice recognition is usually only used to recognize specific sentences and specific words. In order to perform edge computing without cloud participation under the condition of limited resources of PDA, the voice recognition method of the present invention abandons the complex calculation of the deep neural network in the prior art, and performs similarity calculation on the multi-convolution fusion feature sequence containing user voice information and the standard sequence of each word and sentence pre-stored in the PDA, so as to perform accurate and efficient voice recognition while meeting the working condition requirements. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 A flowchart of a sound recognition method based on edge computing processing on a PDA is provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0044] The specific implementation modes of the present invention are described below so that those skilled in the art can understand the present invention. However, it should be clear that the present invention is not limited to the scope of the specific implementation modes. For those of ordinary skill in the art, as long as various changes are within the spirit and scope of the present invention as defined and determined by the attached claims, these changes are obvious, and all inventions and creations utilizing the concept of the present invention are protected.
[0045] like Figure 1 As shown, in one embodiment of the present invention, a sound recognition method based on edge computing processing on a PDA terminal includes the following steps:
[0046] S1. When the user is silent, the built-in microphone of the PDA is used to record multiple times to obtain multiple environmental noise signal sequences.
[0047] Since the speech and noise sequences of the same length are convenient for data alignment, and the too short time domain sequence is not conducive to obtaining accurate spectrum when processing discrete signals. In the present embodiment, the PDA targeted is the PDA used for broadband installation and maintenance, and the purpose of its speech recognition is to obtain the construction process of the supervisory installation and maintenance personnel, and to understand the customer's service satisfaction with the installation and maintenance personnel, so the sound keywords mainly include: "hello", "please", "thank you", "goodbye" and other polite words, customer satisfaction evaluation, and "optical modem", "mobile phone", "router" and other technical vocabulary. Therefore, the time of each recording of the present embodiment is the same, all set to 1 second, the length of the speech signal sequence and each segment of the environmental noise sequence is equal, and its value N is set to 16384, which meets the positive integer requirement greater than 511, and the corresponding sampling rate is 16384Hz, which can effectively distinguish the human voice.
[0048] S2. Calculate the noise average power spectrum according to each segment of the environmental noise signal sequence.
[0049] S2 includes the following sub-steps:
[0050] S21. Add Kaiser window to each environmental noise signal sequence by the following formula:
[0051] ,in, is the ambient noise signal sequence after windowing in the mth segment, x noise,m is the mth environmental noise signal sequence, and w is the Kaiser window function.
[0052] In this embodiment, the beta parameter of the Kaiser window is set to 38, which has a better effect of suppressing the sidelobe effect.
[0053] S22. Calculate each noise power spectrum according to each windowed environmental noise signal sequence, wherein the mth noise power spectrum is calculated according to the mth windowed environmental noise signal sequence by the following formula:
[0054] , in the above formula, P noise,m (k) is the power value of the kth frequency point of the mth noise power spectrum, is the nth amplitude of the mth windowed ambient noise signal sequence, e is a natural constant, j is an imaginary part identifier, π is pi, and k and n are both integers in the closed interval [1,N].
[0055] S23. Calculate the noise average power spectrum according to each noise power spectrum by the following formula:
[0056] , where P noise (k) is the power value of the kth frequency point of the noise average power spectrum, and M is the number of environmental noise signal sequences.
[0057] Since speech recognition requires accurate power spectrum, the present invention performs pre-distortion processing on the time domain discrete sequence by adding a Kaiser window, which can effectively suppress the spectrum leakage and aliasing problems caused by the sidelobe effect when the finite length sequence is transformed in the time domain and frequency domain; by sampling different noises multiple times and calculating the average, the noise power spectrum can be obtained more accurately.
[0058] S3. When the user speaks, the built-in microphone of the PDA is used to record the speech and obtain a speech signal sequence.
[0059] S4. Calculate the speech power spectrum according to the speech signal sequence, and perform noise reduction processing on the speech power spectrum according to the noise average power spectrum.
[0060] S4 includes the following sub-steps:
[0061] S41. Add Kaiser window to the speech signal sequence by the following formula: ,in, is the windowed speech signal sequence, x voice is a speech signal sequence.
[0062] The Kaiser window added to the speech signal sequence also has a beta parameter of 38.
[0063] S42, by the following formula, according to the windowed speech signal sequence, the speech power spectrum is calculated:
[0064] , where P voice (k) is the power value of the kth frequency point of the speech power spectrum, is the nth amplitude in the windowed speech signal sequence;
[0065] S43, performing noise reduction processing on the speech power spectrum according to the noise average power spectrum through the following formula: , where P valid (k) is the power value of the kth frequency point of the speech power spectrum after noise reduction.
[0066] The above process analyzes the ambient noise spectrum in real time and dynamically and actively reduces the noise of the speech power spectrum containing user speech information in the frequency domain, thereby obtaining a more accurate speech power spectrum compared to various existing fixed filtering algorithms.
[0067] S5. According to the speech power spectrum after noise reduction, a multi-convolution fusion feature sequence is calculated.
[0068] S5 includes the following sub-steps:
[0069] S51, performing convolution operations on the denoised speech power spectrum with the first rectangular window, the second rectangular window and the third rectangular window respectively to obtain a first scale feature sequence, a second scale spectrum feature sequence and a third scale spectrum feature sequence;
[0070] S52. By performing weighted summation on the denoised speech power spectrum, the first scale spectrum feature, the second scale spectrum feature and the third scale spectrum feature, a multi-convolution fusion feature sequence is obtained through the following formula: , where r(k) is the k-th element value of the multi-convolution fusion feature sequence, r1(k) is the k-th element value of the first scale feature sequence, r2(k) is the k-th element value of the second scale feature sequence, r3(k) is the k-th element value of the third scale feature sequence, α0 is the zero weighting coefficient, α1 is the one weighting coefficient, α2 is the two weighting coefficients, and α3 is the three weighting coefficients.
[0071] Mandarin speech is composed of initials, finals, tones and syllables, which are reflected in the signal as a combination of different frequencies and amplitudes. The present invention can obtain sampling values of frequency combinations of different scales through convolution operations of different rectangular windows, and can extract multi-scale speech information through weighted fusion.
[0072] In this embodiment, the first rectangular window is a sequence of 128 "1"s [1,1, ..., 1,1], the second rectangular window is a sequence of 512 "1"s, and the third rectangular window is a sequence of 2056 "1"s.
[0073] S6, calculating the similarity between the multi-convolution fusion feature sequence and each standard sequence of words and sentences, and identifying the words and sentences spoken by the user. The standard sequence of words and sentences is the multi-convolution fusion feature sequence of the standard pronunciation of the words and sentences pre-stored in the PDA.
[0074] In this embodiment, the multi-convolution fusion feature sequences of each sound keyword in standard Mandarin are pre-calculated and stored as the standard sequences of each word or sentence.
[0075] S6 includes the following sub-steps:
[0076] S61. Calculate the similarity between the multi-convolution fusion feature sequence and each word and sentence standard sequence through the following formula: , where s x is the similarity between the multi-convolution fusion feature sequence and the x-th word and sentence standard sequence, b x (k) is the value of the kth element of the standard sequence of the xth phrase;
[0077] S62. Determine whether the similarity between the multi-convolution fusion feature sequence and each standard sequence of words and sentences is greater than a similarity threshold. If the similarity between the multi-convolution fusion feature sequence and the x-th standard sequence of words and sentences is greater than the similarity threshold, the word or sentence spoken by the user in the recording is the x-th word or sentence.
[0078] Unlike big data cloud computing, the voice recognition of PDA is usually only used to recognize specific sentences and specific words because of its specific working environment. In order to perform edge computing without cloud participation under the condition of limited resources of PDA, the voice recognition method of the present invention abandons the complex calculation of deep neural network in the prior art, and performs similarity calculation on the multi-convolution fusion feature sequence containing user voice information and the standard sequence of each word and sentence pre-stored in PDA, so as to perform accurate and efficient voice recognition while meeting the working condition requirements.
[0079] The similarity threshold affects the false detection and missed detection of word and sentence judgment, and its value is set by the user according to his emphasis on false detection and missed detection.
[0080] In summary, the present invention dynamically and actively reduces the noise of user speech by real-time analysis of the environmental noise spectrum, so that the spectral analysis of the speech signal is more accurate; different from the traditional speech recognition process of cepstrum transform, DCT transform, and deep convolutional neural network analysis, the present invention takes into account the weak floating-point computing capability of the PDA end, and calculates the similarity between the multi-convolution fusion feature sequence of the speech power spectrum after noise reduction and the standard sequence of each sentence, and judges whether the user has said the words pre-stored in the PDA from the similarity. In this way, relying on edge computing without cloud processing, the user's voice can be quickly, efficiently and securely identified, which solves the problems of existing voice recognition methods relying on cloud computing resources, strong network dependence, long response time and privacy leakage risks.
[0081] The present invention uses specific embodiments to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
[0082] Those skilled in the art will appreciate that the embodiments described herein are intended to help readers understand the principles of the present invention, and should be understood that the protection scope of the present invention is not limited to such specific statements and embodiments. Those skilled in the art can make various other specific variations and combinations that do not deviate from the essence of the present invention based on the technical revelations disclosed by the present invention, and these variations and combinations are still within the protection scope of the present invention.
Claims
1. A sound recognition method based on edge computing processing on a PDA. It is characterized in that The following steps are involved: S1, when the user is silent, multiple recordings are made through the built-in microphone of the PDA to obtain multiple environmental noise signal sequences; S2. Calculate the noise average power spectrum according to each segment of the environmental noise signal sequence; S3, when the user speaks, the built-in microphone of the PDA is used to record the speech and obtain a speech signal sequence; S4, calculating the speech power spectrum according to the speech signal sequence, and performing noise reduction processing on the speech power spectrum according to the noise average power spectrum; S5. Calculate and obtain a multi-convolution fusion feature sequence according to the speech power spectrum after noise reduction; S6, calculating the similarity between the multi-convolution fusion feature sequence and the standard sequence of each word and sentence, and identifying the words and sentences spoken by the user; The S5 comprises the following sub-steps: S51, performing convolution operations on the denoised speech power spectrum with the first rectangular window, the second rectangular window and the third rectangular window respectively to obtain a first scale feature sequence, a second scale spectrum feature sequence and a third scale spectrum feature sequence; S52. By performing weighted summation on the denoised speech power spectrum, the first scale spectrum feature, the second scale spectrum feature and the third scale spectrum feature, a multi-convolution fusion feature sequence is obtained through the following formula: , Among them, r(k) is the kth element value of the multi-convolution fusion feature sequence, r 1 (k) is the kth element value of the first scale feature sequence, r 2 (k) is the kth element value of the second scale feature sequence, r 3 (k) is the kth element value of the third scale feature sequence, α 0 is the zero weighting coefficient, α 1 is the first weight coefficient, α 2 is the second weighting coefficient, α 3 is the weighting coefficient No.
3.
2. The sound recognition method based on edge computing processing on a PDA according to claim 1, It is characterized in that The recording times of S1 and S3 are the same; The lengths of the speech signal sequence and each segment of the environmental noise sequence are equal, and the value is N, where N is a positive integer greater than 511.
3. The voice recognition method based on edge computing processing on a PDA according to claim 2, It is characterized in that The S2 comprises the following sub-steps: S21. Add Kaiser window to each environmental noise signal sequence by the following formula: , in, is the ambient noise signal sequence after windowing in the mth segment, x noise,m is the mth environmental noise signal sequence, w is the Kaiser window function; S22, calculating each noise power spectrum according to each windowed environmental noise signal sequence; S23. Calculate the average noise power spectrum according to each noise power spectrum.
4. The method for voice recognition based on edge computing processing on a PDA according to claim 3, It is characterized in that The S22 calculates the mth noise power spectrum according to the mth windowed environmental noise signal sequence by the following formula: , Among them, P noise,m (k) is the power value of the kth frequency point of the mth noise power spectrum, is the nth amplitude of the mth windowed ambient noise signal sequence, e is a natural constant, j is an imaginary part identifier, π is pi, and k and n are both integers in the closed interval [1,N].
5. The method for voice recognition based on edge computing processing on a PDA according to claim 4, It is characterized in that The S23 calculates the noise average power spectrum according to each noise power spectrum by the following formula: , Among them, P noise (k) is the power value of the kth frequency point of the noise average power spectrum, and M is the number of environmental noise signal sequences.
6. The method for voice recognition based on edge computing processing on a PDA according to claim 5, It is characterized in that The S4 comprises the following sub-steps: S41. Add Kaiser window to the speech signal sequence by the following formula: , in, is the windowed speech signal sequence, x voice is a speech signal sequence; S42, by the following formula, according to the windowed speech signal sequence, the speech power spectrum is calculated: , Among them, P voice (k) is the power value of the kth frequency point of the speech power spectrum, is the nth amplitude in the windowed speech signal sequence; S43, performing noise reduction processing on the speech power spectrum according to the noise average power spectrum through the following formula: , Among them, P valid (k) is the power value of the kth frequency point of the speech power spectrum after noise reduction.
7. The method for voice recognition based on edge computing processing on a PDA according to claim 1, It is characterized in that The standard sequence of words and sentences in S6 is a multi-convolution fusion feature sequence corresponding to the standard pronunciation of the words and sentences pre-stored in the PDA.
8. The method for voice recognition based on edge computing processing on a PDA according to claim 7, It is characterized in that The S6 comprises the following sub-steps: S61. Calculate the similarity between the multi-convolution fusion feature sequence and each word and sentence standard sequence through the following formula: , Among them, s x is the similarity between the multi-convolution fusion feature sequence and the xth word and sentence standard sequence, b x (k) is the value of the kth element of the standard sequence of the xth phrase; S62. Determine whether the similarity between the multi-convolution fusion feature sequence and each standard sequence of words and sentences is greater than a similarity threshold. If the similarity between the multi-convolution fusion feature sequence and the x-th standard sequence of words and sentences is greater than the similarity threshold, the word or sentence spoken by the user in the recording is the x-th word or sentence.
