




已阅读5页,还剩39页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
AnomalyDetection Aintroduction Sourceofslides TutorialAtAmericanStatisticalAssociation ASA2008 JiaweiHan datamining conceptsandtechniquesTutorialattheEuropeanConferenceonPrinciplesandPracticeofKnowledgeDiscoveryinDatabasesSpeaker WentaoLi Outline DefinitionApplicationMethodsLimitedtime SoIjustdrawthepictureofanomalydetection formoredetail pleaseturntothepaperforhelp WhatareAnomalies AnomalyisapatterninthedatathatdoesnotconformtotheexpectedbehaviorAnomalyisAdataobjectthatdeviatessignificantlyfromthenormalobjectsasifitweregeneratedbyadifferentmechanismAlsoreferredtoasoutliers exceptions peculiarities surprises etc Anomaliestranslatetosignificant oftencritical reallifeentitiesCyberintrusionsCreditcardfraudFaultsinmechanicalsystems Relatedproblems OutliersaredifferentfromthenoisedataNoiseisrandomerrororvarianceinameasuredvariableNoiseshouldberemovedbeforeoutlierdetectionOutliersareinteresting ItviolatesthemechanismthatgeneratesthenormaldataOutlierdetectionvs noveltydetection earlystage outlier butlatermergedintothemodel KeyChallenges DefiningarepresentativenormalregionischallengingTheboundarybetweennormalandoutlyingbehaviorisoftennotpreciseAvailabilityoflabeleddatafortraining validationTheexactnotionofanoutlierisdifferentfordifferentapplicationdomainsDatamightcontainnoiseNormalbehaviorkeepsevolvingAppropriateselectionofrelevantfeatures MapRelatedareas theory Application practice ProblemformulationDetectioneffect AspectsofAnomalyDetectionProblem NatureofinputdataWhatisthecharacteristicofinputdataAvailabilityofsupervisionNumberoflabelTypeofanomaly point contextual structuralTypeofanomalyOutputofanomalydetectionScorevslabelEvaluationofanomalydetectiontechniquesWhatkindofdetectionisgood InputData MostcommonformofdatahandledbyanomalydetectiontechniquesisRecordDataUnivariateMultivariate InputData MostcommonformofdatahandledbyanomalydetectiontechniquesisRecordDataUnivariateMultivariate InputData NatureofAttributes NatureofattributesBinaryCategoricalContinuousHybrid categorical continuous continuous categorical binary InputData ComplexDataTypes RelationshipamongdatainstancesSequentialTemporalSpatialSpatio temporalGraph DataLabels SupervisedAnomalyDetectionLabelsavailableforbothnormaldataandanomaliesSemi supervisedAnomalyDetectionLabelsavailableonlyfornormaldataUnsupervisedAnomalyDetectionNolabelsassumedBasedontheassumptionthatanomaliesareveryrarecomparedtonormaldataPayattention heresomematerialsgivedifferentdescriptions andwetreatadoptthedefinitionherethoughitisabitambiguouswiththetraditionaldefinitional TypeofAnomalies PointAnomaliesContextualAnomaliesCollectiveAnomalies PointAnomalies Anindividualdatainstanceisanomalousw r t thedata ContextualAnomalies AnindividualdatainstanceisanomalouswithinacontextRequiresanotionofcontextAlsoreferredtoasconditionalanomalies Dangerous theftcondition theftMoneyconsumer thepoorandtherich XiuyaoSong MingxiWu ChristopherJermaine SanjayRanka ConditionalAnomalyDetection IEEETransactionsonDataandKnowledgeEngineering 2006 Normal Anomaly CollectiveAnomalies AcollectionofrelateddatainstancesisanomalousRequiresarelationshipamongdatainstancesSequentialDataSpatialDataGraphDataTheindividualinstanceswithinacollectiveanomalyarenotanomalousbythemselves AnomalousSubsequence OutputofAnomalyDetection LabelEachtestinstanceisgivenanormaloranomalylabelThisisespeciallytrueofclassification basedapproachesScoreEachtestinstanceisassignedananomalyscoreAllowstheoutputtoberankedRequiresanadditionalthresholdparameter EvaluationofAnomalyDetection F value AccuracyisnotsufficientmetricforevaluationExample networktrafficdatasetwith99 9 ofnormaldataand0 1 ofintrusionsTrivialclassifierthatlabelseverythingwiththenormalclasscanachieve99 9 accuracy anomalyclass Cnormalclass NC FocusonbothrecallandprecisionRecall R TP TP FN truepredictedanomaly allanomalyPrecision P TP TP FP truepredictedanomaly allpredictedF measure 2 R P R P EvaluationofOutlierDetection ROC AUC Standardmeasuresforevaluatinganomalydetectionproblems Recall Detectionrate ratiobetweenthenumberofcorrectlydetectedanomaliesandthetotalnumberofanomaliesFalsealarm falsepositive rate ratiobetweenthenumberofdatarecordsfromnormalclassthataremisclassifiedasanomaliesandthetotalnumberofdatarecordsfromnormalclassROCCurveisatrade offbetweendetectionrateandfalsealarmrateAreaundertheROCcurve AUC iscomputedusingatrapezoidruleThebest theworest anomalyclass Cnormalclass NC ApplicationsofAnomalyDetection NetworkintrusiondetectionInsurance CreditcardfrauddetectionHealthcareInformatics MedicaldiagnosticsIndustrialDamageDetectionImageProcessing VideosurveillanceNovelTopicDetectioninTextMining IntrusionDetection IntrusionDetection Processofmonitoringtheeventsoccurringinacomputersystem inner ornetwork outer andanalyzingthemforintrusionsIntrusionsaredefinedasattemptstobypassthesecuritymechanismsofacomputerornetwork ChallengesTraditionalsignature basedintrusiondetectionsystemsarebasedonsignaturesofknownattacksandcannotdetectemergingcyberthreatsSubstantiallatencyindeploymentofnewlycreatedsignaturesacrossthecomputersystemAnomalydetectioncanalleviatetheselimitations FraudDetection FrauddetectionreferstodetectionofcriminalactivitiesoccurringincommercialorganizationsMalicioususersmightbetheactualcustomersoftheorganizationormightbeposingasacustomer alsoknownasidentitytheft TypesoffraudCreditcardfraudInsuranceclaimfraudMobile cellphonefraudInsidertradingChallengesFastandaccuratereal timedetectionMisclassificationcostisveryhigh HealthcareInformatics DetectanomalouspatientrecordsIndicatediseaseoutbreaks instrumentationerrors etc KeyChallengesOnlynormallabelsavailableMisclassificationcostisveryhighDatacanbecomplex spatio temporal IndustrialDamageDetection Industrialdamagedetectionreferstodetectionofdifferentfaultsandfailuresincomplexindustrialsystems structuraldamages intrusionsinelectronicsecuritysystems abnormalenergyconsumption etc Example AircraftSafetyAnomalousAircraft Engine FleetUsageAnomaliesinenginecombustiondataTotalaircrafthealthandusagemanagementKeyChallengesDataisextremelyhuge noisyandunlabelledMostofapplicationsexhibittemporalbehaviorDetectinganomalouseventstypicallyrequireimmediateintervention ImageProcessing DetectingoutliersinaimageorvideomonitoredovertimeDetectinganomalousregionswithinanimageUsedinmammographyimageanalysisvideosurveillancesatelliteimageanalysisKeyChallengesDetectingcollectiveanomaliesDatasetsareverylarge Anomaly Taxonomy AnomalyDetection ContextualAnomalyDetection CollectiveAnomalyDetection OnlineAnomalyDetection DistributedAnomalyDetection PointAnomalyDetection ClassificationBased RuleBasedNeuralNetworksBasedSVMBased NearestNeighborBased DensityBasedDistanceBased Statistical ParametricNon parametric ClusteringBased Others InformationTheoryBasedSpectralDecompositionBasedVisualizationBased StatisticalApproaches Statisticalapproachesassumethattheobjectsinadatasetaregeneratedbyastochasticprocess agenerativemodel Idea learnagenerativemodelfittingthegivendataset andthenidentifytheobjectsinlowprobabilityregionsofthemodelasoutliersMethodsaredividedintotwocategories parametricvs non parametricParametricmethodAssumesthatthenormaldataisgeneratedbyaparametricdistributionwithparameter Theprobabilitydensityfunctionoftheparametricdistributionf x givestheprobabilitythatobjectxisgeneratedbythedistributionThesmallerthisvalue themorelikelyxisanoutlierNon parametricmethodNotassumeana prioristatisticalmodelanddeterminethemodelfromtheinputdataNotcompletelyparameterfreebutconsiderthenumberandnatureoftheparametersareflexibleandnotfixedinadvanceExamples histogramandkerneldensityestimation ParametricMethodsI DetectionUnivariateOutliersBasedonNormalDistribution Univariatedata AdatasetinvolvingonlyoneattributeorvariableOftenassumethatdataaregeneratedfromanormaldistribution learntheparametersfromtheinputdata andidentifythepointswithlowprobabilityasoutliersEx Avg temp 24 0 28 9 28 9 29 0 29 1 29 1 29 2 29 2 29 3 29 4 Usethemaximumlikelihoodmethodtoestimate and Takingderivativeswithrespectto and 2 wederivethefollowingmaximumlikelihoodestimates Fortheabovedatawithn 10 wehaveThen 24 28 61 1 51 3 04 3 24isanoutliersince ParametricMethodsI TheGrubb sTest Univariateoutlierdetection TheGrubb stest maximumnormedresidualtest anotherstatisticalmethodundernormaldistributionForeachobjectxinadataset computeitsz score xisanoutlierifwhereisthevaluetakenbyat distributionatasignificancelevelof 2N andNisthe ofobjectsinthedataset ParametricMethodsII DetectionofMultivariateOutliers Multivariatedata AdatasetinvolvingtwoormoreattributesorvariablesTransformthemultivariateoutlierdetectiontaskintoaunivariateoutlierdetectionproblemMethod1 ComputeMahalaobisdistanceLet bethemeanvectorforamultivariatedataset Mahalaobisdistanceforanobjectoto isMDist o o TS 1 o whereSisthecovariancematrixUsetheGrubb stestonthismeasuretodetectoutliersMethod2 Use 2 statistic whereEiisthemeanofthei dimensionamongallobjects andnisthedimensionalityIf 2 statisticislarge thenobjectoiisanoutlier ParametricMethodsIII UsingMixtureofParametricDistributions AssumingdatageneratedbyanormaldistributioncouldbesometimesoverlysimplifiedExample rightfigure Theobjectsbetweenthetwoclusterscannotbecapturedasoutlierssincetheyareclosetotheestimatedmean Toovercomethisproblem assumethenormaldataisgeneratedbytwonormaldistributions Foranyobjectointhedataset theprobabilitythatoisgeneratedbythemixtureofthetwodistributionsisgivenbywheref 1andf 2aretheprobabilitydensityfunctionsof 1and 2ThenuseEMalgorithmtolearntheparameters 1 1 2 2fromdataAnobjectoisanoutlierifitdoesnotbelongtoanycluster Non ParametricMethods DetectionUsingHistogram Themodelofnormaldataislearnedfromtheinputdatawithoutanyaprioristructure Oftenmakesfewerassumptionsaboutthedata andthuscanbeapplicableinmorescenariosOutlierdetectionusinghistogram FigureshowsthehistogramofpurchaseamountsintransactionsAtransactionintheamountof 7 500isanoutlier sinceonly0 2 transactionshaveanamounthigherthan 5 000Problem HardtochooseanappropriatebinsizeforhistogramToosmallbinsize normalobjectsinempty rarebins falsepositiveToobigbinsize outliersinsomefrequentbins falsenegativeSolution Adoptkerneldensityestimationtoestimatetheprobabilitydensitydistributionofthedata Iftheestimateddensityfunctionishigh theobjectislikelynormal Otherwise itislikelyanoutlier Proximity BasedApproaches Distance Basedvs Density BasedOutlierDetection Intuition ObjectsthatarefarawayfromtheothersareoutliersAssumptionofproximity basedapproach TheproximityofanoutlierdeviatessignificantlyfromthatofmostoftheothersinthedatasetTwotypesofproximity basedoutlierdetectionmethodsDistance basedoutlierdetection AnobjectoisanoutlierifitsneighborhooddoesnothaveenoughotherpointsDensity basedoutlierdetection Anobjectoisanoutlierifitsdensityisrelativelymuchlowerthanthatofitsneighbors 34 Distance BasedOutlierDetection Foreachobjecto examinethe ofotherobjectsinther neighborhoodofo whererisauser specifieddistancethresholdAnobjectoisanoutlierifmost taking asafractionthreshold oftheobjectsinDarefarawayfromo i e notinther neighborhoodofoAnobjectoisaDB r outlierifEquivalently onecancheckthedistancebetweenoanditsk thnearestneighborok where oisanoutlierifdist o ok rEfficientcomputation NestedloopalgorithmForanyobjectoi calculateitsdistancefromotherobjects andcountthe ofotherobjectsinther neighborhood If notherobjectsarewithinrdistance terminatetheinnerloopOtherwise oiisaDB r outlierEfficiency ActuallyCPUtimeisnotO n2 butlineartothedatasetsizesinceformostnon outlierobjects theinnerloopterminatesearly 35 Density BasedOutlierDetection Localoutliers Outlierscomparingtotheirlocalneighborhoods insteadoftheglobaldatadistributionInFig o1ando2arelocaloutlierstoC1 o3isaglobaloutlier buto4isnotanoutlier However proximity basedclusteringcannotfindo1ando2areoutlier e g comparingwithO4 36 Intuition density basedoutlierdetection ThedensityaroundanoutlierobjectissignificantlydifferentfromthedensityarounditsneighborsMethod Usetherelativedensityofanobjectagainstitsneighborsastheindicatorofthedegreeoftheobjectbeingoutliersk distanceofanobjecto distk o distancebetweenoanditsk thNNk distanceneighborhoodofo Nk o o o inD dist o o distk o Nk o couldbebiggerthanksincemultipleobjectsmayhaveidenticaldistancetoo LocalOutlierFactor LOF Reachabilitydistancefromo too wherekisauser specifiedparameterLocalreachabilitydensityofo 37 LOF Localoutlierfactor ofanobjectoistheaverageoftheratiooflocalreachabilityofoandthoseofo sk nearestneighborsThelowerthelocalreachabilitydensityofo andthehigherthelocalreachabilitydensityofthekNNofo thehigherLOFThiscapturesalocaloutlierwhoselocaldensityisrelativelylowcomparingtothelocaldensitiesofitskNN Clustering BasedOutlierDetection 1 2 Notbelongtoanycluster orfarfromtheclosestone Anobjectisanoutlierif 1 itdoesnotbelongtoanycluster 2 thereisalargedistancebetweentheobjectanditsclosestcluster or 3 itbelongstoasmallorsparsecluster CaseI NotbelongtoanyclusterIdentifyanimalsnotpartofaflock Usingadensity basedclusteringmethodsuchasDBSCANCase2 FarfromitsclosestclusterUsingk means partitiondatapointsofintoclustersForeachobjecto assignanoutlierscorebasedonitsdistancefromitsclosestcenterIfdist o co avg dist co islarge likelyanoutlierEx Intrusiondetection Considerthesimilaritybetweendatapointsandtheclustersinatrainingdataset Useatrainingsettofindpatternsof normal data e g frequentitemsetsineachsegment andclustersimilarconnectionsintogroupsComparenewdatapointswiththeclustersmined Outliersarepossibleattacks 39 FindCBLOF DetectoutliersinsmallclustersFindclusters andsortthemindecreasingsizeToeachdatapoint assignacluster basedlocaloutlierfactor CBLOF Ifobjpbelongstoalargecluster CBLOF cluster sizeXsimilaritybetweenpandclusterIfpbelongstoasmallone CBLOF clustersizeXsimilaritybetw pandtheclosestlargecluster 40 Clustering BasedOutlierDetection 3 DetectingOutliersinSmallClusters Ex Inthefigure oisoutliersinceitsclosestlargeclusterisC1 butthesimilaritybetweenoandC1issmall ForanypointinC3 itsclosestlargeclusterisC2butitssimilarityfromC2islow plus C3 3issmall Clustering BasedMethod StrengthandWeakness StrengthDetectoutlierswithoutrequiringanylabeleddataWorkformanytypesofdataClusterscanberegardedassummariesofthedataOncetheclusterareobtained needonlycompareanyobjectagainsttheclusterstodeterminewhetheritisanoutlier fast WeaknessEffectivenessdependshighlyontheclusteringmethodused theymaynotbeoptimizedforoutlierdetectionHighcomputationalcost NeedtofirstfindclustersAmethodtoreducethecost Fixed widthclusteringApointisassignedtoaclusterifthecenteroftheclusteriswithinapre definedd
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年新能源汽车融资租赁保理业务保证合同
- 2025年度冷链物流集装箱运输与风险管理合同
- 2025年工业厂房屋顶防水修复与定期保养技术服务合同
- 2025年金融机构财务代理服务合同样本集
- 2025年校园围栏表面环保涂装与改造工程合同
- 2025年度证券融资租赁担保合同模板与合规审查
- 2025年北京高端车牌使用权及车辆全面维护服务合同
- 2025年智能机器人制造基地厂房租赁与研发设施共享合作协议
- 2025年度智能车库租赁与车位租赁升级续约协议
- 2025年校园体育设施租赁与维护管理合作协议
- 证券行业智能化投资组合管理方案
- 银行员工消保知识培训
- 地理与劳动教育
- 第5课 甲午中日战争与列强瓜分中国狂潮 公开课一等奖创新教学设计
- 初中数学新人教版七年级上册第二章《有理数的运算》教案(2024秋)
- 人教版(2025新版)七年级下册数学第七章 相交线与平行线 单元测试卷(含答案)
- 厂房消防应急预案
- 景区开发政府战略框架协议书(2篇)
- “雄鹰杯”全国小动物医师技能大赛考试题库(660题)
- 实验室隐患排查培训
- 九年级化学第三单元课题1分子和原子人教新课标版省公开课获奖课件说课比赛一等奖课件
评论
0/150
提交评论