JPS59200A - Pattern matching apparatus - Google Patents

Pattern matching apparatus

Info

Publication number
JPS59200A
JPS59200A JP58105844A JP10584483A JPS59200A JP S59200 A JPS59200 A JP S59200A JP 58105844 A JP58105844 A JP 58105844A JP 10584483 A JP10584483 A JP 10584483A JP S59200 A JPS59200 A JP S59200A
Authority
JP
Japan
Prior art keywords
register
pattern
distance
route
cumulative
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.)
Pending
Application number
JP58105844A
Other languages
Japanese (ja)
Inventor
栄二 大平
吉明 北爪
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.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP58105844A priority Critical patent/JPS59200A/en
Publication of JPS59200A publication Critical patent/JPS59200A/en
Pending legal-status Critical Current

Links

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 〔発明の利用分野〕 本発明は音声入力等のパターン認識システムに使用され
るパターンマツチング装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Application of the Invention] The present invention relates to a pattern matching device used in a pattern recognition system for voice input or the like.

〔発明の背景〕[Background of the invention]

るために、あらかじめ記憶した各種の標準パターンと入
カバターンを比較して認識を行うパターンマツチング法
が用いられている。例えば音声認識では、標準パターン
として、認識したい単語分の標準パターンを記憶して用
いる。
For this purpose, a pattern matching method is used in which recognition is performed by comparing input patterns with various standard patterns stored in advance. For example, in speech recognition, standard patterns for words to be recognized are stored and used as standard patterns.

このような音声認識等において、パターンマツチング法
を用いるとき問題になるのは、入力音声が発声毎に時間
軸に対して任意に伸縮することである。すなわち、同一
の話者が同一の単語を発声しても、全く同じ長さに発声
できない。したがって標亭パターンとのマツチングにお
いで1記憶された標準パターンが入力音声を発声した、
話者であっても1発声速度が任意に変化するため類似度
が発声毎に変化し、正しい認識結果が得られない。
In such speech recognition and the like, a problem when using the pattern matching method is that input speech is arbitrarily expanded or contracted with respect to the time axis each time it is uttered. In other words, even if the same speaker utters the same word, the words cannot be uttered at exactly the same length. Therefore, when matching with the Shiitei pattern, one stored standard pattern uttered the input voice.
Even for speakers, the rate of speech changes arbitrarily, so the degree of similarity changes with each utterance, making it impossible to obtain correct recognition results.

この人カバターフと標準パターンの時間軸のずれを整合
しながらマツチングを行う方法きして、動的計画法(以
下13Pと略す。)が広く用いられている。次にIJ 
Pについて説明する。
Dynamic programming (hereinafter abbreviated as 13P) is widely used as a method of matching while matching the time axis deviation between the human cover tuff and the standard pattern. Next, I.J.
P will be explained.

音声パターンAは、特徴ベクトル”11、”21%”m
l ・・、”nl )の時系列として、A=aa   
a−1as−1a    fl)1   2%    
3       1           Iと表わさ
れる。この特徴ベクトルalは、音声信号を1個の区間
に区切ったときの1市目の区間のけ声のin徴ベクトル
であり、特徴ベクトルきしては、たきえは中心周波数の
異なったn個の帯域フィルタ1序の出力が考えられる。
Voice pattern A has feature vectors “11,” “21%” m
l...,"nl) as a time series, A=aa
a-1as-1a fl)1 2%
It is expressed as 3 1 I. This feature vector al is the in-sign vector of the voicing in the first section when the audio signal is divided into one section. The output of the first bandpass filter is considered.

”+nlとは音声の1番目の区間の帯域フィルタn (
N中のm番目のフィルタ出勾である。人力音声パターン
X1標準行声パターンYは特徴ベクトルの時系列として
、X=X、、X2.X3.、、、、、X、、、、、、、
X□)・(2) Y’−Y1+ Y2 + ”3 + ”’ + YH+
 ”’ + Ylここで、入カバターンXs m準パタ
