A voice recognition method and system for smart property

By dividing the speech signal into local feature sequences and adjusting the mismatch rate in the smart property system, the accuracy problem of speech recognition in the face of stuttering or pauses is solved and the accuracy of speech recognition is improved.

CN118506767BActive Publication Date: 2024-10-15SHAANXI THINK TANK CITY CONSTR CO LTD
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202410951850.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-16
Publication Date
2024-10-15
Estimated Expiration
2044-07-16

AI Technical Summary

Technical Problem

In existing smart property systems, speech recognition technology causes local deformation of the speech to be recognized when the user stutters or pauses, making it difficult for the dynamic time warping algorithm to effectively match, reducing the accuracy of speech recognition.

Method used

By obtaining the MFCC feature sequence of the speech signal to be tested and the template speech signal, it is divided into local feature sequences, and the initial mismatch rate of similar pairs of features is calculated based on similarity and distance, and the mismatch rate is adjusted based on the degree of confusion and fluctuation, and effective selection is Similar pairs, perform multiple matches to obtain the optimal matching pair and improve speech recognition accuracy.

Benefits of technology

It effectively improves the accuracy of speech recognition, reduces matching deviations due to local pauses or distortions, and enhances the matching effect of speech signals.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118506767B_ABST
    Figure CN118506767B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of speech recognition technology, and specifically to a speech recognition method and system for smart properties. The method obtains the initial mismatch rate of feature similarity pairs formed by any two local feature sequences of the feature sequence to be tested, and obtains effective similarity pairs in combination with the degree of confusion of elements in the vectors of the two local feature sequences in the feature similarity pairs and the fluctuation of elements in the vectors between the two local feature sequences; multiple matches are performed based on the matching relationship between the local feature sequences in the effective similarity pairs containing the analysis feature sequences and the analysis feature sequences in the template feature sequences to obtain the optimal matching pairs of the analysis feature sequences, and then the user's voice is recognized based on the matching results of the optimal matching pairs. The present invention sets corresponding relationships for effective similarity pairs that are prone to mismatching and performs multiple matches, selects the optimal matching results for speech recognition, and improves the accuracy of speech matching.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of speech recognition technology, and in particular to a speech recognition method and system for smart properties. Background Art

[0002] Smart property integrates advanced information technologies such as the Internet of Things, big data, cloud computing and artificial intelligence to achieve intelligent management of property facilities and improve the safety, convenience and comfort of the living environment. Among them, voice recognition technology, as an important means of contactless interaction, plays an increasingly important role in smart property.

[0003] In existing smart property systems, speech recognition technology is often used in access control and other scenarios. Existing methods usually use the Dynamic Time Warping (DTW) algorithm to match the speech to be recognized with the known voiceprint model; if the user stutters or pauses, the speech to be recognized will be partially deformed, and the local deformation will cause discontinuous parts in the speech to be recognized. However, the DTW algorithm may not be able to effectively match these discontinuous parts, resulting in poor matching between the speech to be recognized and the known voiceprint model, reducing the accuracy of speech recognition. Summary of the invention

[0004] In order to solve the technical problem that local deformation exists in speech signals and leads to inaccurate speech recognition, the purpose of the present invention is to provide a speech recognition method and system for smart properties. The technical solutions adopted are as follows:

[0005] In a first aspect, an embodiment of the present invention provides a speech recognition method for smart property, the method comprising:

[0006] Obtaining MFCC feature sequences of the user's voice signal to be tested and the template voice signal; the MFCC feature sequence is composed of a number of vectors; recording the MFCC feature sequence of the voice signal to be tested as the feature sequence to be tested, and recording the MFCC feature sequence of the template voice signal as the template feature sequence;

[0007] The feature sequence to be tested is divided into different local feature sequences; according to the similarity and distance between any two local feature sequences, an initial mismatch rate of feature similarity pairs formed by the corresponding two local feature sequences is obtained;

[0008] Selecting valid similarity pairs from the feature similarity pairs according to the degree of disorder of the elements in the vectors of the two local feature sequences in each feature similarity pair, the fluctuation of the elements in the vectors of the local feature sequence between the two local feature sequences, and the initial mismatch rate;

[0009] Any local feature sequence is recorded as the analysis feature sequence, and the feature sequence to be tested is matched with the template feature sequence. According to the matching relationship between all local feature sequences and the analysis feature sequence in the template feature sequence including the effective similarity pair of the analysis feature sequence, the feature sequence to be tested and the template feature sequence are matched again. Based on the vector matching difference between the feature sequence to be tested and the template feature sequence in each matching result during the re-matching process, the optimal matching pair of the analysis feature sequence is obtained; based on the matching result of the optimal matching pair of all local feature sequences in the feature sequence to be tested, the user's voice is recognized.

[0010] Furthermore, the method for obtaining the initial mismatch rate of feature similarity pairs formed by corresponding two local feature sequences according to the similarity and distance between any two local feature sequences includes:

[0011] Select any two local feature sequences as example sequences, normalize the mean of the cosine similarity between the same position vectors in the two example sequences, and obtain the speech feature similarity index between the two example sequences; if the speech feature similarity index is greater than a preset similarity threshold, the two example sequences constitute a feature similarity pair; traverse all local feature sequences in the feature sequence to be tested to obtain all feature similarity pairs;

[0012] For each feature similarity pair, based on the time distance between the two local feature sequences in the feature similarity pair, a position difference index of the two local feature sequences in the feature similarity pair is obtained; the speech feature similarity index is adjusted using the position difference index to obtain an initial mismatch rate of the feature similarity pair.

[0013] Furthermore, the method of selecting effective similar pairs from feature similar pairs includes:

