Skip to content
KitploitKITPLOIT
HerramientasBlog
Enviar
HerramientasBlog
Enviar

¡Herramientas de Hacking, PenTest y Ciberseguridad para tu Arsenal de Seguridad!

Kitploit es un directorio de herramientas de hacking, ciberseguridad y pentesting. Descubre las últimas actualizaciones de proyectos para encontrar vulnerabilidades, analizar sistemas, automatizar pruebas y fortalecer tu seguridad.

··Feeds·Contacto·Privacidad·© 2026 Kitploit

Directorio de Herramientas

Categorías

Ver todas las categorías
Loading categories
pyod — Una librería de Python para la detección de anomalías en datos tabulares, series temporales, grafos, texto, imágenes y audio. Más de 60 detectores, orquestación de ADEngine respaldada por benchmarks y un flujo de trabajo agéntico para agentes de IA. | Kitploit
Herramientas/GitHubGitHub/yzhao062/pyod
Aprendizaje AutomáticoDetección de Anomalías
GitHubyzhao062/pyod

pyod

Una librería de Python para la detección de anomalías en datos tabulares, series temporales, grafos, texto, imágenes y audio. Más de 60 detectores, orquestación de ADEngine respaldada por benchmarks y un flujo de trabajo agéntico para agentes de IA.

Ver RepositorioSitio web
10.0k1.5khace 4 díasRevisado por Kitploit

Más Populares

Ver todos →

Descubre las herramientas más usadas por nuestra comunidad.

Explora todas las herramientas

Explora nuestra colección de herramientas

Ver todas las herramientas →
Compartir

.. image:: https://raw.githubusercontent.com/yzhao062/pyod/master/brand/pyod-icon.svg :target: https://pyod.dev :alt: Ecosistema PyOD :width: 84px

Detección de anomalías en Python (PyOD) 3

PyOD 3: Detección de anomalías agéntica a escala

|badge_website| |badge_pypi| |badge_anaconda| |badge_docs| |badge_stars| |badge_forks| |badge_downloads| |badge_testing| |badge_coverage| |badge_maintainability| |badge_license| |badge_benchmark|

.. |badge_website| image:: https://img.shields.io/badge/website-pyod.dev-990000 :target: https://pyod.dev :alt: Sitio web

.. |badge_pypi| image:: https://img.shields.io/pypi/v/pyod.svg?color=brightgreen :target: https://pypi.org/project/pyod/ :alt: Versión de PyPI

.. |badge_anaconda| image:: https://anaconda.org/conda-forge/pyod/badges/version.svg :target: https://anaconda.org/conda-forge/pyod :alt: Versión de Anaconda

.. |badge_docs| image:: https://readthedocs.org/projects/pyod/badge/?version=latest :target: https://pyod.readthedocs.io/en/latest/?badge=latest :alt: Estado de la documentación

.. |badge_stars| image:: https://img.shields.io/github/stars/yzhao062/pyod.svg :target: https://github.com/yzhao062/pyod/stargazers :alt: Estrellas de GitHub

.. |badge_forks| image:: https://img.shields.io/github/forks/yzhao062/pyod.svg?color=blue :target: https://github.com/yzhao062/pyod/network :alt: Forks de GitHub

.. |badge_downloads| image:: https://pepy.tech/badge/pyod :target: https://pepy.tech/project/pyod :alt: Descargas

.. |badge_testing| image:: https://github.com/yzhao062/pyod/actions/workflows/testing.yml/badge.svg :target: https://github.com/yzhao062/pyod/actions/workflows/testing.yml :alt: Pruebas

.. |badge_coverage| image:: https://coveralls.io/repos/github/yzhao062/pyod/badge.svg :target: https://coveralls.io/github/yzhao062/pyod :alt: Estado de la cobertura

.. |badge_maintainability| image:: https://api.codeclimate.com/v1/badges/bdc3d8d0454274c753c4/maintainability :target: https://codeclimate.com/github/yzhao062/Pyod/maintainability :alt: Mantenibilidad

.. |badge_license| image:: https://img.shields.io/github/license/yzhao062/pyod.svg :target: https://github.com/yzhao062/pyod/blob/master/LICENSE :alt: Licencia

.. |badge_benchmark| image:: https://img.shields.io/badge/ADBench-benchmark_results-pink :target: https://github.com/Minqi824/ADBench :alt: Benchmark


root@kitploit:~
**PyOD está listo para agentes.** Claude Code y Codex pueden usar la habilidad ``od-expert`` para dirigir investigaciones de ADEngine, mientras que los agentes compatibles con MCP pueden consultar el conocimiento de detectores y las herramientas de planificación de PyOD. La API clásica ``fit``/``predict`` permanece sin cambios.

PyOD 3 es la librería de Python más completa para la detección de anomalías. Cuatro pilares:

=========================== ======================================================================================== Pilar Qué significa =========================== ======================================================================================== Multi-Modal 61 detectores para datos tabulares, de series temporales, de grafos, de texto, de imágenes y de audio, una sola API Ciclo de vida completo Desde datos sin procesar hasta anomalías explicadas y orientación para los siguientes pasos en una sola llamada Agéntico od-expert convierte solicitudes en lenguaje natural en flujos de trabajo de ADEngine; MCP expone herramientas estructuradas para otros agentes Más utilizado Más de 46 millones de descargas; enrutamiento respaldado por benchmarks (ADBench, TSB-AD, BOND, NLP-ADBench) =========================== ========================================================================================

Instalación ^^^^^^^^^^^

Librería principal (requerida para todas las vías de activación):

.. code-block:: bash

root@kitploit:~
pip install pyod

Después elige la vía de activación que coincida con tu stack de agentes:

.. code-block:: bash

root@kitploit:~
# 1. Claude Code / Codex — enables the od-expert skill
pyod install skill              # Claude Code: user-global (~/.claude/skills/)
pyod install skill --project    # Codex: project-local (./skills/, Codex has no user-global dir)

# 2. Any MCP-compatible LLM — requires the optional mcp extra
pip install pyod[mcp]
pyod mcp serve                 # alias for `python -m pyod.mcp_server`

# 3. Pure Python — no extra step
#    from pyod.utils.ad_engine import ADEngine

Ejecuta pyod info en cualquier momento para ver la versión, el número de detectores y el estado de instalación de cada vía de activación. pyod info también detecta qué stack de agentes tienes instalado (~/.claude/ para Claude Code, ~/.codex/ para Codex) y recomienda el comando de instalación adecuado.

Para conda, instalación desde el código fuente, detalles de dependencias y solución de problemas, consulta la guía de instalación completa <https://pyod.readthedocs.io/en/latest/install.html>__. El comando heredado pyod-install-skill de la v3.0.0 sigue funcionando como alias de pyod install skill.

Detección de anomalías con 5 líneas de código (pip install pyod):

.. code-block:: python

root@kitploit:~
from pyod.models.iforest import IForest
clf = IForest()
clf.fit(X_train)
y_train_scores = clf.decision_scores_          # training anomaly scores
y_test_scores = clf.decision_function(X_test)   # test anomaly scores

Tres formas de usar PyOD:

========= ===================== ====================================================================== ======================================= Capa Nombre Cuándo usarla Punto de entrada ========= ===================== ====================================================================== ======================================= 1 API clásica Sabes qué detector quieres Ejemplos de la capa 1 <https://pyod.readthedocs.io/en/latest/examples/tabular.html>__ 2 ADEngine Quieres que PyOD elija, compare y evalúe automáticamente Tutorial de la capa 2 <https://pyod.readthedocs.io/en/latest/examples/adengine.html>__ 3 Investigación agéntica Quieres que un agente de IA dirija la OD mediante conversación natural Tutorial de la capa 3 <https://pyod.readthedocs.io/en/latest/examples/agentic.html>__ ========= ===================== ====================================================================== =======================================