ーンYO)@似度を求めるため、両特徴ベクトルの距離
を求める必要があり、距離dは例えば、ユークリッド距
離として、 (D、i + j)−(X、−Y、 )”’ 、i(x
、、−y、、 )”(3) で求められる。仮に入カバターンXと標準パターンYの
時間軸の伸縮がほとんど無いとすると、類似度Sは、距
離dの総和として、 S−(Σ(X、 −Y、 )2)/m −(Σd(m、
m))/m・・・(4) として求められる。Sは小さいほど、類似度が高い。す
なわち、良く似たパターン(単語)である。
"+nl is the bandpass filter n (
It is the mth filter gradient in N. The human speech pattern X3. ,,,,,X,,,,,,,,
X□)・(2) Y'-Y1+ Y2 + ``3 + ''' + YH+
”' + YlHere, in order to find the incoming cover turn (X, -Y, )"', i(x
, , -y, , )" (3). Assuming that there is almost no expansion or contraction of the time axis between the inlet pattern X and the standard pattern Y, the similarity S is calculated as S-(Σ( X, −Y, )2)/m −(Σd(m,
m))/m...(4) It is obtained as follows. The smaller S is, the higher the degree of similarity is. In other words, they are very similar patterns (words).

先に述べたように、音声等の場合は、時間軸での伸縮が
大きいため、前の(4)式では正確に類似度Sを求める
ことができない。したがってl)Pでは、次のように時
間軸を整合しながらSを求める。第1図に時間軸−Fて
の入カパターノXお標準パターンYの整合の祠程を示し
、第2図の人カバターンX%標準パターンYを縦座標、
横座標に変換したものを示1−0第2図の矢印で示す経
路で距離を求めながら、類似度Sを求めると、 ” S= (rl(] 、 1 )+rl(2,2)+
d(2,3)+・・+d(8,7))/9 ・・・(5
) が求められる。
As mentioned above, in the case of audio, etc., the expansion and contraction on the time axis is large, so the similarity S cannot be accurately calculated using the previous equation (4). Therefore, l) In P, find S while aligning the time axes as follows. Fig. 1 shows the alignment process of input cap pattern
The abscissa is converted to 1-0. If we calculate the similarity S while calculating the distance along the route indicated by the arrow in Figure 2, we get ``S= (rl(], 1)+rl(2,2)+
d(2,3)+...+d(8,7))/9...(5
) is required.

このような経路の選択は次のようにして行なわれる。Such route selection is performed as follows.

すなわち、いま、第3図の点E(i、j)に至るまでの
距離dの累オ[1をD(i、j)、その点E(i、j)
までの経路長をL(i 、 j )とすれば、その点E
(i、j)にF”(i、j−1)、G(i−1,j−1
)、H(i−1,j)からそれぞれ判った時の次の(6
)式の値を求め、その頃が最小であるものの経路を選び
、その値を、累卵L)(i。
That is, now the cumulative distance d to the point E (i, j) in Fig. 3 is D (i, j), the point E (i, j)
If the path length to the point E is L(i, j), then
(i, j), F”(i, j-1), G(i-1, j-1
), the next (6
) Find the value of the formula, choose the path that is the minimum at that time, and use that value as the cumulative value L) (i.

])および経路長L(i、j)として求める。]) and the path length L(i, j).

(1)(i、j−1)+d(i、j))/L(i、j〜
1)+1(L)(i−1,j−1)+wd(i、j)l
/Lに−i、j−x)+、t(D(i−1,j)+d(
i、j)/L(i−1,j)弓(6) なお、初期値D(1,l)、L(1,1)は次のように
表わされる。
(1)(i,j-1)+d(i,j))/L(i,j~
1)+1(L)(i-1,j-1)+wd(i,j)l
/L to −i, j−x)+, t(D(i−1, j)+d(
i, j)/L (i-1, j) bow (6) Note that the initial values D (1, l) and L (1, 1) are expressed as follows.

1)(1,1)=d(1,1) ) ・(7) L(1、1)−1 本(6)式は次式の制約で行なわれる。1)(1,1)=d(1,1) )・(7) L(1,1)-1 This equation (6) is performed under the following equation constraints.

1<iく1.1<jくJ )  ・・(8) j−r<iくj+r  r雷整数 rは入カバターンX々標準パターンYの時間軸の変化を
整合するときの範囲を決めるもので、rを大きくすると
、広範囲に長さの異った入カバターンと標準パター7の
整合を行う。しかし、rが太きいき処理量が増加してし
まう。第2図の場合は、r=3で、整合ができることを
示している。
1<i×1.1<j×J) ...(8) j−r<i×j+r rThe integer r determines the range when matching the changes in the time axis of the input cover patterns X and standard patterns Y. When r is increased, the standard putter 7 is matched with input patterns having widely different lengths. However, if r is large, the processing amount will increase. In the case of FIG. 2, r=3, indicating that matching is possible.