[0014] For each feature similarity pair, the variance of all elements in the vectors of other local feature sequences between the two local feature sequences in the feature similarity pair is recorded as the fluctuation index of the feature similarity pair; the information entropy of the elements in all vectors in each local feature sequence in the feature similarity pair is recorded as the feature confusion index of the corresponding local feature sequence; according to the feature confusion index and the fluctuation index of the two local feature sequences in the feature similarity pair, the initial mismatch rate is adjusted to obtain the corrected mismatch rate of the feature similarity pair; and based on the corrected mismatch rate, a valid similarity pair is selected from the feature similarity pairs.

[0015] Furthermore, the method for obtaining the optimal matching pair of the analysis feature sequence includes:

[0016] The DTW algorithm is used to match the feature sequence to be tested with the template feature sequence, and the vector in the template feature sequence that is similar to each vector in the feature sequence to be tested is recorded as the matching vector of each vector in the feature sequence to be tested;

[0017] The sequence consisting of the vectors of the two endpoint positions of the analysis feature sequence between the matching vectors of the template feature sequence is recorded as the target feature sequence;

[0018] All local feature sequences in the valid similarity pairs containing the analysis feature sequence are recorded as the undetermined feature sequences of the analysis feature sequence; for each undetermined feature sequence, the undetermined feature sequence and the target feature sequence constitute a matching pair of the undetermined feature sequence, and based on the matching pair, the DTW algorithm is used to match the feature sequence to be tested with the template feature sequence again to obtain the matching vector of each vector in the undetermined feature sequence under the matching pair relationship of the undetermined feature sequence;

[0019] Under the matching pair relationship of each pending feature sequence, based on the difference between each vector in the feature sequence to be tested and its matching vector, a residual index under the matching pair relationship of each pending feature sequence is obtained; among the residual indexes under the matching pair relationship of all pending feature sequences, the matching pair corresponding to the smallest residual index is recorded as the optimal matching pair of the analysis feature sequence.

[0020] Furthermore, the method for obtaining the residual index under the matching relationship of each undetermined feature sequence includes:

[0021] Under the matching pair relationship of each undetermined feature sequence, the mean value of the distance between all vectors in the feature sequence to be tested and its matching vector is recorded as the residual index under the matching pair relationship of each undetermined feature sequence.

[0022] Furthermore, the method for recognizing the user's voice based on the matching results of the best matching pairs of all local feature sequences in the feature sequence to be tested includes:

[0023] Based on the optimal matching pair of all local feature sequences in the feature sequence to be tested, the feature sequence to be tested is matched with the template feature sequence using the DTW algorithm, and the obtained DTW distance is normalized to obtain a speech matching index; when the speech matching index is less than or equal to a preset matching threshold, the user's speech recognition is successful; when the speech matching index is greater than the preset matching threshold, the user's speech recognition fails.

[0024] Furthermore, the method for obtaining the corrected mismatch rate of feature similarity pairs includes:

[0025] The mean of the feature confusion index of the two local feature sequences in the feature similarity pair is normalized by the product of the fluctuation index to obtain the correction coefficient of the feature similarity pair; the initial mismatch rate is weighted according to the correction coefficient to obtain the corrected mismatch rate of the feature similarity pair.

[0026] Furthermore, the number of vectors in all local feature sequences of the feature sequence to be tested is equal.

[0027] Furthermore, the preset similarity threshold is 0.9.

[0028] In a second aspect, another embodiment of the present invention provides a speech recognition system for smart property, the system comprising:

[0029] The data acquisition module is used to obtain the MFCC feature sequence of the user's voice signal to be tested and the template voice signal; the MFCC feature sequence is composed of a plurality of vectors; the MFCC feature sequence of the voice signal to be tested is recorded as the feature sequence to be tested, and the MFCC feature sequence of the template voice signal is recorded as the template feature sequence;

[0030] The mismatch analysis module is used to divide the feature sequence to be tested into different local feature sequences; according to the similarity and distance between any two local feature sequences, the initial mismatch rate of the feature similarity pair composed of the corresponding two local feature sequences is obtained;

[0031] An effective similarity pair screening module, used to select effective similarity pairs from the feature similarity pairs according to the degree of disorder of the elements in the vectors of the two local feature sequences in each feature similarity pair, the fluctuation of the elements in the vectors of the local feature sequences between the two local feature sequences, and the initial mismatch rate;

[0032] The speech recognition optimization module is used to select any local feature sequence as the analysis feature sequence, match the feature sequence to be tested with the template feature sequence, and match the feature sequence to be tested with the template feature sequence again according to the matching relationship between all local feature sequences and the analysis feature sequence in the effective similarity pairs containing the analysis feature sequence, and obtain the optimal matching pair of the analysis feature sequence based on the vector matching difference between the feature sequence to be tested and the template feature sequence in each matching result during the re-matching process; and recognize the user's speech based on the matching results of the optimal matching pairs of all local feature sequences in the feature sequence to be tested.

[0033] The present invention has the following beneficial effects:

[0034] In the embodiment of the present invention, stuttering or pauses in the user's speech may cause local deformation of the voice signal to be tested, making the voice signal to be tested itself partially similar. The similarity and distance between different local feature sequences are analyzed in turn from the similarity of the Mel-frequency cepstral coefficient distribution and the position distribution, and the possibility of false matching of feature similarity pairs composed of two local feature sequences in the matching process, that is, the initial false matching rate, is obtained; the local deformation of the voice signal to be tested is likely to cause errors in the matching relationship, so that there is an error in the initial false matching rate, and the initial false matching rate needs to be corrected; the degree of confusion of the elements in all vectors in the local feature sequence presents the voice feature quantity contained in the local feature sequence, and the feature similarity pair is The fluctuation of the elements in the vector of the local feature sequence between two local feature sequences reflects the possibility of stuttering or pauses in the speech of that part. The initial mismatch rate of the feature similarity pairs is adjusted in combination with the above two factors, and then the effective similarity pairs that may have mismatches in the matching process are screened out; different matching relationships are preset based on the effective similarity pairs and multiple matches are performed, and the best matching result, that is, the matching similarity pairs of the local feature sequences are selected for matching, avoiding the problem of large deviations in the overall matching results due to local pauses or local distortions in the speech signal, accurately matching the local change areas of the speech signal to be tested, improving the matching effect between the speech to be tested and the template speech, and increasing the accuracy of speech recognition. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0036] Figure 1 A flowchart of a speech recognition method for smart properties provided by one embodiment of the present invention;

