语音识别的搜索算法_第1页
语音识别的搜索算法_第2页
语音识别的搜索算法_第3页
语音识别的搜索算法_第4页
语音识别的搜索算法_第5页
已阅读5页,还剩19页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

8.0SearchAlgorithmsforSpeechRecognition

语音识别的搜索算法1

数字语音处理概论IntroductiontoDigitalSpeechProcessingASimplifiedBlockDiagramExampleInputSentence

thisisspeechAcousticModels

(th-ih-s-ih-z-s-p-ih-ch)Lexicon(th-ih-s)→this(ih-z)→is(s-p-iy-ch)→speechLanguageModel(this)–(is)–(speech) P(this)P(is|this)P(speech|thisis) P(wi|wi-1)bi-gram

languagemodel P(wi|wi-1,wi-2)tri-gramlanguagemodel,etcBasicApproachforLargeVocabularySpeechRecognitionFront-endSignalProcessingAcousticModelsLexiconFeatureVectorsLinguisticDecodingandSearchAlgorithmOutputSentenceSpeechCorporaAcousticModelTrainingLanguageModelConstructionTextCorporaLanguageModelInputSpeech2DTWandDynamicProgrammingDynamicTimeWarping(DTW)wellacceptedpre-HMMapproachfindanoptimalpathformatchingtwotemplateswithdifferentlengthgoodforsmall-vocabularyisolated-wordrecognitioneventodayTestTemplate[yj,j=1,2,...N]andReferenceTemplate[xi,i=1,2,..M]warpingbothtemplatestoacommonlengthL warpingfunctions:fx(m)=i,fy(m)=j,m=1,2,...Lendpointconstraints:fx(1)=fy(1)=1,fx(L)=M,fy(L)=N monotonicconstraints:fx(m+1)≥fx(m),fy(m+1)≥fy(m)matchingpair:

foreverym,m:indexformatchingpairsrecursiverelationship:

globalconstraints/localconstraintslackofagoodapproachtotrainagoodreferencepatternDynamicProgrammingreplacingtheproblembyasmallersub-problemandformulatinganiterativeprocedureReference:4.7upto4.7.3ofRabinerandJuang3DTWprogramming(reference)(test)referencetest4DTW5DTWfx(m)=i,fy(m)=j,m=1,2,...Lfx(1)=fy(1)=1,fx(L)=M,fy(L)=Nfx(m+1)≥fx(m),fy(m+1)≥fy(m)accumulatedminimumdistance67ViterbiAlgorithm

(P.21of4.0)δt(i)δt+1(j)δt(i)ittt+111ij

t+1(j)=max[

t(i)aij]

bj(ot+1)i

t(i)

=max

P[q1,q2,…qt-1,qt=i,o1,o2,…,ot|

]q1,q2,…qt-18ViterbiAlgorithm

(P.22of4.0)9ContinuousSpeechRecognitionExample:DigitStringRecognition―

One-stageSearchUnknownNumberofDigitsNoLexicon/LanguageModelConstraintsSearchovera3-dimGridSwitchedtotheFirstStateoftheNextModelattheEndofthePreviousModelMayResultwithSubstitution,DeletionandInsertion019019t012910RecognitionErrorsReference:

(T)Recognized:insertion(I)substitution(S)deletion(D)

AccuracyAligned11ContinuousSpeechRecognitionExample:DigitStringRecognition―Level-BuildingKnownNumberofDigitsNoLexicon/LanguageModelConstraintsHigherComputationComplexity,NoDeletion/Insertion01.901.901.901.9State01...901...9t01...901...9numberoflevels=numberofdigitsinanutteranceautomatictransitionfromthelaststateofthepreviousmodeltothefirststateofthenextmodel12Time(Frame)-SynchronousViterbiSearchforLarge-VocabularyContinuousSpeechRecognitionMAPPrincipleAnApproximationthewordsequencewiththehighestprobabilityforthemostprobablestatesequenceusuallyhasapproximatelythehighestprobabilityforallstatesequencesViterbisearch,asub-optimalapproachViterbiSearch―DynamicProgrammingreplacingtheproblembyasmallersub-problemandformulatinganiterativeproceduretime(frame)-synchronous:thebestscoreattimetisupdatedfromallstatesattimet-1TreeLexiconastheBasicWorkingStructurefromHMMfromLanguageModeleacharcisanHMM(phoneme,tri-phone,etc.)eachleafnodeisawordsearchprocessesforasegmentofutterancethroughsomecommonunitsfordifferentwordscanbesharedsearchspaceconstrainedbythelexiconthesametreecopyreproducedateachleafnodeinprinciple13BasicProblem2forHMM

