[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-291200-105":3,"doc-detail-291200-en":81,"detail-sidebar-cat-0-en-105":98},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","a-generic-machine-learning-framework-for-fully-unsupervised-anomaly-detection-with-contaminated-data","A Generic Machine Learning Framework for Fully-Unsupervised Anomaly Detection with Contaminated Data","","Anomaly detection models are commonly trained assuming anomaly-free normal data, yet real operational datasets are often contaminated by an unknown fraction of abnormal samples. Residual-based methods deteriorate under such contamination because learned “normal” regimes become unreliable. This paper presents a fully unsupervised refinement framework that improves contaminated training sets without requiring labels, using per-sample contributions to generalization while contrasting anomalies versus normal samples.",{"@graph":14,"@context":73},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/research-report/","Research & Report",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/a-generic-machine-learning-framework-for-fully-unsupervised-anomaly-detection-with-contaminated-data/291200/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/a-generic-machine-learning-framework-for-fully-unsupervised-anomaly-detection-with-contaminated-data/291200.png","ImageObject",300,407,{"name":42,"@type":43},"Maeve","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-10-28","2026-09-17",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",13,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"Why do residual-based anomaly detection models perform poorly on contaminated training data?","Question",{"text":63,"@type":64},"Because their residual-based training assumes anomaly-free normal data, contamination shifts the learned normal regime and lowers detection quality.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"What does the proposed framework do in a fully unsupervised setting?",{"text":68,"@type":64},"It refines contaminated training data in a single-step process by identifying candidate anomalies to remove, without using labels.",{"name":70,"@type":61,"acceptedAnswer":71},"How is the refinement method designed to be applicable to different residual-based models?",{"text":72,"@type":64},"The framework is generic: it can wrap any residual-based machine learning model (e.g., PCA, autoencoders, or regression NNs) and does not require knowledge of the contamination ratio.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},291200,1789643704,{"code":4,"msg":82,"data":83},"success",{"doc_id":79,"user_id":84,"nickname":42,"user_avatar":85,"doc_module":4,"category_id":86,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":87,"file_id":88,"file_url":89,"file_type":90,"file_size":91,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":92,"language":93,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":94,"faqs":95,"seo_title":96,"seo_description":12,"update_tm":80,"read_time":97,"preview_page_count":4},5909877438554,"https://ap-avatar.wpscdn.com/avatar/5600025385ad2bf12a7?_k=1778553567797529272",8,"A Generic Machine Learning Framework for Fully-Unsupervised Anomaly Detection with Contaminated Data  \nMarkus Ulmer 1 , Jannik Zgraggen2 , and Lilach Goren Huber3  \n1,2,3 Zurich University of Applied Sciences, Winterthur 8401, Switzerland  \n[markus.ulmer@zhaw.ch](markus.ulmer@zhaw.ch)  \n[jannik.zgraggen@zhaw.ch](jannik.zgraggen@zhaw.ch)  \n[lilach.gorenhuber@zhaw.ch](lilach.gorenhuber@zhaw.ch)  \nABSTRACT  \nAnomaly detection (AD) tasks have been solved using machine learning algorithms in various domains and applications. The great majority of these algorithms use normal data to train a residual-based model and assign anomaly scores to unseen samples based on their dissimilarity with the learned normal regime. The underlying assumption of these approaches is that anomaly-free data is available for training. This is, however, often not the case in real-world operational settings, where the training data may be contaminated with an unknown fraction of abnormal samples. Training with contaminated data, in turn, inevitably leads to a deteriorated AD performance of the residual-based algorithms.  \nIn this paper we introduce a framework for a fully unsupervised reﬁnement of contaminated training data for AD tasks. The framework is generic and can be applied to any residualbased machine learning model. We demonstrate the application of the framework to two public datasets of multivariate time series machine data from different application ﬁelds. We show its clear superiority over the naive approach of training with contaminated data without reﬁnement. Moreover, we compare it to the ideal, unrealistic reference in which anomaly-free data would be available for training. The method is based on evaluating the contribution of individual samples to the generalization ability of a given model, and contrasting the contribution of anomalies with the one of normal samples. As a result, the proposed approach is comparable to, and often outperforms training with normal samples only.  \n1. INTRODUCTION  \nAnomaly detection (AD) tasks are common in very diverse ﬁelds, including medical image processing, autonomous driving, fraud detection, and fault detection in industrial machines.  \nMarkus Ulmer et al. This is an open-access article distributed under the terms of the Creative Commons Attribution 3.0 United States License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.  \nAn inherent property of AD tasks is that very few or no labeled examples of anomalous behavior are provided in advance.  \nTherefore, the most common machine learning approaches to solve these tasks are based on using exclusively normal data to train a selected prediction algorithm, which is subsequently used to infer on unseen data. The underlying assumption here is that the algorithm’s prediction errors (residuals) will be higher whenever the input sample does not belong to the learned distribution. This family of models can be referred to as residual-based models, irrespective of whether they use regression or reconstruction residuals to detect anomalies, with the most common models being reconstruction models such as principal component analysis (PCA) or various types of autoencoder (AE) neural networks. It is worth noting that these models are often termed ”unsupervised”. However, in the context of AD, they should be referred to as ”semi supervised” since they assume the availability of labeled normal data for training.  \nIn fact, such models tend to perform rather poorly whenever contamination in the form of anomalous samples is introduced into the training data. In real-world applications, however, the assumption of having anomaly-free training data does not always hold, as data contamination cannot be avoided. In this case, truly unsupervised methods, based on clustering or one-class classiﬁcation (Schlkopf, Williamson, Smola, Shawe-Taylor, & Platt, 1999), are required. Recently there has bee","cbCaiuaez5zTYwpF","https://ap.wps.com/l/cbCaiuaez5zTYwpF","pdf",1583307,12,"English","# Abstract\n# 1. Introduction\n## Anomaly detection assumptions and contamination\n## Residual-based vs truly unsupervised methods\n## Proposed framework and refinement idea","[{\"question\":\"Why do residual-based anomaly detection models perform poorly on contaminated training data?\",\"answer\":\"Because their residual-based training assumes anomaly-free normal data, contamination shifts the learned normal regime and lowers detection quality.\"},{\"question\":\"What does the proposed framework do in a fully unsupervised setting?\",\"answer\":\"It refines contaminated training data in a single-step process by identifying candidate anomalies to remove, without using labels.\"},{\"question\":\"How is the refinement method designed to be applicable to different residual-based models?\",\"answer\":\"The framework is generic: it can wrap any residual-based machine learning model (e.g., PCA, autoencoders, or regression NNs) and does not require knowledge of the contamination ratio.\"}]","A Generic Machine Learning Framework for Fully-Unsupervised Anomaly Detection with Contaminated Data | PDF",30,{"code":4,"msg":82,"data":99},[100,104,108,112,117,122,127,129,134,137,141],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":101,"show_sort_weight":102,"slug":103},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":105,"show_sort_weight":106,"slug":107},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":109,"show_sort_weight":110,"slug":111},"Exam",70,"exam",{"id":113,"doc_module":4,"doc_module_name":25,"category_name":114,"show_sort_weight":115,"slug":116},5,"Comic",60,"comic",{"id":118,"doc_module":4,"doc_module_name":25,"category_name":119,"show_sort_weight":120,"slug":121},6,"Technology",50,"technology",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":125,"slug":126},7,"Healthcare",40,"healthcare",{"id":86,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":97,"slug":128},"research-report",{"id":130,"doc_module":4,"doc_module_name":25,"category_name":131,"show_sort_weight":132,"slug":133},9,"Religion & Spirituality",20,"religion-spirituality",{"id":132,"doc_module":4,"doc_module_name":25,"category_name":135,"show_sort_weight":132,"slug":136},"World Cup","world-cup",{"id":138,"doc_module":4,"doc_module_name":25,"category_name":139,"show_sort_weight":138,"slug":140},10,"Lifestyle","lifestyle",{"id":142,"doc_module":4,"doc_module_name":25,"category_name":143,"show_sort_weight":113,"slug":144},19,"General","general"]