第2図において、最終的な類似度Sは、累卵D(8,9
)と経路長L(8,7)によって、S−1)(8,7)
/L(8,7)     ・・・(9)と求められ、こ
れは(5)式となる。
In Figure 2, the final similarity S is the cumulative number D (8, 9
) and the path length L(8,7), S-1)(8,7)
/L(8,7)...(9) is obtained, which becomes equation (5).

このように点(’、J)における値D(i、j)、L(
’+j)を求めるためには、(6)式に示すように、前
回までに求められた隣接点の値D(i、j−1)、D(
i−1,j−1)、D(i−1,j)およびL(i 。
In this way, the values D(i, j), L(
'+j), as shown in equation (6), the values of the adjacent points D(i, j-1) and D(
i-1,j-1), D(i-1,j) and L(i.

j−1)、L(i−1,j−1)、L(i−i 、 j
 )を利用する必要があるが、従来は、このような値を
メモリに記憶しておき、必要な時に、それらを−々読み
出して利用する方法が考えられている。
j-1), L(i-1, j-1), L(i-i, j
), but conventionally, a method has been considered in which such values are stored in memory and read out and used when necessary.

しかしながら、このように、必斐に応じてメモリから読
み出すようにした場合、1点における値り、Lを求める
のに6回もデータの読み出しを行なわなければならず、
演算時間が非常に長くなるばかりか、これらのデータ読
み出しのための制御回路がamになるという問題があっ
た。
However, in this way, if data is read from memory as necessary, the data must be read six times to find the value L at one point.
There is a problem that not only the computation time becomes very long, but also the control circuit for reading these data is am.

〔発明の目的〕[Purpose of the invention]

本発明の目的は、1)Pによるパターン類似度の演算を
高速かつ、簡単な構成で行なえるようにしたパターンマ
ツチング装置を提供することにある。
An object of the present invention is 1) to provide a pattern matching device that can perform pattern similarity calculation using P at high speed and with a simple configuration.

〔発明の概要〕[Summary of the invention]

このような目的を達成するために、本発明では、所定計
算点における入力パターンサ樟準パターンとの距離を格
納する第1のレジスタと、この距離の上記計算点までの
累卵および経路長を格納する第2および第3のレジスタ
と、第1〜第3のレジスタの内容により、次の計算点に
おける経路毎の距離の累卵および経路長を計算する第1
の計算手段さ、この手段で求めた値を格納する第4のレ
ジスタと、この第4のレジスタの内容から、次の計算点
に至る最適の経路を選び、その経路での距離の累オlお
よび経路長を次の813!点の値として求める第2の計
算手段とを備えたパターンマツチング装置に特徴がある
In order to achieve such an object, the present invention includes a first register that stores the distance between the input pattern and the camphor pattern at a predetermined calculation point, and stores the cumulative length and path length of this distance to the calculation point. The first and second registers calculate the cumulative distance and path length for each route at the next calculation point based on the contents of the first and third registers.
The calculation means has a fourth register that stores the value obtained by this means, and from the contents of this fourth register, selects the optimal route to the next calculation point, and calculates the cumulative value of the distance on that route. and the path length as follows 813! A feature of the pattern matching apparatus is that the pattern matching apparatus is equipped with a second calculation means that calculates the value of a point.

第4図は本発明によるパターンマツチング装置の一実施
例のブロック回路図を示す。本装置では、3つのモード
処理を行う。第5〜7図に3つの処理のそれぞれが使用
する部分のみの回路を第4図からIQきだして示す。
FIG. 4 shows a block circuit diagram of an embodiment of a pattern matching device according to the present invention. This device performs three modes of processing. FIGS. 5 to 7 show circuits of only the portions used by each of the three processes, extracted from FIG. 4.

