SPEECH DETECTION USING STOCHASTIC CONFIDENCE MEASURES ON THE FREQUENCY SPECTRUM

Abstract: A probabilistic approach is used to classify each frame of the speech signal as speech or non-speech. The speech detection method is based on a frequency spectrum (24) extracted from each frame, such that the value for each frequency band is considered to be a random variable and each frame is considered to be an occurrence of these random variables. Using the frequency spectrums from a non-speech part of the speech signal, a known set of random variables is constructed (26). Next, each unknown frame is evaluated as to whether or not it belongs to this set of random variables by forming a unique random variable (preferably a chi-square value) (28) from a set of random variables associated with the unknown frame. The unique variable is normalized (30) with respect the known set, and then classified (32) as either speech or non-speech using the "Test of Hypothesis". Thus, each frame that belongs to the known set of random variables is classified as non-speech, and each frame that does not belong to the known set of random variables is classified as speech.

Description: SPEECH DETECTION USING STOCHASTIC CONFIDENCE MEASURES ON THE FREQUENCY SPECTRUM Background and Summary of the Invention The present invention relates generally to speech detection systems, and more particularly, the invention relates to a method for detecting speech using stochastic confidence measures on frequency spectrums from a speech signal. Speech recognition technology is now in wide use. Typically, speech recognition systems receive a time-varying speech signal representative of spoken words and phrases. These systems attempt to determine the words and phrases within the speech signal by analyzing components of the speech signal. As a first step, most speech recognition systems must first isolate those portions of the signal which convey spoken words from those non- speech portions of the signal. To this end, speech detection systems attempt to determine the beginning and ending boundaries of a word or group of words within the speech signal. Accurate and reliable determination of the beginning and ending boundaries of words or sentences poses a challenging problem, particularly when the speech signal includes background noise. Speech detection systems generally rely on different kinds of information encapsulated in the speech signal to determine the location of an isolated word or group of words within the signal. A first group of speech detection techniques have been developed for analyzing the speech signal using time domain information of the signal. Typically, the intensity or amplitude of the speech signal is measured. Portions of the speech signal having an intensity greater than a minimum threshold are designated as being speech; whereas those portions of the speech signal having an intensity below the threshold are designated as being non-speech. Other similar techniques have been based on the detection of zero crossing rate fluctuations or the peaks and valleys inside the signal. A second group of speech detection algorithms rely on signal information extracted out of the frequency domain. In these algorithms, the variation of the frequency spectrum is estimated and the detection is based on the frequency of this variation computed over successive frames. Alternatively, the variance of the energy in each frequency band is estimated and the detection of noise is based on when these variances go below a given threshold. Unfortunately, these speech detection techniques have been unreliable, particularly where a variable noise component is present in the speech signal. Indeed, it has been estimated that many of the errors occurring in a typical speech recognition system are the result of an inaccurate determination of the location of the words within the speech signal. To minimize such errors, the technique for locating words within the speech signal must be capable of reliably and accurately locating the boundaries of the words. Further, the technique must be sufficiently simple and quick to allow for real time processing of the speech signal. The technique must also be capable of adapting to a variety of noise environments without any prior knowledge of the noise. The present invention provides an accurate and reliable method for detecting speech from an input speech signal. A probabilistic approach is used to classify each frame of the speech signal as speech or non-speech. This speech detection method is based on a frequency spectrum extracted from each frame, such that the value for each frequency band is considered to be a random variable and each frame is considered to be an occurrence of these random variables. Using the frequency spectrums from a non-speech part of the speech signal, a known set of random variables is constructed. In this way, the known set of random variables is representative of the noise component of the speech signal. Next, each unknown frame is evaluated as to whether or not it belongs to this known set of random variables. To do so, a unique random variable is formed from the set of random variables associated with the unknown frame. The unique variable is normalized with respect the known set of random variables and then classified as either speech or non-speech using the "Test of Hypothesis". Thus, each frame that belongs to the known set of random variables is classified as non-speech and each frame that does not belong to the known set of random variables is classified as speech. This method does not rely on any delayed signal. For a more complete understanding of the invention, its objects and advantages refer to the following specification and to the accompanying drawings. Brief Description of the Drawings Figure 1 is a block diagram illustrating the basic components of a speech detection system; Figure 2 is a flow diagram depicting an overview of the speech detection method of present invention; Figures 3A and 3B are detailed flow diagrams showing a preferred embodiment of the speech detection method of the present invention; Figure 4 illustrates the normal distribution of a chi-square measure; and Figure 5 illustrates a mean spectrum of noise (and its variance) over the first 100 frames of a typical input speech signal. Detailed Description of the Preferred Embodiments A speech detection system 10 is depicted in Figure 1. Typically, an input speech signal is first digitally sampled by an analog-to-digital converter 12. Next, frequency domain information is extracted from the digitally sampled signal by a frequency analyzer 14. Lastly, the frequency domain information is used to detect speech within the signal in speech detector 16. Figure 2 illustrates an accurate and reliable method for detecting speech from an input speech signal in accordance with the present invention. Generally, a probabilistic approach is used to classify each frame of the signal as either speech or non-speech. First, block 22 segments the speech signal into a plurality of frames. One skilled in the art will readily notice that such process can be done synchronously while recording the signal, in order not to have any delay in the speech detection process. Block 24 extracts frequency domain information from each frame, where the frequency domain information for each frequency band is considered to be a random variable and each frame is considered to be an occurrence of these random variables. Using the frequency domain information from a non-speech part of the signal, a known set of random variables is constructed in block 26. In this way, the known set of random variables is representative of the noise component of the speech signal. Next, each unknown frame is evaluated as to whether or not it belongs to this known set of random variables. To do so, a unique random variable (e.g., a chi-square value) is formed in block 28 from the set of random variables associated with an unknown frame. The unique variable is normalized with respect the known set of random variables in block 30 and then classified as either speech or non-speech using the "Test of Hypothesis" in block 32. In this way, each frame that does not belong to the known set of random variables is classified as speech and each frame that does belong to the known set of random variables is classified as non-speech. A more detailed explanation of the speech detection method of the present invention is provided in relation to Figures 3A and 3B. The analog signal corresponding to the speech signal (i.e., s(t)) is converted into digital form by an analog-to-digital converter as is well known in the art in block 42. The digital samples are then segmented into frames. Each frame must have a temporal definition. For illustration purposes, the frame is defined as a window signal w(n,t) = s(n*offset+t), where n=frame number and t= 1 ,..., window size. As will be apparent to one skilled in the art, the frame should be large enough to provide sufficient data for frequency analysis, and yet small enough to accurately identify the beginning and ending boundaries of a word or group of words within the speech signal. In a preferred embodiment, the speech signal is digitally sampled at 8k Hertz, such that each frame includes 256 digital samples and corresponds to 30 ms segments of the speech signal. Next, a frequency spectrum is extracted out of each frame in block 44.. Since noise usually occurs at specific frequencies, it is more interesting to represent the frames of the signals in their frequency domain. Typically, the frequency spectrum is formed by applying a fast Fourier transformation or other frequency analyzing technique to each of the frames. In the case a fast Fourier transformation, the frequency spectrum is defined as F(n,f) = FFT(w(n,t)), where n = frame number and f = 1 F. Accordingly, the magnitude or energy content value for each of the frequency bands in a particular frame is defined as M(n,f) = a s(F(n,f)). Using this frequency domain information from the speech signal, each of the frames are then classified as either speech or non-speech. As determined by decision block 46, at least the first ten frames of the signal (preferably 20 frames) are used to construct a noise model as will be more fully explained below. The remaining frames of the signal are then classified as either speech or non-speech based upon a comparison with the noise model. For each frame, the energy content value at each frequency band is normalized with respect to the noise model in block 48. These values are normalized according to: M (n n^ n-^w where μ N (f) and σ N (f) are a mean and its corresponding standard deviation for the energy content values from the frames used to construct the noise model. For each given frequency f, M Norm (n,f) can be seen as the nth sample occurrence of a random variable, R(f), having a normal distribution. Assuming the normal distributions are independent, the set of random variables, R(f) has a chi-square distribution with F degrees of freedom. Thus, a chi-square value is computed in block 50 using the normalized values of the frame as follows: X = ∑M Norm (n,f) 2 In this way, the chi-square value extracts a single measure indicative of the frame. Next, the chi-square value may be normalized in block 52 to further improve the accuracy of the speech detection system. When the degree of freedom F tends to 4, the chi-square value tends to a normal distribution. In the present invention, since F is likely to exceed 30 (e.g., in the preferred case, F = 256), the normalization of X (n), assuming the independence of hypothesis, is provided by: y - X ~ F Norm ~ V F ' where the mean and standard deviation of the chi-square value are estimated as . = F and σ - V2F , respectively. Another preferred embodiment of the normalization of the chi-square is not to take into account the assumption of independence of the random variable, R(f) and to normalized X according to its own estimated mean and variance. To do so, it is assumed that X remains a chi-square random variable with it degrees of freedom unknown and yet high enough to keep a gaussian distribution approximation. This leads to an estimate of the mean μ x and the standard deviation σ, for X (also referred to as the chi-square model), as follows: Normalizing X, as shown below, leads to a standard normal distribution: Xin) - μ x X Nor m 00 = Each frame can then classified as either speech or non-speech by using the Test of Hypothesis. In order to test an unknown frame, the critical region becomes. X Norm (n) ≤ X a . Since this is a unilateral test (i.e., the lower value cannot be rejected), a is the confidence level. By using the normal approximation of chi-square, the test is simplified to X Norm ( ) < X a . X a is such that the integral from -∞ to X a of the normal distribution is 1 _Λ" equal to 1 - as shown in Figure 4. Knowing that N(z) = —==e^- and that J2π the error function is defined as erf(z) = , I - a is provided by: ( X > 1 + er/ i 2 By introducing the inverse function of the error function, x = erfinv(z) , such that z = erf(x) , a threshold value, X a , for use in the Hypothesis Test is preferably estimated as: X x = 2e finv(l - 2a). In this way, the threshold value can be predefined according to the desired accuracy of the speech detection system because it is only dependent on a. For instance, X 0. oι=2.3262, X 0. oι=1.2816, X 0.2 =0.8416. Referring to Figure 3B, each unknown frame is classified in decision block 56, according \o X Norm (n) ≤ X a . When the normalized chi-square vaiue for the frame is greater than the predefined threshold value, the frame is classified as speech as shown in block 58. When the normalized chi-square value for the frame is less than or equal to the predefined threshold value, the frame is classified as non-speech as shown in block 60. In either case, processing continues with the next unknown frame. Once an unknown frame has been classified as noise, it can also be used to re-estimate the noise model. Therefore, blocks 62 and 64 optionally update the noise model and update the chi-square model based on this frame. A noise model is constructed from the first frames of the input speech signal. Figure 5 illustrates the mean spectrum of noise (and its variance) over the first 100 frames of a typical input speech signal. It is assumed that the first ten frames (but preferably twenty frames) of the speech signal do not contain speech information, and thus these frames are used to construct the noise model. In other words, these frames are indicative of the noise encapsulated throughout the speech signal. In the event that these frames do contain speech information, the method of the present invention incorporates an additional safeguard as will be explained below. It is envisioned that other parts of the speech signal that do not contain speech information could also be used to construct the model. Returning to Figure 3A, block 66 computes a mean μ N{f) and a standard deviation σ N{/) of the energy content values at each of the frequency bands of these frame. For each of these first twenty frames, block 69 normalizes the frequency spectrum, block 70 computes a chi-square measure, block 72 updates μ x and σ of the chi-square model with X Norm , and block 74 normalizes the chi-square measure. On skilled in the art will readily recognize that X Norm is needed when evaluating an unknown frame. Each of these steps are in accordance with the above-described methodology. An over-estimation measure may be used to verify the validity the noise model. When there is speech present in the frames used to construct the noise model, an over-estimation of the noise spectrum occurs. This over- estimation can be detected when a first "real" noise frame is analyzed by the speech detection system. To detect an over-estimation of the noise model, the following measure is used: D(n) = ∑ M Norm (n, f) f This over-estimation measure uses the normalized spectrum to stay independent of the overall energy. Generally, the chi-square measure is an absolute measure giving the distance from the current frame to the noise model, and therefore will be positive even if the current frame spectrum is lower than the noise model. However, the over-estimation measure will be negative when a "real" noise frame is analyzed by the speech detection system, thereby updating an over- estimation of the noise model. In the preferred embodiment of the speech detection system, a successive number of frames (preferably three) having a negative value for the over-estimation measure will indicate an invalid noise model. In this case, the noise model may be re-initialized or speech detection may be discontinued for this speech signal. The foregoing discloses and describes merely exemplary embodiments of the present invention. One skilled in the art will readily recognize from such discussion, and from accompanying drawings and claims, that various changes, modifications, and variations can be made therein without the departing from the spirit and scope of the present invention.

Claims: Claims 1 . A method for detecting speech from an input speech signal, comprising the steps of: sampling the input speech signal over a plurality of frames, each of the plurality of frames having a plurality of digital samples; determining a frequency spectrum for each of the plurality of frames; constructing a noise model using frequency spectrums from a non- speech part of the input signal; and using a hypothesis test to determine when an unknown frame from the plurality of frames correlates to the noise model, thereby detecting speech from the input speech signal. 2. The method of Claim 1 wherein the step of constructing a noise model further comprises: determining an energy content value for each of a plurality of frequency bands in at least ten frames at the beginning of the input speech signal; determining a mean value at each of the plurality of frequency bands for the energy content values associated with the ten frames; and determining a variance value for each mean value associated with the ten frames, thereby constructing the noise model for the input speech signal. 3. The method of Claim 2 wherein the step of using the hypothesis test further comprises the steps of: normalizing each of the energy content values for the unknown frame with respect to the built model of the non-speech part of the input speech signal; determining a chi-square value for each of the normalized energy content values associated with the unknown frame; and comparing the chi-square value to a threshold value, thereby determining if the unknown frame correlates to the non-speech part of the input speech signal. 4. The method of Claim 3 wherein the step of normalizing each of the energy content values further comprises using the mean value and the variance value to normalize the energy content values of the unknowm frame. 5. The method of Claim 3 wherein the step of comparing the chi- square value further comprises using a predefined confidence interval to determine the threshold value. 6. The method of Claim 3 further comprises the steps of: determining chi-square values for each of the frames associated with the non-speech part of the input speech signal; determining a mean value and a variance value for the chi-square values associated with the non-speech part of the input speech signal; and normalizing the chi-square value for the unknown frame using the mean value and the variance value of the chi-square values, prior to comparing the chi-square value to the threshold value. 7. The method of Claim 1 further comprises the step of using the unknown frame to verify the validity of the noise model. 8. The method of Claim 7 wherein the step of using the unknown frame further comprises using an over-estimation measure according to D(n) = ∑M Nom (n,f) . f 9. A method for detecting speech from an input speech signal, comprising the steps of: sampling the input speech signal over a plurality of frames, each of the frames having a plurality of samples; determining an energy content value, M(f) , for each of a plurality of frequency bands in a first frame of the input speech signal; normalizing each of the energy content values for the first frame with respect to energy content values from a non-speech part of the input speech signal; determining a chi-square value for each of the normalized energy content values associated with the first frame; and comparing the chi-square value to a threshold value, thereby determining if the first frame correlates to the non-speech part of the input speech signal. 10. The method of Claim 9 wherein the step of comparing the chi- square value further comprises using a predefined confidence interval to determine the threshold value. 11. The method of Claim 9 wherein the threshold value is provided by 12. The method of Claim 9 wherein the step of normalizing each of the energy content values further comprises the steps of: determining an energy content value for each of a plurality of frequency bands in at least ten (10) frames at the beginning of the input signal, each of the ten frames being associated with the non-speech part of the input speech signal; determining a mean value, /L/ N ( J, at each of the plurality of frequency bands for the energy content values associated with the ten frames of the non-speech part of the input speech signal; and determining a variance value, σ N (f) , for each mean value associated with the ten frames of the non-speech part of the input speech signal, thereby constructing a noise model from the non-speech part of the input speech signal. 13. The method of Claim 12 wherein the step of normalizing each of the energy content values is according to M Norm («,/) = — — — — . 14. The method of Claim 9 further comprises the step of normalizing the chi-square value, X, for the unknown frame, prior to comparing the chi- square value to the threshold value, whereby the normalizing is according to X - F X Nom = " , , where F is the degrees of freedom for the chi-square V2E distribution. 15. The method of Claim 9 further comprises the steps of: determining chi-square values for each of the frames associated with the non-speech part of the input speech signal; determining a mean value, μ x , and a variance value, σ x , for the chi- square values associated with the non-speech part of the input speech signal; and normalizing the chi-square value for the first frame using the mean value and the variance value of the chi-square values, prior to comparing the chi-square value of the first frame to the threshold value. 16. The method of Claim 15 wherein the step of normalizing the chi- square value is according to X Norm ( ) = — — — — . 17. The method of Claim 13 further comprises the step of using the first frame to verify the validity of the noise model. 18. The method of Claim 17 wherein the step of using the unknown frame further comprises using an over-estimation measure according to D = ∑M Norm (n,f) . f

Inventors: GELIN PHILIPPE, JUNQUA JEAN-CLAUDE, GELIN, PHILIPPE, JUNQUA, JEAN-CLAUDE
Applicants: PANASONIC TECHNOLOGIES INC, PANASONIC TECHNOLOGIES, INC.
Application year: 2000
Main classification: G10L15
IPC codes: G10L11