Skip to main content

Anomaly detection, impact explanation, forecasting, and alerting toolkit.

Project description

anomaly_impact_alert

Telegram Alert

Anomaly Impact Alert — a lightweight Python toolkit for detecting anomalies, forecasting metrics, explaining deviations, and sending alerts (e.g. via Telegram).


Purpose

This library helps analytics and monitoring teams automatically:

  • Detect abnormal metric values in time-series data
  • Forecast expected ranges (with confidence intervals)
  • Explain the drivers behind changes (countries, platforms, etc.)
  • Send structured alerts to Telegram

Demo Notebook

Anomaly Impact Alert is a lightweight Python toolkit for:

  • Anomaly detection (Z-Score, CI, STL, SESD, LOF, Isolation Forest, and more)
  • Forecasting metrics (Prophet, ETS, STL ensemble)
  • Explaining deviations (impact decomposition by segments)
  • Sending alerts (e.g., via Telegram)

This notebook demonstrates how to use anomaly_impact_alert in practice:

  • Data preparation
  • Anomaly detection workflow
  • Time-series forecasting
  • Contribution analysis across segments
  • Automated alert generation and explanations

Try it in Google Colab: 👉 Open in Colab


Example Output

Detection visualization

Shows detected anomalies (red dots), confidence intervals, and model outputs:

Anomaly Detection]

Telegram alert

Example of an automatically formatted alert with top contributing segments:

Telegram Alert

Quick Start

pip install anomaly_impact_alert

Try it in Google Colab: 👉 Open in Colab


Modules Overview

Module Description
anomaly_detector Detects anomalies using statistical and ML methods
forecast Forecasts values and confidence intervals
impact_explainer Explains which dimensions cause deviations
alert_bot_telegram Sends rich alerts to Telegram

Dependencies

pandas, numpy, scikit-learn, matplotlib, prophet, tqdm, requests, python-telegram-bot


License

MIT © 2025 Aleksey Voronko, Petr Devitsin

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

anomaly_impact_alert-0.4.1.tar.gz (668.4 kB view details)

Uploaded Source

File details

Details for the file anomaly_impact_alert-0.4.1.tar.gz.

File metadata

  • Download URL: anomaly_impact_alert-0.4.1.tar.gz
  • Upload date:
  • Size: 668.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for anomaly_impact_alert-0.4.1.tar.gz
Algorithm Hash digest
SHA256 c7ccb422e033c5fb56901c691e3379fb57f0b512b55f4bfbd0638001f4532bfd
MD5 bf17ac7a0d1e43241221e383aa453bbf
BLAKE2b-256 4ca42949fc9ea8f633f751009413c4595f9d2889d47ce011c301a19be6af521d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page