第41ン1において、  4.6. 8は累卵りを格納
するレジスタである。その内、4.6はシフトレジスタ
であり、4には外部よりデータ(D)が入力される。8
(1外部・\読み出しができるレジスタである。
In No. 41 No. 1, 4.6. 8 is a register that stores the cumulative value. Of these, 4.6 is a shift register, and data (D) is inputted to 4 from the outside. 8
(1This is a register that can be read externally.

5.7.9はレジスタ4.6,8に対応する経路J、j
 Lを格納Jるレジスタである。1は、距離dを格納す
るレジスタ、10は図示しないマルチプレクサに上りへ
釈されるレジスタ4,6.8のいづれかと同ト1′:に
図示されるマルチプレクサにより選ばれるレジスタ1.
 2のどちらかの加算をする加算器であり、また、レジ
スタ出力をそのまま通]尚させる機能を有するものであ
る。11は、レジスタ5.7.9のいづれかに11rる
インクリメンタで、12はインクリメンタ11の出力の
逆数を取るR OMである。3は加泗、器10の出力と
ROM12の出力の乗■をする乗算器であり、その他に
加算器10を通過したレジスタ1の内容に対してWを乗
算する役目をする。レジスタ2は、レジスタ1の出力ず
なわちdとWの東算結贈を格納する。13.14.15
は、乗遭器3の出力を格納するレジスタであり、レジス
タ13.15は直接乗算器3の出力を格納し、レジスタ
14は13との間でデ タシフトをする。16はレジス
タ13.14V 15の大小を比較する比較器で、この
比較結果により、加算器10とインクリメンタ11の選
択を制御する。比較器16は、レジスタ13,14.1
5の値が2つ以上同じときは、14.13.15の順に
優先的に選ぶ。
5.7.9 is the path J, j corresponding to registers 4.6, 8
This is a register that stores L. 1 is a register that stores the distance d, and 10 is either register 4, 6.8, which is output to a multiplexer (not shown), and register 1.1 is selected by the multiplexer shown in (1').
This is an adder that performs addition of either 2 or 2, and also has the function of passing register output as is. 11 is an incrementer which is placed in any of the registers 5, 7, and 9, and 12 is a ROM that takes the reciprocal of the output of the incrementer 11. A multiplier 3 multiplies the output of the adder 10 by the output of the ROM 12, and also multiplies the contents of the register 1 that have passed through the adder 10 by W. Register 2 stores the output of register 1, that is, the sum of d and W. 13.14.15
is a register that stores the output of the multiplier 3, registers 13 and 15 directly store the output of the multiplier 3, and register 14 performs data shifting between it and 13. A comparator 16 compares the magnitude of the register 13.14V 15, and the selection of the adder 10 and the incrementer 11 is controlled based on the comparison result. Comparator 16 includes registers 13, 14.1
If two or more values of 5 are the same, 14, 13, and 15 are selected preferentially.

本装置の動作を、第2図のr=3の場合を用いて説明す
る。今累卵D(i−2,j−1)、D(i−1、j−1
)、D(i、j−1)と、これに対応する各部分和経路
長L(i−2,j  1)、L(i−1゜j−1)、L
(’lJ  ’)が求められているとする。
The operation of this device will be explained using the case of r=3 in FIG. 2. Now cumulative eggs D (i-2, j-1), D (i-1, j-1
), D(i, j-1) and the corresponding partial sum path lengths L(i-2, j 1), L(i-1゜j-1), L
Suppose that ('lJ') is required.

まずD(” II)、L(i−1,j)を求める。First, find D('' II) and L(i-1,j).

第6図の処理は、距11idをレジスタ1に人力するこ
とにより起動される。具体的にはd(i−1゜J)をレ
ジスタに入力すると、第6図(a)ζこより、レジスタ
2にw−d(i−1,j)が格納される0ここで1)(
i =1.j)、L(i−1,j)は、 3つの最小値
ではなく、 (D(i−2,j −1)+wd(i −1、j )/
L(i−2,j−1)+101in[])1 (IC(i −1、j−1)+d(i −1、j ]/
L(i−1、j −1)+1・ (10) の2つの最小値より求める。したがって、この最下端の
点の演算のみ第5図の処理を用いる。第5図の処理は、
累卵りと経路長りをレジスタ4.5に入力するこ乏によ
り起動され、る。レジスタ4.5に1)(’  2.J
  1)s L(+  2.J  1)を入力するLl
 レジスタ】3.15に (1)(i−2,j−1)+w−d(i−1,J))/
