GB2355836A - Pattern matching - Google Patents

Pattern matching Download PDF

Info

Publication number
GB2355836A
GB2355836A GB0025143A GB0025143A GB2355836A GB 2355836 A GB2355836 A GB 2355836A GB 0025143 A GB0025143 A GB 0025143A GB 0025143 A GB0025143 A GB 0025143A GB 2355836 A GB2355836 A GB 2355836A
Authority
GB
United Kingdom
Prior art keywords
features
feature
sequence
input
stored
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
GB0025143A
Other versions
GB2355836B (en
GB0025143D0 (en
Inventor
Philip Neil Garner
Jason Peter Andre Charlesworth
Asako Higuchi
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2001534133A priority Critical patent/JP3689670B2/en
Priority to US10/111,051 priority patent/US7212968B1/en
Priority to PCT/GB2000/004112 priority patent/WO2001031627A2/en
Priority to CNB008163537A priority patent/CN1329861C/en
Priority to DE60036486T priority patent/DE60036486T2/en
Priority to KR1020027005531A priority patent/KR20020052196A/en
Priority to US09/695,077 priority patent/US7310600B1/en
Priority to EP00971581A priority patent/EP1228452B1/en
Priority to JP2000330612A priority patent/JP2001215987A/en
Publication of GB0025143D0 publication Critical patent/GB0025143D0/en
Publication of GB2355836A publication Critical patent/GB2355836A/en
Application granted granted Critical
Publication of GB2355836B publication Critical patent/GB2355836B/en
Priority to US11/513,064 priority patent/US7295980B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/08Speech classification or search
    • G10L15/12Speech classification or search using dynamic programming techniques, e.g. dynamic time warping [DTW]
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/02Feature extraction for speech recognition; Selection of recognition unit
    • G10L2015/025Phonemes, fenemes or fenones being the recognition units

Landscapes

  • Engineering & Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

A dynamic programming technique is provided for matching two sequences of phonemes both of which may be generated from text or speech. The scoring of the dynamic programming matching technique uses phoneme confusion scores, phoneme insertion scores and phoneme deletion scores which are obtained in advance in a training session and, if appropriate, confidence data generated by a recognition system if the sequences are generated from speech.

Description

2355836 PATTERW MATCHING METHOD AND APPARATUS The present invention
relates to an apparatus and method for matching sequences of phonemes or the like. The invention can be used to search a database of data files having associated phonetic annotations, in response to a user I s input query. The input query may be a voiced or typed query.
Databases of information are well known and suffer from the problem of how to locate and retrieve the desired information from the database quickly and efficiently.
Existing database search tools allow the user to search the database using typed keywords,. Whilst this is quick and efficient, this type of searching is not suitable for various kinds of databases, such as video or audio databases.
A recent proposal has been made to annotate such video and audio databases with a phonetic transcription of the speech content in the audio and video files, with subsequent retrieval being achieved by comparing a phonetic transcription of a user's input query with the phoneme annotation data in the database. The technique proposed for matching the sequences of phonemes firstly defines a set of features in the query, each feature being taken as an overlapping fixed size fragment from the phoneme string, it then identifies the frequency of occurrence of the features in both the query and the annotation and then finally determines a measure of the similarity between the query and the annotation using a cosine measure of these frequencies of occurrences. one advantage of this kind of phoneme comparison technique is 2 that it can cope with situations where the sequence of words of the query do not exactly match the sequence of words of the annotation. However, it suffers from the problem that it is prone to error especially when the query and the annotation are spoken at different speeds and if there are any deletions of parts of words f rom. the query, but not f rom the annotation, or vice versa.
The present invention aims to provide an alternative technique for matching sequences of phonemes.
According to one aspect, the present invention provides a feature comparison apparatus comprising: input means for receiving an input signal; recognition processing means for comparing said input signal with stored feature models to identify an input sequence of features in said input signal and confidence data representative of the confidence that the input sequence of features is representative of said input signal; and means for comparing said input sequence of features with a stored sequence of features using predetermined similarity data which defines similarities between different features and using said confidence data, to provide a measure of the similarity between the input sequence of features and the stored sequence of features.
According to another aspect, the present invention provides an apparatus for searching a database comprising a plurality of information entries to identify information to be retrieved therefrom, each of said plurality of information entries having an associated annotation comprising a sequence of features, the apparatus comprising: a feature comparison apparatus as 3 described above for comparing a query sequence of features obtained from an input query with the features of each annotation to provide a set of comparison results; and means for identifying said information to be retrieved from said database using said comparison results.
Exemplary embodiments of the present invention will now be described with reference to Figures 1 to 21, in which:
Figure 1 is a schematic block diagram illustrating a user terminal which allows the annotation of a data file with annotation data generated from a typed or voiced input from a user; Figure 2 is a schematic diagram of phoneme and word lattice annotation data which is generated from a typed input by the user for annotating the data file; Figure 3 is a schematic diagram of phoneme and word lattice anno-tation data which is generated from a voiced input by the user for annotating the data file; Figure 4 is a schematic block diagram of a user's terminal which allows the user to retrieve information from the database by a typed or voice query; Figure 5a is a flow diagram illustrating part of the flow control of the user terminal shown in Figure 4; Figure 5b is a flow diagram illustrating the remaining part of the f low control of the user terminal shown in Figure 4; 4 Figure 6a is a schematic diagram which shows an underlying statistical model which is assumed to have generated both the query and the annotation; Figure 6b is a schematic diagram which shows a first sequence of phonemes representative of a typed input and a second sequence of phonemes representative of a user's voice input, and which illustrates the possibility of there being phoneme insertions and deletions from the 10 user's voice input relative to the typed input; Figure 6c is a schematic diagram which shows a first and second sequence of phonemes, each representative of a voiced input and a third 6equence of phonemes 15 representative of a canonical sequence of phonemes corresponding to what was actually said in the corresponding voiced inputs, and which illustrates the possibility of there being phoneme insertions and deletions from the two voiced inputs relative to the 20 corresponding canonical sequence of phonemes; Figure 7 schematically illustrates a search space created by the sequence of annotation phonemes and the sequence of query phonemes together with a start null node and an 25 end null node; Figure 8 is a two dimensional plot with the horizontal axis being provided for the phonemes of the annotation and the vertical axis being provided for the phonemes of 30 the query, and showing a number of lattice points, each corresponding to a possible match between an annotation phoneme and a query phoneme; Figure 9a schematically illustrates the dynamic programming constraints employed in a dynamic programming matching process when the annotation is a typed input and the query is generated from a voiced input; Figure 9b schematically illustrates the dynamic programming constraints employed in a dynamic programming matching process when the query is a typed input and when the annotation is a voiced input; Figure 10 schematically illustrates the deletion and decoding probabilities which are stored for an example phoneme; Figure 11 schematically illustrates the dynamic programming constraints employed in a dynamic programming matching process when both the annotation and the query are voiced inputs; 20 Figure 12 is a flow diagram illustrating the main processing steps performed in the dynamic programming matching process; Figure 13 is a flow diagram illustrating the main 25 processing steps employed to begin the dynamic programming process by propagating from a null start node to all possible start points; Figure 14 is a flow diagram illustrating the main 30 processing steps employed to propagate dynamic programming paths from the start points to all possible end points; 6 Figure 15 is a f low diagram illustrating the main processing steps employed in propagating the paths from the end points to a null end node; Figure 16a is a flow diagram illustrating part of the processing steps performed in propagating a path using the dynamic programming constraints; Figure 16b is a flow diagram illustrating the remaining 10 process steps involved in propagating a path using the dynamic programming constraints; Figure 17 is a flow diagram illustrating the processing steps involved in determining i: transition score for 15 propagating a path f rom a start point to an end point; Figure 18a is a flow diagram illustrating part of the processing steps employed in calculating scores for deletions and decodings of annotation and query phonemes; Figure 18b is a flow diagram illustrating the remaining steps employed in determining scores for deletions and decodings of annotation and query phonemes; Figure 19a schematically illustrates an alternative embodiment which employs a different technique for aligning the query with each annotation; Figure 19b is a plot illustrating the way in which a 30 dynamic programming score varies with a comparison of a query with an annotation in the embodiment illustrated in Figure 19a; 7 Figure 20 is a schematic block diagram illustrating the form of an alternative user terminal which is operable to retrieve a data file from a database located within a remote server in response to an input voice query; and Figure 21 illustrates another user terminal which allows a user to retrieve data from a database located within a remote server in response to an input voice query.
Embodiments of the present invention can be implemented using dedicated hardware circuits, but the embodiment to be described is implemented in computer software or code, which is run in conjunction with processing hardware such as a personal computer, workstation, photocopier, 15 facsimile machine, personal digital assistant (PDA) or the like. DATA FILE ANNOTATION Figure 1 illustrates the form of a user terminal 59 which 20 allows a user to input typed or voiced annotation data via the keyboard 3 and microphone 7 for annotating a data file 91 which is to be stored in a database 29. In this embodiment, the data file 91 comprises a two dimensional image generated by, for example, a camera. The user 25 terminal 59 allows the user 39 to annotate the 2D image with an appropriate annotation which can be used subsequently for retrieving the 2D image from the database 29. In this embodiment, a typed input is converted, by the phonetic transcription unit 75, into 30 phoneme (or phoneme-like) and word lattice annotation data which is passed to the control unit 55. Figure 2 illustrates the form of the phoneme and word lattice annotation data generated for the typed input "picture of 8 the Taj Mahal". As shown in Figure 2, the phoneme and word lattice is an acyclic directed graph with a single entry point and a single exit point. It represents different parses of the user's input. As shown, the phonetic transcription unit 75 identifies a number of different possible phoneme strings which correspond to the typed input, from an internal phonetic dictionary (not shown).
Similarly, a voiced input is converted by the automatic speech recognition unit 51 into phoneme (or phoneme-like) and word lattice annotation data which is also passed to the control unit 55. The automatic speech recognition unit 51 generates this phoneme and word lattice annotation data by (i) generating a phoneme lattice for the input utterance; (ii) then identifying words within the phoneme lattice; and (iii) finally by combining the two. Figure 3 illustrates the form of the phoneme and word lattice annotation data generated for the input utterance "picture of the Taj Mahal". As shown, the automatic speech recognition unit identifies a number of different possible phoneme strings which correspond to this input utterance. As is well known in the art of speech recognition, these different possibilities can have their own weighting which is generated by the speech recognition unit 51 and is indicative of the confidence of the speech recognition unit's output. In this embodiment, however, this weighting of the phonemes is not performed. As shown in Figure 3, the words which the automatic speech recognition unit 51 identifies within the phoneme lattice are incorporated into the phoneme lattice data structure. As shown for the example phrase given above, the automatic speech recognition unit 51 9 identifies the words "picture", "of", "off", of the flother", "tall, "tar", "jam", "ah", "hal", "ha" and "all'.
As shown in Figure 3, the phoneme and word lattice generated by the automatic speech recognition unit 51 is an acyclic directed graph with a single entry point and a single exit point. It represents different parses of the user's input annotation utterance. It is not simply a sequence of words with alternatives, since each word does not have to be replaced by a single alternative, one word can be substituted for two or more words or phonemes, and the whole structure can f orm a substitution for one or more words or phonemes. Therefore, the density of the data within the phoneme and word lattice annotation data essentially remains linear throughout the annotation data, rather than growing exponentially as in the case of a system which generates the N-best word lists for the audio annotation input.
In this embodiment, the annotation data generated by the automatic speech recognition unit 51 or the phonetic transcription unit 75 has the following general form:
HEADER _ flag if word if phoneme if mixed - time index associating the location of blocks of annotation data within memory to a given time point.
- word set used (i.e. the dictionary) - phoneme set used the language to which the vocabulary pertains phoneme probability data Block(i) i = 0,1,2 f node Nj j = 0,1,2 - time offset of node from start of block - phoneme links (k) k = 0, 1, 2 of f set to node Nj = Nk-Nj (Nk is node to which link K extends) phoneme associated with link (k) - word links (1) 1 0,1,2 of f set to node Nj Ni - Nj (Nj is node to which link 1 extends) word associated with link (1) The f lag identifying if the annotation data is word annotation data, phoneme annotation data or if it is mixed is provided since not all te data files within the database will include the combined phoneme and word lattice annotation data discussed above, and in this case, a dif f erent search strategy would be used to search this annotation data.
In this embodiment, the annotation data is divided into blocks of nodes in order to allow the search to jump into the middle of the annotation data for a given search.
The header therefore includes a time index which associates the location of the blocks of annotation data within the memory to a given time offset between the time of start and the time corresponding to the beginning of the block.
The header also includes data defining the word set used (i.e. the dictionary), the phoneme set used and their probabilities and the language to which the vocabulary pertains. The header may also include details of the automatic speech recognition system used to generate the 11 annotation data and any appropriate settings thereof which were used during the generation of the annotation data.
The blocks of annotation data then follow the header and identify, for each node in the block, the time offset of the node from the start of the block, the phoneme links which connect that node to other nodes by phonemes and word links which connect that node to other nodes by words. Each phoneme link and word link identifies the phoneme or word which is associated with the link. They also identify the offset to the current node. For example, if node N50 is linked to node N_55 by a phoneme link, then the off set to node N50 is 5. As those skilled in the art will appreciate, using an offset indication like this allows the division of the continuous annotation data into separate blocks.
In an embodiment where an automatic speech recognition unit outputs weightings indicative of the confidence of the speech recognition units output, these weighti-ngs or confidence scores would also be included within the data structure. In particular, a confidence score would be provided for each node which is indicative of the confidence of arriving at the node and each of the phoneme and word links would include a transition score depending upon the weighting given to the corresponding phoneme or word. These weightings would then be used to control the search and retrieval of the data files by discarding those matches which have a low confidence score.
In response to the user's input, the control unit 55 12 retrieves the appropriate 2D file from the database 29 and appends the generated phoneme and word annotation data to the data file 91. The augmented data file is then returned to the database 29. During this annotating step, the control unit 55 is operable to display the 2D image on the display 57, so that the user can ensure that the annotation data is associated with the correct data file 91.
As will be explained in more detail below, the use of such phoneme and word lattice annotation data allows a quick and efficient search of the database 29 to be carried out, to identify and to retrieve a desired 2D image data file stored therein. This can be achieved by firstly searching in the database 29 using the word data and, if this search falls to provide the required data file, then performing a further search using the more robust phoneme data. As those skilled in the art of speech recognition will realise, use of phoneme data is more robust because phonemes are dictionary independent and allow the system to cope with out of vocabulary words, such as names, places, foreign words etc. Use of phoneme data is also capable of making the system future proof, since it allows data files which are placed into the database 29 to be retrieved when the original annotation was input by voice and the original automatic speech recognition system did not understand the words of the input annotation.
DATA FILE RETRIEVAL Figure 4 is a block diagram illustrating the form of a user terminal 59 which is used, in this embodiment, to retrieve the annotated 2D images from the database 29.
13 This user terminal 59 may be, for example, a personal computer, a hand-held device or the like. As shown, in this embodiment, the user terminal 59 comprises the database 29 of annotated 2D images, an automatic speech recognition unit 51, a phonetic transcription unit 75, a keyboard 3, a microphone 7, a search engine 53, a control unit 55 and a display 57. In operation, the user inputs either a voice query via the microphone 7 or a typed query via the keyboard 3 and the query is processed either by the automatic speech recognition unit 51 or the phonetic transcription unit 75 to generate corresponding phoneme and word data. This data may also take the form of a phoneme and word lattice, but this is not essential.
This phoneme and word data is th6n input to the control unit 55 which is operable to initiate an appropriate search of the database 29 using the search engine 53.
The results of the search, generated by the search engine 53, are then transmitted back to the control unit 55 which analyses the search results and generates and displays appropriate display data (such as the retrieved 2D image) to the user via the display 57.
Figures 5a and 5b are flow diagrams which illustrate the way in which the user terminal 59 operates in this embodiment. In step sl, the user terminal 59 is in an idle state and awaits an input query from the user 39.
Upon receipt of an input query, the phoneme and word data for the input query is generated in step s3 by the automatic speech recognition unit 51 or the phonetic transcription unit 75. The control unit 55 then instructs the search engine 53, in step s5, to perform a search in the database 29 using the word data generated from the input query. The word search employed in this 14 embodiment is the same as is currently being used in the art for typed word searches, and will not be described in more detail here. If in step s7, the control unit 55 identifies from the search results, that a match for the user's input query has been found, then it outputs the search results to the user via the display 57.
In this embodiment, the user terminal 59 then allows the user to consider the search results and awaits the user's confirmation as to whether or not the results correspond to the information the user requires. If they are, then the processing proceeds from step s1l to the end of the processing and the user terminal 59 returns to its idle state and awaits the next input query. If, however, the user indicates (by, for example, -inputting an appropriate voice command) that the search results do not correspond to the desired information, then the processing proceeds from step s1l to step s13, where the search engine 53 performs a phoneme search of the database 29. However, in this embodiment, the phoneme search performed in step s13 is not of the whole database 29, since this could take several hours depending on the size of the database 29.
Instead, the phoneme search performed in step s13 uses the results of the word search performed in step s5 to identify one or more portions within the database which may correspond to the user's input query. For example, if the query comprises three words and the word search only identifies one or two of the query words in the annotation, then it performs a phoneme search of the portions of the annotations surrounding the identified word or words. The way in which the phoneme search performed in step s13 is carried out in this embodiment will be described in more detail later.
After the phoneme search has been performed, the control unit 55 identifies, in step s15, if a match has been found. If a match has been found, then the processing proceeds to step s17 where the control unit 55 causes the search results to be displayed to the user on the display 57. Again, the system then awaits the user's confirmation as to whether or not the search results correspond to the desired information. If the results are correct, then the processing passes from step s19 to the end and the user terminal 59 returns to its idle state and awaits the next input 4uery. If however, the user indicates that the search results do not correspond to the desired information, then the processing proceeds from step s19 to step s2l, where the control unit 55 is operable to ask the user, via the display 57, whether or not a phoneme search should be performed of the whole database 29. If in response to this query, the user indicates that such a search should be performed, then the processing proceeds to step s23 where the search engine performs a phoneme search of the entire database 29.
on completion of this search, the control unit 55 identifies, in step s25, whether or not a match for the user's input query has been found. If a match is found, then the processing proceeds to step s27 where the control unit 55 causes the search results to be displayed to the user on the display 57. If the search results are correct, then the processing proceeds from step s29 to the end of the processing and the user terminal 59 16 returns to its idle state and awaits the next input query. If, on the other hand, the user indicates that the search results still do not correspond to the desired information, then the processing passes to step s3l where the control unit 55 queries the user, via the display 57, whether or not the user wishes to redefine or amend the search query. If the user does wish to redefine or amend the search query, then the processing returns to step s3 where the user's subsequent input query is processed in a similar manner. If the search is not to be redefined or amended, then the search results and the user I s initial input query are discarded and the user terminal 59 returns to its idle state and awaits the next input query.
A general description has been given above of the way in which a search is carried out in this embodiment by the user terminal 59. A more detailed description will now be given of the way in which the search engine 53 carries out the phoneme searches, together with a brief description of the motivation underlying the search strategy.
INFORMATION RETRIEVAL AS A CLASSIFICATION PROBLEM In the classic classification scenario, a test datum has to be classified into one of K classes. This is done using knowledge about other data for which the class is known. The classification problem assumes that there is a "class" random variable which can take values from I to K. The optimal classification then being found by identifying the class to which the test datum most likely belongs. It is assumed that the training data is generated by N generative processes which resulted in nk 17 data of class k, where Ellk=lnk N_ Denoting the vector (nl,, n2,... r nk) by n, the training data by D and the test datum by x, the classic classification problem is to determine the value of k which maximises the following probability:
P(klx,D,n) = P(xJkD,n)P(kJD,n) (1) P(xlD) The second term on the numerator is a prior probability for the class which gives more weight to classes which occur more often. In the context of information retrieval, each class has a singie training datum (i.e.
the annotation data). Therefore, for information retrieval, the second term on the right-hand side of the above expression can be ignored. Similarly, the denominator can also be ignored since P(xJD) is the same for each class and therefore just normalises the numerator. Consequently, the order of the classes can be ranked by simply ranking the order of the first term on the numerator of the above expression for the classes.
In other words, determining and ranking P(xldk) for all the classes, where dk iS the training datum for class k.
In this embodiment, the test datum x represents the input query and the training datum for class k (i.e. dk) represents the kth annotation, and it is assumed that there is an underlying statistical model (M) which generated both the query and the annotation, as illustrated in Figure 6a. In the general case, this model has three unknowns: the model structure, m, the state sequences through that model for both the query and 18 the annotation, sq and s,,, and the output distribution C.
In this case, we know the output distribution since it embodies the characteristics of the speech recognition system which generates the phoneme strings from the input speech. As will be described later, it can be obtained by applying a large database of known speech to the speech recognition system, and it will be referred to hereinafter as the confusion statistics. Therefore, introducing the state sequences and the model into the above probabilities (and using the variables q for the input query and a for the annotation) yields:
P(qla) = E E E P(qjm,sq1Sa1C,a)P(m,sq'SjC,a) M Sa Sq (2) which can be expanded using Bayesian methods to give:
P(q I a) Y- E E P(qlm,sq)C)P(alm,saIC)P(SqIM,C)P(SaIM,C)P(MIC) M Sa Sq YE Y, P(ajm,sa1C)P(Sa1M,C)P(M1C) M Sa S q (3) Although the above expression looks complicated, the summations over the set of state sequences sq and s., can be performed using a standard dynamic programming algorithm. Further, the last term on both the numerator 19 and the denominator can be ignored, since it can be assumed that each model is equally likely and the state sequence terms P(slm,c) can be ignored because it can also be assumed that each state sequence is equally likely. Further, by assuming that the underlying model structure is a canonical sequence of phonemes having approximately the same length as the query, subject to insertions, the summation over the different models can be removed, although it is replaced with a summation over all possible phonemes because, in the general case, the canonical sequence of phonemes of the model is unknown.
Therefore, ignoring the state sequence summations, the term which is to be evaluated inside the dynamic programming algorithm becomes:
NP E P(aiIPrC)P(qiIPrC)P(PrIC) (4) r=1 on the numerator, and NP E P(aiIPrC)P(PrIC) (5) r=1 on the denominator (i.e. the normalising term), where NP is the total number of phonemes known to the system and ail qj and p, are the annotation phoneme, query phoneme and model phoneme respectively which correspond to the current DP lattice point being evaluated. As can be seen 25 from a comparison of equations (4) and (5), the probability terms calculated on the denominator are calculated on the numerator as well. Therefore, both terms can be accumulated during the same dynamic programming routine. Considering the probabilities which are determined in more detail, P (qj I p,, C) is the probability of decoding canonical phoneme p, as query phoneme qj given the confusion statistics; P(ailPr,C) is the probability of decoding canonical phoneme Pr as annotation phoneme ai given the confusion statistics; and P(p,IC) is the probability of canonical phoneme p, occurring unconditionally given the confusion statistics. In addition to the above terms, at each point in the dynamic programming
calculation, a further term must be calculated which deals with insertions and deletions in the query or the annotation relative to the model. As those skilled in the art will appreciate, an insertion or a deletion in the query is independent from an insertion or a deletion in the annotation and vice versa.
Therefore, these additional terms are dealt with separately. Insertions and deletions in the annotation relative to the model must also be considered for the normalising term given in equation (5) above.
As those skilled in the art will appreciate from the description of Figures 4 and 5, in this embodiment, the annotation phoneme data and the query phoneme data may both be derived either from text or speech. Therefore, there are four situations to consider:
i) both the annotation and the query are generated from text; ii) the annotation is generated from text and the query is generated from speech; iii) the annotation is generated from speech and the 21 query is generated f rom text; and iv) both the query and annotation are generated f rom speech.
The f irst situation is the simple case in which there can be no time compres sion/expans ion of the annotation or the query and the comparison between the annotation and the query is performed by a simple boolean comparison of the respective phoneme sequences. 10 In the second situation, the annotation is taken to be correct and the dynamic programming alignment allows the insertion and deletion of phonemes in the query in order to f ind the best alignment between the two. To 15 illustrate this case, Figure 6b shows a possible matching between a sequence of annotation phonemes (labelled ao, a,,, a2 - - -) and a sequence of query phonemes (labelled qO, qj, q2...), when the annotation phonemes are generated from text. As illustrated by the dashed arrows, annotation phoneme ao is aligned with query phoneme qO, annotation phoneme a, is aligned with query phoneme q2, annotation phoneme a2 is aligned with query phoneme q3, annotation phoneme a3 is aligned with query phoneme q3 and annotation phoneme a4 is aligned with query phoneme q4- For each of these alignments, the dynamic programming routine calculates the terms given in equations (4) and (5) above. However, in this case, these equations simplify because the canonical sequence of model phonemes is known (since these are the annotation phonemes). In particular, the normalising term is one because the annotation is the model and the numerator simplifies to P(qilaj,C). In addition to these decoding terms, the dynamic programming routine also 22 calculates the relevant insertion and deletion probabilities for the phonemes which are inserted in the query relative to the annotation (such as query phoneme qj) and for the phonemes which are deleted in the query relative to the annotation (represented by query phoneme q, which is matched with the two annotation phonemes a2 and a3) The third situation mentioned above is similar to the second situation except the sequence of query phonemes is taken to be correct and the dynamic programuning alignment allows the insertion and deletion of phonemes in the annotation relative to the query. However, in this situation, equations (1) to (5) cannot be used because the query is known. Therefore, in this situation, equation (1) can be reformulated as:
P(Iqx,D,n) = P(DjKx,n)P(Iqx,n) (6) P(Djx) As with the corresponding terms in the equation (1) above, the second term on the numerator and the denominator can both be ignored. The first term of the numerator in e quation (6) above can be expanded in a similar way to the way in which the first term on the numerator of equation (1) was expanded. However, in this situation, with the query being taken to be the model, the normalising term calculated during the dynamic programming routine simplifies to one and the numerator simplifies to P(ailqj,C). Like the second situation discussed above, the dynamic programming routine also calculates the relevant insertion and deletion 23 probabilities for the phonemes which are inserted in the annotation relative to the query and for the phonemes which are deleted in the annotation relative to the query.
Finally, in the fourth situation, when both the annotation and the query are generated from speech, both sequences of phoneme data can have insertions and deletions relative to the unknown canonical sequence of model phonemes which represents the text of what was actually spoken. This is illustrated in Figure 6c, which shows a possible matching between a sequence of annotation phonemes (labelled aj, ai+,, ai+2 a sequence of query phonemes (labelled qj, qj+,, qj+2...
and a sequence of phonemes (labelled p., Pn+I' Pn+2.) which represents the canonical sequence of phonemes of what was actually spoken by both the query and the annotation. As shown in Figure 6c, in this case, the dynamic programming alignment technique must allow for the insertion of phonemes in both the annotation and the query (represented by the inserted phonemes ai+3 and qj+,) as well as the deletion of phonemes from both the annotation and the query (represented by phonemes aj+j and qj+21 which are both aligned with two phonemes in the canonical sequence of phonemes), relative to the canonical sequence of model phonemes.
As those skilled in the art will appreciate, by introducing the model sequence of phonemes into the calculations, the algorithm is more flexible to pronunciation variations in both the query and the annotation.
24 A general description has been given above of the way in which the present embodiment performs information retrieval by matching the sequence of query phonemes with the sequences of annotation phonemes in the database. In order to understand the operation of the present embodiment further, a brief description will now be given of a standard dynamic programming algorithm followed by a more detailed description of the particular algorithm used in this embodiment.
OVERVIEW OF DP SEARCH As those skilled in the art know, dynamic programming is a technique which can be used to f ind the optimum alignment between sequences of features, which in this embodiment are phonemes. It does this by simultaneously propagating a plurality of dynamic programming paths, each of which represents a possible matching between a sequence of annotation phonemes and a sequence of query phonemes. All paths begin at a start null node, which is at the beginning of the annotation and the query, and propagate until they reach an end null node, which is at the end of the annotation and the query. Figures 7 and 8 schematically illustrate the matching which is performed and this path propagation. In particular, Figure 7 shows a rectangular coordinate plot with the horizontal axis being provided for the annotation and the vertical axis being provided for the query. The start null node 0,, is provided in the top left hand corner and the end null node Oe is provided on the bottom right hand corner. As shown in Figure 8, the phonemes of the annotation are provided along the horizontal axis and the phonemes of the query are provided along the vertical axis. Figure 8 also shows a number of lattice points, each of which represents a possible alignment between a phoneme of the annotation and a phoneme of the query.
For example, lattice point 21 represents a possible alignment between annotation phoneme a3 and query phoneme qj. Figure 8 also shows three dynamic programming paths M11 M2 and m, which represent three possible matchings between the sequences of phonemes representative of the annotation and of the query and which begin at the start null node 0., and propagate through the lattice points to the end null node Oe. Referring back to equations (2) and (3) above, these dynamic programming paths represent the different state sequences sq and Sa discussed above.
As represented by the different lengths of the horizontal and vertical axes shown in Figure 7, the input query does not need to include all the words of the annotation. For example, if the annotation is "picture of the Taj Mahal", then the user can simply search the database 29 for this picture by inputting the query "Taj Mahal". In this situation, the optimum alignment path would pass along the top horizontal axis until the query started to match the annotation. It would then start to pass through the lattice points to the lower horizontal axis and would end at the end node. This is illustrated in Figure 7 by the path 23. However, as those skilled in the art will appreciate, the words in the query must be in the same order as they appear in the annotation, otherwise the dynamic programming alignment will not work.
In order to determine the similarity between the sequence of annotation phonemes and the sequence of query phonemes, the dynamic programming process keeps a score for each of the dynamic programming paths which it 26 propagates, which score is dependent upon the overall similarity of the phonemes which are aligned along the path. In order to limit the number of deletions and insertions of phonemes in the sequences being matched, the dynamic programming process places certain constraints on the way in which the dynamic programming paths can propagate. As those skilled in the art will appreciate, these dynamic programming constraints will be different for the four situations discussed above.
DP CONSTRAINTS Both annotation and query are text.
In the case where the query phoneme data and the annotation phoneme data are both generated from text, the dynamic programming alignment degenerates into a boolean match between the two phoneme sequences and no phoneme deletions or insertions are allowed.
Annotation is text and query is speech.
In the case where the annotation phoneme data is generated from text and the query phoneme data is generated from speech, there can be no phoneme deletions or insertions in the annotation but there can be phoneme deletions and insertions in the query relative to the annotation. Figure 9a illustrates the dynamic programming constraints which are used in this embodiment, when the annotation is generated from text and the query is generated from speech. As shown, if a dynamic programming path ends at lattice point (i,j), representing an alignment between annotation phoneme ai and query phoneme qj, then that dynamic programming path can propagate to the lattice points (i+l,j), (i+l,j+l) and (i+l,j+2). A propagation to point (i+l,j) represents 27 the case when there is a deletion of a phoneme from the spoken query as compared with the typed annotation; a propagation to the point (i+l,j+l) represents the situation when there is a simple decoding between the next phoneme in the annotation and the next phoneme in the query; and a propagation to the point (i+l,j+2) represents the situation when there is an insertion of phoneme qj.,, in the spoken query as compared with the typed annotation and when there is a decoding between annotation phoneme aj+j and query phoneme qj+2' Annotation is speech and query is text.
In the case where the annotation is generated from speech and the query is generated f rom, text, there can be no insertions or deletions of phonemes from the query but there can be insertions and deletions from the annotation relative to the query. Figure 9b illustrates the dynamic programming constraints which are used in this embodiment, when the annotation is generated from speech and the query is generated from text. As shown, if a dynamic programming path ends at lattice point (i,j), representing an alignment between annotation phoneme ai and query phoneme qj, then that dynamic programming path can propagate to the lattice points (i,j+l), (i+l,j+l) and (i+2, j+1). A propagation to point (i, j+1) represents the case when there is a deletion of a phoneme f rom the spoken annotation as compared with the typed query; a propagation to the point (i+l,j+l) represents the situation when there is a simple decoding between the next phoneme in the annotation and the next phoneme in the query; and a propagation to the point (i+2, j+l) represents the situation when there is an insertion of phoneme ai., in the spoken annotation as compared with the 28 typed query and when there is a decoding between annotation phoneme ai,, and query phoneme qj+1 Annotation is speech and query is speech.
In the case where both the annotation and the query are generated from speech, phonemes can be inserted and deleted from each of the annotation and the query relative to the other. Figure 11 shows the dynamic programming constraints which are used in this embodiment, when both the annotation phonemes and the query phonemes are generated from speech. In particular, if a dynamic programming path ends at lattice point (i,j), representing an alignment between annotation phoneme ai and query phoneme qj, then that dynamic programming path can propagate to the lattice points (i+l,j), (i+2,j), (i+3,j), (i,j+l), (i+l,j+l), (i+2,j+'), (i,j+2), (i+l,j+2) and (i,j+3). These propagations therefore allow the insertion and deletion of phonemes in both the annotation and the query relative to the unknown canonical sequence of model phonemes corresponding to the text of what was actually spoken.
Beginning and End DP Constraints In this embodiment, the dynamic programming alignment operation allows a dynamic programming path to start and end at any of the annotation phonemes. As a result, the query does not need to include all the words of the annotation, although the query words do need to be in the same order as they appear in the annotation.
DP SCORE PROPAGATION As mentioned above, the dynamic programming process keeps a score for each of the dynamic programming paths, which 29 score is dependent upon the similarity of the phonemes which are aligned along the path. Therefore, when propagating a path ending at point (i,j) to these other points, the dynamic programming process adds the respective "cost" of doing so to the cumulative score for the path ending at point (i,j), which is stored in a store (SCORE(i,j)) associated with that point. As those skilled in the art will appreciate, this cost includes the above-mentioned insertion probabilities, deletion probabilities and decoding probabilities. In particular, when there is an insertion, the cumulative score is multiplied by the probability of inserting the given phoneme; when there is a deletion, the cumulative score is multiplied by the probability of deleting the phoneme; and when there is a decoding, the cumulative score is multiplied by the probability of decoding the two phonemes.
In order to be able to calculate these probabilities, the system stores a probability for all possible phoneme combinations. In this embodiment, the deletion of a phoneme in the annotation or the query is treated in a similar manner to a decoding. This is achieved by simply treating a deletion as another phoneme. Therefore, if there are 43 phonemes known to the system, then the system will store one thousand eight hundred and ninety two (1892 = 43 x 44) decoding /deletion probabilities, one f or each possible phoneme decoding and deletion. This is illustrated in Figure 10, which shows the possible phoneme decodings which are stored f or the phoneme /ax/ and which includes the deletion phoneme (0) as one of the possibilities. As those skilled in the art will appreciate, all the decoding probabilities for a given phoneme must sum to one, since there are no other possibilities. In addition to these decoding/ deletion probabilities, the system stores 43 insertion probabilities, one for each possible phoneme insertion.
As will be described later, these probabilities are determined in advance from training data.
To illustrate the score propagations, a number of examples will now be considered. In the case where the annotation is text and the query is speech and f or the path propagating from point (i,j) to point (i+l,j+2), the phoneme qj+l is inserted relative to the annotation and query phoneme qj+2 is decoded with annotation phoneme ai+,.
Therefore, the score propagated to point (i+l,j+2) is given by:
S(i+lj+2) = S(Q).P1(qj,1jC).P(qj,2j aj,j, C) (7) where PI(qj+,IC) is the probability of inserting phoneme qj+, in the spoken query and P(qj+21ai+IfC) represents the probability of decoding annotation phoneme aj+j as query phoneme qj+2 In the case where both the annotation and the query are generated from speech and when propagating from point (i,j) to point (i+2,j+l), the annotation phoneme aj+j is inserted relative to the query and there is a decoding between annotation phoneme ai+2 and query phoneme qj+,.
Therefore, the score propagated to point (i+2,j+l) is given by:
31 N,, S(i+2j+l) = S(ij).Pi(ai+,IC)-EP(ai+2lPrC)P(qj+llPrC)P(PrIC) r=1 (8) As those skilled in the art will appreciate, during this path propagation, several paths will meet at the same lattice point. In this embodiment, the scores associated with the. paths which meet are simply added together.
Alternatively, a comparison between the scores could be made and the path having the best score could be continued whilst the other path(s) is (are) discarded.
However, this is not essential in this embodiment, since the dynamic programming process is only interested in finding a score which represents the similarity between the phoneme data of the query and the phoneme data of the annotation. It is not interested in knowing what the best alignment between the two is.
If both the query and the annotation are generated from speech, then once all the paths have been propagated to the end node 0, and a total score f or the similarity between the query and the current annotation has been determined, the system normalises this score using the normallsing term which has been accumulating during the DP process. The system then compares the query with the next annotation in a similar manner. once the query has been matched with all the annotations, the normalised scores f or the annotations are ranked and based on the ranking, the system outputs to the user the annotation(s) most similar to the input query.
32 DETAILED DESCRIPTION OF DP SEARCH
A more detailed description will now be given of the way in which the dynamic programming search is carried out when matching a sequence of query phonemes with a sequence of annotation phonemes. Referring to Figure 12, in step slOl, the system initialises the dynamic programming scores. Then in step s103, the system propagates paths from the null start node (0,) to all possible start points. Then in step s105, the system propagates the dynamic programming paths from all the start points to all possible end points using the dynamic programming constraints discussed above. Finally in step s107, the system propagates the paths ending at the end points to the null end node (0e) Figure 13 shows in more detail, the processing steps involved in step s103 in propagating the dynamic programming paths from the null start node (0,) to all the possible start points, which are defined by the dynamic programming constraints. One of the constraints is that a dynamic programming path can begin at any of the annotation phonemes and the other constraint, which defines the number of hops allowed in the sequence of query phonemes, depends upon whether or not the query is text or speech. In particular, if the query is generated from text, then the start points comprise the first row of lattice points in the search space, i.e. points (i,O) for i = 0 to 'Nann-1; and if the query is generated from speech, then the start points comprise the first four rows of lattice points in the search space, i.e. points (i,O), (i,l), (i,2) and (i,3) for i = 0 to Nann-1.
The way in which this is achieved will now be described 33 with reference to the steps shown in Figure 13. As shown, in step s111, the system determines whether or not the input query is a text query. If it is, then the processing proceeds to step s113 where the system sets the value of the variable mx to one, which defines the maximum number of "hops" allowed in the sequence of query phonemes when the query is text. The processing then proceeds to steps s115, s117 and s119 which are operable to start a dynamic programming path at each of the lattice points in the first row of the search space, by adding the transition score for passing from the null start node to the lattice point (i,O) to the score (SCORE(i,O)) associated with point (i,O), for i = 0 to Nann-1. When the query is text, this ends the processing in step s103 shown in Figure 12 and the processing then proceeds to step s105.
If the system determines at step s111, that the query is not text and was therefore generated from a spoken input, the system proceeds to step s121 where mx is set to mxhops which is a constant having a value which is one more than the maximum number of "hops" allowed by the dynamic programming constraints. As shown in Figures 9 and 10, in the case where the query is speech, a path can jump at most to a query phoneme which is three phonemes further along the sequence of query phonemes. Therefore, in this embodiment, mxhops has a value of f our and the variable mx is set equal to four, provided there are four or more phonemes in the query, otherwise mx is set equal to the number of phonemes in the query. The processing then proceeds to steps s123, s125, s127, s129 and s131 which are operable to begin dynamic programming paths at each of the lattice points in the f irst f our rows of the 34 search space by adding the corresponding transition probability to the score associated with the corresponding lattice point. When the query is generated from a spoken input, this ends the processing in step s103 shown in Figure 12 and the processing then proceeds to step s105.
In this embodiment, the system propagates the dynamic programming paths from the start points to the end points in step s105 by processing the lattice points in the search space column by column in a raster like technique.
The control algorithm used to control this raster processing operation is shown in Figure 14. In step s151, the system compares an annotation phoneme loop pointer i with the number of phonemes in the annotation (Nann). Initially the annotation phoneme loop pointer i is set to zero and the processing will therefore initially proceed to step s153 where a similar comparison is made for a query phoneme loop pointer j relative to the total number of phonemes in the query (Nquery).
Initially the loop pointer j is also set to zero and therefore the processing proceeds to step s155 where the system propagates the path ending at point (i,j) using the dynamic programming constraints discussed above. The way in which the system propagates the paths in step s155 will be described in more detail later. After step s155, the loop pointer j is incremented by one in step s157 and the processing returns to step s153. once this processing has looped through all the phonemes in the query (thereby processing the current column of lattice points), the processing proceeds to step s159 where the query phoneme loop pointer j is reset to zero and the annotation phoneme loop pointer i is incremented by one.
The processing then returns to step s151 where a similar procedure is performed for the next column of lattice points. once the last column of lattice points have been processed, the processing proceeds to step sl6l where the annotation phoneme loop pointer i is reset to zero and the processing in step s105 shown in Figure 12 ends.
Figure 15 shows in more detail the processing steps involved in step s107 shown in Figure 12, when propagating -the paths at the end points to the end null node 0,,. As with the propagation from the start null node Or, the lattice points which are the "end points", are defined by the dynamic programming constraints, which depend upon whether the query is text or speech.
Further, in this embodiment, the dynamic programming constraints allow dynamic programming paths to exit the annotation at any point along the sequence of annotation phonemes. Therefore, if the query is text, then the system will allow dynamic programming paths ending in the last row of the lattice points, i.e. at points (i,Nquery 1) f or i = 0 -to Nann-1, to propagate to the end null node 0,. If, however, the query was generated from speech, then the system allows any path propagating in the last four rows of the lattice points, i.e. points (i,Nquery 4), (i,Nquery-3), (i,Nquery-2) and (i,Nquery-1) for i 0 to Nann-1, to propagate to the end null node 0,.
As shown in Figure 15, this process begins at step s171 where the system determines whether or not the query is text. If it is, then the processing proceeds to step s173 where the query phoneme loop pointer j is set to Nquery-1. The processing then proceeds to step s175 where the annotation phoneme loop pointer i is compared 36 with the number of phonemes in the annotation (Nann) Initially the annotation phoneme loop pointer i is set to zero and therefore the processing will proceed to step s177 where the system calculates the transition score from point (i,Nquery-1) to the null end node Oe. This transition score is then combined with the cumulative score for the path ending at point (i,Nquery-1) which is stored in SCORE (i,Nquery-1). As mentioned above, in this embodiment, the transition and cumulative scores are probability based and they are combined by multiplying the probabilities together. However, in this embodiment, in order to remove the need to perform multiplications and in order to avoid the use of high f loating point precision, the system employs log probabilities for the transition and cumulative scores. Therefore, in step s179, the system adds the cumulative score for the path ending at point (i,Nquery-1) to the transition score calculated in step s177 and the result is copied to a temporary store, TEMPENDSCORE.
As mentioned above, if two or.more dynamic programming paths meet at the same point, then the cumulative scores for each of the paths are added together. Therefore, since log probabilities' are being used, the scores associated with paths which meet are effectively converted back to probabilities, added and then reconverted to log probabilities. In this embodiment, this operation is referred to as a "log addition" operation. This is a well known technique and is described in, for example, the book entitled "Automatic Speech Recognition. The Development of the (Sphinx) System" by Lee, Kai-Fu published by Kluwer Academic Publishers, 1989, at pages 28 and 29.
37 Since the path propagating from point (i,Nquery-1) to the null end node will meet with other dynamic programming paths, the system performs a log addition of TEMPENDSCORE with the score stored in the end node (ENDSCORE) and the result is stored in ENDSCORE. The proc essIng then proceeds to step s183 where the annotation phoneme loop pointer i is incremented. The processing then returns to step s175 where a similar process is performed for the next lattice point in the last row of lattice points.
once all the lattice points in the last row have been processed in this way, the processing performed in step s107 shown in Figure 12 ends.
If the system determines at step sl7l that the query is not text, then the processing proceeds to step s185 where the query phoneme loop pointer j is set to the number of phonemes in the query minus mxhops, i.e. Nquery-4. The processing then proceeds to step s187, where the system checks to see if the annotation phoneme loop pointer i is less than the number of phonemes in the annotation (Nann). Initially the annotation phoneme loop pointer i is set to zero and therefore the processing proceeds to step s189 where the system checks to see if the query phoneme loop pointer j is less than the number of phonemes in the query (Nquery). Initially it will be, and the processing proceeds to step s191 where the system calculates the transition score from lattice point (i,j) to the null end node 0,. This transition score is then added, in step s193, to the cumulative score for the path ending at point (i, j) and the result is copied to thetemporary score, TEMPENDSCORE. The processing then proceeds to step s195 where the system performs a log addition of TEMPENDSCORE with ENDSCORE and the result is 38 stored in EINDSCORE. The processing then proceeds to step s197 where the query phoneme loop pointer j is incremented by one and the processing returns to step s189. The above processing steps are then repeated until the query phoneme loop pointer j has been incremented so that it equals the number of phonemes in the query (Nquery). The processing then proceeds to step s199, where the query phoneme loop pointer j is reset to Nquery-4 and the annotation phoneme loop pointer J is incremented by one. The processing then returns to step s187. The above processing steps are then repeated until all the lattice points in the last four rows of the search space have been processed in this way, after which the processing performed in step s107 shown in Figure 12 ends.
Propagate In step s155 shown in Figure 14, the system propagates the path ending at lattice point (i,j) using the dynamic programming constraints discussed above. Figure 16 is a flowchart which illustrates the processing steps involved in performing this propagation step. As shown, in step s211, the system sets the values of two variables mxi and mxj and initialises annotation phoneme loop pointer i2 and query phoneme loop pointer j2. The loop pointers i2 and j2 are provided to loop through all the lattice points to which the path ending at point (i,j) can propagate to and the variables mxi and mxj are used to ensure that i2 and j2 can only take the values which are allowed by the dynamic programming constraints. In particular, mxi is set equal to i plus mxhops, provided this is less than or equal to the number of phonemes in the annotation, otherwise mxi is set equal to the number 39 of phonemes in the annotation (Nann). Similarly, mxj is set equal to j plus mxhops, provided this is less than or equal to the number of phonemes in the query, otherwise mxj is set equal to the number of phonemes in the query (Nquery). Finally, in step s2ll, the system initialises the annotation phoneme loop pointer i2 to be equal to the current value of the annotation phoneme loop pointer i and the query phoneme loop pointer j2 to be equal to the current value of the query phoneme loop pointer j.
Since the dynamic programming constraints employed by the system depend upon whether the annotation is text or speech and whether the query is text or speech, the next step is to determine how the annotation and the query were generated. This is performed by the decision blocks s213, s215 and s217. If both the annotation and the query are generated from speech, then the dynamic programming path ending at lattice point (i,j) can propagate to the other points shown in Figure 11 and process steps s219 to s235 operate to propagate this path to these other points. In particular, in step s219, the system compares the annotation phoneme loop pointer i2 with the variable mxi. Since annotation phoneme loop pointer i2 is set to i and mxi is set equal to i+4, in step s211, the processing will proceed to step s221 where a similar comparison is made for the query phoneme loop pointer j2. The processing then proceeds to step s223 which ensures that the path does not stay at the same lattice point (i,j) since initially, i2 will equal 1 and j2 will equal j. Therefore, the processing will initially proceed to step s225 where the query phoneme loop pointer j2 is incremented by one.
The processing then returns to step s221 where the incremented value of j2 is compared with mxj. If j2 is less than mxj, then the processing returns to step s223 and the processing proceeds to step s227, which is operable to prevent too large a hop along both the sequences of annotation phonemes and query phonemes. It does this by ensuring that the path is only propagated if i2 + j2 is less than i + j + mxhops. This ensures that only the triangular set of points shown in Figure 11 are processed. Provided this condition is met, the processing then proceeds to step s229 where the system calculates the transition score (TRANSCORE) from lattice point (i,j) to lattice point (i2,j2). The processing then proceeds to step s231 where the system adds the transition score determined in step s229 to the cumulative score stored for the point (i,j) and copies this to a temporary store, TEMPSCORE. As mentioned above, in this embodiment, if two or more dynamic programming paths meet at the same lattice point, the cumulative scores associated with each of the paths are added together. Therefore, in step s233, the system performs a log addition of TEMPSCORE with the cumulative score already stored for point (i2,j2) and the result is stored in SCORE (i2,j2). The processing then returns to step s225 where the query phoneme loop pointer j2 is incremented by one and the processing returns to step s221. once the query phoneme loop pointer j2 has reached the value of mxj, the processing proceeds to step s235, where the query phoneme loop pointer j2 is reset to the initial value j and the annotation phoneme loop pointer i2 is incremented by one. The processing then proceeds to step s219 where the processing begins again for the next column of points shown in Figure 11. once the path 41 has been propagated from point (i,j) to all the other points shown in Figure 11, the processing ends.
If the decision blocks s213 and s215 determine that the annotation is text and the query is speech, then the processing proceeds to steps s241 to s251, which are operable to propagate the path ending at point (i,j) to the points shown in Figure 9a. In particular, in step s241, the system determines whether or not the annotation phoneme loop pointer i is pointing to the last phoneme in the annotation. If it is, then there are no more phonemes in the annotation and the processing ends. If the annotation phoneme loop pointer i is less than Nann 1, then the processing proceeds to step s243, where the query phoneme loop pointer j2 is compared with mxj.
Initially, j2 will be less than mxj and therefore the processing proceeds to step s245 where the system calculates the transition score (TRANSCORE) from point (i,j) to point (i+l,j2). This transition score is then added to the cumulative score associated with the path ending at point (i, j) and the result is copied to the temporary score, TEMPSCORE. The system then performs, in step s249, a log addition of TEMPSCORE with the cumulative score associated with the point (i+1, j2) and stores the result in SCORE (i+l,j2), to ensure that the path scores for paths which meet at the lattice point (i+l,j2) are combined. The processing then proceeds to step s251 where the query phoneme loop pointer j2 is incremented by one and then the processing returns to step s243. Once the path which ends at point (i, j) has been propagated to the other points shown in Figure 9a, j2 will equal mxj and the propagation of the path ending at point (i,j) will end.
42 If the decision blocks s213 and s217 determine that the annotation is speech and the query is text, then the processing proceeds to steps s255 to s265 shown in Figure 16b, which are operable to propagate the path ending at point (i,j) to the other points shown in Figure 9b. This is achieved by firstly checking, in step s255, that the query phoneme loop pointer j is not pointing to the last phoneme in the sequence of phonemes representing the query. If it is not, then the processing proceeds to step s257 where the annotation phoneme loop pointer i2 is compared with mxl. Initially i2 has a value of i and provided annotation phoneme i is not at the end of the sequence of phonemes representing the annotation, the processing will proceed to step s259, where the transition score for moving from point (i,j) to point (i2,j+l) is calculated. The processing then proceeds to step s261 where this transition score is added to the cumulative score for the path ending at point (i,j) and the result is copied to the temporary score, TEMPSCORE.
The processing then proceeds to step s263 where a log addition is performed of TEMPSCORE with the cumulative score already stored for the point (i2,j+l) and the result is stored in SCORE (i2,j+l). The processing then proceeds to step s265 where the annotation phoneme loop pointer i2 is incremented by one and the processing returns to step s257. These processing steps are then repeated until the path ending at point (i,j) has been propagated to each of the other points shown in Figure 9b. At this time, the propagation of the path at point (i,j) is completed and the processing ends.
Finally, if the decision blocks s213 and s215 determine that both the annotation and the query are text, then the 43 processing proceeds to steps s271 to s279 shown -in Figure 16b, which are operable to propagate the path ending at point (i,j) to the point (i+l,j+l), provided of course there is a further annotation phoneme and a further query phoneme. In particular, in step s271, the system checks that the annotation phoneme loop pointer i is not pointing to the last annotation phoneme. If it is not then the processing proceeds to step s273 where a similar check is made for the query phoneme loop pointer j relative to the sequence of query phonemes. If there are no more annotation phonemes or if there are no more query phonemes, then the processing ends. If, however, there is a further annotation phoneme and a further query phoneme, then the processing proceeds to step s275 where the system calculates the transition score from point (i,j) to point (i+l,j+l). This transition score is then added, in step s277, to the cumulative score stored for the point (i,j) and stored in the temporary score, TEMPSCORE. The processing then proceeds to step s279 where the system performs a log addition of TEMPSCORE with the cumulative score already stored for point (i+l,j+l) and the result is copied to SCORE (i+l,j+l).
As those skilled in the art will appreciate, steps s277 and s279 are necessary in this embodiment because the dynamic programming constraints allow a path to start at any phoneme within the sequence of phonemes representative of the annotation and therefore, point (i+l,j+l) may already have a score associated with it.
After step s279, the propagation of point (i,j) is completed and the processing ends.
Transition Score In steps s103, s105 and s107 shown in Figure 12, dynamic 44 programming paths are propagated and during this propagation, the transition score from one point to another point is calculated in steps s127, s117, s177, s191, s229, s245, s259 and s275. In these steps, the system calculates the appropriate insertion probabilities, deletion probabilities and decoding probabilities relative to the start point and end point of the transition. The way in which this is achieved in this embodiment, will now be described with reference -to Figures 17 and 18.
In particular, Figure 17 shows a flow diagram which illustrates the general processing steps involved in calculating the transition score for a path propagating from lattice point (i,j) to lattice point (i2,j2). In step s291, the system calculates, for each annotation phoneme which is inserted between point (i,j) and point (i2,j2), the score for inserting the inserted phoneme(s) (which is just the log of probability PI() discussed above) and adds this to an appropriate store, INSERTSCORE. The processing then proceeds to step s293 where the system performs a similar calculation for each query phoneme which is inserted between point (i,j) and point (i2,j2) and adds this to INSERTSCORE. Note, however, that if (i,j) is the start null node Os or if (i2,j2) is the end null node Oel then the system does not calculate the insertion probabilities for any inserted annotation phonemes (since there is no penalty for starting or ending a path at any of the annotation phonemes), although it does calculate insertion probabilities for any inserted query phonemes. As mentioned above, the scores which are calculated are log based probabilities, therefore the addition of the scores in INSERTSCORE corresponds to the multiplication of the corresponding insertion probabilities. The processing then proceeds to step s295 where the system calculates the scores for any deletions and/or any decodings in propagating from point (i,j) to point (i2,j2) and these scores are added and stored in an appropriate store, DELSCORE. The processing then proceeds to step s297 where the system adds INSERTSCORE and DELSCORE and copies the result to TRANSCORE.
The processing involved in step s295 to determine the deletion and/or decoding scores in propagating from point (i,j) to point (12,j2) will now be described in more detail with reference to Figure i8. Since the possible deletions and decodings depend on whether or not the annotation was generated from text and whether or not the query was generated from text, the decision blocks s301, s303 and s305 determine if the annotation is text or speech and if the query is text or speech. If these decision blocks determine that both the annotation and the query are text, then there are no deletions and the decoding of the two phonemes is performed by a boolean match in step s307. If annotation phoneme ai2 is the same as query phoneme qj21 then the processing proceeds to step s309, where TRANSCORE is set to equal log [one] (i.e. zero) and the processing ends. If, however, annotation phoneme a12 is not the same as query phoneme q,2, then the processing proceeds to step s311 where TRANSCORE is set t-o a very large negative number which is a system approximation of log [zero] and the processing then ends.
If the decision blocks s301 and s305 determine that the 46 annotation is speech and the query is text, then the transition scores are determined using the simplified form of equation (4) discussed above. In this case, the processing passes from step s303 to step s313 where the system determines if annotation loop pointer i2 equals annotation loop pointer i. If it does, then this means that the path has propagated from point (i,j) to point (i I j+l) - Therefore, the query phoneme qj,, has been deleted from the sequence of annotation phonemes relative to the sequence of query phonemes. Therefore, in step s317, the system copies the log probability of deleting phoneme qj+l (i. e. log P (0 1 qj,,, C)) to DELSCORE and the processing ends. If in step s313, the system determines that i2 is not equal to i, then the system is considering the propagation of the path ending at point (i,j) to one of the points (i+l,j+l), (i+2,j+l) or (i+3,j+l). In which case, there are no deletions, only insertions and a decoding between annotation phoneme a12 with query phoneme qj,,. Therefore, in step s315, the system copies the log probability of decoding query phoneme qj+l as annotation phoneme ai2 (i. e. log P (ai2 I qj+,, C)) to DELSCORE and the processing ends.
If the decision blocks s301 and s305 determine that the annotation is text and that the query is speech, then the transition scores are determined using the other simplified form of equation (4) discussed above. In this case, the processing passes from step s305 to step s319 where the system determines whether or not query phoneme loop pointer j2 equals query phoneme loop pointer j. If it does, then the system is calculating the transition score from point (i,j) to point (i+l,j). In this case, the annotation phoneme ai,j has been deleted from the 47 sequence of query phonemes relative to the sequence of annotation phonemes. Therefore, in step s321, the system determines and copies the log probability of deleting annotation phoneme ai,j (i.e. log P(Olai+,fC)) to DELSCORE and then the processing ends. If at step s319, the system determines that query phoneme loop pointer j2 is not equal to query phoneme loop pointer j, then the system is currently determining the transition score from point (i,j) to one of the points (i+l,j+l), (i+l,j+2) or (i+l,j+3). In this case, there are no deletions, only insertions and a decoding between annotation phoneme aj+j with query phoneme qJ2. Therefore, in step s323, the system determines and copies the log probability of decoding annotation phoneme aj+j as query phoneme qJ2 (i.e.
log P(qj2lai+l,C)) to DELSCORE and the processing ends.
If the decision blocks s301 and s303 determine that both the annotation and the query are generated from speech, then the transition scores are determined using equation (4) above. In thi-s case, the processing passes from step s303 to step s325 where the system determines if the annotation loop pointer i2 equals annotation loop pointer i. If it does, then the processing proceeds to step s327 where a phoneme loop pointer r is initialised to one.
The phoneme pointer r is used to loop through each possible phoneme known to the system during the calculation of equation (4) above. The processing then proceeds to step s329, where the system compares the phoneme pointer r with the number of phonemes known to the system, Nphonemes (which in this embodiment equals 43). Initially r is set to one in step s327, therefore the processing proceeds to step s331 where the system determines the log probability of phoneme p, occurring 48 (i-e- log P(p,IC)) and copies this to a temporary score TEMPDELSCORE. If annotation phoneme loop pointer i2 equals annotation phoneme i, then the system is propagating the path ending at point (i,j) to one of the points (i,j+l), (i,j+2) or (i,j+3). Therefore, there is a phoneme in the query which is not in the annotation.
consequently, in step s333, the system adds the log probability of deleting phoneme p,:. from the annotation (i.e. log P(OlPr,C)) to TEMPDELSCORE. The processing then proceeds to step s335, where the system adds the log probability of decoding phoneme p., as query phoneme qj2 (i. e. log P (qJ2 I Pr, C)) to TEMPDELSCORE. The processing then proceeds to step s337 where the log addition of TEMPDELSCORE and DELSCORE is performed and the result is is stored in DELSCORE. The processing then proceeds to step s339 where the phoneme loop pointer r is incremented by one and then the processing returns to step s329 where a similar processing is performed for the next phoneme known to the system. once this calculation has been performed for each of the 43 phonemes known to the system, the processing ends.
If at step s325, the system determines that i2 is not equal to i, then the processing proceeds to step s341 where the system determines if the query phoneme loop pointer j2 equals query phoneme loop pointer j. If it does, then the processing proceeds to step s343 where the phoneme loop pointer r is initialised to one. The processing then proceeds to step s345 where the phoneme loop pointer r is compared with the total number of phonemes known to the system (Nphonemes). Initially r is set to one in step s343, and therefore, the processing proceeds to step s347 where the log probability of 49 phoneme p, occurring is determined and copied into the temporary store TEMPDELSCORE. The processing then proceeds to step s349 where the system determines the log probability of decoding phoneme p, as annotation phoneme ai2 and adds this to TEMPDELSCORE. If the query phoneme loop pointer j2 equals query phoneme loop pointer j, then the system is propagating the path ending at point (i, j) to one of the points (i+l,j), (i+2,j) or (i+3,j).
Therefore, there is a phoneme in the annotation which is not in the query. Consequently, in step s351, the system determines the log probability of deleting phoneme Pr from the query and adds this to TFMPDELSCORE. The processing then proceeds to step s353 where the system performs the log addition of TEMPDELSCORE with DELSCORE and stores the result in DELSCORE. The phoneme loop pointer r is then incremented by one in step s355 and the processing returns to step s345. once the processing steps s347 to s353 have been performed for all the phonemes known to the system, the processing ends.
If at step s341, the system determines that query phoneme loop pointer j2 is not equal to query phoneme loop pointer j, then the processing proceeds to step s357 where the phoneme loop pointer r is initialised to one.
The processing then proceeds to step s359 where the system compares the phoneme counter r with the number of phonemes known to the system (Nphonemes). Initially r is set to one in step s357, and therefore, the processing proceeds to step s361 where the system determines the log probability of phoneme p, occurring and copies this to the temporary score TEMPDELSCORE. If the query phoneme loop pointer j2 is not equal to query phoneme loop pointer j, then the system is propagating the path ending at point (i,j) to one of the points (i+l,j+l), (i+l,j+2) and (i+2,j+l). Therefore, there are no deletions, only insertions and decodings. The processing therefore proceeds to step s363 where the log probability of decoding phoneme Pr as annotation phoneme ai2 is added to TEMPDELSCORE. The processing then proceeds to step s365 where the log probability of decoding phoneme Pr as query phoneme qj2 is determined and added to TEMPDELSCORE. The system then performs, in step s367, the log addition of TEMPDELSCORE with DELSCORE and stores the result in DELSCORE. The phoneme counter r is then incremented by one in step s369 and the processing returns to step s359.
Once processing steps s361 to s367 have been performed for all the phonemes known to the system, the processing ends.
NORMALISATION The above description of the dynamic programming process has dealt only with the numerator part of equation (3) above. Therefore, after an input query has been matched with a sequence of annotation phonemes in the database, the score for that match (which is stored in ENDSCORE) must be normalised by the normalising term defined by the denominator of equation (3). As mentioned above, the calculation of the denominator term is performed at the same time as the calculation of the numerator, i.e. in the dynamic programming routine described above. This is because, as can be seen from a comparison of the numerator and the denominator, the terms required for the denominator are all calculated on the numerator. it should, however, be noted that when the annotation or the query is generated from text, no normalisation is performed. In this embodiment, normalisation is 51 performed so that longer annotations are not given more weight than shorter annotations and so that annotations which include common phonemes are not given more weight than annotations which include uncommon phonemes. it does this by normalising the score by a term which depends upon how well the annotation matches the underlying model.
TRAINING In the above embodiment, the system used 1892 decoding/deletion probabilities and 43 insertion probabilities (referred to above as the confusion statistics) which were used to score the dynamic programming paths in the phoneme matching operation In this embodiment, these probabilities are determined in advance during a training session and are stored in a memory (not shown). In particular, during this training session, a speech recognition system is used to provide a phoneme decoding of speech in two ways. In the f irst way, the speech recognition system is provided with both the speech and the actual words which are spoken. The speech recognition unit can therefore use this information to generate the canonical phoneme sequence of the spoken words to obtain an ideal decoding of the speech. The speech recognition system is then used to decode the same speech, but this time without knowledge of the actual words spoken (referred to hereinafter as the free decoding). The phoneme sequence generated from the f ree decoding will dif f er f rom the canonical phoneme sequence in the following ways:
i) the free decoding may make mistakes and insert phonemes into the decoding which are not present in 52 the canonical sequence or, alternatively, omit phonemes in the decoding which are present in the canonical sequence; ii) one phoneme may be confused with another; and iii) even if the speech recognition system decodes the speech perfectly, the free decoding may nonetheless differ from the canonical decoding due to the differences between conversational pronunciation and canonical pronunciation, e.g., in.
conversational speech the word "and" (whose canonical forms are /ae/ /n/ /d/ and /ax/ /n/ /d/) is frequently reduced to /ax/ /n/ or even /n/.
Therefore, if a large number of utterances are decoded into their canonical forms and their free decoded forms, then a dynamic programming method can be used to align the two. This provides counts of what was decoded, d, when the phoneme should, canonically, have been a p.
From these training results, the above decoding, deletion and insertion probabilities can be approximated in the following way.
The probability that phoneme, d, is an insertion is given by:
Id PI(d C) (9) of no where Id is the number of times the automatic speech recognition system inserted phoneme d and n,)II is the total number of decoded phonemes which are inserted relative to the canonical sequence.
53 The probability of decoding phoneme p as phoneme d is given by:
P(djP,C) = Cdp (10) nP where Cdp is the number of times the automatic speech recognition system decoded d when it should have been p and nP is the number of times the automatic speech recognition system decoded anything (including a deletion) when it should have been p.
The probability of not decoding anything (i.e. there being a deletion) when the phoneme p should have been decoded is given by:
P(O I P, C) = OP n P where OP is the number of times the automatic speech recognition system decoded nothing when it should have decoded p and nP is the same as above.
PHONEME CONFIDENCE In the above embodiment, a speech query was input to a speech recognition system which generated a sequence of phonemes representative of the spoken query. As those skilled in the art of speech recognition systems will be 25 aware, many phoneme speech recognition systems output a best guess phoneme together with some alternatives. For example, a speech recognition system might output that 54 the current portion of the input speech corresponds to phoneme /eh/ with confidence probability 0.4 but that it could have been phoneme /e/ with confidence probability 0.3 or phoneme /ey/ with confidence probability 0.3.
If this information is to be incorporated into the dynamic programming matching algorithm described above, then equation (4) above has to be modified. This could be done by summing the probabilities given in equation (4) for each of the phoneme possibilities (i.e. adding a further summation to the equation). However, summing over phoneme confidence as well as confusion information would slow the algorithm down by an order of magnitude.
An alternative method, and te one used in this embodiment, is to combine the confidence and confusion information into a single calculation. This is possible, because they both represent estimates of the same thing - the underlying probability of a particular phoneme being decoded (by the speech recognition system) as any other phoneme. In this method, the system aligns the sequence of best guess query phonemes with the sequence of best guess annotation phonemes and uses the confidence probabilities generated for each phoneme to modify the confidence probabilities calculated at each lattice point of the dynamic programming alignment algorithm.
Therefore, introducing the confidence information into equation (4), the term calculated at lattice point (ai, qj) is:
E P(aip,C,e,,i)P(q,]p,C,e4)P(pjC) (12) rl on the numerator, and N, E P(ajp,,C,ej)P(pjC) (13) r=1 on the denominator, where e,,i is the confidence information for the best guess annotation phoneme ai and e,j is the confidence information for the best guess query phoneme qj. Each of eaj and e,j will comprise a vector of NP confidence values - one for each of the phonemes known to the system, although most of the entries in these vectors will be zero as the recognition system will only, usually, output a few alternatives to the best guess phoneme. In this embodiment, the following equation is used to de-ermine P(qjlPrlcreqj): b c. + b e - + p(qjjP"C'e4) c jr e qj (14) bCnr + be + NPP where Cir and
nr are the counts generated during the training routine discussed above for the number of times the automatic speech recognition system decoded phoneme qj when it should have decoded phoneme Pr and the number of times the automatic speech recognition system decoded anything (including a deletion) when it should have been phoneme Pr, respectively; e.il' is the confidence probability for the current model phoneme (PA being evaluated which was output by the speech recognition system when it decoded the current query phoneme qj; P represents a lower limit of the confidence probabilities and depends upon any pruning threshold which is used in the phoneme decoder of the speech recognition system; Np is the total number of phonemes in the system (which in this embodiment is 43); and bc and be are scaling factors which are applied to the confusion counts and confidence 56 values respectively. From the relative size of the confidence probabilities and confusion probabilities, we know that be should be of the order of several hundred and bc should be of the order of several hundredths.
Experiments reveal that values of be = 700, b, = 0.01 and = 0.001 or less to be appropriate.
A sinLilar expression is calculated for P(ailp,,C,eai) except using the confidence information (eai) output by the speech recognition system during the decoding of the current annotation phoneme aj. The rest of the dynamic programming alignment algorithm is the same as in the first embodiment described above and will not therefore be described again.
ALTERNATIVE EMBODIMENTS In the above embodiment, the confusion and confidence probabilities were combined using equation (14) above.
In an alternative embodiment, a linear combination, such as:
P(qj]PrC,eqf) = A-P(qj]PrC) + (1 -A)e r (15) could be used, where X is a constant. Alternatively still, a non-linear combination of the two probabilities could be used. However, the combination performed using equation (14) is preferred, since it is effectively a weighted linear combination of the two probabilities, with the weighting applied to the confidence probability (e) being dependent upon the confusion statistics. In particular, the weighting applied to the confidence probability varies as 1/n,. As a result, when the confusion statistics are unreliable, because of a lack of 57 training data, more weight is given to the confidence probabilities. Whereas, when there is a lot of training data for the current model phoneme (p,), more reliance is placed on the confusion statistics than the confidence probabilities.
In the above embodiment, confidence probabilities for both the query and the annotation were used to modify the score which is calculated during the dynamic programming alignment routine. As those skilled in the art will appreciate, if this confidence information is only available for one of the input query or the annotation, then only the relevant confusion probabilities would be amended.
As those skilled in the art will appreciate, the above technique for matching one sequence of phonemes with another sequence of phonemes can be applied to applications other than data retrieval. Additionally, as those skilled in the art will appreciate, although the system described above has used phonemes in the phoneme and word lattice, other phoneme-like units can be used, such as syllables or katakana (Japanese alphabet).
As those skilled in the art will appreciate, the above description of the dynamic programming matching and alignment of the two sequences of phonemes was given by way of example only and various modifications can be made. For example, whilst a raster scanning technique for propagating the paths through the lattice points was employed, other techniques could be employed which progressively propagates the paths through the lattice points. Additionally, as those skilled in the art will 58 appreciate, dynamic programming constraints other than -those described above may be used to control the matching process.
In the above embodiment, the annotation was generally longer than the query and the dynamic programming alignment algorithm aligned the query with the entire annotation. In an alternative embodiment, the alignment algorithm may compare the query with the annotation by stepping the query over the annotation from beginning to end and, at each step, comparing the query with a portion of the annotation of approximately the same size as the query. In such an embodiment, at each step, the query would be aligned with the corresponding portion of the annotation using a similar dynamic programming technique to the one described above. This technique is illustrated in Figure 19a with the resulting plot showing the way in which the dynamic programming score for the alignments between the query and a current annotation varies as the query is stepped over the annotation shown in Figure 19b. The peaks in the plot shown in Figure 19b represent the parts of the annotation which match best with the query. The annotation which is most similar to the query can then be determined by comparing the peak DP score obtained during the comparison of the query with each annotation.
In the above embodiment, pictures were annotated using the phoneme and word lattice annotation data. As those skilled in the art will appreciate, this phoneme and word lattice data can be used to annotate many different types of data files. For example, this kind of annotation data can be used in medical applications for annotating x-rays 59 of patients, 3D videos of, for example, NMR scans, ultrasound scans etc. It can also be used to annotate 1D data, such as audio data or seismic data.
In the above embodiments, a speech recognition system which generates a sequence of phonemes from the input speech signal was used. As those skilled in the art will appreciate, the above system can be used with other types of speech recognition systems which generate, for 10 example, a sequence of output words or a word lattice which can then be decomposed into a corresponding string of phonemes with alternatives, in order to simulate a recogniser which produces phoneme strings. 15 In the above embodiment, the insertion, deletion and decoding probabilities were calculated from the confusion statistics for the speech recognition system using a maximum likelihood estimate of the probabilities. As those skilled in the art of statistics will appreciate, 20 other techniques, such as maximum entropy techniques, can be used to estimate these probabilities. Details of a suitable maximum entropy technique can be found at pages 45 to 52 in the book entitled "Maximum Entropy and Bayesian Methods" published by Kluwer Academic publishers 25 and written by John Skilling, the contents of which are incorporated herein by reference. In the above embodiment, the database 29 and the automatic speech recognition unit 51 were both located 30 within the user terminal 59. As those skilled in the art will appreciate, this is not essential. Figure 2 0 illustrates an embodiment in which the database 29 and the search engine 53 are located in a remote server 60 and in which the user terminal 59 accesses the database 29 via the network interface units 67 and 69 and a data network 68 (such as the Internet). In this embodiment, the user terminal 59 can only receive voice queries from the microphone 7. These queries are converted into phoneme and word data by the automatic speech recognition unit 51. This data is then passed to the control unit 55 which controls the transmission of the data over the data network 68 to the search engine 53 located within the remote server 60. The search engine 53 then carries out the search in a similar manner to the way in which the search was performed in the above embodiment. The results of the search are then transmitted back from the search engine 53 to the controi unit 55 via the data network 6 8. The control unit 55 then considers the search results received back from the network and displays appropriate data on the display 57 for viewing by the user 39.
In addition to locating the database 29 and the search engine 53 in the remote server 60, it is also possible to locate the automatic speech recognition unit 51 in the remote server 60. Such an embodiment is shown in Figure 21. As shown, in this embodiment, the input voice query from the user is passed via input line 61 to a speech encoding unit 73 which is operable to encode the speech for efficient transfer through the data network 68. The encoded data is then passed to the control unit 55 which transmits the data over the network 68 to the remote server 60, where it is processed by the automatic speech recognition unit 51. The phoneme and word data generated by the speech recognition unit 51 for the input query is then passed to the search engine 53 for use in searching 61 -the database 2 9. The search results generated by the search engine 53 are then passed, via the network interface 69 and the network 68, back to the user terminal 59. The search results received back from the remote server are then passed via the network interface unit 67 to the control unit 55 which analyses the results and generates and displays appropriate data an the display 57 for viewing by the user 39.
In a similar manner, a user terminal 59 may be provided which only allows typed inputs from the user and which has the search engine and the database located in the remote server. In such an embodiment, the phonetic transcription unit 75 may be located in the remote server 60 as well.
In the above embodiments, a dynamic programming algorithm was used to align the sequence of query phonemes with the sequences of annotation phonemes. As those skilled in the art will appreciate, any alignment technique could be used. For example, a naive technique could be used which identifies all possible alignments. However, dynamic programming is preferred because of its ease of implementation using standard processing hardware.
A description has been given above of the way in which two or more canonical sequences of phonemes are compared using a dynamic programming technique. However, as shown in Figures 2 and 3, the annotations are preferably stored as lattices. As those skilled in the art will appreciate, in order that the above comparison techniques will work with these lattices, the phoneme sequences defined by the lattices must be 'If lattened" into a single 62 sequence of phonemes with no branches A naive approach to do this would be to identify all the different possible phoneme sequences defined by the lattice and then to compare each of those with the or each query sequence. However, this is not preferred, since common parts of the lattice will be matched several times with each query sequence. Therefore, the lattice is preferably flattened by sequentially labelling each phoneme within the lattice in accordance with the time stamp information available for each phoneme within the lattice. Then, during the dynamic programming alignment, different dynamic programming constraints are -used at each DP lattice point, in order to ensure that the paths propagate in accordance with the lattice structure.
The table below illustrates the DP constraints used for part of the phoneme lattice shown in Figure 2. In particular, the first column illustrates the phoneme number (p, to p9) assigned to each phoneme in the lattice; the middle column corresponds to the actual phoneme in the lattice; and the last column illustrates, for each phoneme, the phonemes to which a path ending at that phoneme may propagate to, at the next dynamic programming time point. Although not shown, the middle column will also include details of the node to which the phoneme is connected and the corresponding phoneme link.
Phoneme Phoneme Dynamic Programming Number Constraints Pi /p/ Pl; P2; P3; P4 P2 /ih/ P2; P3; P4; P5 63 P3 /k/ P6 P3; P4; P5; P7 P8 P4 /ch/ P6; P10 P4; P5; P7; P9 pa; P11 P5 /ax/ P6; P10; P12 P5; P7; P9; P12 PS; P11; P13 P14 P6 /ax/ P6; P10; P12; PIS P16 P7 /ao/ P7; P9; P12; P15 P16 P8 /ah/ P8; P11; P13; P18 P 14; P 17 P 9 P9; P12; P15; P18 P16; P18 For example, if a dynamic programming path ends at time ordered phoneme p, then that dynamic programming path can stay at phoneme P4 or it can propagate to any of time ordered phonemes P5 to P11- As shown in the table, at some points the possible phonemes to which a path can extend are not consecutively arranged in the time ordered phoneme sequence. For example, for a dynamic programming path ending at time ordered phoneme P61 this path can either stay at this phoneme or progress to phonemes Plof P12F PIS or p16- By consecutively numbering the phonemes in the lattice in this way and by varying the dynamic programming constraints used in dependence upon the 64 lattice, an efficient dynamic programming matching between the input query and the annotation lattice can be achieved. Further, as those skilled in the art will appreciate, if the input query also generates a lattice, then this may be flattened in a similar way and the dynamic programming constraints adjusted accordingly.
In the above embodiment, the same phoneme confusion probabilities were used for both the annotations and the queries. As those skilled in the art will appreciate, if di f f erent recognition systems are used to generate these, then different phoneme confusion probabilities should be used for the annotations and the queries. since these confusion probabilities depend upon the recognition system that was used to generate the phoneme sequences.
In the above embodiment, when either the annotation or the query was generated from text, it was assumed that the canonical sequence of phonemes corresponding to the typed text was correct. This may not be the case since this assumes that the typed word or words are not mis spelled or mis-typed. Therefore, in an alternative embodiment, confusion probabilities may also be used for typed queries and/or annotations. In other words, equations (4) would be used even where either the annotation or the query or both are text. The confusion probabilities used may try to codify either or both mis spellings and mis-typings. As those skilled in the art will appreciate, the confusion probabilities for mis typings will depend upon the type of keyboard used. In particular, the confusion probabilities of mis-typing a word will depend upon the layout of the keyboard. For example, if a letter "d" is typed then the keys surrounding the key for the letter I'd" will have high mis-typing probabilities whereas those located further away from the I'd" key will have lower mis-typing probabilities. As mentioned above, these mis-typing probabilities may be used together with or replaced by confusion probabilities for the mis-spelling of the words. These mis-spelling probabilities may be determined by analysing typed documents from a large number of dif f erent users and monitoring the type of mis spellings which usually occur. Such mis-spelling probabilities may also take into account transcription errors caused by mis-keying. In such an embodiment, the dynamic programming constraints used should allow for insertions and/or deletions in the typed input. For example, the constraints illustrated in Figure 11 could be used.
In the first embodiment described above, during the dynamic programming algorithm, equation (4) was calculated for each aligned pair of phonemes. In the calculation of equation (4), the annotation phoneme and the query phoneme were compared with each of the phonemes known to the system. As those skilled in the art will appreciate, for a given annotation phoneme and query phoneme pair, many of the probabilities given in equation (4) will be equal to or very close to zero. Therefore, in an alternative embodiment the annotation and query phoneme pair may only be compared with a subset of all the known phonemes, which subset is determined in advance from the confusion statistics. To implement such an embodiment, the annotation phoneme and the query phoneme could be used to address a lookup table which would identify the model phonemes which need to be compared 66 with the annotation and query phonemes using equation (4)_ In the above embodiments, the features of the annotation and the query which have been aligned and matched have represented units of speech. As those skilled in the art will appreciate, the above-described technique can be used in other applications where the features of the query and the annotation may be confusable due to the inaccuracies of a recognition system which generated the sequences of features. For example, the above technique could be used in optical character or handwriting recognition systems where there is a likelihood that a recognition system might mistake one input character for another.
A number of embodiments and modifications have been described above. As those skilled in the art will appreciate, there are many other embodiments and modifications which will be apparent to those skilled in the art.
67