[0037] Figure 2 A flowchart of a method for obtaining an initial mismatch rate of feature similarity pairs provided by an embodiment of the present invention;

[0038] Figure 3 A structural diagram of a speech recognition system for smart properties provided by one embodiment of the present invention;

[0039] Figure 4 A computer device schematic diagram of a voice recognition device for smart properties provided by one embodiment of the present invention. DETAILED DESCRIPTION

[0040] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the speech recognition method and system for smart property proposed by the present invention, its specific implementation method, structure, features and effects, in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.

[0041] 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 invention belongs.

[0042] The following is a detailed description of a specific solution of a speech recognition method and system for smart properties provided by the present invention in conjunction with the accompanying drawings.

[0043] Embodiment 1:

[0044] The present invention proposes a speech recognition method for smart properties, please refer to Figure 1 , which shows a flowchart of a speech recognition method for smart property provided by an embodiment of the present invention, the method comprising:

[0045] Step S1: Obtain MFCC feature sequences of the user's speech signal to be tested and the template speech signal; the MFCC feature sequence is composed of a number of vectors; the MFCC feature sequence of the speech signal to be tested is recorded as the feature sequence to be tested, and the MFCC feature sequence of the template speech signal is recorded as the template feature sequence.

[0046] Voice recognition technology is often used in the access control function of smart properties. Specifically: the user speaks a preset password, the smart access control collects the voice signal of the user's password, matches it with the template voice signal of the preset password recorded by the user in advance, and controls the smart access control based on the matching result and the user's voiceprint judgment result.

[0047] The access control system of smart property contains microphones and infrared sensors. The infrared sensor is used to detect whether there is a user in front of the access control. When the temperature data collected by the infrared sensor exceeds a certain threshold, it indicates that there is a user around the access control. The microphone is activated, and the user's voice input is collected through the microphone to obtain the user's voice signal to be tested. It should be noted that the horizontal axis of the voice signal to be tested is time, and the vertical axis is the amplitude of the signal.

[0048] For each collected voice signal to be tested, an endpoint detection function is used to extract the effective voice part from the voice signal to be tested, so as to reduce the interference of the voice signal with the human input reaction time. In the embodiment of the present invention, when the continuous time without the voice part in the voice signal to be tested reaches 0.7 seconds, it is considered that the user's voice input ends, and the microphone stops collecting. At the same time, the time length range of the voice signal collection is set to 1 second to 10 seconds, which can be set by the implementer according to the specific situation. Among them, the endpoint detection function is a well-known technology for those skilled in the art and will not be described in detail here.

[0049] In other embodiments of the present invention, a hidden Markov model or a deep learning model such as a convolutional neural network may be used to extract a valid speech part from the speech signal to be tested.

[0050] The features of the effective speech part of the speech signal to be tested are extracted by the Mel-Frequency Cepstrum Coefficient (MFCC) algorithm to obtain the MFCC feature sequence of the speech signal to be tested, which is recorded as the feature sequence to be tested. In the process of extracting signal features using the MFCC algorithm, it is necessary to perform frame processing on the speech signal to be tested, that is, to divide the signal into multiple short time periods, each of which is called a frame, and use the MFCC algorithm to obtain the Mel-frequency cepstrum coefficient vector of each frame. Each element in the vector is a Mel-frequency cepstrum coefficient, which represents a certain acoustic characteristic in the frame; the Mel-frequency cepstrum coefficient vectors of all frames of the speech signal to be tested are arranged in the time sequence of the frames to obtain the MFCC feature sequence of the speech signal to be tested. Among them, the MFCC algorithm is a well-known technology for those skilled in the art and will not be described in detail here.

[0051] The smart property system stores the template voice signal of the response command recorded in advance by the user, obtains the MFCC sequence of the template voice signal, and records it as the template feature sequence. The method for obtaining the MFCC feature sequence of the template voice signal is the same as the method for obtaining the MFCC feature sequence of the voice signal to be tested.

[0052] Step S2: Divide the feature sequence to be tested into different local feature sequences; and obtain the initial mismatch rate of feature similarity pairs formed by the corresponding two local feature sequences according to the similarity and distance between any two local feature sequences.

[0053] If the user stutters or pauses when speaking the preset password, the acoustic features of different positions of the voice signal to be tested may be relatively close. In this case, when the feature sequence to be tested is matched with the template feature sequence, multiple local feature sequences in the feature sequence to be tested and the same vector in the template feature sequence are likely to have a many-to-one match, making the similarity of the local positions in the two voice signals smaller, resulting in local optimization of the matching results, and then causing errors in the overall matching, affecting the matching effect. Therefore, when matching two voice signals, the user's voice signal to be tested is first judged for similarity. If there is local similarity in the feature sequence to be tested, the matching process must consider the overall optimal matching result, thereby optimizing the local matching result to achieve the best matching effect.

[0054] To judge the similarity of the speech signal to be tested, it is necessary to first continuously and evenly segment the feature sequence to be tested to obtain multiple local feature sequences. It should be noted that the number of vectors in the local feature sequence is an empirical value of 5, which can be set by the implementer according to the specific situation.

[0055] Each vector in the MFCC feature sequence represents a specific audio feature; the similarity between two local feature sequences presents the similarity of different audio features of the speech signal to be tested, but this similarity analysis only indicates the similarity of the distribution of Mel-frequency cepstral coefficients, and cannot fully indicate the possibility of mismatch between the two local feature sequences; however, when the similarity of the audio features represented by the two local feature sequences is high, if the distance between the two local feature sequences is closer, the vectors in the two local feature sequences are more likely to have a many-to-one match with the same vector in the template feature sequence, and the possibility of mismatch in the matching process is greater, thereby obtaining the initial mismatch rate of the feature similarity pairs formed by the two local feature sequences.