Las capas 2 y 3 funcionan con ADEngine, el núcleo de orquestación del ciclo de vida de PyOD. El flujo completo de investigación multi-turno de la capa 3 está disponible a través de la habilidad od-expert para Claude Code y Codex. El servidor MCP (python -m pyod.mcp_server) expone diez herramientas sin estado para LLM compatibles con MCP, que abarcan consultas de conocimiento (list_detectors, explain_detector, compare_detectors, get_benchmarks), planificación (profile_data, plan_detection, build_detector) y detección (run_detection, analyze_results, explain_findings); las herramientas MCP con estado / se han pospuesto.

.. image:: https://raw.githubusercontent.com/yzhao062/pyod/development/docs/figs/agentic-demo.png :alt: Demo de investigación agéntica de PyOD 3 sobre el conjunto de datos de cardiotocografía :align: center :width: 720

La figura anterior muestra una conversación agéntica real de 5 turnos sobre el conjunto de datos UCI Cardiotocography. Consulta el tutorial completo <https://pyod.readthedocs.io/en/latest/examples/agentic.html>, el ejemplo agéntico ejecutable <https://github.com/yzhao062/pyod/blob/development/examples/agentic_example.py> o la demo HTML interactiva <https://htmlpreview.github.io/?https://github.com/yzhao062/pyod/blob/development/examples/agentic_demo.html>__.

Ecosistema y recursos de PyOD: NLP-ADBench <https://github.com/USC-FORTIS/NLP-ADBench>__ (detección de anomalías en NLP) | TODS <https://github.com/datamllab/tods>__ (series temporales) | PyGOD <https://pygod.org/>__ (grafos) | ADBench <https://github.com/Minqi824/ADBench>__ (benchmark) | AD-LLM <https://arxiv.org/abs/2412.11142>__ (AD basado en LLM) [#Yang2024ad]_ | Recursos <https://github.com/yzhao062/anomaly-detection-resources>__


Acerca de PyOD ^^^^^^^^^^^^^^

PyOD, creado en 2017, es la librería de Python para detección de anomalías que lleva más tiempo en funcionamiento y es la más utilizada. Con más de 46 millones de descargas <https://pepy.tech/project/pyod>, sirve tanto a la investigación académica (presente en Analytics Vidhya <https://www.analyticsvidhya.com/blog/2019/02/outlier-detection-python-pyod/>, KDnuggets <https://www.kdnuggets.com/2019/02/outlier-detection-methods-cheat-sheet.html>__ y Towards Data Science <https://towardsdatascience.com/anomaly-detection-for-dummies-15f148e559c1>__) como a productos comerciales.