L(i 2.j 1)”1・(11) が格納される。次に第7図(こより(J(i −1、j
−1)、r、(!−t、j  1)をレジスタ4.5に
入力する。第動され第7図ta+て、レジスタ4.5 
(’) j(’sltよ、レジスタ6.7に格納ざイす
る。レジスタl Iには、(D(i−1,j−1)+r
l(i−1,j)l/L(i−1,j−1)+1・・(
12) が入力され、レジスタ13に格納されていた値は、レジ
スタ14に格納される。比紋器16は、このレジスタ1
3,14.15の内最小(こなる値を有するレジスタを
検出し、第7図(1))のよう(こ1)(i−1、j)
、L(i−1,j)を計算し、レジスタ8.9に格納す
る。すなわち、レジスタ13が選ばれると、レジスタ9
、分子をレジスタ8番こ格納し、レジスタ14が選ばれ
たときは、レジスタ6.2.14、−45は同1直とな
るため、レジスタ15は選択されず、レジスタ8.9は
選ばれない。この結果レジスタ8.9よりD(i−司、
J)、L(i−1゜j)が取り出すこきができる。次に
D(i、j)、1i (1+ J )を求めるには、同
様に第6図の処理により、(1(i、J)をレジスタ1
に格納する。第1図(alではレジスタ2に、w −d
 (i 、 j )が格納され、第6図(blでは (D(i−1,j)+d(i、j))/L(i−1,J
)+1(13) が計pされ、レジスタ15に格納され、第6図(C)で
、 (”l−11J ’)+Wd(’+J月/L(i−1,
j−1)+1(14) がバHi+されレジスタ13に格納される。次に第7図
の処理を用いてI)(i、j−1)、L(i 、 j−
1,)を人力すると、図7(a)で、 (IXi、j−1)+d(i、j))/L(i、j−1
)+1・・(15)がル(稗されレジスタ13に格納さ
れる。これによりレジスタ15には(13)式、レジス
タ14には式(14) % レジスタ13には(15)
式が格納され、第7図(b)(こより、レジスタ8.9
に1)(i、J)、L(i’、j)が格納される。同様
に1)(i弓、j)、L(i+1.j)は、第6図てd
(i+1.j)を入力し、第7図でD−〜(実際は最大
値)、■・−〇を入力することにより求められる。また
r>3(1)、場合でも第6図と第7図の処理を繰返え
すことにより、処理i」能で、第5図の処理を行うこと
により最下端の点の0% Lの演算処理に戻る。
The process shown in FIG. 6 is started by inputting the distance 11id into the register 1. Specifically, when d(i-1°J) is input to the register, w-d(i-1,j) is stored in register 2 from ζ in FIG. 6(a).0Here, 1)(
i=1. j), L(i-1, j) are not the three minimum values, but (D(i-2, j -1)+wd(i-1, j)/
L(i-2,j-1)+101in[])1 (IC(i-1,j-1)+d(i-1,j]/
It is obtained from the two minimum values of L(i-1, j-1)+1·(10). Therefore, the process shown in FIG. 5 is used only for calculation of this lowest point. The process in Figure 5 is
It is activated by inputting the cumulative length and path length into register 4.5. 1)(' 2.J in register 4.5
1) Input s L (+ 2. J 1) Ll
Register】3.15 (1)(i-2,j-1)+w-d(i-1,J))/
L(i 2.j 1)"1・(11) is stored. Next, in FIG.
-1), r, (!-t, j 1) into register 4.5. The register 4.5 is moved to ta+ in Figure 7.
(') j ('slt, store it in register 6.7. Register l I contains (D (i-1, j-1) + r
l(i-1,j)l/L(i-1,j-1)+1...(
12) is input and the value stored in register 13 is stored in register 14. The ratio device 16 is connected to this register 1.
3, 14. The register with the value of 15 is detected, and (1) (i-1, j)
, L(i-1,j) and store them in register 8.9. That is, when register 13 is selected, register 9
, when the numerator is stored in register No. 8 and register 14 is selected, registers 6, 2, 14 and -45 are the same, so register 15 is not selected and register 8.9 is selected. do not have. From this result register 8.9, D(i-Shi,
J), L(i-1゜j) can be taken out. Next, to obtain D(i, j), 1i (1+ J), similarly perform the process shown in FIG.
Store in. Figure 1 (in al, register 2, w - d
(i, j) is stored, and (D(i-1,j)+d(i,j))/L(i-1,J
)+1(13) is calculated and stored in the register 15, and in FIG. 6(C), ("l-11J')+Wd('+J month/L(i-1,
j-1)+1(14) is converted to Hi+ and stored in the register 13. Next, using the process shown in FIG. 7, I)(i, j-1), L(i, j-
1,) manually, in Figure 7(a), (IXi, j-1) + d(i, j))/L(i, j-1
)+1...(15) is stored in register 13. As a result, register 15 has formula (13), register 14 has formula (14) % Register 13 has formula (15)
The formula is stored in register 8.9 as shown in Figure 7(b).
1) (i, J) and L(i', j) are stored in . Similarly, 1) (i bow, j), L (i+1.j) is d in Figure 6.
It is obtained by inputting (i+1.j) and inputting D-~ (actually the maximum value), ■ and -〇 in Fig. 7. Even if r > 3 (1), by repeating the processes in Figures 6 and 7, the process in Figure 5 can be performed to obtain 0% L of the lowest point. Return to calculation processing.

以上のように本発明のパターンマツチング装置は、レジ
スタ6,7.8.9により値D、1・を保持しているた
め、毎回D% Lを本装置に入れなおす必殻がない。そ
のため制御が簡単になり、外部のメモリ等との接続が簡
学になるばかりか、非常に高速な処理ができる。また、
レジスタに保持されていることによりパイプライン処理
が可能きなり、従来のものと比べて2倍以上高速の演算
が11能となる。
As described above, since the pattern matching device of the present invention holds the values D and 1. in the registers 6, 7, 8, and 9, there is no need to re-enter D%L into the device each time. This not only simplifies control and connects external memory, etc., but also allows extremely high-speed processing. Also,
By holding the data in a register, pipeline processing becomes possible, making it possible to perform calculations that are more than twice as fast as conventional methods.

以上のI) Pにより入カバターンと標準パターンの却
似度Sを求めたが、入カバターンがどの標準パターンに
似ているかを調べる必要がある。すなわち各伸準パター
ンとの類似度Sを比較する必要がある。(以下判定処理
と呼ぶ〕。ある標準パターンとの類似1蜆Sは、l)P
終r時点の累卵D(I 、 J )き経路長L(I、J
)として斤められているため、S−1)(I 、J )
/L(I 、、1 )を計算し、全標準パターンに対し
て求めたSを比較する心安がある。
Although the degree of similarity S between the input cover turn and the standard pattern has been obtained using I) P above, it is necessary to check which standard pattern the input cover turn resembles. That is, it is necessary to compare the degree of similarity S with each elongated pattern. (Hereinafter referred to as determination processing) Similarity 1S to a certain standard pattern is l)P
The path length L(I, J) of the cumulative egg D(I, J) at the end r
), so S-1) (I , J )
It is safe to calculate /L(I,,1) and compare S obtained for all standard patterns.