[0056] See also Figure 2 , which shows a flowchart of the steps of a method for obtaining an initial mismatch rate of a feature similarity pair provided by an embodiment of the present invention, the method comprising:

[0057] Step S210: select any two local feature sequences as example sequences, normalize the mean of the cosine similarity between the vectors at the same position in the two example sequences, and obtain the speech feature similarity index between the two example sequences; if the speech feature similarity index is greater than a preset similarity threshold, the two example sequences constitute a feature similarity pair; traverse all local feature sequences in the feature sequence to be tested to obtain all feature similarity pairs.

[0058] If the cosine similarity between the vectors in the two example sequences is greater, the more similar the distribution of the elements in the two vectors, i.e., the Mel-frequency cepstral coefficients, is, the more similar the specific audio features represented by the vectors in the two example sequences are, the greater the speech feature similarity index is; at the same time, if there are similar local speech features in the speech signal to be tested, the possibility of mismatching between the two analysis feature vectors during the matching process is greater. When the speech feature similarity index is greater than the preset similarity threshold, this scheme considers that the two example sequences are prone to errors in the matching process of the speech signal to be tested, and the two example sequences constitute a feature similarity pair, which is convenient for subsequent mismatch analysis of the matching process. The speech feature similarity index between the two local feature sequences in the feature sequence to be tested is judged to obtain all feature similarity pairs.

[0059] It should be noted that the method for obtaining the speech feature similarity index between each two local feature sequences is the same as the method for obtaining the speech similarity index between two example sequences; in the embodiment of the present invention, the preset similarity threshold is an empirical value of 0.9, and the implementer can set it according to the specific situation.

[0060] In some possible implementations of the embodiments of the present invention, the speech feature similarity index is expressed by the formula:

[0061]

[0062] In the formula, is the speech feature similarity index between the first example sequence and the second example sequence; A is the number of vectors in the local feature sequence, and the empirical value in this embodiment is 5; is the ath vector in the first example sequence; is the ath vector in the second example sequence; cos is the cosine function; sigmoid is the normalization function; a represents the position of the vector in the two example sequences.

[0063] In other embodiments of the present invention, the mean of the distance between the vectors at the same position in the two example sequences may be negatively correlated and normalized to obtain a speech feature similarity index between the two example sequences. It should be noted that since the smaller the distance between the two vectors, the more similar they are, a negative correlation mapping is required; the distance may be a Euclidean distance or a Manhattan distance; and the negative correlation mapping is performed using an exponential function with a natural constant as the base.

[0064] Step S220: For each feature similarity pair, based on the time distance between the two local feature sequences in the feature similarity pair, obtain the position difference index of the two local feature sequences in the feature similarity pair; use the position difference index to adjust the speech feature similarity index to obtain the initial mismatch rate of the feature similarity pair.

[0065] In some possible implementation methods of the embodiments of the present invention, the method for obtaining the initial mismatch rate includes: recording the number of vectors existing between two local feature sequences within a feature similarity pair as a position difference index of the two example sequences within the feature similarity pair; and multiplying the result of negative correlation mapping the position difference index by the product of the speech feature similarity index between the two local feature sequences within the feature similarity pair as the initial mismatch rate of the feature similarity pair.

[0066] As an example, if two local feature sequences are continuous sequences, that is, the two local feature sequences are adjacent, then the number of vectors between the two local feature sequences is zero.

[0067] It should be noted that if the position difference index of the two local feature sequences within the feature similarity pair is smaller and the speech feature similarity index is larger, it means that when the speech feature similarity of the two local feature sequences is higher, when the time distance between the two local feature sequences is closer, the possibility of a many-to-one match between the vectors in the two local feature sequences and the same vector in the template feature sequence is greater, then the probability of an incorrect match between the two feature local sequences during the matching process is greater, and the initial mismatch rate is greater; therefore, the position difference index is negatively correlated with the initial mismatch rate, and the speech feature similarity index is positively correlated with the initial mismatch rate.

[0068] In the embodiment of the present invention, negative correlation mapping is performed by an exponential function with a natural constant as the base; in other embodiments of the present invention, other negative correlation mapping methods can also be selected to construct the correlation between the position difference index and the speech feature similarity index and the initial mismatch rate through other basic mathematical operations, which will not be limited or elaborated here.

[0069] Step S3: Select valid similarity pairs from the feature similarity pairs according to the degree of confusion of the elements in the vectors of the two local feature sequences within each feature similarity pair, the fluctuation of the elements in the vectors of the local feature sequences between the two local feature sequences, and the initial mismatch rate.

[0070] The DTW matching algorithm is not a one-to-one matching algorithm. Its results may have a one-to-many or many-to-one correspondence. In this solution, the user may stutter or pause, resulting in local deformation of the voice signal to be tested, which may lead to errors in the above correspondence. Therefore, it is necessary to correct the initial mismatch rate of feature similarity pairs, and then screen out valid similarity pairs with matching errors.

[0071] The degree of disorder of the elements in all vectors in the local feature sequence reflects the amount of speech features contained in the local feature sequence. The more speech features a local feature sequence has, the more important it is to the matching process, and the more accurate the initial mismatch rate of the feature similarity pair it is in. The fluctuation of the elements in the vector of the local feature sequence between the two local feature sequences in the feature similarity pair reflects the possibility of stuttering or pauses between the two local feature sequences in the corresponding part of the speech signal to be tested, which determines the degree of distortion of the initial mismatch rate. The initial mismatch rate of the feature similarity pair is adjusted by combining the above two factors.

