版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026上海复旦大学附属中山医院青浦新城院区临床护理岗位招聘笔试题库及答案详解
- 2025-2026学年人鸦 教学设计
- 2026国家基本公共卫生服务项目考试题库及答案
- 肠道造瘘口护理与公共卫生政策
- 2026年南非竞争法适用试题及答案
- 【五下数学】北师大版五年级下册数学《达标测试卷周卷+期中+期末卷》带答案
- 【五上语文】五年级上册语文《期末全册重要知识点梳理汇 总九大高频考点》
- 企业沉浸式体验对消费者购买意愿的影响研究报告
- 暑假练字(二年级)古诗词字帖
- 人工智能测试数据版权研究报告
- 2026年广东省考《申论》真题及答案解析(县级卷)
- 2026年齐齐哈尔拜泉县公开招聘幼儿教师34人笔试备考试题及答案详解
- 2026年浙江省宁波市初一新生入学分班数学考试真题及答案
- 江苏省无锡市2025-2026学年高二下学期期末考试生物试题(文字版含答案)
- 2026中煤集团山西有限公司面向社会公开招聘292人笔试历年常考点试题专练附带答案详解
- 2026海南陵水黎族自治县县属国有企业第一批招聘60人考试模拟试题及答案详解
- 2026年7月浙江高中学业水平考试化学试卷试题(含答案解析)
- 医院担架外包合同
- 2026年高一历史学业水平考试知识点归纳总结(复习必背)
- 中国溃疡性结肠炎诊治指南2023年课件
- 2026年住院医师规范化培训必刷题库(综合题)附答案详解
评论
0/150
提交评论