The present invention relates to pattern recognition. In particular, the present invention relates to speech recognition.
A pattern recognition system, such as a speech recognition system, takes an input signal and attempts to decode the signal to find a pattern represented by the signal. For example, in a speech recognition system, a speech signal (often referred to as a test signal) is received by the recognition system and is decoded to identify a string of words represented by the speech signal.
Many speech recognition systems utilize Hidden Markov Models in which phonetic units, which are also referred to as acoustic units or speech units, are represented by a single tier of connected states. Using a training signal, probability distributions for occupying the states and for transitioning between states are determined for each of the phonetic units. To decode a speech signal, the signal is divided into frames and each frame is transformed into a feature vector. The feature vectors are then compared to the distributions for the states to identify a most likely sequence of HMM states that can be represented by the frames. The phonetic unit that corresponds to that sequence is then selected.
Although HMM-based recognition systems perform well in many relatively simple speech recognition tasks, they do not model some important dynamic aspects of speech directly (and are known to perform poorly for difficult tasks such as conversational speech). As a result, they are not able to accommodate dynamic articulation differences between the speech signals used for training and the speech signal being decoded.
Alternatives to HMM systems have been proposed. In particular, it has been proposed that the statistically defined trajectory or behavior of a production-related parameter of the speech signal should be modeled directly. Since the production-related values cannot be measured directly, these models are known as Hidden Dynamic Models (HDM). Hidden Dynamic Models are one example of a class of models known as switching state space models, which provide two types of hidden states. The two types of hidden states form two first order Markov chains, where the continuous chain is conditioned on the discrete one.
One problem with switching state space models is that it is difficult to train them because common training algorithms, such as the Expectation-Maximization algorithm, become intractable for switching state space models. In particular, this computation increases exponentially with each additional frame of the speech signal.
Thus, a training system is needed that allows the parameters of a switching state space dynamic model to be trained efficiently.
A method of setting posterior probability parameters for a switching state space model begins by defining a window containing at least two but fewer than all of the frames in a sequence of frames. A separate posterior probability parameter is determined for each frame in the window. The window is then shifted so that it includes one or more subsequent frames in the sequence of frames. A separate posterior probability parameter is then determined for each frame in the shifted window.
Under a further aspect of the invention, model parameters for a switching state space model are stored and a speech signal is converted into a set of observation vectors where each vector is associated with a separate frame of the speech signal. For each frame of the speech signal, a path score is determined for each path into a discrete hidden state in the frame. The path scores are then used to select a single path into each discrete hidden state of the frame.
The invention is operational with numerous other general purpose or special purpose computing system environments or configurations. Examples of well-known computing systems, environments, and/or configurations that may be suitable for use with the invention include, but are not limited to, personal computers, server computers, hand-held or laptop devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, telephony systems, distributed computing environments that include any of the above systems or devices, and the like.
The invention may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The invention is designed to be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules are located in both local and remote computer storage media including memory storage devices.
With reference to
Computer 110 typically includes a variety of computer readable media. Computer readable media can be any available media that can be accessed by computer 110 and includes both volatile and nonvolatile media, removable and non-removable media. By way of example, and not limitation, computer readable media may comprise computer storage media and communication media. Computer storage media includes both volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by computer 110. Communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media. The term “modulated data signal” means a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal. By way of example, and not limitation, communication media includes wired media such as a wired network or direct-wired connection, and wireless media such as acoustic, RF, infrared and other wireless media. Combinations of any of the above should also be included within the scope of computer readable media.
The system memory 130 includes computer storage media in the form of volatile and/or nonvolatile memory such as read only memory (ROM) 131 and random access memory (RAM) 132. A basic input/output system 133 (BIOS), containing the basic routines that help to transfer information between elements within computer 110, such as during start-up, is typically stored in ROM 131. RAM 132 typically contains data and/or program modules that are immediately accessible to and/or presently being operated on by processing unit 120. By way of example, and not limitation,
The computer 110 may also include other removable/non-removable volatile/nonvolatile computer storage media. By way of example only,
The drives and their associated computer storage media discussed above and illustrated in
A user may enter commands and information into the computer 110 through input devices such as a keyboard 162, a microphone 163, and a pointing device 161, such as a mouse, trackball or touch pad. Other input devices (not shown) may include a joystick, game pad, satellite dish, scanner, or the like. These and other input devices are often connected to the processing unit 120 through a user input interface 160 that is coupled to the system bus, but may be connected by other interface and bus structures, such as a parallel port, game port or a universal serial bus (USB). A monitor 191 or other type of display device is also connected to the system bus 121 via an interface, such as a video interface 190. In addition to the monitor, computers may also include other peripheral output devices such as speakers 197 and printer 196, which may be connected through an output peripheral interface 195.
The computer 110 is operated in a networked environment using logical connections to one or more remote computers, such as a remote computer 180. The remote computer 180 may be a personal computer, a hand-held device, a server, a router, a network PC, a peer device or other common network node, and typically includes many or all of the elements described above relative to the computer 110. The logical connections depicted in
When used in a LAN networking environment, the computer 110 is connected to the LAN 171 through a network interface or adapter 170. When used in a WAN networking environment, the computer 110 typically includes a modem 172 or other means for establishing communications over the WAN 173, such as the Internet. The modem 172, which may be internal or external, may be connected to the system bus 121 via the user input interface 160, or other appropriate mechanism. In a networked environment, program modules depicted relative to the computer 110, or portions thereof, may be stored in the remote memory storage device. By way of example, and not limitation,
Memory 204 is implemented as non-volatile electronic memory such as random access memory (RAM) with a battery back-up module (not shown) such that information stored in memory 204 is not lost when the general power to mobile device 200 is shut down. A portion of memory 204 is preferably allocated as addressable memory for program execution, while another portion of memory 204 is preferably used for storage, such as to simulate storage on a disk drive.
Memory 204 includes an operating system 212, application programs 214 as well as an object store 216. During operation, operating system 212 is preferably executed by processor 202 from memory 204. Operating system 212, in one preferred embodiment, is a WINDOWS® CE brand operating system commercially available from Microsoft Corporation. Operating system 212 is preferably designed for mobile devices, and implements database features that can be utilized by applications 214 through a set of exposed application programming interfaces and methods. The objects in object store 216 are maintained by applications 214 and operating system 212, at least partially in response to calls to the exposed application programming interfaces and methods.
Communication interface 208 represents numerous devices and technologies that allow mobile device 200 to send and receive information. The devices include wired and wireless modems, satellite receivers and broadcast tuners to name a few. Mobile device 200 can also be directly connected to a computer to exchange data therewith. In such cases, communication interface 208 can be an infrared transceiver or a serial or parallel communication connection, all of which are capable of transmitting streaming information.
Input/output components 206 include a variety of input devices such as a touch-sensitive screen, buttons, rollers, and a microphone as well as a variety of output devices including an audio generator, a vibrating device, and a display. The devices listed above are by way of example and need not all be present on mobile device 200. In addition, other input/output devices may be attached to or found with mobile device 200 within the scope of the present invention.
The present invention provides a generative model of speech. Under this model, speech is represented as the output of an attempt by the speaker to phonetically implement a linguistic definition of a sequence of speech units. During this attempt, the speaker produces a production-related value that follows a statistically defined trajectory (using the state-space formulation with recursive noise) toward a target associated with a current speech unit. Under embodiments of the present invention, this trajectory is modeled as a switching state-space model.
The model of the present invention is a special form of a Hidden Trajectory Model where the trajectory is defined recursively with noise added at each frame. This switching state-space model has two types of hidden variables (also referred to as states): discrete and continuous. The states are considered hidden because they cannot be measured directly. Each type of hidden state forms a Markov chain, where the continuous hidden state chain is conditioned on the discrete hidden state chain.
The two different types of hidden states produce a model that includes two layers, a dynamic or trajectory model component that describes hidden continuous production-related parameters (such as vocal tract resonance frequencies), and a mapping model component that translates the production-related parameters into observable acoustic features such as Mel-Frequency Cepstral Coefficients. The state equation in the state-space model predicts a sequence of continuous state values (x1, . . . , xn, . . . , xN) for a production-related parameter. The mapping model or the observation equation predicts a sequence of acoustic observation vectors yn given the sequence of continuous hidden state values.
The recursively defined trajectory and mapping models can be succinctly represented by the two equations:
xn=Asxn−1+as+w Eq. 1
yn=Csxn+cs+v Eq. 2
where n is a frame number index, s is the hidden discrete state, which represents a speech unit, x is the hidden production-related state, y is the acoustic feature vector, As and Cs are speech-unit dependent system matrices, as is a speech-unit dependent control input (which can be equivalently represented as a speech-unit dependent target), cs is a speech-unit dependent constant, and w and v are Gaussian noise terms.
Under one embodiment, the models of equations 1 and 2 are expressed in terms of probability distributions as:
p(sn=s|sn−1=s′)=πss′ Eq. 3
p(xn|sn=s,xn−1)=N(xn|Asxn−1+as,Bs) Eq. 4
p(yn|sn=s,xn)=N(yn|Csxn+cs,Ds) Eq. 5
with initial conditions:
p(s0=s)=πs0
p(x0|s0=s)=N(x0|as0,Bs0)
where Bs, Bs0, and Ds are precision matrices (the inverse of a covariance matrix), which are based on a variance associated with noise terms w and v.
In general, training the model parameters of equations 3-5 requires an iterative two-step process. The first step is known as inference, during which a posterior distribution p(s1:N,x1:N|y1:N) is calculated given an initial set of model parameters. During the second step, known as learning or parameter estimation, the model parameters are updated. These steps are repeated until the model parameters converge or some maximum number of iterations is reached. When performing generalized Expectation Maximization training, the E-step is the inference step and the M-step is the learning step.
The inference step cannot be performed directly for the models of Equations 3-5 because the posterior calculation is intractable. One embodiment of the present invention overcomes this problem by approximating the posterior distribution using HMM posteriors. Specifically, the posterior p(sl:N,xl:N|yl:N) is approximated using an HMM posterior defined as:
By minimizing a divergence between the approximation and the actual posterior distribution, the present inventors have found that the probability q(xn|sn,y1:N) follows a Gaussian distribution:
q(xn|sn,y1:N)=N(xn|ρs,n,Γs,n) Eq. 7
where the mean ρs,n and the precision Γs,n are given by:
where
The posterior transition probabilities are computed recursively by a backward pass described for n=N, . . . ,1:
where < > denotes a scalar obtained by summing up the element-wise product of two equal-sized vectors or matrices, and s′ is an index for speech units for the summations.
Because the computation of a current ρs,n in equation 9 is dependent on ρs,n−1 at a previous time point n−1 and ρs,n+1 at a next time point n+1, a solution of a set of simultaneous equations that cover values for ρs,n across all frames was needed to compute the values. This would typically be done by organizing the sets of equations into a matrix form and performing a matrix inversion. This computation has a complexity of order O((NS)3), where N is the number of time points and S is the number of possible states at each time point. For any reasonable speech signal, this computation becomes so time-consuming that it cannot be performed in a practical system.
A method of reducing the complexity of this computation under the present invention is shown in the flow diagram of
At step 303, the initial values for ρs,n are used to determine the posterior transition probabilities using equations 10-12. Once the transition probabilities have been determined, a window of M frames of the speech signal is selected at step 304, beginning from the second frame in the speech signal, where M is less than the total number of frames N.
At step 306, Γs,n and ρs,n are computed for each state s at each frame n within the window of M frames. To make this computation, a value of ρs,n is needed for the frame before the window and the frame after the window. For the first window, both of these values are taken from the initial estimate of ρs,n produced by the formant tracker. For every window after the first window, the value of ρs,n for the frame before the window is taken from the computation performed for the previous window. The value of ρs,n for the frame after the window continues to be taken from the initial values determined by the formant tracker.
Because the window is much smaller than the entire speech signal, this computation takes much less time than prior computations that spanned the entire speech signal. Under one embodiment, this computation involves solving a set of simultaneous equations using matrix inversion.
After the values of Γs,n and ρs,n have been determined for every frame in the window, the process determines if there are any more frames to be processed at step 308. If there are more frames, the window is shifted by J frames at step 310. The process then returns to step 306 to compute the values of Γs,n and ρs,n for the M frames covered by the shifted window.
In
Because the values of ρs,n are dependent on the transition probabilities and the values of the transition probabilities are dependent on ρs,n, under some embodiments of the present invention, several iterations are performed where the values of the transition probabilities are updated at step 302 based on the new ρs,n and then the values of ρs,n are updated at step 306 based on the updated transition probabilities. At step 312, the process determines if another iteration of updating these values should be performed. If an additional iteration is needed, the process returns to step 302. When no more iterations are needed, the process ends at step 314.
The computation performed by the process of
After the inference step is complete, the values for Γs,n, and ρs,n are used in the learning step to set the values of model parameters Θ={πss′,A1:S,a1:S,B1:S,C1:S,c1:S,D1:S} according to:
πs′s is set by a separately trained language model, or a phonotactic model which describes how different phones may be followed one after another. This model may be made uniform if no such knowledge is available.
where γs,n is determined recursively by a forward pass:
The inference and learning steps may be iterated several times to complete the training.
After the model parameters have been trained, the model parameters and the approximations can be used to perform speech recognition. This involves identifying a most likely sequence of speech units, such as phones, given a sequence of observation feature vectors that represent a speech signal.
In the past, speech recognition has required the determination of γs,n, which provides the probability of a state at time n across the entire speech segment, requiring a backward-forward recursion. As a result, speech recognition could not be implemented directly in a Viterbi decoder as the frames of speech were received. In Viterbi decoding, a path score is generated for each path into a state at frame n. The path with the highest path score into a state is retained and the remaining paths into that state are pruned from further consideration. Under one embodiment of the present invention, a new formulation for a path score is provided that allows speech to be decoded without explicitly or directly requiring the determination of γs,n.
The path score under the present invention is built based on the discovery by the present inventors that:
{tilde over (p)}(yn|sn=s′,sn−1=s)=ef
{tilde over (p)}(sn=s′|sn−1=s)=πs′s Eq. 23
Equations 22 and 23 can be combined to form a path score for entering state s from state s′ that is defined as:
Path_Score=ef
Recognition begins when a speaker 500 speaks into a microphone 504. Microphone 504 also receives additive noise from one or more noise sources 502. The audio signals detected by microphone 504 are converted into electrical signals that are provided to analog-to-digital converter 506.
A-to-D converter 506 converts the analog signal from microphone 504 into a series of digital values. In one embodiment, A-to-D converter 506 samples the analog signal at 16 kHz and 16 bits per sample, thereby creating 32 kilobytes of speech data per second. These digital values are provided to a frame constructor 507, which, in one embodiment, groups the values into 25 millisecond frames that start 10 milliseconds apart.
The frames of data created by frame constructor 507 are provided to feature extractor 508, which extracts a feature from each frame. Examples of feature extraction modules include modules for performing Linear Predictive Coding (LPC), LPC derived cepstrum, Perceptive Linear Prediction (PLP), auditory model feature extraction, and Mel-Frequency Cepstrum Coefficients (MFCC) feature extraction. Note that the invention is not limited to these feature extraction modules and that other modules may be used within the context of the present invention.
The series of feature vectors is provided to a trainer 524, which sequentially determines sets of Γs,n and ρs,n, each set associated with an overlapping window as shown in
Once the values of Γs,n and ρs,n have been determined for a frame, they are placed in posterior approximation model 527. Decoder 512 then identifies a most likely sequence of words based on the stream of feature vectors, a lexicon 514, a language model 516, approximation model 527 and generative model 528.
In particular, decoder 512 uses the path score of Equation 24 to determine and select a most likely path into each state for each frame in the current window that will not be overlapped by the next window. Since this type of Viterbi decoding is commonly used with HMM systems of the prior art, the decoder of the present invention is able to take advantage of techniques that have been developed to improve the efficiency of Viterbi decoding including various pruning techniques for pruning the most likely path into some of the states, thereby reducing the number of path scores that must be determined. In other words, the pruning removes the best path that was selected for some of the states, thereby producing states that do not have paths into them.
The most probable sequence of hypothesis words is provided to a confidence measure module 520. Confidence measure module 520 identifies which words are most likely to have been improperly identified by the speech recognizer, based in part on a secondary acoustic model(not shown). Confidence measure module 520 then provides the sequence of hypothesis words to an output module 522 along with identifiers indicating which words may have been improperly identified. Those skilled in the art will recognize that confidence measure module 520 is not necessary for the practice of the present invention.
Although the present invention has been described with reference to particular embodiments, workers skilled in the art will recognize that changes may be made in form and detail without departing from the spirit and scope of the invention.
Number | Name | Date | Kind |
---|---|---|---|
5027406 | Roberts et al. | Jun 1991 | A |
5202952 | Gillick et al. | Apr 1993 | A |
5778341 | Zeljkovic | Jul 1998 | A |
5864810 | Digalakis et al. | Jan 1999 | A |
5960395 | Tzirkel-Hancock | Sep 1999 | A |
6226612 | Srenger et al. | May 2001 | B1 |
6591146 | Pavlovic et al. | Jul 2003 | B1 |
6678658 | Hogden et al. | Jan 2004 | B1 |
6990447 | Attias et al. | Jan 2006 | B2 |
20030088411 | Ma et al. | May 2003 | A1 |
20030093269 | Attias et al. | May 2003 | A1 |
Number | Date | Country | |
---|---|---|---|
20050159951 A1 | Jul 2005 | US |