[0072] Preferably, the method for obtaining the corrected mismatch rate includes: for each feature similarity pair, recording the variance of all elements in the vectors in other local feature sequences between the two local feature sequences within the feature similarity pair as the fluctuation index of the feature similarity pair; recording the information entropy of the elements in all vectors in each local feature sequence within the feature similarity pair as the feature confusion index of the corresponding local feature sequence; adjusting the initial mismatch rate according to the feature confusion index and the fluctuation index of the two local feature sequences within the feature similarity pair to obtain the corrected mismatch rate of the feature similarity pair; and selecting valid similarity pairs from the feature similarity pairs based on the corrected mismatch rate.

[0073] In other possible implementations of the embodiments of the present invention, statistical characteristics such as standard deviation, variance, and coefficient of variation may also be used to reflect fluctuations and confusion.

[0074] If the fluctuation index of the feature similarity pair is smaller, the distribution of elements in all vectors of other local feature sequences between the two local feature sequences in the feature similarity pair is more concentrated, indicating that the distribution of speech features represented by these elements is more stable, then the information between the two local feature sequences in the feature similarity pair is less in the corresponding part of the speech signal to be tested, and it is more likely to correspond to stuttering or slight pauses during speaking. Because the template speech signal does not have local changes caused by stuttering or pauses, the greater the difference between the local deformation caused by stuttering or pauses in the speech signal to be tested and the template speech signal, the greater the possibility of a multi-to-one match, and thus the greater the distortion of the initial mismatch rate of the feature similarity pair, the greater the degree of correction required for the initial mismatch rate. When the feature confusion index of the local feature sequence is larger, the more speech features are contained in the vector in the local feature sequence, the more important the local feature sequence is to the matching process of the speech signal to be tested and the template speech signal, the smaller the possibility of a multi-to-one match, the more accurate the initial mismatch rate of the feature similarity pair, and the smaller the degree of correction required.

[0075] In some possible implementations of the present invention, the method for obtaining the corrected mismatch rate of the feature similarity pair is as follows: normalize the product of the feature confusion index of the two local feature sequences in the feature similarity pair and the fluctuation index to obtain the correction coefficient of the feature similarity pair; weight the initial mismatch rate according to the correction coefficient to obtain the corrected mismatch rate of the feature similarity pair. Select the uth local feature sequence from all the local feature sequences divided by the feature sequence to be tested. With the vth local feature sequence , with local feature sequence and The feature similarity pairs formed are analyzed as an example, and the corrected mismatch rate is expressed as follows:

[0076]

[0077] In the formula, is the local feature sequence and Corrected mismatch rate of similar pairs of features; is the local feature sequence and The initial mismatch rate of similar pairs of features; is the local feature sequence Characteristic confusion index of is the local feature sequence Characteristic confusion index of is the local feature sequence and The volatility index of the pairs with similar characteristics; is the local feature sequence and The correction coefficient of the feature similarity pairs; sigmoid is the normalization function.

[0078] It should be noted that when The bigger the The closer it is to 1, the more local feature sequences and The more speech features the mid-vector contains as a whole, the less likely it is that a multiple-to-one match will occur, the more accurate the initial mismatch rate of feature-similar pairs will be, and the less correction will be required, making the local feature sequence and The corrected mismatch rate of the feature similarity pairs is close to the initial mismatch rate. The smaller the time, the The smaller the local feature sequence and The greater the possibility that the data between the two parts is a stutter or a slight pause in the corresponding part of the voice signal to be tested, the greater the possibility of a multiple-to-one match in the matching process, and the greater the distortion of the initial mismatch rate. The greater the degree of correction.

[0079] A second screening is performed based on the corrected mismatch rate, and feature similarity pairs whose corrected mismatch rate is greater than a preset error threshold are taken as valid similarity pairs. The local feature sequences within the valid similarity pairs are more likely to have matching errors during the matching process between the test speech signal and the template speech signal. It should be noted that the preset error threshold in the embodiment of the present invention is an empirical value of 0.6, and the implementer can set it according to the specific situation.

[0080] Step S4: randomly select a local feature sequence and record it as the analysis feature sequence, match the feature sequence to be tested with the template feature sequence, and match the feature sequence to be tested with the template feature sequence again according to the matching relationship between all local feature sequences and the analysis feature sequence in the template feature sequence within the effective similarity pair containing the analysis feature sequence, and obtain the optimal matching pair of the analysis feature sequence based on the vector matching difference between the feature sequence to be tested and the template feature sequence in each matching result during the re-matching process; and recognize the user's voice based on the matching results of the optimal matching pairs of all local feature sequences in the feature sequence to be tested.

[0081] In the process of matching the test speech signal with the template speech signal, the local feature sequence within the effective similarity pair causes a many-to-one situation between the test speech signal and the template speech signal due to the high similarity of the speech features, thereby generating an incorrect match and causing a deviation in the matching result. In the embodiment of the present invention, different matching relationships are preset for the local feature sequences within the effective similarity pair and multiple matches are performed, and the matching relationship of the local feature sequences is adjusted to obtain the optimal matching result, i.e., the optimal matching pair.

[0082] The DTW algorithm is used to match the feature sequence to be tested with the template feature sequence, and the vectors in the template feature sequence that are similar to each vector in the feature sequence to be tested are recorded as the matching vectors of each vector in the feature sequence to be tested; the sequence composed of the vectors at the two endpoint positions of the analysis feature sequence between the matching vectors of the template feature sequence is recorded as the target feature sequence. It should be noted that in the matching process of the feature sequence to be tested and the template feature sequence, the distance measurement method between the two vectors in the embodiment of the present invention is the Euclidean distance between the two vectors. Among them, DTW matching is a well-known technology for those skilled in the art and will not be repeated here.

