Coder Social home page Coder Social logo

copod's Introduction

COPOD

Copula-based Outlier Detection: a fast, parameter-free, and highly interpretable unsupervised outlier detection method.


Li, Z., Zhao, Y., Botta, N., Ionescu, C. and Hu, X. COPOD: Copula-Based Outlier Detection. IEEE International Conference on Data Mining (ICDM), 2020.

Please cite the paper as:

@inproceedings{li2020copod,
  title={{COPOD:} Copula-Based Outlier Detection},
  author={Li, Zheng and Zhao, Yue and Botta, Nicola and Ionescu, Cezar and Hu, Xiyang},
  booktitle={IEEE International Conference on Data Mining (ICDM)},
  year={2020},
  organization={IEEE},
}

PDF for Personal Use (raw version) | Presentation Slides | API Documentation | Example with PyOD

News: COPOD is now officially integrated to PyOD, the most popular anomaly detection library, as a featured algorithm! The API is simply as below:

# train the COPOD detector
from pyod.models.copod import COPOD
clf = COPOD()
clf.fit(X_train)

# get the prediction label and outlier scores of the training data
y_train_pred = clf.labels_  # binary labels (0: inliers, 1: outliers)
y_train_scores = clf.decision_scores_  # raw outlier scores

# get the prediction on the test data
y_test_pred = clf.predict(X_test)  # outlier labels (0 or 1)
y_test_scores = clf.decision_function(X_test)  # outlier scores

Direct examples can be found HERE.


Introduction

Outlier detection refers to the identification of rare items that are deviant from the general data distribution. Existing unsupervised approaches suffer from high computational complexity, low predictive capability, and limited interpretability. As a remedy, we present a novel outlier detection algorithm called COPOD, which is inspired by statistical methods for modeling multivariate data distribution. COPOD first constructs the empirical copula, and then uses the fitted model to predict tail probabilities of each given data point to determine its level of “extremeness”. Intuitively, we think of this as calculating an anomalous p-value. This makes COPOD both parameter-free, highly interpretable, as well as computationally efficient. Moreover, COPOD is parameter-free and require no tuning, which reduces human subjectivity and bias. In this work, we make three key contributions, 1) propose a novel, parameter-free outlier detection algorithm with both great performance and interpretability, 2) perform extensive experiments on 30 benchmark datasets to show that COPOD outperforms in most cases, at the same time is also one of the fastest outlier detection algorithms, and 3) release an easy-to-use Python implementation for reproducibility.

Dependency

The experiment codes are writen in Python 3.6 and built on a number of Python packages:

  • numpy>=1.13
  • numba>=0.35
  • pyod
  • scipy>=0.19
  • scikit_learn>=0.19 -statsmodel

Batch installation is possible using the supplied "requirements.txt" with pip or conda.

pip install -r requirements.txt

Reproducibility & Production Level Code

To reproduce the results included in the paper, run the python scripts in results folder.

For production and benchmarking, directly use PyOD version.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.