(P.24of4.0)․ApplicationExampleofViterbiAlgorithm-Isolatedwordrecognition...Themodelwiththehighestprobabilityforthemostprobablepathusuallyalsohasthehighestprobabilityforallpossiblepaths.observation1£i£n

1£i£nBasicProblem1ForwardAlgorithm(forallpaths)BasicProblem2ViterbiAlgorithm(forasinglebestpath)14TreeLexiconstatestimeo1o2….ot….oT

1516Time(Frame)-SynchronousViterbiSearchforLarge–VocabularyContinuousSpeechRecognitionDefineKeyParametersD(t,qt,w):objectivefunctionforthebestpartialpathendingattimetinstateqtforthewordwh(t,qt,w):backtrackpointerforthepreviousstateatthepervioustimewhenthebestpartialpathendsattimetinstateqtforthewordwIntra-wordTransition―HMMonly,noLanguageModelInter-wordTransition―LanguageModelonly,noHMM(bi-gramasanexample)17TimeSynchronousViterbiSearchD(t,qt,w)ot

qtw18ViterbiAlgorithm

(P.21of4.0)δt(i)δt+1(j)δt(i)ittt+111ij

t+1(j)=max[

t(i)aij]

bj(ot+1)i

t(i)

=max

P[q1,q2,…qt-1,qt=i,o1,o2,…,ot|

]q1,q2,…qt-119qf(v)Qtt20Time(Frame)-SynchronousViterbiSearchforLarge-VocabularyContinuousSpeechRecognitionBeamSearchateachtimetonlyasubsetofpromisingpathsarekeptexample1:defineabeamwidthL(i.e.keepingonlyLpathsateachtime) example2:defineathresholdTh(i.e.allpathswithD<Dmax,t-Tharedeleted)veryhelpfulinreducingthesearchspaceTwo-passSearch(orMulti-passSearch)uselessknowledgeorlessconstraints(e.g.acousticmodelwithlesscontextdependencyorlanguagemodelwithlowerorder)inthefirststage,whilemoreknowledgeormoreconstraintsinrescoringinthesecondpathsearchspacesignificantlyreducedbydecouplingthecomplicatedsearchprocessintosimplerprocessesN-bestListandWordGraph(Lattice)

W1W2W1W6W5W3W4W5W7W8W9W10W9similarlyconstructedwithdynamicprogrammingiterationsN-bestListorWordGraphGenerationRescoringXN-bestListWordGraphWTime21

S:starting G:goaltofindtheminimumdistancepathBlindSearchAlgorithmsDepth-firstSearch:pickupanarbitraryalternativeandproceedBreath-firstSearch:considerallnodesonthesamelevelbeforegoingtothenextlevelnosenseaboutwherethegoalisAnExample–acitytravelingproblemSomeSearchAlgorithmFundamentalsSearchTree(Graph)2.8GEFCBADS3335544231010.37.03.05.78.5SABBAFDGECCCDEEG3711162611691411149612HeuristicSearchBest-firstSearchbasedonsomeknowledge,or“heuristicinformation” f(n)=g(n)+h*(n) g(n):distanceuptonoden h*(n):heuristicestimatefortheremainingdistanceuptoGheuristicpruningASC11.711.512.011.8EGh*(n):straight-linedistance22ABCDEFGL4L1L2L34323241813ListofCandidateStepsNodeg(n)

h*(n)

f(n)

A01515B4913C31215D257E7411F729

G11314L1909L2808L312012L4505HeuristicSearch:AnotherExampleProblem:Findapathwiththehighestscorefromrootnode“A”tosomeleafnode(oneof“L1”,”L2”,”L3”,”L4”)TopCandidateListA(15

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

最新文档

评论

0/150

提交评论