[0083] All local feature sequences in the valid similarity pairs containing the analysis feature sequence are recorded as the pending feature sequences of the analysis feature sequence; for each pending feature sequence, the pending feature sequence and the target feature sequence constitute a matching pair of the pending feature sequence, based on the matching pair, the DTW algorithm is used to match the feature sequence to be tested with the template feature sequence again, and the matching vector of each vector in the pending feature sequence under the matching pair relationship of the pending feature sequence is obtained; under the matching pair relationship of each pending feature sequence, based on the difference between each vector in the feature sequence to be tested and its matching vector, the residual index under the matching pair relationship of each pending feature sequence is obtained; among the residual indexes under the matching pair relationship of all pending feature sequences, the matching pair corresponding to the smallest residual index is recorded as the optimal matching pair of the analysis feature sequence.

[0084] It should be noted that this solution assumes that in the process of acquiring the template voice signal, if the user does not stutter or pause, then multiple vectors of the feature sequence to be tested will match one vector of the template feature sequence. The method for obtaining the optimal matching pairs of all local feature sequences in the feature sequence to be tested is the same as the method for obtaining the optimal matching pairs of the analysis feature sequence.

[0085] Preferably, the method for obtaining the residual index is: under the matching relationship of each feature sequence to be determined, the mean of the Euclidean distances between all vectors in the feature sequence to be tested and their matching vectors is recorded as the residual index under the matching pair relationship of each feature sequence to be determined; the smaller the residual index, the better the matching relationship of the matching pair of the feature sequence to be determined.

[0086] As an example, the feature sequence to be tested is C , the feature sequence to be tested is divided into , , Three local feature sequences, the template feature sequence is D ; Use the DTW algorithm to perform the first match between the feature sequence to be tested and the template feature sequence, and the local feature sequence middle , The similar vectors in the template feature sequence D are: , ,but and There is a matching relationship in the DTW matching process. , form a valid similar pair.

[0087] Different matching relationships are preset, specifically: the first matching relationship is and constitute Matching pair E1 ,exist and In the case of mutual matching, the DTW algorithm is used to perform a second match between the feature sequence to be tested and the template feature sequence (the result of the second match is actually the result of the first match), and the result is Under the matching pair E1 relationship, the matching vector corresponding to each vector in the feature sequence to be tested in the template feature vector; at this time, the mean value of the difference between all vectors in the feature sequence to be tested and their matching vectors is recorded as The residual indicator CC1 under the matching pair E1 relationship.

[0088] The second matching relationship is and constitute Matching pair E2 ,exist and In the case of mutual matching, the DTW algorithm is used to perform a third match between the feature sequence to be tested and the template feature sequence. The third match is actually based on the first match, and the features belonging to the same matching pair E1 are matched. In and The original matching relationship is replaced by matching pair E2 middle and The matching relationship between them can also be obtained by obtaining the matching vector corresponding to each vector in the feature sequence to be tested in the template feature vector. The smaller the residual index, the better the overall matching structure under the matching pair relationship of the undetermined feature sequence. If CC2 is the smallest among the residual indexes CC1 and CC2, the matching pair E2 corresponding to the residual index CC2 is Recorded as The best matching pair.

[0089] During the third matching process, due to Existing before The best matching pair of If there is already an excellent matching relationship, obtain the local feature sequence The best matching pair of The method for obtaining the optimal matching pair of The method for obtaining the optimal matching pair is the same as that for In the optimal matching process, if it contains There are valid similar pairs of The previous local feature sequence is and , then these two local feature sequences do not participate in obtaining The best matching pair.

[0090] Each matching relationship is different, and can be replaced by adding other local feature sequences containing valid similar pairs based on the previous matching. For the same matching relationship, re-matching will recalculate the loss index for each match, and you can randomly replace the included Other local feature sequences within the effective similarity pair can also be replaced according to the temporal order of the local feature sequences.

[0091] Based on the optimal matching pair of all local feature sequences in the feature sequence to be tested, the DTW algorithm is used to perform a final match between the feature sequence to be tested and the template feature sequence, and the obtained DTW distance is normalized to obtain a voice matching index; when the voice matching index is less than or equal to the preset matching threshold, the user's voice recognition is successful, that is, the preset password spoken by the user in front of the access control successfully matches the pre-recorded password, and the access control system performs the door opening operation; when the voice matching index is greater than the preset matching threshold, the user's voice recognition fails, and the output result is a matching failure, and the access control system prompts a failure. It should be noted that the preset matching threshold takes an empirical value of 0.5, and the implementer can set it according to the specific situation. In the embodiment of the present invention, sigmoid function, Norm function, etc. can be used for normalization, which is not limited here.

[0092] So far, the present invention is completed.

[0093] In summary, in an embodiment of the present invention, the initial mismatch rate of a feature similarity pair formed by any two local feature sequences of the feature sequence to be tested is obtained, and an effective similarity pair is obtained by combining the degree of confusion of the elements in the vectors of the two local feature sequences within the feature similarity pair and the fluctuation of the elements in the vectors between the two local feature sequences; multiple matches are performed based on the matching relationship between the local feature sequences within the effective similarity pair containing the analysis feature sequence and the analysis feature sequences in the template feature sequence to obtain the optimal matching pair of the analysis feature sequence, and then the user's voice is recognized based on the matching result of the optimal matching pair. The present invention sets corresponding relationships for multiple matches for effective similarity pairs that are prone to mismatching, selects the optimal matching result for voice recognition, and improves the accuracy of voice matching.

[0094] Embodiment 2:

[0095] The present invention proposes a speech recognition system for smart properties. Figure 3 , which shows a structure diagram of a speech recognition system for smart property provided by an embodiment of the present invention, the system comprising:

[0096] The data acquisition module 510 is used to obtain the MFCC feature sequences of the user's voice signal to be tested and the template voice signal; the MFCC feature sequence is composed of a number of vectors; the MFCC feature sequence of the voice signal to be tested is recorded as the feature sequence to be tested, and the MFCC feature sequence of the template voice signal is recorded as the template feature sequence;