本発明の装置では、第8図に示すように、第4図の回路
に小計のハードを付加するのみでこれらの、判定処理を
実現できる。判定処理は第5図の処理←−ドで4d1作
するため、第5図に対して付加した図を第8図に示す。
In the apparatus of the present invention, as shown in FIG. 8, these determination processes can be realized simply by adding subtotal hardware to the circuit shown in FIG. Since the determination process is performed in 4d1 by the process in FIG. 5, a diagram added to FIG. 5 is shown in FIG.

第8図において、17はマルチプレクサ、18は最大類
似1f3iF、足部である。
In FIG. 8, 17 is a multiplexer, 18 is the maximum similarity 1f3iF, and the foot.

第9図は第8図の算定部18の具体的構成の一例を示す
ものである。判定処理では、DP/刊定切換ノリツブフ
ロッグ180を”1”にセットする。これによりフリッ
プフロッグ180のQ出力は”1”レベルとなり、カウ
ンタ182は”0”(こクリアされる。マルチプレクサ
17は、ナンド(NANi))回路181の出力により
制御され、ナンド回路181の出力が”1“レベルにな
る古、レジスタ13の内容をレジスタ14に送り”0”
レベルではレジスタ14の内容を保持する。同時に、マ
ルチプレクサ183は、ナンド回路181の出力が”0
”レベルになると、レジスタ184の内容を保持し、1
”レベルになるよ、カウンタ182の内容をカウンタ1
84に送る。ナンド回路181に送られる比較器16の
制御信号は、レジスタ13〈レジスタ14のと4”Q”
レベルとなる信号である。
FIG. 9 shows an example of a specific configuration of the calculation section 18 shown in FIG. 8. In the determination process, the DP/publication switching control flag 180 is set to "1". As a result, the Q output of the flip-flop 180 becomes "1" level, and the counter 182 is cleared to "0". The multiplexer 17 is controlled by the output of the NAND (NANi) circuit 181, and the output of the NAND circuit 181 When the level reaches "1", the contents of register 13 are sent to register 14 and become "0".
At level, the contents of register 14 are held. At the same time, the multiplexer 183 causes the output of the NAND circuit 181 to be "0".
” level, the contents of the register 184 are held and the 1
``The level will be reached.The contents of counter 182 will be changed to counter 1.''
Send to 84. The control signal of the comparator 16 sent to the NAND circuit 181 is transmitted to the register 13<register 14 and 4"Q".
This is the signal that becomes the level.