Claims (1)

  1. CLAIMS:
    1 A f eature comparison apparatus comprising:
    input means for receiving an input signal; recognition processing means for comparing said input signal with stored feature models to identify an input sequence of features in said input signal and confidence data representative of the confidence that the input sequence of features is representative of said input signal; and means for comparing said input sequence of features with a stored sequence of features using predetermined similarity data which defines similarities between different features and using said confidence data, to provide a measure of the similarity between the input sequence of features and the stored sequence of features.
    2. An apparatus according to claim 1, wherein confidence data is stored for said stored sequence of features and wherein said comparing means provides said similarity measure using, in addition, said stored confidence data.
    3. The apparatus according to claim I or 2, wherein said confidence data comprises confidence data associated with each feature in the sequence of features.
    4. An apparatus according to any preceding claim, wherein said recognition processing means is operable to output a list of alternatives for each feature in said input sequence of features and confidence data associated with each alternative.
    68 5. An apparatus according to any preceding claim, wherein said comparing means comprises:
    means for aligning features of the input sequence of features with features of the stored sequence of features to form a number of aligned pairs of features; means for comparing the features of each aligned pair of features using said predetermined similarity data and said confidence data, to generate a comparison score representative of the similarity between the aligned pair of features; and means for combining the comparison scores for all the aligned pairs of features to provide said similarity measure.
    6. An apparatus according to claim 5, wherein said comparing means comprises:
    first comparing means for comparing, for each aligned pair, the input sequence feature in the aligned pair with each of a plurality of features taken f rom a set of predetermined features using said similarity data and said confidence data to provide a corresponding plurality of intermediate comparison scores representative of the similarity between said first sequence feature and the respective features from the set; second comparing means for comparing, for each aligned pair, the stored sequence feature in the aligned pair with each of said plurality of features from the set using said similarity data and said confidence data to provide a further corresponding plurality of intermediate comparison scores representative of the similarity between said stored sequence feature and the respective features from the set; and 69 means f or calculating said comparison score f or the aligned pair by combining said pluralities of intermediate comparison scores.
    7. An apparatus according to claim 6, wherein said f irst and second comparing means are operable to compare the input sequence feature and the stored sequence f eature respectively with each of the features in said set of predetermined features. 10 8. An apparatus according to claim 6 or 7, wherein said comparing means is operable to generate a comparison score for an aligned pair of features which represents a probability of confusing the stoied sequence f eature of 15 the aligned pair as the input sequence f eature of the aligned pair. 9. An apparatus according to claim 8, wherein said first and second comparing means are operable to provide 20 intermediate comparison scores which are indicative of a probability of confusing the corresponding feature taken from the set of predetermined features as the feature in the aligned pair. 25 10. An apparatus according to claim 9, wherein said calculating means is operable (i) to multiply the intermediate scores obtained when comparing the input and stored sequence features in the aligned pair with the same feature f rom the set to provide a plurality of 30 multiplied intermediate comparison scores; and (ii) to add the resulting multiplied intermediate scores, to calculate said comparison score for the aligned pair.
    11. An apparatus according to claim 10, wherein each of said features in said set of predetermined features has a predetermined probability of occurring within a sequence of features and wherein said calculating means is operable to weigh each of said multiplied intermediate comparison scores with the respective probability of occurrence for the feature from the set used to generate the multiplied intermediate comparison scores.
    12. An apparatus according to claim 11, wherein said calculating means is operable to calculate:
    P(qjlp,)P(alp,)P(Pl) where qj and ai are an aligned pair of input and stored sequence features respectively; P(qjlp,) is the probability of confusing set feature Pr as input sequence feature qj; P(ailp,) is the probability of confusing set feature p, as stored sequence feature aj; and P(p,) represents the probability of set feature pr occurring in a sequence of features.
    13. An apparatus according to claim 12, wherein the confusion probabilities for the input and stored sequence features are determined in advance and depend upon the recognition system that was used to generate the respective input in stored sequences.
    14. An apparatus according to claim 12 or 13, wherein said calculating means is operable to calculate P(qjlp,) using said similarity data and said confidence data.
    15. An apparatus according to claim 14, wherein said 71 calculating means is operable to take a weighted combination of said similarity data and said confidence data to determined P(qjlp,).
    16.An apparatus according to claim 15, wherein said similarity data is obtained from a training session in which a large amount of input signals for which the feature content is known are processed by said recognition processing means and wherein said calculating means is operable to weigh said confidence data for a current feature in dependence upon the amount of training data available for the current f eature in said training session.
    17. An apparatus according to claim 16, wherein said calculating means is operable to calculate:
    b c. + b e r + P(q Ip c 3r e qj j bn + b + N C r e P where Cjr and n, are counts generated during the training session for the number of times the recognition processing means decoded feature qj when it should have decoded feature Pr and the number of times the recognition processing means decoded anything when it r should have decoded feature pr, respectively; eqj is the confidence data associated with the input sequence feature of the aligned pair which is associated with the set feature Pr; P represents a lower limit of the confidence probabilities; NP is the total number of features in the set; and b,, and b,, are scaling factors which are applied to the similarity data and the confidence data respectively.
    72 18. An apparatus according to any of claims 10 to 17, wherein said intermediate scores represent log probabilities and wherein said calculating means is operable to perform said multiplication by adding the respective intermediate scores and is operable to perform said addition of said multiplied scores by performing a log addition calculation.
    19. An apparatus according to claim 18, wherein said combining means is operable to add the comparison scores for all the aligned pairs to determine said similarity measure.
    20. An apparatus according to claim 5 or any claim dependent thereon, wherein said aligning means is operable to identify feature deletions and insertions in said input and stored sequences of features and wherein said comparing means is operable to generate said comparison score for an aligned pair of features in dependence upon feature deletions and insertions identified by said aligning means which occur in the vicinity of the features in the aligned pair.
    21. An apparatus according to any of claims 5 to 20, wherein said aligning means comprises dynamic programming means for aligning said input and stored sequences of features using a dynamic programming technique.
    22. An apparatus according to claim 21, wherein said dynamic programming means is operable to determine progressively a plurality of possible alignments between said input and stored sequences of features and wherein said comparing means is operable to determine a 73 comparison score for each of the possible aligned pairs of features determined by said dynamic programming means.
    23. An apparatus according to claim 22, wherein said comparing means is operable to generate said comparison score during the progressive determination of said possible alignments.
    24. An apparatus according to claim 21, 22 or 23, wherein said dynamic programming means is operable to determine an optimum alignment between said input and said stored sequences of features and wherein said combining means is operable to provide said similarity measure by combining the comparion scores only for the optimum aligned pairs of features.
    25. An apparatus according to claim 22 or 23, wherein said combining means is operable to provide said similarity measure by combining all the comparison scores for all the possible aligned pairs of features.
    26. An apparatus according to any of claims 6 to 25, wherein each of the features in said input and stored sequences of features belong to said set of predetermined features.
    27. An apparatus according to claim 26, wherein said similarity data comprises, for each feature in the set of features, the number of times the recognition processing means decodes the feature when it should have decoded a different feature, for each different feature, and the number of times the recognition processing means decodes anything when it should have decoded the different 74 feature, for each different feature.
    28. An apparatus according to claim 27, wherein said predetermined data further comprises, for each feature in the set of features, the probability of inserting the feature in a sequence of features.
    29. An apparatus according to claim 26 or 27, wherein said predetermined data further comprises, for each feature in the set of features, the probability of deleting the feature from a sequence of features.
    30. An apparatus according to any preceding claim, wherein said input and stored 'sequences of features represent time sequential signals.
    31. An apparatus according to any preceding claim, wherein said input and stored sequences of features represent audio signals.
    32. An apparatus according to claim 31, wherein said input and stored sequences of features represent speech.
    33. An apparatus according to claim 32, wherein each of said features represents a sub-word unit of speech.
    34. An apparatus according to claim 33, wherein each of said features represents a phoneme.
    35. An apparatus according to any preceding claim, wherein said input sequence of features comprises a plurality of sub-word units generated from a typed input and wherein said similarity data comprises mis-typing probabilities and/or mis-spelling probabilities.
    36. An apparatus according to any preceding claim, wherein said stored sequence of features comprises a sequence of sub-word units generated from a spoken input and wherein said similarity data comprises mis recognition probabilities.
    37. An apparatus according to any preceding claim, wherein said comparing means is operable to compare said input sequence of features with a plurality of stored sequences of features using said similarity data and said confidence data to provide a respective measure of the similarity between the input sequence of features and said plurality of stored sequences of features.
    38. An apparatus according to claim 37, further comprising means for comparing said plurality of similarity measures output by said comparing means and means for outputting a signal indicative of the stored sequence of features which is most similar to said input sequence of features.
    39. An apparatus according to claim 37 or 38, wherein said comparing means comprises normalising means for normalising each of said similarity measures.
    40. An apparatus according to claim 39, wherein said normalising means is operable to normalise each similarity measure by dividing each similarity measure by a respective normalisation score which varies in dependence upon the length of the corresponding stored sequence of features.
    76 41. An apparatus according to claim 40, wherein the respective normallsation scores vary in dependence upon the sequence of features in the corresponding stored sequence of features.
    42. An apparatus according to claim 40 or 41 when dependent upon claim 6, wherein said respective normalisation scores vary with the corresponding intermediate comparison scores calculated by said second comparing means.
    43. An apparatus according to any of claims 39 to 42 when dependent upon claim 21, wherein said normallsing means is operable to calculate the respective normalisation scores during the progressive calculation of said possible alignments by said dynamic programming means.
    44. An apparatus according to claim 43 when dependent upon claim 6, wherein said normalising means is operable to calculate, for each possible aligned pair of features:
    n EP(ajjp,)P(p,) r=1 where P (ai I Pr) represents the probability of confusing set feature p, as stored sequence feature ai and P(p,) represents the probability of set feature Pr occurring in a sequence of features.
    45. An apparatus according to claim 44, wherein said normalising means is operable to calculate said respective normalisations by multiplying the normalisation terms calculated for the respective aligned 77 pairs of f eatures.
    46. An apparatus for searching a database comprising a plurality of information entries to identify information to be retrieved therefrom, each of said plurality of information entries having an associated annotation comprising a sequence of features, the apparatus comprising:
    a feature comparison apparatus according to any of claims 1 to 45 for comparing a query sequence of features obtained from an input query with the features of each annotation to provide a set of comparison results; and means for identifying said information to be retrieved from said database lising said comparison results.
    47. An apparatus according to claim 46, wherein said feature comparison apparatus has a plurality of different comparison modes of operation and in that the apparatus further comprises:
    means for determining if the sequence of f eatures of a current annotation was generated from an audio signal or from text, and f or outputting a determination result; and means for selecting, for the current annotation, the mode of operation of said f eature comparison apparatus in dependence upon said determination result.
    48. A feature comparison method comprising the steps of:
    receiving an input signal; a recognition processing step of comparing said input signal with stored feature models to identify an input sequence of features in said input signal and 78 confidence data representative of the confidence that the input sequence of features is representative of said input signal; and comparing said input sequence of features with a stored sequence of features using predetermined similarity data which defines similarities between different features and using said confidence data, to provide a measure of the similarity between the input sequence of features and the stored sequence of features.
    49. A method according to claim 48, wherein confidence data is stored for said stored sequence of features and wherein said comparing step provides said similarity measure using, in addition, said stored confidence data.
    50. A method according to claim 48 or 49, wherein said confidence data comprises confidence data associated with each feature in the sequence of features.
    51. A method according to any of claims 48 to 50, wherein said recognition processing step outputs a list of alternatives for each feature in said input sequence of features and confidence data associated with each alternative.
    52. A method according to any of claims 48 to 51, wherein said comparing step comprises the steps of:
    aligning features of the input sequence of features with features of the stored sequence of features to form a number of aligned pairs of features; comparing the features of each aligned pair of features using said predetermined similarity data and said confidence data OF to generate a comparison score 79 representative of the similarity between the aligned pair of features; and combining the comparison scores for all the aligned pairs of features to provide said similarity measure.
    53. A method according to claim 52, wherein said comparing step comprises:
    a f irst comparing step of comparing, for each aligned pair, the input sequence f eature in the aligned pair with each of a plurality of features taken f rom a set of predetermined features using said similarity data and said confidence data to provide a corresponding plurality of intermediate comparison scores representative of the similarity between said first sequence feature and the respective features from the set; a second comparing step of comparing, for each aligned pair, the stored sequence feature in the aligned pair with each of said plurality of features f rom the set using said similarity data and said confidence data to provide a further corresponding plurality of intermediate comparison scores representative of the similarity between said stored sequence feature and the respective features from the set; and a step of calculating said comparison score for the aligned pair by combining said pluralities of intermediate comparison scores.
    54. A method according to claim 53, wherein said first and second comparing steps compare the input sequence feature and the stored sequence feature respectively with each of the features in said set of predetermined features.
    55. A method according to claim 53 or 54, wherein said comparing step generates a comparison score for an aligned pair of features which represents a probability of confusing the stored sequence feature of the aligned pair as the input sequence feature of the aligned pair.
    56. A method according to claim 55, wherein said first and second comparing steps provide intermediate comparison scores which are indicative of a probability of confusing the corresponding feature taken from the set of predetermined features as the feature in the aligned pair.
    57. A method according to claim 56, wherein said calculating step (i) multiplies the intermediate scores obtained when comparing the input and stored sequence features in the aligned pair with the same feature from the set to provide a plurality of multiplied intermediate comparison scores; and (ii) adds the resulting multiplied intermediate scores, to calculate said comparison score for the aligned pair.
    58. A method according to claim 57, wherein each of said features in said set of predetermined features has a predetermined probability of occurring within a sequence of features and wherein said calculating step weighs each of said multiplied intermediate comparison scores with the respective probability of occurrence for the feature from the set used to generate the multiplied intermediate comparison scores.
    59. A method according to claim 58, wherein said calculating step calculates:
    81 n I P(qjjp,)P(ajjp,)P(P,) r=1 where qj and ai are an aligned pair of input and stored sequence features respectively; P(qjlPr) is the probability of confusing set feature p, as input sequence feature qj; P(ailp,) is the probability of confusing set feature p, as stored sequence feature aj; and P(Pr) represents the probability of set feature p., occurring in a sequence of features.
    60. A method according to claim 59, wherein the confusion probabilities for the input and stored sequence features are determined in advance and depend upon the recognition system that was used to generate the respective input and stored sequences.
    61. A method according to claim 59 or 60, wherein said calculating step calculates P(qjlp,) using said similarity data and said confidence data.
    62. A method according to claim 61, wherein said calculating step takes a weighted combination of said similarity data and said confidence data to determined P(qjlPr) - 63. A method according to claim 62, wherein said similarity data is obtained from a training session in which a large amount of input signals for which the feature content is known are processed by said recognition processing step and wherein said calculating step weighs said confidence data for a current feature in dependence upon the amount of training data available for 82 the current f eature in said training session.
    64. A method according to claim 63, wherein said calculating step calculates:
    b c. + b e + P(qjlp,) c -Ir e qj bcn, + b e + N P where cj, and n, are counts generated during the training session for the number of times the recognition processing step decoded feature qj when it should have decoded feature p, and the number of times the recognition processing step decoded anything when it should have decoded feature p, respectively; eqjr is the confidence data associated wi-h the input sequence feature of the aligned pair which is associated with the set feature P,; P represents a lower, limit of the confidence probabilities; NP is the total number of features in the set; and bc and be are scaling factors which are applied to the similarity data and the confidence data respectively.
    65. A method according to any of claims 57 to 64, wherein said intermediate scores represent log probabilities and wherein said calculating step performs said multiplication by adding the respective intermediate scores and performs said addition of said multiplied scores by performing a log addition calculation.
    66. A method according to claim 65, wherein said combining step adds the comparison scores for all the aligned pairs to determine said similarity measure.
    67. A method according to claim 52 or any claim 83 dependent thereon, wherein said aligning step identi-f ies f eature deletions and insertions in said input and stored sequences of features and wherein said comparing step generates said comparison score for an aligned pair of features in dependence upon feature deletions and insertions identified by said aligning step which occur in the vicinity of the features in the aligned pair.
    68. A method according to any of claims 52 to 67, wherein said aligning step comprises a dynamic programming step for aligning said input and stored sequences of features using a dynamic programming technique.
    69. A method according to claim 68, wherein said dynamic programming step progressively determines a plurality of possible alignments between said input and stored sequences of features and wherein said comparing step determines a comparison score for each of the possible aligned pairs of features determined by said dynan-Lic programming step.
    70. A method according to claim 69, wherein said comparing step generates said comparison score during the progressive determination of said possible alignments.
    71. A method according to claim 68, 69 or 70, wherein said dynamic programming step determines an optimum alignment between said input and said stored sequences of features and wherein said combining step provides said similarity measure by combining the comparison scores only for the optimum aligned pairs of features.
    84 72. A method according to claim 69 or 70, wherein said combining step provides said similarity measure by combining all the comparison scores for all the possible aligned pairs of features.
    73. A method according to any of claims 53 to 72, wherein each of the features in said input and stored sequences of features belong to said set of predetermined features.
    74. A method according to claim 73, wherein said similarity data comprises, for each feature in the set of features, the number of times the recognition processing step decodes the feature when it should have decoded a different feature, for each different feature, and the number of times the recognition processing step decodes anything when it should have decoded the different feature, for each different feature.
    75. A method according to claim 74, wherein said predetermined data further comprises, for each feature in the set of features, the probability of inserting the feature in a sequence of features.
    76. A method according to claim 74 or 75, wherein said predetermined data further comprises, for each feature in the set of features, the probability of deleting the feature from a sequence of features.
    77. A method according to any of claims 48 to 76, wherein said input and stored sequences of features represent time sequential signals.
    78. A method according to any of claims 48 to 77, wherein said input and stored sequences of features represent audio signals.
    79. A method according to claim 78, wherein said input and stored sequences of features represent speech. 80. A method according to claim 79, wherein each of said features represents a sub-word unit of speech. 10 81. A method according to claim 80, wherein each of said features represents a phoneme. 82. A method according to any of claims 48 to 81, 15 wherein said input sequence of features comprises a plurality of sub- word units generated from a typed input and wherein said similarity data comprises mis-typing probabilities and/or mis-spelling probabilities. 20 83. A method according to any of claims 48 to 82, wherein said stored sequence of features comprises a sequence of sub-word units generated from a spoken input and wherein said similarity information comprises misrecognition probabilities. 25 84. A method according to any of claims 48 to 83, wherein said comparing step compares said input sequence of features with a plurality of stored sequences of features using said similarity data and said confidence 30 data to provide a respective measure of the similarity between the input sequence of features and said plurality of stored sequences of features.
    86 85. A method according to claim 84, further comprising the step of comparing said plurality of similarity measures output by said comparing step and the step of outputting a signal indicative of the stored sequence of features which is most similar to said input sequence of features.
    86. A method according to claim 84 or 85, wherein said comparing step comprises a normali,sing step for normalising each of said similarity measures.
    87. A method according to claim 86, wherein said normalising step normalises each similarity measure by dividing each similarity measure by a respective normalisation score which varies in dependence upon the length of the corresponding stored sequence of features.
    88. A method according to claim 87, wherein the respective normalisation scores vary in dependence upon the sequence of features in the corresponding stored sequence of features.
    89. A method according to claim 87 or 88 when dependent upon claim 53, wherein said respective normalisation scores vary with the corresponding intermediate comparison scores calculated by said second comparing step.
    90. A method according to any of claims 86 to 89 when dependent upon claim 68, wherein said normalising step calculates the respective normalisation scores during the progressive calculation of said possible alignments by said dynamic programming step.
    87 91. A method according to claim 90 when dependent upon claim 53, wherein said normallsing step calculates, for each possible aligned pair of features:
    n Y,P(a,jp,)P(p,) r=1 where P (ai I p,) represents the probability of confusing set feature p, as stored sequence feature ai and P(p,) represents the probability of set feature p, occurring in a sequence offeatures.
    A method according to claim 91, wherein said normalising step calculates said respective normalisations by multiplying the normalisation terms calculated for the respective aligned pairs of features.
    93. A method of searching a database comprising a plurality of information entries to identify information to be retrieved therefrom, each of said plurality of information entries having an associated annotation comprising a sequence of features, the method comprising:
    a feature comparison method according to any of claims 48 to 92 for comparing a query sequence of features obtained from an input query with the features of each annotation to provide a set of comparison results; and a step of identifying said information to be retrieved from said database using said comparison results.
    94. A method according to claim 93, wherein said feature comparison method has a plurality of different comparison modes of operation and in that the method further 88 comprises the steps of:
    determining if the sequence of features of a current annotation was generated from an audio signal or from text, and outputting a determination result; and selecting, for the current annotation, the mode of operation of said feature comparison method in dependence upon said determination result.
    95. A method according to claim 93 or 94, wherein one or more of said information entries is the associated annotation.
    96. A method according to any of claims 48 to 95, wherein the method steps are performed in the order in which they are claimed.
    97. A storage medium storing processor implementable instructions for controlling a processor to implement the method of any one of claims 48 to 96.
    98. Processor implementable instructions for controlling a processor to implement the method of any one of claims 48 to 96.
GB0025143A 1999-10-28 2000-10-13 Pattern matching method and apparatus Expired - Fee Related GB2355836B (en)

Priority Applications (10)

Application Number Priority Date Filing Date Title
US09/695,077 US7310600B1 (en) 1999-10-28 2000-10-25 Language recognition using a similarity measure
PCT/GB2000/004112 WO2001031627A2 (en) 1999-10-28 2000-10-25 Pattern matching method and apparatus
CNB008163537A CN1329861C (en) 1999-10-28 2000-10-25 Pattern matching method and apparatus
EP00971581A EP1228452B1 (en) 1999-10-28 2000-10-25 Pattern matching method and apparatus
KR1020027005531A KR20020052196A (en) 1999-10-28 2000-10-25 Pattern matching method and apparatus
US10/111,051 US7212968B1 (en) 1999-10-28 2000-10-25 Pattern matching method and apparatus
JP2001534133A JP3689670B2 (en) 1999-10-28 2000-10-25 Pattern matching method and apparatus
DE60036486T DE60036486T2 (en) 1999-10-28 2000-10-25 METHOD AND APPARATUS FOR CHECKING PATTERN CONVERSATIONS
JP2000330612A JP2001215987A (en) 1999-10-28 2000-10-30 Method and device for pattern matching
US11/513,064 US7295980B2 (en) 1999-10-28 2006-08-31 Pattern matching method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
GBGB9925562.2A GB9925562D0 (en) 1999-10-28 1999-10-28 Pattern matching method and apparatus

Publications (3)

Publication Number Publication Date
GB0025143D0 GB0025143D0 (en) 2000-11-29
GB2355836A true GB2355836A (en) 2001-05-02
GB2355836B GB2355836B (en) 2004-01-21

Family

ID=10863577

Family Applications (2)

Application Number Title Priority Date Filing Date
GBGB9925562.2A Ceased GB9925562D0 (en) 1999-10-28 1999-10-28 Pattern matching method and apparatus
GB0025143A Expired - Fee Related GB2355836B (en) 1999-10-28 2000-10-13 Pattern matching method and apparatus

Family Applications Before (1)

Application Number Title Priority Date Filing Date
GBGB9925562.2A Ceased GB9925562D0 (en) 1999-10-28 1999-10-28 Pattern matching method and apparatus

Country Status (1)

Country Link
GB (2) GB9925562D0 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2373088A (en) * 2000-11-17 2002-09-11 Canon Kk Speech recognition apparatus
US6466907B1 (en) * 1998-11-16 2002-10-15 France Telecom Sa Process for searching for a spoken question by matching phonetic transcription to vocal request
US7054812B2 (en) 2000-05-16 2006-05-30 Canon Kabushiki Kaisha Database annotation and retrieval

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0689153A2 (en) * 1994-05-30 1995-12-27 Texas Instruments Incorporated Character recognition

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0689153A2 (en) * 1994-05-30 1995-12-27 Texas Instruments Incorporated Character recognition

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6466907B1 (en) * 1998-11-16 2002-10-15 France Telecom Sa Process for searching for a spoken question by matching phonetic transcription to vocal request
US7054812B2 (en) 2000-05-16 2006-05-30 Canon Kabushiki Kaisha Database annotation and retrieval
GB2373088A (en) * 2000-11-17 2002-09-11 Canon Kk Speech recognition apparatus

Also Published As

Publication number Publication date
GB9925562D0 (en) 1999-12-29
GB2355836B (en) 2004-01-21
GB0025143D0 (en) 2000-11-29

Similar Documents

Publication Publication Date Title
EP1228452B1 (en) Pattern matching method and apparatus
US7310600B1 (en) Language recognition using a similarity measure
US6882970B1 (en) Language recognition using sequence frequency
US6873993B2 (en) Indexing method and apparatus
US7054812B2 (en) Database annotation and retrieval
US7590605B2 (en) Lattice matching
US9361879B2 (en) Word spotting false alarm phrases
US20020052740A1 (en) Database annotation and retrieval
EP1927927A2 (en) Speech recognition training method for audio and video file indexing on a search engine
US20080270110A1 (en) Automatic speech recognition with textual content input
US20080270138A1 (en) Audio content search engine
KR20080069990A (en) Speech index pruning
JP2004005600A (en) Method and system for indexing and retrieving document stored in database
TW200922223A (en) Voice chat system, information processing apparatus, speech recognition method, keyword detection method, and recording medium
JP2004133880A (en) Method for constructing dynamic vocabulary for speech recognizer used in database for indexed document
JP2010123005A (en) Document data retrieval device
GB2355836A (en) Pattern matching
GB2355837A (en) Pattern matching
GB2355835A (en) Pattern matching
KR20020052196A (en) Pattern matching method and apparatus
CN111177316A (en) Intelligent question and answer method and system based on subject word filtering
KR100817432B1 (en) A high-speed searching method and system for speech documents using document expansion
CN116414939B (en) Article generation method based on multidimensional data
Seide et al. Word-lattice based spoken-document indexing with standard text indexers
Dzhambazov et al. Searching lyrical phrases in a-capella turkish makam recordings

Legal Events

Date Code Title Description
PCNP Patent ceased through non-payment of renewal fee

Effective date: 20151013