[0097] The mismatch analysis module 520 is used to divide the feature sequence to be tested into different local feature sequences; according to the similarity and distance between any two local feature sequences, obtain the initial mismatch rate of the feature similarity pair composed of the corresponding two local feature sequences;

[0098] An effective similarity pair screening module 530 is used to select effective similarity pairs from the feature similarity pairs according to the degree of disorder of the elements in the vectors of the two local feature sequences in each feature similarity pair, the fluctuation of the elements in the vectors of the local feature sequences between the two local feature sequences, and the initial mismatch rate;

[0099] The speech recognition optimization module 540 is used to select any local feature sequence as the analysis feature sequence, match the feature sequence to be tested with the template feature sequence, and match the feature sequence to be tested with the template feature sequence again according to the matching relationship between all local feature sequences and the analysis feature sequence in the effective similarity pairs containing the analysis feature sequence in the template feature sequence, and obtain the optimal matching pair of the analysis feature sequence based on the vector matching difference between the feature sequence to be tested and the template feature sequence in each matching result during the re-matching process; and recognize the user's speech based on the matching results of the optimal matching pairs of all local feature sequences in the feature sequence to be tested.

[0100] It should be noted that the device provided in the above embodiment is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the computer device is divided into different functional modules to complete all or part of the functions described above. In addition, the speech recognition system for smart property and the speech recognition method embodiment for smart property provided in the above embodiment belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0101] Embodiment 3:

[0102] Figure 4 A computer device schematic diagram of a voice recognition device for smart property provided by an embodiment of the present invention. For example, Figure 4As shown, the computer device includes: a memory 601, a processor 602, and a computer program 603 stored in the memory 601 and running on the processor 602, wherein when the processor 602 executes the computer program 603, the computer device can execute any one of the speech recognition methods for smart properties introduced above.

[0103] In addition, an embodiment of the present application also protects a device, which may include a memory and a processor, wherein the memory stores executable program code, and the processor is used to call and execute the executable program code to execute a speech recognition method for smart properties provided in an embodiment of the present application.

[0104] In this embodiment, the functional modules of the device can be divided according to the above method example. For example, each functional module can be corresponded, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0105] It should be understood that the device provided in this embodiment is used to execute the above-mentioned voice recognition method for smart properties, and thus can achieve the same effect as the above-mentioned implementation method.

[0106] In the case of an integrated unit, the device may include a processing module and a storage module. When the device is applied to a device, the processing module may be used to control and manage the actions of the device. The storage module may be used to support the device to execute mutual program codes, etc.

[0107] The processing module may be a processor or a controller, which may implement or execute various exemplary logic blocks, modules and circuits disclosed in the present application. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc. The storage module may be a memory.

[0108] It should be noted that the sequence of the above embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0109] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.

[0110] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A speech recognition method for smart property, characterized in that: The method includes: Obtaining MFCC feature sequences of the user's voice signal to be tested and the template voice signal; the MFCC feature sequence is composed of a number of vectors; recording the MFCC feature sequence of the voice signal to be tested as the feature sequence to be tested, and recording the MFCC feature sequence of the template voice signal as the template feature sequence; The feature sequence to be tested is divided into different local feature sequences; according to the similarity and distance between any two local feature sequences, an initial mismatch rate of feature similarity pairs formed by the corresponding two local feature sequences is obtained; Selecting valid similarity pairs from the feature similarity pairs according to the degree of disorder of the elements in the vectors of the two local feature sequences in each feature similarity pair, the fluctuation of the elements in the vectors of the local feature sequence between the two local feature sequences, and the initial mismatch rate; Select any local feature sequence and record it as the analysis feature sequence, match the feature sequence to be tested with the template feature sequence, match the feature sequence to be tested with the template feature sequence again according to the matching relationship between all local feature sequences and the analysis feature sequence in the effective similarity pair containing the analysis feature sequence, and obtain the optimal matching pair of the analysis feature sequence based on the vector matching difference between the feature sequence to be tested and the template feature sequence in each matching result during the re-matching process; recognize the user's voice based on the matching results of the optimal matching pairs of all local feature sequences in the feature sequence to be tested; The method for obtaining the optimal matching pair of the analysis feature sequence comprises: The DTW algorithm is used to match the feature sequence to be tested with the template feature sequence, and the vector in the template feature sequence that is similar to each vector in the feature sequence to be tested is recorded as the matching vector of each vector in the feature sequence to be tested; The sequence consisting of the vectors of the two endpoint positions of the analysis feature sequence between the matching vectors of the template feature sequence is recorded as the target feature sequence; All local feature sequences in the valid similarity pairs containing the analysis feature sequence are recorded as the undetermined feature sequences of the analysis feature sequence; for each undetermined feature sequence, the undetermined feature sequence and the target feature sequence constitute a matching pair of the undetermined feature sequence, and based on the matching pair, the DTW algorithm is used to match the feature sequence to be tested with the template feature sequence again to obtain the matching vector of each vector in the undetermined feature sequence under the matching pair relationship of the undetermined feature sequence; Under the matching pair relationship of each pending feature sequence, based on the difference between each vector in the feature sequence to be tested and its matching vector, a residual index under the matching pair relationship of each pending feature sequence is obtained; among the residual indexes under the matching pair relationship of all pending feature sequences, the matching pair corresponding to the smallest residual index is recorded as the optimal matching pair of the analysis feature sequence.