まず各標準パターンに対して得られた最終の累卵をり。First, the final cumulative weight obtained for each standard pattern.

、 Dl、 D2・・・D5、経路長をり。l LI 
I L21・・・Lu♂する。まず、第6図の処理によ
り距離d=0を入力し、レジスタ2をOにする。次にD
Pモードすなわちフリップフロッグ180をリセットに
した状四で第5図の処理により値り。、Loを入力し、
次に1直り、、Llを入力すると、レジスタ14會こは
D  /L   レジスタ13にはり、/L、が0  
  01 格納される。次に判定処理にするため、フリップフロッ
プ180をセットし、カウンタ182をクリアする。カ
ウンタ182は第5図の処理を実行する毎に+1され、
もしレジスタ13がレジスタ14より小さくなった時は
、カウンタ182の内容がレジスタ184に格納され、
レジスタ14にはレジスタ13より小さい場合は、レジ
スタ14.184共その値が保持される。したがって%
 DB !L(n=2〜n)まで同様に実行することに
より、レジスタ14,184には、最大の類似度Sとそ
れが何番目に入力したものかが格納される。
, Dl, D2...D5, path length. lLI
I L21...Lu♂. First, the distance d=0 is input by the process shown in FIG. 6, and the register 2 is set to O. Next D
In P mode, that is, when the flip-flop 180 is reset, the value is determined by the process shown in FIG. , input Lo,
Next, when 1 is input and Ll is input, register 14 is D/L, and /L is 0 in register 13.
01 Stored. Next, for determination processing, the flip-flop 180 is set and the counter 182 is cleared. The counter 182 is incremented by 1 every time the process shown in FIG. 5 is executed.
If register 13 becomes smaller than register 14, the contents of counter 182 are stored in register 184,
If the value in register 14 is smaller than register 13, the value is held in registers 14 and 184 as well. therefore%
DB! By similarly executing up to L (n=2 to n), the maximum similarity S and the number of inputs thereof are stored in the registers 14 and 184.

〔発明の効果〕〔Effect of the invention〕