V3 amplía la librería con ADEngine (orquestación del ciclo de vida) y la habilidad od-expert (flujo de trabajo agéntico), manteniendo la API clásica fit/predict totalmente compatible hacia atrás. V3 está construida sobre SUOD [#Zhao2021SUOD]_ para el entrenamiento paralelo rápido y numba JIT para aceleraciones por modelo.

Impacto y reconocimiento:

=================================== =========================================================================== Área Ejemplos =================================== =========================================================================== Espacio y ciencia La Agencia Espacial Europea benchmark de telemetría de la nave espacial OPS-SAT <https://www.nature.com/articles/s41597-025-05035-3>__ (Nature Scientific Data, 2025) usa PyOD para los 30 algoritmos. Despliegue empresarial Walmart (más de 1M de actualizaciones de precios diarias, KDD 2019), Databricks (framework Kakapo que integra PyOD con MLflow/Hyperopt; solución de detección de amenazas internas), IQVIA (más de 123K reclamaciones de farmacia), Altair AI Studio, Ericsson (patente WO2023166515A1 <https://patents.google.com/patent/WO2023166515A1>). Libros Outlier Detection in Python <https://www.manning.com/books/outlier-detection-in-python> (Brett Kennedy, Manning); Handbook of Anomaly Detection with Python (Chris Kuo, Columbia); Finding Ghosts in Your Data <https://link.springer.com/book/10.1007/978-1-4842-8870-2>__ (Kevin Feasel, Apress). Cursos DataCamp Anomaly Detection in Python <https://www.datacamp.com/courses/anomaly-detection-in-python>__ (más de 19M de estudiantes en la plataforma), Manning liveProject <https://www.manning.com/liveproject/using-pyod-and-ensembles-methods>, traducción completa de la documentación), japonés, coreano, alemán, español. =================================== ===========================================================================

Consulta la página de impacto completa <https://pyod.readthedocs.io/en/latest/impact.html>__ en Read the Docs para ver la lista completa de citas, despliegues empresariales, patentes y cobertura mediática.

Cómo citar PyOD:

Si usas PyOD en una publicación científica, agradeceríamos citas a los siguientes artículos:

PyOD 2: A Python Library for Outlier Detection with LLM-powered Model Selection <https://arxiv.org/abs/2412.12154>__ está disponible como preprint. Si usas PyOD en una publicación científica, agradeceríamos citas al siguiente artículo::

root@kitploit:~
@inproceedings{chen2025pyod,
  title={Pyod 2: A python library for outlier detection with llm-powered model selection},
  author={Chen, Sihan and Qian, Zhuangzhuang and Siu, Wingchun and Hu, Xingcan and Li, Jiaqi and Li, Shawn and Qin, Yuehan and Yang, Tiankai and Xiao, Zhuo and Ye, Wanghao and others},
  booktitle={Companion Proceedings of the ACM on Web Conference 2025},
  pages={2807--2810},
  year={2025}
}

El artículo de PyOD <http://www.jmlr.org/papers/volume20/19-011/19-011.pdf>__ se publicó en Journal of Machine Learning Research (JMLR) <http://www.jmlr.org/>__ (track MLOSS).::

root@kitploit:~
@article{zhao2019pyod,
    author  = {Zhao, Yue and Nasrullah, Zain and Li, Zheng},
    title   = {PyOD: A Python Toolbox for Scalable Outlier Detection},
    journal = {Journal of Machine Learning Research},
    year    = {2019},
    volume  = {20},
    number  = {96},
    pages   = {1-7},
    url     = {http://jmlr.org/papers/v20/19-011.html}
}

o::

root@kitploit:~
Zhao, Y., Nasrullah, Z. and Li, Z., 2019. PyOD: A Python Toolbox for Scalable Outlier Detection. Journal of machine learning research (JMLR), 20(96), pp.1-7.

Para una perspectiva más amplia sobre la detección de anomalías, consulta nuestros artículos de NeurIPS sobre ADBench <https://arxiv.org/abs/2206.09426>__ [#Han2022ADBench]_ y ADGym <https://arxiv.org/abs/2309.15376>__.

Tabla de contenido:

  • Referencia rápida de la API <#api-cheatsheet--reference>__
  • Benchmarks <#benchmarks>__
  • Algoritmos implementados <#implemented-algorithms>__ (Tabular, Series temporales, Grafos, Embedding)
  • Temas adicionales <#additional-topics>__ (Guardar/cargar modelos, SUOD, Umbrales)
  • Inicio rápido para detección de anomalías <#quick-start-for-outlier-detection>__
  • Cómo contribuir <#how-to-contribute>__
  • Criterios de inclusión <#inclusion-criteria>__

Referencia rápida de la API ^^^^^^^^^^^^^^^^^^^^^^^^^^^

La referencia completa de la API está dividida por modalidad en Documentación de PyOD <https://pyod.readthedocs.io/en/latest/>: Tabular <https://pyod.readthedocs.io/en/latest/pyod.models.tabular.html>, Series temporales <https://pyod.readthedocs.io/en/latest/pyod.models.timeseries.html>, Grafos <https://pyod.readthedocs.io/en/latest/pyod.models.graph.html>, Embedding <https://pyod.readthedocs.io/en/latest/pyod.models.embedding.html>, ADEngine <https://pyod.readthedocs.io/en/latest/pyod.ad_engine.html>, Utilidades <https://pyod.readthedocs.io/en/latest/pyod.utils.html>__. A continuación se muestra una hoja de referencia rápida para todos los detectores:

  • fit(X): Ajusta el detector. El parámetro y se ignora en los métodos no supervisados.
  • decision_function(X): Predice puntuaciones de anomalía sin procesar para X usando el detector ajustado.
  • predict(X): Determina si una muestra es un valor atípico o no como etiquetas binarias usando el detector ajustado.
  • predict_proba(X): Estima la probabilidad de que una muestra sea un valor atípico usando el detector ajustado.
  • predict_confidence(X): Evalúa la confianza del modelo por muestra (aplicable en predict y predict_proba) [#Perini2020Quantifying]_.
  • predict_with_rejection(X)\ : Permite que el detector rechace (es decir, se abstenga de hacer) predicciones muy inciertas (salida = -2) [#Perini2023Rejection]_.

Atributos clave de un modelo ajustado:

  • decision_scores_: Puntuaciones de anomalía de los datos de entrenamiento. Las puntuaciones más altas suelen indicar un comportamiento más anormal. Los valores atípicos suelen tener puntuaciones más altas.
  • labels_: Etiquetas binarias de los datos de entrenamiento, donde 0 indica valores normales y 1 indica valores atípicos/anomalías.

Benchmarks ^^^^^^^^^^

  • ADBench <https://github.com/Minqi824/ADBench>__ [#Han2022ADBench]_: 30 algoritmos en 57 conjuntos de datos tabulares. Consulta la comparación <https://github.com/yzhao062/pyod/blob/master/examples/compare_all_models.py>__.
  • NLP-ADBench <https://github.com/USC-FORTIS/NLP-ADBench>__: 19 métodos en 8 conjuntos de datos de texto. El enfoque de dos pasos (embedding + detector) supera al extremo a extremo.
  • TSB-AD <https://github.com/TheDatumOrg/TSB-AD>__ [#Liu2024TSB]_: 40 algoritmos en 1070 conjuntos de datos de series temporales (NeurIPS 2024).
  • BOND <https://arxiv.org/abs/2206.10071>__ [#Liu2022BOND]_: 14 algoritmos de detección de anomalías en grafos en 14 conjuntos de datos (NeurIPS 2022).

Temas adicionales ^^^^^^^^^^^^^^^^^

  • Guardado y carga de modelos <https://pyod.readthedocs.io/en/latest/model_persistence.html>: Usa joblib o pickle para guardar y cargar modelos de PyOD. Consulta el ejemplo <https://github.com/yzhao062/pyod/blob/master/examples/save_load_model_example.py>.
  • Entrenamiento rápido con SUOD <https://pyod.readthedocs.io/en/latest/fast_train.html>: Acelera el entrenamiento y la predicción con el framework SUOD [#Zhao2021SUOD]_. Consulta el ejemplo <https://github.com/yzhao062/pyod/blob/master/examples/suod_example.py>.
  • Umbrales para puntuaciones de anomalías <https://pyod.readthedocs.io/en/latest/thresholding.html>: Enfoques basados en datos para establecer niveles de contaminación mediante PyThresh <https://github.com/KulikDM/pythresh>.

Algoritmos implementados ^^^^^^^^^^^^^^^^^^^^^^^^

PyOD está organizado en dos grupos funcionales: (i) Algoritmos de detección, con subsecciones dedicadas para datos tabulares, de series temporales, de grafos y de audio (EmbeddingOD dentro de la tabla tabular añade soporte para texto e imágenes mediante codificadores de modelos fundacionales); y (ii) Funciones de utilidad para generación de datos, evaluación y orquestación del ciclo de vida.

(i-a) Algoritmos de detección tabulares y multimodales :

.. list-table:: :widths: 15 14 58 5 8 :header-rows: 1* - Tipo - Abrev - Algoritmo - Año - Ref

    • Probabilístico
    • ECOD
    • Detección no supervisada de outliers mediante funciones de distribución acumulada empíricas (ejemplo <https://github.com/yzhao062/pyod/blob/development/examples/ecod_example.py>__)
    • 2022
    • [#Li2021ECOD]_
    • Probabilístico
    • ABOD
    • Detección de outliers basada en ángulos (ejemplo <https://github.com/yzhao062/pyod/blob/development/examples/abod_example.py>__)
    • 2008
    • [#Kriegel2008Angle]_
    • Probabilístico
    • FastABOD
    • Detección rápida de outliers basada en ángulos mediante aproximación (ejemplo <https://github.com/yzhao062/pyod/blob/development/examples/abod_example.py>__)
    • 2008
    • [#Kriegel2008Angle]_
    • Probabilístico
    • COPOD
    • COPOD: Detección de outliers basada en cópulas (ejemplo <https://github.com/yzhao062/pyod/blob/development/examples/copod_example.py>__)
    • 2020
    • [#Li2020COPOD]_
    • Probabilístico
    • MAD
    • Desviación absoluta mediana (MAD) (ejemplo <https://github.com/yzhao062/pyod/blob/development/examples/mad_example.py>__)
    • 1993
    • [#Iglewicz1993How]_
    • Probabilístico
    • SOS
    • Selección estocástica de outliers (__)

Los métodos de ensemble (IForest, INNE, DIF, FB, LSCP, LODA, SUOD, XGBOD) están incluidos en la tabla anterior. Las funciones de combinación de puntuaciones (average, maximization, AOM, MOA, median, majority vote) se encuentran en pyod.models.combination. Consulta documentación de la API <https://pyod.readthedocs.io/en/latest/pyod.models.tabular.html>__ para más detalles.

(i-b) Detección de anomalías en series temporales :

Todos los detectores de series temporales usan la misma API fit/predict/decision_function que los detectores tabulares, con una excepción: MatrixProfile es transductivo (solo entrenamiento; use decision_scores_ y labels_ después de fit(), sin predict fuera de la muestra).

Formato de entrada: array de numpy de forma (n_timestamps,) para univariante o (n_timestamps, n_channels) para multivariante. Cada fila es un paso de tiempo; las columnas son canales/características. Los Pandas DataFrames y las listas se convierten automáticamente. Salida: decision_scores_ de forma (n_timestamps,) con una puntuación de anomalía por paso de tiempo.

Detección de series temporales en 3 líneas:

.. code-block:: python

root@kitploit:~
from pyod.models.ts_kshape import KShape      # or any TS detector
clf = KShape(window_size=20)
clf.fit(X_train)                               # shape (n_timestamps,) or (n_timestamps, n_channels)
scores = clf.decision_scores_                  # per-timestamp anomaly scores

Ranking de algoritmos del benchmark TSB-AD <https://github.com/TheDatumOrg/TSB-AD>__ [#Liu2024TSB]_ (NeurIPS 2024, 1070 conjuntos de datos):

.. list-table:: :widths: 15 18 50 5 12 :header-rows: 1

    • Tipo
    • Abrev
    • Algoritmo
    • Año
    • Ref
    • Puente por ventanas
    • TimeSeriesOD
    • Cualquier detector de PyOD sobre ventanas deslizantes (ejemplo <https://github.com/yzhao062/pyod/blob/development/examples/ts_od_example.py>__)
    • 2026
    • Subsecuencia
    • MatrixProfile
    • Matrix Profile mediante STOMP, transductivo (ejemplo <https://github.com/yzhao062/pyod/blob/development/examples/ts_matrix_profile_example.py>__)
    • 2016
    • [#Yeh2016Matrix]_
    • Frecuencia
    • SpectralResidual
    • Residual espectral: saliencia basada en FFT (ejemplo <https://github.com/yzhao062/pyod/blob/development/examples/ts_spectral_residual_example.py>__)
    • 2019
    • [#Ren2019Time]_
    • Clustering
    • KShape
    • Clustering k-Shape (#2 en TSB-AD) (ejemplo <https://github.com/yzhao062/pyod/blob/development/examples/ts_kshape_example.py>__)
    • 2015
    • [#Paparrizos2015KShape]_
    • Streaming
    • SAND
    • Streaming con adaptación a deriva, experimental (ejemplo <https://github.com/yzhao062/pyod/blob/development/examples/ts_sand_example.py>__)
    • 2021

(i-c) Detección de anomalías en grafos (pip install pyod[graph]):

Todos los detectores de grafos son transductivos en v1: use decision_scores_ y labels_ después de fit(). No hay predict fuera de la muestra. Entrada: objeto Data de PyG con x (características de nodos) y edge_index (aristas COO). SCAN funciona sin características.

Detección en grafos en 3 líneas (pip install pyod[graph]):

.. code-block:: python

root@kitploit:~
from pyod.models.pyg_dominant import DOMINANT
clf = DOMINANT(hidden_dim=64, epochs=100)
clf.fit(data)                                  # PyG Data object
scores = clf.decision_scores_                  # per-node anomaly scores

Ranking de algoritmos del benchmark BOND <https://arxiv.org/abs/2206.10071>__ [#Liu2022BOND]_ (NeurIPS 2022, 14 conjuntos de datos):

.. list-table:: :widths: 18 18 45 5 14 :header-rows: 1

    • Tipo
    • Abrev
    • Algoritmo
    • Año
    • Ref
    • Autoencoder GCN
    • DOMINANT
    • AE GCN, reconstrucción de estructura + atributos (#1 profundo en BOND) (ejemplo de dominant <https://github.com/yzhao062/pyod/blob/development/examples/pyg_dominant_example.py>__)
    • 2019
    • [#Ding2019DOMINANT]_
    • Contrastivo
    • CoLA
    • Autosupervisado contrastivo, contexto de vecinos locales (#2 profundo en BOND) (ejemplo de cola <https://github.com/yzhao062/pyod/blob/development/examples/pyg_cola_example.py>__)
    • 2022
    • [#Liu2022CoLA]_
    • Contrastivo+AE
    • CONAD
    • Contrastivo con inyección de vista anómala + reconstrucción dual (ejemplo de conad <https://github.com/yzhao062/pyod/blob/development/examples/pyg_conad_example.py>__)
    • 2022
    • [#Xu2022CONAD]_
    • AE con atención
    • AnomalyDAE
    • Codificador de estructura GAT + codificador de atributos MLP (ejemplo de anomalydae <https://github.com/yzhao062/pyod/blob/development/examples/pyg_anomalydae_example.py>__)
    • 2020
    • [#Fan2020AnomalyDAE]_
    • AE de motivos
    • GUIDE
    • AE GCN dual sobre adyacencia original + motivos de triángulo (ejemplo de guide <https://github.com/yzhao062/pyod/blob/development/examples/pyg_guide_example.py>__)

(i-d) Detección de anomalías de audio (pip install pyod[audio]):

Los clips de audio usan la misma API fit/decision_function. Hay dos vías disponibles: una vía ligera de incrustar y luego detectar (EmbeddingOD.for_audio() convierte cada clip en un vector acústico artesanal de 74 dimensiones y ejecuta cualquier detector clásico), y un detector profundo dedicado (AudioAE, un autoencoder de reconstrucción log-mel). Las entradas son rutas de archivo, arrays de forma de onda o tuplas (waveform, sample_rate). Salida: una puntuación de anomalía por clip.

Detección de audio en 3 líneas (pip install pyod[audio]):

.. code-block:: python

root@kitploit:~
from pyod.models.embedding import EmbeddingOD
clf = EmbeddingOD.for_audio('balanced')        # 74-dim handcrafted features + KNN
clf.fit(train_clips)                            # list of file paths or waveform arrays
scores = clf.decision_scores_                  # per-clip anomaly scores

.. list-table:: :widths: 18 18 45 5 14 :header-rows: 1

    • Tipo
    • Abrev
    • Algoritmo
    • Año
    • Ref
    • Incrustar y detectar
    • EmbeddingOD
    • for_audio(): características MFCC, chroma y espectrales de 74 dimensiones con cualquier detector
    • 2026
    • AE profundo
    • AudioAE
    • Autoencoder de reconstrucción log-mel (línea base de DCASE 2020 Task 2)
    • 2020

(ii) Funciones de utilidad:=================== ============================ ===================================================================================================================================================== Tipo Nombre Función =================== ============================ ===================================================================================================================================================== Datos generate_data Generación de datos sintetizados; datos normales de una Gaussiana multivariante, valores atípicos de una distribución uniforme Datos generate_data_clusters Generación de datos sintetizados en clústeres para patrones más complejos Evaluación evaluate_print Imprime ROC-AUC y Precision @ Rank n de un detector Evaluación precision_n_scores Calcula Precision @ Rank n Utilidad get_label_n Convierte las puntuaciones de anomalía brutas en etiquetas binarias asignando 1 a las n puntuaciones más altas Estadística wpearsonr Calcula la correlación de Pearson ponderada de dos muestras Codificación resolve_encoder Resuelve un codificador a partir de un nombre de cadena, una instancia de BaseEncoder o un invocable Codificación SentenceTransformerEncoder Codifica texto mediante modelos de sentence-transformers (p. ej., MiniLM, mpnet) Codificación OpenAIEncoder Codifica texto mediante la API de OpenAI Embeddings (text-embedding-3-small/large) Codificación HuggingFaceEncoder Codifica texto o imágenes mediante transformers de HuggingFace (BERT, DINOv2, CLIP) =================== ============================ =====================================================================================================================================================


Inicio rápido para la detección de anomalías ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

PyOD ha sido ampliamente reconocido por la comunidad de aprendizaje automático con varios artículos destacados y tutoriales.

Analytics Vidhya: Un tutorial increíble para aprender detección de anomalías en Python usando la librería PyOD <https://www.analyticsvidhya.com/blog/2019/02/outlier-detection-python-pyod/>__

KDnuggets: Visualización intuitiva de métodos de detección de anomalías <https://www.kdnuggets.com/2019/02/outlier-detection-methods-cheat-sheet.html>, Una visión general de los métodos de detección de anomalías de PyOD <https://www.kdnuggets.com/2019/06/overview-outlier-detection-methods-pyod.html>

Towards Data Science: Detección de anomalías para principiantes <https://towardsdatascience.com/anomaly-detection-for-dummies-15f148e559c1>__

"examples/knn_example.py" <https://github.com/yzhao062/pyod/blob/master/examples/knn_example.py>__ demuestra la API básica del uso del detector kNN. Cabe señalar que la API en todos los demás algoritmos es consistente/similar.

Puede encontrar instrucciones más detalladas para ejecutar los ejemplos en el directorio de ejemplos <https://github.com/yzhao062/pyod/blob/master/examples>__.

#. Inicializa un detector kNN, ajusta el modelo y realiza la predicción.

.. code-block:: python

root@kitploit:~
   from pyod.models.knn import KNN   # kNN detector
   from pyod.utils.data import generate_data

   contamination = 0.1  # percentage of outliers
   n_train = 200  # number of training points
   n_test = 100  # number of testing points

   # generate sample data
   X_train, X_test, y_train, y_test = generate_data(
       n_train=n_train, n_test=n_test, n_features=2,
       contamination=contamination, random_state=42)

   # train kNN detector
   clf_name = 'KNN'
   clf = KNN()
   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

   # it is possible to get the prediction confidence as well
   y_test_pred, y_test_pred_confidence = clf.predict(X_test, return_confidence=True)  # outlier labels (0 or 1) and confidence in the range of [0,1]

#. Evalúa la predicción mediante ROC y Precision @ Rank n (p@n).

.. code-block:: python

root@kitploit:~
   from pyod.utils.data import evaluate_print
   
   # evaluate and print the results
   print("\nOn Training Data:")
   evaluate_print(clf_name, y_train, y_train_scores)
   print("\nOn Test Data:")
   evaluate_print(clf_name, y_test, y_test_scores)

#. Consulta un ejemplo de salida y visualización.

.. code-block:: python

root@kitploit:~
   On Training Data:
   KNN ROC:0.9992, precision @ rank n:0.95

   On Test Data:
   KNN ROC:1.0, precision @ rank n:1.0

.. code-block:: python

root@kitploit:~
   from pyod.utils.example import visualize

   visualize(clf_name, X_train, y_train, X_test, y_test, y_train_pred,
       y_test_pred, show_figure=True, save_figure=False)

Agradecimientos ^^^^^^^^^^^^^^^

Este material se basa en el trabajo financiado por la National Science Foundation bajo la subvención N.º 2346158 <https://www.nsf.gov/awardsearch/showAward?AWD_ID=2346158>_ para "NSF POSE: Phase II: OpenAD: An Integrated Open-Source Ecosystem for Anomaly Detection." La subvención menciona a la University of Illinois Chicago como la organización principal y al Illinois Institute of Technology, Lehigh University y la University of Southern California como organizaciones subreceptoras.

Las opiniones, hallazgos y conclusiones o recomendaciones expresados en este material son de los autores y no reflejan necesariamente los puntos de vista de la National Science Foundation.


Referencias ^^^^^^^^^^^

.. [#Aggarwal2015Outlier] Aggarwal, C.C., 2015. Outlier analysis. In Data mining (pp. 237-263). Springer, Cham.

.. [#Aggarwal2015Theoretical] Aggarwal, C.C. and Sathe, S., 2015. Theoretical foundations and algorithms for outlier ensembles.\ ACM SIGKDD Explorations Newsletter\ , 17(1), pp.24-47.

.. [#Aggarwal2017Outlier] Aggarwal, C.C. and Sathe, S., 2017. Outlier ensembles: An introduction. Springer.

.. [#Almardeny2020A] Almardeny, Y., Boujnah, N. and Cleary, F., 2020. A Novel Outlier Detection Method for Multivariate Data. IEEE Transactions on Knowledge and Data Engineering.

.. [#Angiulli2002Fast] Angiulli, F. and Pizzuti, C., 2002, August. Fast outlier detection in high dimensional spaces. In European Conference on Principles of Data Mining and Knowledge Discovery pp. 15-27.

.. [#Arning1996A] Arning, A., Agrawal, R. and Raghavan, P., 1996, August. A Linear Method for Deviation Detection in Large Databases. In KDD (Vol. 1141, No. 50, pp. 972-981).

.. [#Bandaragoda2018Isolation] Bandaragoda, T. R., Ting, K. M., Albrecht, D., Liu, F. T., Zhu, Y., and Wells, J. R., 2018, Isolation-based anomaly detection using nearest-neighbor ensembles. Computational Intelligence\ , 34(4), pp. 968-998.

.. [#Breunig2000LOF] Breunig, M.M., Kriegel, H.P., Ng, R.T. and Sander, J., 2000, May. LOF: identifying density-based local outliers. ACM Sigmod Record\ , 29(2), pp. 93-104.

.. [#Burgess2018Understanding] Burgess, Christopher P., et al. "Understanding disentangling in beta-VAE." arXiv preprint arXiv:1804.03599 (2018).

.. [#Campello2013Density] Campello, R.J.G.B., Moulavi, D. and Sander, J., 2013, April. Density-based clustering based on hierarchical density estimates. In Pacific-Asia Conference on Knowledge Discovery and Data Mining (pp. 160-172). Springer.

.. [#Cook1977Detection] Cook, R.D., 1977. Detection of influential observation in linear regression. Technometrics, 19(1), pp.15-18.

.. [#Chen2024PyOD] Chen, S., Qian, Z., Siu, W., Hu, X., Li, J., Li, S., Qin, Y., Yang, T., Xiao, Z., Ye, W. and Zhang, Y., 2024. PyOD 2: A Python Library for Outlier Detection with LLM-powered Model Selection. arXiv preprint arXiv:2412.12154.

.. [#Fang2001Wrap] Fang, K.T. and Ma, C.X., 2001. Wrap-around L2-discrepancy of random sampling, Latin hypercube and uniform designs. Journal of complexity, 17(4), pp.608-624.

.. [#Goldstein2012Histogram] Goldstein, M. and Dengel, A., 2012. Histogram-based outlier score (hbos): A fast unsupervised anomaly detection algorithm. In KI-2012: Poster and Demo Track\ , pp.59-63.

.. [#Goodge2022Lunar] Goodge, A., Hooi, B., Ng, S.K. and Ng, W.S., 2022, June. Lunar: Unifying local outlier detection methods via graph neural networks. In Proceedings of the AAAI Conference on Artificial Intelligence.

.. [#Gopalan2019PIDForest] Gopalan, P., Sharan, V. and Wieder, U., 2019. PIDForest: Anomaly Detection via Partial Identification. In Advances in Neural Information Processing Systems, pp. 15783-15793.

.. [#Han2022ADBench] Han, S., Hu, X., Huang, H., Jiang, M. and Zhao, Y., 2022. ADBench: Anomaly Detection Benchmark. arXiv preprint arXiv:2206.09426.

.. [#Hardin2004Outlier] Hardin, J. and Rocke, D.M., 2004. Outlier detection in the multiple cluster setting using the minimum covariance determinant estimator. Computational Statistics & Data Analysis\ , 44(4), pp.625-638.

.. [#He2003Discovering] He, Z., Xu, X. and Deng, S., 2003. Discovering cluster-based local outliers. Pattern Recognition Letters\ , 24(9-10), pp.1641-1650.

.. [#Hoffmann2007Kernel] Hoffmann, H., 2007. Kernel PCA for novelty detection. Pattern recognition, 40(3), pp.863-874.

.. [#Iglewicz1993How] Iglewicz, B. and Hoaglin, D.C., 1993. How to detect and handle outliers (Vol. 16). Asq Press.

.. [#Janssens2012Stochastic] Janssens, J.H.M., Huszár, F., Postma, E.O. and van den Herik, H.J., 2012. Stochastic outlier selection. Technical report TiCC TR 2012-001, Tilburg University, Tilburg Center for Cognition and Communication, Tilburg, The Netherlands.

.. [#Kingma2013Auto] Kingma, D.P. and Welling, M., 2013. Auto-encoding variational bayes. arXiv preprint arXiv:1312.6114.

.. [#Kriegel2008Angle] Kriegel, H.P. and Zimek, A., 2008, August. Angle-based outlier detection in high-dimensional data. In KDD '08\ , pp. 444-452. ACM.

.. [#Kriegel2009Outlier] Kriegel, H.P., Kröger, P., Schubert, E. and Zimek, A., 2009, April. Outlier detection in axis-parallel subspaces of high dimensional data. In Pacific-Asia Conference on Knowledge Discovery and Data Mining\ , pp. 831-838. Springer, Berlin, Heidelberg.

.. [#Latecki2007Outlier] Latecki, L.J., Lazarevic, A. and Pokrajac, D., 2007, July. Outlier detection with kernel density functions. In International Workshop on Machine Learning and Data Mining in Pattern Recognition (pp. 61-75). Springer, Berlin, Heidelberg.

.. [#Lazarevic2005Feature] Lazarevic, A. and Kumar, V., 2005, August. Feature bagging for outlier detection. In KDD '05. 2005.

.. [#Li2024NLPADBench] Li, Y., Li, J., Xiao, Z., Yang, T., Nian, Y., Hu, X. and Zhao, Y., 2025. NLP-ADBench: NLP Anomaly Detection Benchmark. In Findings of the Association for Computational Linguistics: EMNLP 2025.

.. [#Li2019MADGAN] Li, D., Chen, D., Jin, B., Shi, L., Goh, J. and Ng, S.K., 2019, September. MAD-GAN: Multivariate anomaly detection for time series data with generative adversarial networks. In International Conference on Artificial Neural Networks (pp. 703-716). Springer, Cham.

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

.. [#Li2021ECOD] Li, Z., Zhao, Y., Hu, X., Botta, N., Ionescu, C. and Chen, H. G. ECOD: Unsupervised Outlier Detection Using Empirical Cumulative Distribution Functions. IEEE Transactions on Knowledge and Data Engineering (TKDE), 2022.

.. [#Liu2008Isolation] Liu, F.T., Ting, K.M. and Zhou, Z.H., 2008, December. Isolation forest. In International Conference on Data Mining\ , pp. 413-422. IEEE.

.. [#Liu2019Generative] Liu, Y., Li, Z., Zhou, C., Jiang, Y., Sun, J., Wang, M. and He, X., 2019. Generative adversarial active learning for unsupervised outlier detection. IEEE Transactions on Knowledge and Data Engineering.

.. [#Nguyen2019scalable] Nguyen, M.N. and Vien, N.A., 2019. Scalable and interpretable one-class svms with deep learning and random fourier features. In Machine Learning and Knowledge Discovery in Databases: European Conference, ECML PKDD, 2018.

.. [#Pang2019Deep] Pang, Guansong, Chunhua Shen, and Anton Van Den Hengel. "Deep anomaly detection with deviation networks." In KDD, pp. 353-362. 2019.

.. [#Papadimitriou2003LOCI] Papadimitriou, S., Kitagawa, H., Gibbons, P.B. and Faloutsos, C., 2003, March. LOCI: Fast outlier detection using the local correlation integral. In ICDE '03, pp. 315-326. IEEE.

.. [#Pevny2016Loda] Pevný, T., 2016. Loda: Lightweight on-line detector of anomalies. Machine Learning, 102(2), pp.275-304.

.. [#Perini2020Quantifying] Perini, L., Vercruyssen, V., Davis, J. Quantifying the confidence of anomaly detectors in their example-wise predictions. In Joint European Conference on Machine Learning and Knowledge Discovery in Databases (ECML-PKDD), 2020.

.. [#Perini2023Rejection] Perini, L., Davis, J. Unsupervised anomaly detection with rejection. In Proceedings of the Thirty-Seven Conference on Neural Information Processing Systems (NeurIPS), 2023.

.. [#Ramaswamy2000Efficient] Ramaswamy, S., Rastogi, R. and Shim, K., 2000, May. Efficient algorithms for mining outliers from large data sets. ACM Sigmod Record\ , 29(2), pp. 427-438.

.. [#Rousseeuw1999A] Rousseeuw, P.J. and Driessen, K.V., 1999. A fast algorithm for the minimum covariance determinant estimator. Technometrics\ , 41(3), pp.212-223.

.. [#Ruff2018Deep] Ruff, L., Vandermeulen, R., Goernitz, N., Deecke, L., Siddiqui, S.A., Binder, A., Müller, E. and Kloft, M., 2018, July. Deep one-class classification. In International conference on machine learning (pp. 4393-4402). PMLR.

.. [#Schlegl2017Unsupervised] Schlegl, T., Seeböck, P., Waldstein, S.M., Schmidt-Erfurth, U. and Langs, G., 2017, June. Unsupervised anomaly detection with generative adversarial networks to guide marker discovery. In International conference on information processing in medical imaging (pp. 146-157). Springer, Cham.

.. [#Scholkopf2001Estimating] Scholkopf, B., Platt, J.C., Shawe-Taylor, J., Smola, A.J. and Williamson, R.C., 2001. Estimating the support of a high-dimensional distribution. Neural Computation, 13(7), pp.1443-1471.

.. [#Shyu2003A] Shyu, M.L., Chen, S.C., Sarinnapakorn, K. and Chang, L., 2003. A novel anomaly detection scheme based on principal component classifier. MIAMI UNIV CORAL GABLES FL DEPT OF ELECTRICAL AND COMPUTER ENGINEERING.

.. [#Sugiyama2013Rapid] Sugiyama, M. and Borgwardt, K., 2013. Rapid distance-based outlier detection via sampling. Advances in neural information processing systems, 26.

.. [#Tang2002Enhancing] Tang, J., Chen, Z., Fu, A.W.C. and Cheung, D.W., 2002, May. Enhancing effectiveness of outlier detections for low density patterns. In Pacific-Asia Conference on Knowledge Discovery and Data Mining, pp. 535-548. Springer, Berlin, Heidelberg.

.. [#Wang2020adVAE] Wang, X., Du, Y., Lin, S., Cui, P., Shen, Y. and Yang, Y., 2019. adVAE: A self-adversarial variational autoencoder with Gaussian anomaly prior knowledge for anomaly detection. Knowledge-Based Systems.

.. [#Xu2023Deep] Xu, H., Pang, G., Wang, Y., Wang, Y., 2023. Deep isolation forest for anomaly detection. IEEE Transactions on Knowledge and Data Engineering.

.. [#Yang2024ad] Yang, T., Nian, Y., Li, S., Xu, R., Li, Y., Li, J., Xiao, Z., Hu, X., Rossi, R., Ding, K. and Hu, X., 2024. AD-LLM: Benchmarking Large Language Models for Anomaly Detection. arXiv preprint arXiv:2412.11142.

.. [#You2017Provable] You, C., Robinson, D.P. and Vidal, R., 2017. Provable self-representation based outlier detection in a union of subspaces. In Proceedings of the IEEE conference on computer vision and pattern recognition.

.. [#Zenati2018Adversarially] Zenati, H., Romain, M., Foo, C.S., Lecouat, B. and Chandrasekhar, V., 2018, November. Adversarially learned anomaly detection. In 2018 IEEE International conference on data mining (ICDM) (pp. 727-736). IEEE.

.. [#Zhao2018XGBOD] Zhao, Y. and Hryniewicki, M.K. XGBOD: Improving Supervised Outlier Detection with Unsupervised Representation Learning. IEEE International Joint Conference on Neural Networks\ , 2018.

.. [#Zhao2019LSCP] Zhao, Y., Nasrullah, Z., Hryniewicki, M.K. and Li, Z., 2019, May. LSCP: Locally selective combination in parallel outlier ensembles. In Proceedings of the 2019 SIAM International Conference on Data Mining (SDM), pp. 585-593. Society for Industrial and Applied Mathematics.

.. [#Zhao2021SUOD] Zhao, Y., Hu, X., Cheng, C., Wang, C., Wan, C., Wang, W., Yang, J., Bai, H., Li, Z., Xiao, C., Wang, Y., Qiao, Z., Sun, J. and Akoglu, L. (2021). SUOD: Accelerating Large-scale Unsupervised Heterogeneous Outlier Detection. Conference on Machine Learning and Systems (MLSys).

.. [#Boniol2021SAND] Boniol, P., Paparrizos, J., Palpanas, T. and Franklin, M.J., 2021. SAND: Streaming Subsequence Anomaly Detection. Proceedings of the VLDB Endowment, 14(10), pp.1717-1729.

.. [#Malhotra2015Long] Malhotra, P., Vig, L., Shroff, G. and Agarwal, P., 2015. Long Short Term Memory Networks for Anomaly Detection in Time Series. In European Symposium on Artificial Neural Networks (ESANN).

.. [#Paparrizos2015KShape] Paparrizos, J. and Gravano, L., 2015. k-Shape: Efficient and Accurate Clustering of Time Series. In Proceedings of the 2015 ACM SIGMOD International Conference on Management of Data, pp.1855-1870.

.. [#Ren2019Time] Ren, H., Xu, B., Wang, Y., Yi, C., Huang, C., Kou, X., Xing, T., Yang, M., Tong, J. and Zhang, Q., 2019. Time-Series Anomaly Detection Service at Microsoft. In Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pp.3009-3017.

.. [#Xu2022Anomaly] Xu, J., Wu, H., Wang, J. and Long, M., 2022. Anomaly Transformer: Time Series Anomaly Detection with Association Discrepancy. In International Conference on Learning Representations (ICLR).

.. [#Yeh2016Matrix] Yeh, C.C.M., Zhu, Y., Ulanova, L., Begum, N., Ding, Y., Dau, H.A., Silva, D.F., Mueen, A. and Keogh, E., 2016. Matrix Profile I: All Pairs Similarity Joins for Time Series Subsequences. In 2016 IEEE 16th International Conference on Data Mining (ICDM), pp.1317-1322.

.. [#Ding2019DOMINANT] Ding, K., Li, J., Bhanushali, R. and Liu, H., 2019. Deep Anomaly Detection on Attributed Networks. In Proceedings of the 2019 SIAM International Conference on Data Mining, pp.594-602. SIAM.

.. [#Liu2022CoLA] Liu, Y., Li, Z., Pan, S., Gool, T., Xiang, T. and Gong, B., 2022. Anomaly Detection on Attributed Networks via Contrastive Self-Supervised Learning. In Proceedings of the ACM Web Conference 2022, pp.2137-2147.

.. [#Xu2022CONAD] Xu, Z., Huang, X., Zhao, Y., Dong, Y. and Li, J., 2022. Contrastive Attributed Network Anomaly Detection with Data Augmentation. In Pacific-Asia Conference on Knowledge Discovery and Data Mining, pp.444-457. Springer.

.. [#Fan2020AnomalyDAE] Fan, H., Zhang, F. and Li, Z., 2020. AnomalyDAE: Dual Autoencoder for Anomaly Detection on Attributed Networks. In Proceedings of the 29th ACM International Conference on Information and Knowledge Management, pp.747-756.

.. [#Yuan2021GUIDE] Yuan, X., Zhou, N., Yu, S., Huang, H., Chen, Z. and Xia, F., 2021. Higher-Order Structure Based Anomaly Detection on Attributed Networks. In 2021 IEEE International Conference on Big Data, pp.2691-2700. IEEE... [#Li2017Radar] Li, J., Dani, H., Hu, X. and Liu, H., 2017. Radar: Residual Analysis for Anomaly Detection in Attributed Networks. In Proceedings of the Twenty-Sixth International Joint Conference on Artificial Intelligence, pp.2152-2158.

.. [#Peng2018ANOMALOUS] Peng, Z., Luo, M., Li, J., Liu, H. and Zheng, Q., 2018. ANOMALOUS: A Joint Modeling Approach for Anomaly Detection on Attributed Networks. In Proceedings of the Twenty-Seventh International Joint Conference on Artificial Intelligence, pp.3529-3535.

.. [#Xu2007SCAN] Xu, X., Yuruk, N., Feng, Z. and Schweiger, T.A.J., 2007. SCAN: A Structural Clustering Algorithm for Networks. In Proceedings of the 13th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pp.824-833.

.. [#Liu2024TSB] Liu, Q., Boniol, P., Palpanas, T. and Paparrizos, J., 2024. TSB-AD: Towards A Reliable Time-Series Anomaly Detection Benchmark. In Advances in Neural Information Processing Systems (NeurIPS).

.. [#Liu2022BOND] Liu, K., Dou, Y., Zhao, Y., Ding, X., Hu, X., Zhang, R., Ding, K., Chen, C., Peng, H., Shu, K., Sun, L., Li, J., Chen, G.H., Jia, Z. and Yu, P.S., 2022. BOND: Benchmarking Unsupervised Outlier Node Detection on Static Attributed Graphs. In Advances in Neural Information Processing Systems (NeurIPS).

Descargar herramienta
investigate
iterate
, edición en vídeo de O'Reilly, múltiples cursos de Udemy. Podcasts Talk Python To Me #497 <https://talkpython.fm/episodes/show/497/outlier-detection-with-python>
Real Python Podcast #208 <https://realpython.com/podcasts/rpp/208/>
. Internacional Tutoriales en 5 idiomas además del inglés: chino (CSDN, Zhihu, 搜狐, 机器之心, aidoczh.com <https://www.aidoczh.com>
ejemplo <https://github.com/yzhao062/pyod/blob/development/examples/sos_example.py>
  • 2012
  • [#Janssens2012Stochastic]_
    • Probabilístico
    • QMCD
    • Detección de outliers por discrepancia quasi-Monte Carlo (ejemplo <https://github.com/yzhao062/pyod/blob/development/examples/qmcd_example.py>__)
    • 2001
    • [#Fang2001Wrap]_
    • Probabilístico
    • KDE
    • Detección de outliers con funciones de densidad kernel (ejemplo <https://github.com/yzhao062/pyod/blob/development/examples/kde_example.py>__)
    • 2007
    • [#Latecki2007Outlier]_
    • Probabilístico
    • Sampling
    • Detección rápida de outliers basada en distancia mediante muestreo (ejemplo <https://github.com/yzhao062/pyod/blob/development/examples/sampling_example.py>__)
    • 2013
    • [#Sugiyama2013Rapid]_
    • Probabilístico
    • GMM
    • Modelado de mezclas probabilístico para análisis de outliers (ejemplo <https://github.com/yzhao062/pyod/blob/development/examples/gmm_example.py>__)
    • [#Aggarwal2015Outlier]_ [Ch.2]
    • Modelo lineal
    • PCA
    • Análisis de componentes principales (suma de distancias proyectadas ponderadas a hiperplanos de autovectores) (ejemplo <https://github.com/yzhao062/pyod/blob/development/examples/pca_example.py>__)
    • 2003
    • [#Shyu2003A]_
    • Modelo lineal
    • KPCA
    • Análisis de componentes principales kernel (ejemplo <https://github.com/yzhao062/pyod/blob/development/examples/kpca_example.py>__)
    • 2007
    • [#Hoffmann2007Kernel]_
    • Modelo lineal
    • MCD
    • Determinante de covarianza mínima (distancias de Mahalanobis como puntuaciones de outliers) (ejemplo <https://github.com/yzhao062/pyod/blob/development/examples/mcd_example.py>__)
    • 1999
    • [#Hardin2004Outlier]_ [#Rousseeuw1999A]_
    • Modelo lineal
    • CD
    • Distancia de Cook para detección de outliers (ejemplo <https://github.com/yzhao062/pyod/blob/development/examples/cd_example.py>__)
    • 1977
    • [#Cook1977Detection]_
    • Modelo lineal
    • OCSVM
    • Máquinas de vectores de soporte de una clase (ejemplo <https://github.com/yzhao062/pyod/blob/development/examples/ocsvm_example.py>__)
    • 2001
    • [#Scholkopf2001Estimating]_
    • Modelo lineal
    • LMDD
    • Detección de outliers basada en desviación (LMDD) (ejemplo <https://github.com/yzhao062/pyod/blob/development/examples/lmdd_example.py>__)
    • 1996
    • [#Arning1996A]_
    • Basado en proximidad
    • LOF
    • Factor local de outlier (ejemplo <https://github.com/yzhao062/pyod/blob/development/examples/lof_example.py>__)
    • 2000
    • [#Breunig2000LOF]_
    • Basado en proximidad
    • COF
    • Factor de outlier basado en conectividad (ejemplo <https://github.com/yzhao062/pyod/blob/development/examples/cof_example.py>__)
    • 2002
    • [#Tang2002Enhancing]_
    • Basado en proximidad
    • (Incr.) COF
    • Factor de outlier basado en conectividad eficiente en memoria (más lento, almacenamiento reducido) (ejemplo <https://github.com/yzhao062/pyod/blob/development/examples/cof_example.py>__)
    • 2002
    • [#Tang2002Enhancing]_
    • Basado en proximidad
    • CBLOF
    • Factor local de outlier basado en clustering (ejemplo <https://github.com/yzhao062/pyod/blob/development/examples/cblof_example.py>__)
    • 2003
    • [#He2003Discovering]_
    • Basado en proximidad
    • LOCI
    • LOCI: detección rápida de outliers mediante integral de correlación local (ejemplo <https://github.com/yzhao062/pyod/blob/development/examples/loci_example.py>__)
    • 2003
    • [#Papadimitriou2003LOCI]_
    • Basado en proximidad
    • HBOS
    • Puntuación de outlier basada en histograma (ejemplo <https://github.com/yzhao062/pyod/blob/development/examples/hbos_example.py>__)
    • 2012
    • [#Goldstein2012Histogram]_
    • Basado en proximidad
    • HDBSCAN
    • Clustering basado en densidad mediante estimaciones de densidad jerárquicas (ejemplo <https://github.com/yzhao062/pyod/blob/development/examples/hdbscan_example.py>__)
    • 2013
    • [#Campello2013Density]_
    • Basado en proximidad
    • kNN
    • k vecinos más cercanos (distancia al k-ésimo vecino como puntuación de outlier) (ejemplo <https://github.com/yzhao062/pyod/blob/development/examples/knn_example.py>__)
    • 2000
    • [#Ramaswamy2000Efficient]_
    • Basado en proximidad
    • AvgKNN
    • kNN promedio (distancia media a k vecinos como puntuación de outlier) (ejemplo <https://github.com/yzhao062/pyod/blob/development/examples/knn_example.py>__)
    • 2002
    • [#Angiulli2002Fast]_
    • Basado en proximidad
    • MedKNN
    • kNN mediana (distancia mediana a k vecinos como puntuación de outlier) (ejemplo <https://github.com/yzhao062/pyod/blob/development/examples/knn_example.py>__)
    • 2002
    • [#Angiulli2002Fast]_
    • Basado en proximidad
    • SOD
    • Detección de outliers en subespacios (ejemplo <https://github.com/yzhao062/pyod/blob/development/examples/sod_example.py>__)
    • 2009
    • [#Kriegel2009Outlier]_
    • Basado en proximidad
    • ROD
    • Detección de outliers basada en rotaciones (ejemplo <https://github.com/yzhao062/pyod/blob/development/examples/rod_example.py>__)
    • 2020
    • [#Almardeny2020A]_
    • Ensembles de outliers
    • IForest
    • Bosque de aislamiento (ejemplo <https://github.com/yzhao062/pyod/blob/development/examples/iforest_example.py>__)
    • 2008
    • [#Liu2008Isolation]_
    • Ensembles de outliers
    • INNE
    • Detección de anomalías basada en aislamiento mediante ensembles de vecinos más cercanos (ejemplo <https://github.com/yzhao062/pyod/blob/development/examples/inne_example.py>__)
    • 2018
    • [#Bandaragoda2018Isolation]_
    • Ensembles de outliers
    • DIF
    • Bosque de aislamiento profundo para detección de anomalías (ejemplo <https://github.com/yzhao062/pyod/blob/development/examples/dif_example.py>__)
    • 2023
    • [#Xu2023Deep]_
    • Ensembles de outliers
    • FB
    • Bagging de características (ejemplo <https://github.com/yzhao062/pyod/blob/development/examples/feature_bagging_example.py>__)
    • 2005
    • [#Lazarevic2005Feature]_
    • Ensembles de outliers
    • LSCP
    • LSCP: combinación localmente selectiva de ensembles de outliers paralelos (ejemplo <https://github.com/yzhao062/pyod/blob/development/examples/lscp_example.py>__)
    • 2019
    • [#Zhao2019LSCP]_
    • Ensembles de outliers
    • XGBOD
    • Detección de outliers basada en Extreme Boosting (Supervisado) (ejemplo <https://github.com/yzhao062/pyod/blob/development/examples/xgbod_example.py>__)
    • 2018
    • [#Zhao2018XGBOD]_
    • Ensembles de outliers
    • LODA
    • Detector en línea ligero de anomalías (ejemplo <https://github.com/yzhao062/pyod/blob/development/examples/loda_example.py>__)
    • 2016
    • [#Pevny2016Loda]_
    • Ensembles de outliers
    • SUOD
    • SUOD: Aceleración de OD heterogéneo no supervisado a gran escala (Aceleración) (ejemplo <https://github.com/yzhao062/pyod/blob/development/examples/suod_example.py>__)
    • 2021
    • [#Zhao2021SUOD]_
    • Redes neuronales
    • AutoEncoder
    • AutoEncoder totalmente conectado (error de reconstrucción como puntuación de outlier) (ejemplo <https://github.com/yzhao062/pyod/blob/development/examples/auto_encoder_example.py>__)
    • [#Aggarwal2015Outlier]_ [Ch.3]
    • Redes neuronales
    • VAE
    • AutoEncoder variacional (error de reconstrucción como puntuación de outlier) (ejemplo <https://github.com/yzhao062/pyod/blob/development/examples/vae_example.py>__)
    • 2013
    • [#Kingma2013Auto]_
    • Redes neuronales
    • Beta-VAE
    • AutoEncoder variacional con pérdida personalizada (gamma y capacidad) (ejemplo <https://github.com/yzhao062/pyod/blob/development/examples/vae_example.py>__)
    • 2018
    • [#Burgess2018Understanding]_
    • Redes neuronales
    • SO_GAAL
    • Aprendizaje activo generativo adversarial de objetivo único (ejemplo <https://github.com/yzhao062/pyod/blob/development/examples/so_gaal_example.py>__)
    • 2019
    • [#Liu2019Generative]_
    • Redes neuronales
    • MO_GAAL
    • Aprendizaje activo generativo adversarial de objetivos múltiples (ejemplo <https://github.com/yzhao062/pyod/blob/development/examples/mo_gaal_example.py>__)
    • 2019
    • [#Liu2019Generative]_
    • Redes neuronales
    • DeepSVDD
    • Clasificación profunda de una clase (ejemplo <https://github.com/yzhao062/pyod/blob/development/examples/deepsvdd_example.py>__)
    • 2018
    • [#Ruff2018Deep]_
    • Redes neuronales
    • AnoGAN
    • Detección de anomalías con redes generativas adversariales
    • 2017
    • [#Schlegl2017Unsupervised]_
    • Redes neuronales
    • ALAD
    • Detección de anomalías aprendida adversarialmente (ejemplo <https://github.com/yzhao062/pyod/blob/development/examples/alad_example.py>__)
    • 2018
    • [#Zenati2018Adversarially]_
    • Redes neuronales
    • AE1SVM
    • Máquina de vectores de soporte de una clase basada en autoencoder (ejemplo <https://github.com/yzhao062/pyod/blob/development/examples/ae1svm_example.py>__)
    • 2019
    • [#Nguyen2019scalable]_
    • Redes neuronales
    • DevNet
    • Detección profunda de anomalías con redes de desviación (ejemplo <https://github.com/yzhao062/pyod/blob/development/examples/devnet_example.py>__)
    • 2019
    • [#Pang2019Deep]_
    • Basado en grafos
    • R-Graph
    • Detección de outliers mediante R-graph (ejemplo <https://github.com/yzhao062/pyod/blob/development/examples/rgraph_example.py>__)
    • 2017
    • [#You2017Provable]_
    • Basado en grafos
    • LUNAR
    • LUNAR: unificación de métodos OD locales mediante redes neuronales de grafos (ejemplo <https://github.com/yzhao062/pyod/blob/development/examples/lunar_example.py>__)
    • 2022
    • [#Goodge2022Lunar]_
    • Basado en embeddings
    • EmbeddingOD
    • Detección de anomalías multimodal mediante embeddings de modelos fundacionales, texto, imagen y audio (ejemplo <https://github.com/yzhao062/pyod/blob/development/examples/embedding_od_example.py>__)
    • 2025
    • [#Li2024NLPADBench]_
  • [#Boniol2021SAND]_
    • Aprendizaje profundo
    • LSTMAD
    • Error de predicción LSTM + puntuación de Mahalanobis
    • 2015
    • [#Malhotra2015Long]_
    • Aprendizaje profundo
    • AnomalyTransformer
    • Transformer con discrepancia de asociación (experimental)
    • 2022
    • [#Xu2022Anomaly]_
  • 2021
  • [#Yuan2021GUIDE]_
    • Factor. matricial
    • Radar
    • Análisis residual mediante factorización matricial (ejemplo de radar <https://github.com/yzhao062/pyod/blob/development/examples/pyg_radar_example.py>__)
    • 2017
    • [#Li2017Radar]_
    • Factor. matricial
    • ANOMALOUS
    • MF conjunta con regularización laplaciana (ejemplo de anomalous <https://github.com/yzhao062/pyod/blob/development/examples/pyg_anomalous_example.py>__)
    • 2018
    • [#Peng2018ANOMALOUS]_
    • Estructural
    • SCAN
    • Clustering estructural, sin necesidad de características (ejemplo de scan <https://github.com/yzhao062/pyod/blob/development/examples/pyg_scan_example.py>__)
    • 2007
    • [#Xu2007SCAN]_