SYSTEM FOR CLASSIFICATION OF VOICE SIGNALS
A system and method for classifying a voice signal to one of a set of predefined categories, based upon a statistical analysis of features extracted from the voice signal. The system includes an acoustic processor and a classifier. The acoustic processor extracts features that are characteristic of the voice signal and generates feature vectors using the extracted spectral features. The classifier uses the feature vectors to compute the probability that the voice signal belongs to each of the predefined categories and classifies the voice signal to a predefined category that is associated with the highest probability.
Latest IBM Patents:
- AUTO-DETECTION OF OBSERVABLES AND AUTO-DISPOSITION OF ALERTS IN AN ENDPOINT DETECTION AND RESPONSE (EDR) SYSTEM USING MACHINE LEARNING
- OPTIMIZING SOURCE CODE USING CALLABLE UNIT MATCHING
- Low thermal conductivity support system for cryogenic environments
- Partial loading of media based on context
- Recast repetitive messages
1. Field of the Invention
This invention relates generally to electronic voice processing systems, and relates more particularly to a system and method for voice signal classification based on statistical regularities in voice signals.
2. Description of the Background Art
Speech recognition systems may be used for interaction with a computer or other device. Speech recognition systems usually translate a voice signal into a text string that corresponds to instructions for the device.
Speech recognition systems translate voice signals into text; however, speaker-independent speech recognition systems are generally rigid, inaccurate, computationally-intensive, and are not able to recognize true natural language. For example, typical speech recognition systems have a voice-to-text translation accuracy rate of 40%-50% when processing true natural language voice signals. It is difficult to design a highly accurate natural language speech recognition system that generates unconstrained voice-to-text translation in real-time, due to the complexity of natural language, the complexity of the language models used in speech recognition, and the limits on computational power.
In many applications, the exact text of a speech message is unimportant, and only the topic of the speech message needs to be recognized. It would be desirable to have a flexible, efficient, and accurate speech classification system that categorizes natural language speech based upon the topics comprising a speech message. In other words, it would be advantageous to implement a speech classification system that categorizes speech based upon what is talked about, without generating an exact transcript of what is said.
SUMMARY OF THE INVENTIONIn accordance with the present invention, a system and method are disclosed for classifying a voice signal to a category from a set of predefined categories, based upon a statistical analysis of features extracted from the voice signal.
The system includes an acoustic processor that generates a feature vector and an associated integer label for each frame of the voice signal, a memory for storing statistical characterizations of a set of predefined categories and agents associated with each predefined category, and a classifier for classifying the voice signal to a predefined category based upon a statistical analysis of the received output of the acoustic processor.
In one embodiment the acoustic processor includes an FFT for generating a spectral representation from the voice signal, a feature extractor for generating feature vectors characterizing the voice signal, a vector quantizer for quantizing the feature vectors and generating an integer label for each feature vector, and a register for storing the integer labels.
The classifier computes a probability of occurrence for the output of the acoustic processor based on each of the statistical characterizations of the predefined categories, and classifies the voice signal to the predefined category with the highest probability or to a set of predefined categories with the highest probabilities. Furthermore, the classifier accesses memory to determine an agent associated with the predefined category or categories and routes a caller associated with the voice signal to the agent. The agent may be a human agent or a software agent.
The present invention classifies a voice signal based on statistical regularities in the signal. The invention analyzes the statistical regularities in the voice signal to determine a classification category. In one embodiment, the voice signal classification system of the invention applies digital signal processing techniques to a voice signal. The system receives the voice signal and computes a set of quantized feature vectors that represents the statistical characteristics of the voice signal. The system then analyzes the feature vectors and classifies the voice signal to a predefined category from a plurality of predefined categories. Finally, the system contacts an agent associated with the predefined category. The agent may be a person or an automated process that provides additional services to a caller.
Framer 220 segments the digital voice signal into successive data units called frames, where each frame occupies a time window of duration time T. A frame generally includes several hundred digital voice signal samples with a typical duration time T of ten, fifteen, or twenty milliseconds. However, the scope of the invention includes frames of any duration time T and any number of signal samples. Framer 220 sends the frames to acoustic processor 221. Sound sensor 205, amplifier 210, A/D converter 215, and framer 220 are collectively referred to as an acoustic front end to acoustic processor 221. The scope of the invention covers other acoustic front ends configured to receive a voice signal, and generate a digital discrete-time representation of the voice signal.
Acoustic processor 221 generates a feature vector and an associated integer label for each frame of the voice signal based upon statistical features of the voice signal. Acoustic processor 221 is described below in conjunction with
In one embodiment, classifier 245 classifies the voice signal to one of a set of predefined categories by performing a statistical analysis on the integer labels received from acoustic processor 221. In another embodiment of the invention, classifier 245 classifies the voice signal to one of the set of predefined categories by performing a statistical analysis on the feature vectors received from acoustic processor 221. Classifier 245 is not a speech recognition system that outputs a sequence of words. Classifier 245 classifies the voice signal to one of the set of predefined categories based upon the most likely content of the voice signal. Classifier 245 computes the probabilities that the voice signal belongs to each of a set of predefined categories based upon a statistical analysis of the integer labels generated by acoustic processor 221. Classifier 245 assigns the voice signal to the predefined category that produces the highest probability. Classifier 245, upon assigning the voice signal to one of the set of predefined categories, accesses memory 250 to determine which agent is associated with the predefined category. Classifier 245 then routes a caller associated with the voice signal to the appropriate agent 255. Agent 255 may be a human agent or a software agent.
In an exemplary embodiment, vector quantizer 335 snaps components of an n-dimensional feature vector to the nearest quantized components of an n-dimensional quantized feature vector. Typically there are a finite number of different quantized feature vectors that can be enumerated by integers. Once the components of the feature vectors are quantized, vector quantizer 335 generates a single scalar value for each quantized feature vector corresponding to a unique integer label of this vector among all different quantized feature vectors. For example, given a quantized n-dimensional feature vector v with quantized components (a1, a2, a3, . . . , an), a scalar value (SV) may be generated by a function SV=f(a1, a2, a3, . . . , an), where SV is equal to a function f of the quantized components (a1, a2, a3, . . . , an). Vector quantizer 335 then assigns an integer label from the set of predefined integer labels to each computed SV.
Vector quantizer 335 sends the integer labels to register 340, which stores the labels for all frames in the voice signal. Register 340 may alternatively comprise a memory of various storage-device configurations, for example Random-Access Memory (RAM) and non-volatile storage devices such as floppy-disks or hard disk-drives. Once the entire sequence of integer labels that represents the voice signal is stored in register 340, register 340 sends the entire sequence of integer labels to classifier 245.
In alternate embodiments, acoustic processor 221 may functionally combine FFT 325 with feature extractor 330, or may not include FFT 325. If acoustic processor 221 does not perform an explicit FFT on the voice signal at any stage, acoustic processor 221 may use indirect methods known in the art for extracting statistical features from the voice signal. For example, in the absence of FFT 325, feature extractor 330 may generate an LPC spectrum directly from the time domain representation of the signal. The statistical features are identified by spectral peaks in the LPC spectrum and are represented by a set of LPC coefficients. Then, in one embodiment, feature extractor 330 computes the feature vector whose components are the LPC coefficients. In another embodiment, feature extractor 330 computes the feature vector whose components are cepstral coefficients, which feature extractor 330 computes from the LPC coefficients by taking a fast Fourier transform of the LPC spectrum.
For example, PST11 of
In one embodiment, the PSTs associated with each voice classification category 410 are built from training sets. The training sets for each category include voice data from a variety of users such that the PSTs are built using a variety of pronunciations, inflections, and other such criteria.
In operation, classifier 245 receives a sequence of integer labels from acoustic processor 221 associated with a voice message. Classifier 245 computes the probability of occurrence of the sequence of integer labels in each category using the PSTs. In one embodiment, classifier 245 determines a total probability for the sequence of integer labels for each PST in each category. Classifier 245 determines the total probability for a sequence of integer labels applied to a PST by determining a probability at each position in the sequence based on the longest suffix present in that PST, then calculating the product of the probabilities at each position. Classifier 245 then determines which category includes the PST that produced the highest total probability, and assigns the message to that category.
Using PST11 of
Next, classifier 245 calculates the total probability for the sequence of integer labels 4-1-7-2-3-1-10 applied to PST11 where the total probability is a product of the location probabilities: PT(PST11)=1×P(1)×P(7-1-4)×1×1×P(1-3-2)×1. In another embodiment of the invention, classifier 245 calculates the total probability by summing the logarithm of each location probability. Although the sequence of integer labels for this examples includes only seven integer labels, any number of integer labels is within the scope of the invention. The number of integer labels in the sequence depends on the number of frames of the message, which in turn depends on the duration of the voice signal input to system 200.
In the
When a user or system administrator initializes voice signal classification system 200, classifier 245 assigns an initial starting probability to each state. For example, classifier 245 assigns to state 1 (505) a probability a11, which represents the probability of starting in state 1, to state 2 (510) a probability a12, which represents the probability of starting in state 2, and to state 3 (515) a probability a13, which represents the probability of starting in state 3.
If classifier 245 receives integer labels (1,2,3), then classifier 245 computes six sequences of states 1→2→3, 1→3→2, 2→1→3, 2→3→1, 3→1→2, and 3→2→1, and an associated probability of occurrence for each sequence. The six sequences of states are a subset of the 27 possible sequences of states. For example, classifier 245 computes the total probability of the 1→2→3 sequence of states by multiplying the probability of starting in state 1, a11, by the probability a12(L1) of a transition from state 1 to state 2 when the first integer label of a sequence of integer labels appears, by the probability a23(L2) of a transition from state 2 to state 3 when the second integer label of the sequence appears. The total probability is P(1→2→3)=a11×a12(L1)×a23(L2). Similarly, the total probability of the 2→3→1 sequence of states is P(2→3→1)=a12×a23(L1)×a31(L2). Classifier 245 calculates the total probabilities for the remaining four sequences of states in a similar manner. Classifier 245 then classifies the voice signal to one of a set of predefined categories associated with the sequence of states with the highest probability of occurrence. Some of the sequences of states may not have associated categories, and some of the sequences of states may have the same associated category. If there is no predefined category associated with the sequence of states with the highest probability of occurrence, then classifier 245 classifies the voice signal to a predefined category associated with the sequence of states with the next highest probability of occurrence.
Voice classification system 200 may be implemented in a voice message routing system, a quality-control call center, an interface to a Web-based voice portal, or in conjunction with a speech-to-text recognition engine, for example. A retail store may use voice signal classification system 200 to route telephone calls to an appropriate department (agent) based upon a category to which a voice signal is classified. For example, a person may call the retail store to inquire whether the store sells a particular brand of cat food. More specifically, a person may say the following: “I was wondering if you carry, . . . uh, . . . well, if you stock or have in store cat food X, well actually cat food for my kitten, and if so, could you tell me the price of a bag. Also, how large of bag can I buy? (Pause). Oh wait, I almost forgot, do you have monkey chow?” Although this is a complex, natural language speech pattern, voice signal classification system 200 classifies the received natural language voice signal into a category based upon the content of the voice signal. For example, system 200 may classify the voice signal to a pet department category, and therefore route the person's call to the pet department (agent). However, in addition, system 200 may classify the speech into other categories, such as billing, accounting, employment opportunities, deliveries, or others. For example, system 200 may classify the speech to a pricing category that routes the call to an associated agent that can immediately answer the caller's questions concerning inventory pricing.
System 200 may classify voice signals to categories associated with predefined items on a menu. For example, a voice signal may be classified to a category associated with a software agent that activates a playback of a predefined pet department menu. The caller can respond to the pet department menu with additional voice messages or a touch-tone keypad response. Or the voice signal may be classified to another category whose associated software agent activates a playback of a predefined pricing menu.
In another embodiment, system 200 may be implemented in a quality control call center that classifies calls into complaint categories, order categories, or personal call categories, for example. An agent then selects calls from the various categories based upon the agent's priorities at the time. Thus, system 200 provides an effective and efficient manner of customer-service quality control.
In yet another embodiment of speech classification system 200, system 200 may be configured as an interface to voice portals, classifying calls to various categories such as weather, stock, or traffic, and then routing and connecting the call to an appropriate voice portal.
In yet another embodiment of the present invention, system 200 is used in conjunction with a speech-to-text recognition engine. For example, a voice signal is assigned to a particular category that is associated with a predefined speech model including a defined vocabulary set for use in the recognition engine. For instance, a caller inquiring about current weather conditions in Oklahoma City would access the recognition engine with a speech model/vocabulary set including voice-to-text translations for words such as “storm”, “rain”, “hail”, and “tornado.” The association of speech models/vocabulary sets with each voice signal category reduces the complexity of the speech-to-text recognition engine and consequently reduces speech-to-text processing times.
The combination of system 200 with the speech-to-text recognition engine may classify voice signals into language categories, thus making the combination of system 200 and the speech-to-text recognition engine language independent. For example, if voice classification system 200 classifies a voice signal to a German language category, then the recognition engine uses a speech model/vocabulary set associated with the German language category to translate the voice signal.
In other embodiments, system 200 may be implemented to classify voice signals into categories that are independent of the specific spoken words or text of the call. For example, system 200 may be configured to categorize a caller as male or female as the content of a male voice signal typically is distinguishable from the content of a female voice signal. Similarly, system 200 may be configured to identify a caller as being one member of a predetermined group of persons as the content of the voice signal of each person in the group would be distinguishable from that of the other members of the group. System 200 therefore may be used, for example, in a caller identification capacity or a password protection or other security capacity.
In addition, just as system 200 may be used to categorize voice signals as either male or female, system 200 may be used to distinguish between any voice signal sources where the voice signals at issue are known to have different content. Such voice signals are not required to be expressed in a known language. For example, system 200 may be used to distinguish between various types of animals, such as cats and dogs or sheep and cows. Further, system 200 may be used to distinguish among different animals of the same type, such as dogs, where a predetermined group of such animals exists and the voice signal content of each animal in the group is known. In this case, system 200 may be used to identify any one of the animals in the group in much the same way that system 200 may be used to identify a caller as described above.
Voice classification system 200 may be implemented in a hierarchical classification system.
For example, voice classification system 200 receives a call and classifies the caller's voice signal 601 into English category 620, then classifies voice signal 601 into order 645 subcategory, and then classifies voice signal 601 into sporting goods 655 sub-subcategory. Finally, system 200 routes the call to an agent 665 associated with ordering sporting goods supplies in English. The configuration of system 200 with the hierarchical structure of classes 600 permits more flexibility and refinement in classifying voice signals to categories. The scope of the present invention includes any number of class levels and any number of categories in each class level.
The invention has been explained above with reference to specific embodiments. Other embodiments will be apparent to those skilled in the art in light of this disclosure. The present invention may readily be implemented using configurations other than those described in the embodiments above. Therefore, these and other variations upon the specific embodiments are intended to be covered by the present invention, which is limited only by the appended claims.
Claims
1. A system for classifying a voice signal, comprising:
- an acoustic processor configured to receive the voice signal, to generate feature vectors that characterize the voice signal, and to assign an integer label to each generated feature vector; and
- a classifier coupled to the acoustic processor to classify the voice signal to one of a set of predefined categories based upon a statistical analysis of the integer labels associated with the feature vectors, wherein the classifier uses one or more probability suffix trees (PSTs) to compute a probability of occurrence of the integer labels being classified in the set of predefined categories.
2. The system of claim 1, wherein the system further comprises a framer configured to segment the voice signal into frames.
3. The system of claim 1, wherein the acoustic processor comprises a feature extractor configured to extract statistical features characteristic of the voice signal.
4. The system of claim 1, further comprising a memory for storing identities of agents, each agent being associated with one of the set of predefined categories.
5. The system of claim 1, wherein the classifier computes a probability that the voice signal belongs to each of the set of predefined categories using the integer labels assigned to the feature vectors.
6. The system of claim 5, wherein the classifier classifies the voice signal to the predefined category in the set of predefined categories that is associated with the highest probability.
7. The system of claim 1, wherein the classifier routes a caller associated with the voice signal to an agent associated with the predefined category.
8-14. (canceled)
15. A system for classifying a voice signal, comprising:
- means for generating a digital discrete-time representation of the voice signal;
- means for segmenting the digital discrete-time representation of the voice signal into frames;
- means for extracting statistical features from each frame that characterize the voice signal;
- means for generating a feature vector from each frame using the extracted statistical features;
- means for associating an integer label to each feature vector; and
- means for classifying the voice signal to one of a set of predefined categories based upon a statistical analysis of the integer labels, wherein the means for classifying uses one or more probability suffix trees (PSTs) to compute a probability of occurrence of the integer labels being classified in the set of predefined categories.
Type: Application
Filed: Mar 4, 2008
Publication Date: Jun 26, 2008
Applicant: INTERNATIONAL BUSINESS MACHINES CORPORATION (Armonk, NY)
Inventor: Israel Nelken (Jerusalem)
Application Number: 12/042,111
International Classification: G10L 15/00 (20060101);