以上述べたように、本発明によれば、I)Pによるパタ
ーンマツチングを簡単な構成で、極めて高床に行なうこ
さができる。
As described above, according to the present invention, pattern matching using I)P can be performed with a simple configuration and at a very high level.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図〜第3図はDPによるノシターンマッチングを説
明する説明図、第4図は本発明による・シターンマッチ
ング装置の一実施例のブロック図、第5図〜第7図は各
モードで動作Cる第4図の回路部分を示すブロック図、
第8図は本発明によるノくターンマツチング残置の他の
実施例の主要部の構成を示すブロック図、第9図は第8
図の一部の具体的構成の一例を示す回路図である。 4.6,5,7,13.14シフトレジスタ、1.2,
8,9.15レジスタ、3乗暉器、10:加痺器、11
:インクリメンタ、12:ROM、16:比較器。 第 1  1U (Y) 第  3  曙 第 ゲ 12 、y !;+幻 第 6 図 (Q’) 第  71] (α) (b)
Figures 1 to 3 are explanatory diagrams for explaining nositane matching using DP, Figure 4 is a block diagram of an embodiment of the nositane matching device according to the present invention, and Figures 5 to 7 operate in each mode. A block diagram showing the circuit portion of FIG. 4,
FIG. 8 is a block diagram showing the configuration of the main part of another embodiment of the left turn matching according to the present invention, and FIG.
FIG. 2 is a circuit diagram showing an example of a specific configuration of a part of the diagram. 4.6,5,7,13.14 shift register, 1.2,
8, 9.15 register, cubic power device, 10: numbing device, 11
: Incrementer, 12: ROM, 16: Comparator. 1st 1U (Y) 3rd Akebono Ge 12,y! ;+Phantom Figure 6 (Q') 71] (α) (b)

Claims (1)

【特許請求の範囲】[Claims] 時間軸を整合しながら、入カバターンと標準パターンの
マツチングを行なう動的計画法を用いたパターンマツチ
ング装置において、所定計算点における入カバターンと
標準パターンとの距離を格納する第1のレジスタと、上
記距離の上記計算点までの累卵および経路長を格納する
第2および第3のレジスタと、上記第1〜第3のレジス
タの内容により、次の計與点における経路毎の距離の累
卵および経路長を計算する第1の計算手段と、該手段で
求めた値を格納する第4のレジスタと、該第4のレジス
タの内容から、次の計算点に至る最適の経路を選び、そ
の経路での距離の累卵および経路長を次の計算点におけ
る値として求める第2の計算手段とを備えたことを特徴
とするパターンマツチング装置。
In a pattern matching device using dynamic programming that matches an input cover pattern and a standard pattern while aligning time axes, a first register stores a distance between the input cover pattern and the standard pattern at a predetermined calculation point; According to the second and third registers that store the cumulative distance and route length up to the calculation point of the distance, and the contents of the first to third registers, the cumulative value and route of the distance for each route at the next calculated point are determined. A first calculation means for calculating the length, a fourth register for storing the value obtained by the means, and an optimal route to the next calculation point is selected from the contents of the fourth register, and the process is performed along that route. a second calculation means for determining the cumulative distance of the distance and the path length as values at the next calculation point.
JP58105844A 1983-06-15 1983-06-15 Pattern matching apparatus Pending JPS59200A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58105844A JPS59200A (en) 1983-06-15 1983-06-15 Pattern matching apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58105844A JPS59200A (en) 1983-06-15 1983-06-15 Pattern matching apparatus

Publications (1)

Publication Number Publication Date
JPS59200A true JPS59200A (en) 1984-01-05

Family

ID=14418322

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58105844A Pending JPS59200A (en) 1983-06-15 1983-06-15 Pattern matching apparatus

Country Status (1)

Country Link
JP (1) JPS59200A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59174700A (en) * 1983-01-31 1984-10-03 ユニリ−バ− ナ−ムロ−ゼ ベンノ−トシヤ−プ Butter-like fat and manufacture

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5628278A (en) * 1979-08-15 1981-03-19 Matsushita Electric Ind Co Ltd Pyrogenic composition
JPS5926960A (en) * 1982-08-02 1984-02-13 藤井 実 Coating method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5628278A (en) * 1979-08-15 1981-03-19 Matsushita Electric Ind Co Ltd Pyrogenic composition
JPS5926960A (en) * 1982-08-02 1984-02-13 藤井 実 Coating method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59174700A (en) * 1983-01-31 1984-10-03 ユニリ−バ− ナ−ムロ−ゼ ベンノ−トシヤ−プ Butter-like fat and manufacture

Similar Documents

Publication Publication Date Title
JPH0159600B2 (en)
US4918733A (en) Dynamic time warping using a digital signal processor
JPS58132298A (en) Pattern matching apparatus with window restriction
US4901352A (en) Pattern matching method using restricted matching paths and apparatus therefor
JPS59200A (en) Pattern matching apparatus
JPH0887294A (en) Voice recognition device
JPH0436400B2 (en)
JPH0638195B2 (en) Pattern matching device
JPH0223876B2 (en)
JP3348735B2 (en) Pattern matching method
JPS60237496A (en) Voice recognition equipment
JPS63226696A (en) Highly efficient pattern matching system
JP2518871B2 (en) Pattern comparator
JPS5926960B2 (en) Time series pattern matching device
JPS6154240B2 (en)
JPH02292685A (en) Pattern matching circuit
JPH0251518B2 (en)
JPS6265090A (en) Pattern comparator
JPS61219100A (en) Voice input unit for specified speaker
JPH03253900A (en) Voice recognition device
JPH0465397B2 (en)
JPS62161200A (en) Continuous voice recognition equipment
JPS61292698A (en) Pattern analogy calculator
JPS5972498A (en) Pattern comparator
JPH0634176B2 (en) Voice segmentation device