2. A speech recognition method for smart property according to claim 1, characterized in that: The method for obtaining the initial mismatch rate of feature similarity pairs formed by corresponding two local feature sequences according to the similarity and distance between any two local feature sequences comprises: Select any two local feature sequences as example sequences, normalize the mean of the cosine similarity between the same position vectors in the two example sequences, and obtain the speech feature similarity index between the two example sequences; if the speech feature similarity index is greater than a preset similarity threshold, the two example sequences constitute a feature similarity pair; traverse all local feature sequences in the feature sequence to be tested to obtain all feature similarity pairs; For each feature similarity pair, based on the time distance between the two local feature sequences in the feature similarity pair, a position difference index of the two local feature sequences in the feature similarity pair is obtained; the speech feature similarity index is adjusted using the position difference index to obtain an initial mismatch rate of the feature similarity pair.

3. A speech recognition method for smart property according to claim 1, characterized in that: The method for selecting effective similar pairs from feature similar pairs comprises: For each feature similarity pair, the variance of all elements in the vectors of other local feature sequences between the two local feature sequences in the feature similarity pair is recorded as the fluctuation index of the feature similarity pair; the information entropy of the elements in all vectors in each local feature sequence in the feature similarity pair is recorded as the feature confusion index of the corresponding local feature sequence; according to the feature confusion index and the fluctuation index of the two local feature sequences in the feature similarity pair, the initial mismatch rate is adjusted to obtain the corrected mismatch rate of the feature similarity pair; and based on the corrected mismatch rate, a valid similarity pair is selected from the feature similarity pairs.

4. A speech recognition method for smart property according to claim 1, characterized in that: The method for obtaining the residual index under the matching relationship of each undetermined feature sequence includes: Under the matching pair relationship of each undetermined feature sequence, the mean value of the distance between all vectors in the feature sequence to be tested and its matching vector is recorded as the residual index under the matching pair relationship of each undetermined feature sequence.

5. The method for speech recognition for smart property according to claim 1, characterized in that: The method for recognizing the user's voice based on the matching results of the best matching pairs of all local feature sequences in the feature sequence to be tested includes: Based on the optimal matching pair of all local feature sequences in the feature sequence to be tested, the feature sequence to be tested is matched with the template feature sequence using the DTW algorithm, and the obtained DTW distance is normalized to obtain a speech matching index; when the speech matching index is less than or equal to a preset matching threshold, the user's speech recognition is successful; when the speech matching index is greater than the preset matching threshold, the user's speech recognition fails.

6. A speech recognition method for smart property according to claim 3, characterized in that: The method for obtaining the corrected mismatch rate of feature similarity pairs includes: The mean of the feature confusion index of the two local feature sequences in the feature similarity pair is normalized by the product of the fluctuation index to obtain the correction coefficient of the feature similarity pair; the initial mismatch rate is weighted according to the correction coefficient to obtain the corrected mismatch rate of the feature similarity pair.

7. A speech recognition method for smart property according to claim 1, characterized in that: The number of vectors in all local feature sequences of the feature sequence to be tested is equal.

8. A speech recognition method for smart property according to claim 2, characterized in that: The preset similarity threshold is 0.

9.

9. A speech recognition system for smart properties, characterized in that: The system includes: The data acquisition module is used to obtain the MFCC feature sequence of the user's voice signal to be tested and the template voice signal; the MFCC feature sequence is composed of a plurality of vectors; the MFCC feature sequence of the voice signal to be tested is recorded as the feature sequence to be tested, and the MFCC feature sequence of the template voice signal is recorded as the template feature sequence; The mismatch analysis module is used to divide the feature sequence to be tested into different local feature sequences; according to the similarity and distance between any two local feature sequences, the initial mismatch rate of the feature similarity pair composed of the corresponding two local feature sequences is obtained; An effective similarity pair screening module, used to select effective similarity pairs from the feature similarity pairs according to the degree of disorder of the elements in the vectors of the two local feature sequences in each feature similarity pair, the fluctuation of the elements in the vectors of the local feature sequences between the two local feature sequences, and the initial mismatch rate; A speech recognition optimization module is used to select any local feature sequence as an analysis feature sequence, match the feature sequence to be tested with the template feature sequence, match the feature sequence to be tested with the template feature sequence again according to the matching relationship between all local feature sequences and the analysis feature sequence in the effective similarity pair containing the analysis feature sequence, and obtain the optimal matching pair of the analysis feature sequence based on the vector matching difference between the feature sequence to be tested and the template feature sequence in each matching result during the re-matching process; recognize the user's speech based on the matching results of the optimal matching pairs of all local feature sequences in the feature sequence to be tested; The method for obtaining the optimal matching pair of the analysis feature sequence comprises: The DTW algorithm is used to match the feature sequence to be tested with the template feature sequence, and the vector in the template feature sequence that is similar to each vector in the feature sequence to be tested is recorded as the matching vector of each vector in the feature sequence to be tested; The sequence consisting of the vectors of the two endpoint positions of the analysis feature sequence between the matching vectors of the template feature sequence is recorded as the target feature sequence; All local feature sequences in the valid similarity pairs containing the analysis feature sequence are recorded as the undetermined feature sequences of the analysis feature sequence; for each undetermined feature sequence, the undetermined feature sequence and the target feature sequence constitute a matching pair of the undetermined feature sequence, and based on the matching pair, the DTW algorithm is used to match the feature sequence to be tested with the template feature sequence again to obtain the matching vector of each vector in the undetermined feature sequence under the matching pair relationship of the undetermined feature sequence; Under the matching pair relationship of each pending feature sequence, based on the difference between each vector in the feature sequence to be tested and its matching vector, a residual index under the matching pair relationship of each pending feature sequence is obtained; among the residual indexes under the matching pair relationship of all pending feature sequences, the matching pair corresponding to the smallest residual index is recorded as the optimal matching pair of the analysis feature sequence.

Citation Information

Patent Citations

  • Traffic flow sequence similarity measurement method based on DTW distance

    CN110135642A

  • Voice recognition method and device based on cosine similarity

    CN110890087A

  • Pathological speech recognition method, device and equipment and storage medium

    CN113870903A

  • Audio detection method and device

    CN117854501A

  • Speech recognition method and system, equipment and storage medium

    CN117935789A