Time series anomaly detection.
Project description
tsod: Anomaly Detection for time series data.
Sensors often provide faulty or missing observations. These anomalies must be detected automatically and replaced with more feasible values before feeding the data to numerical simulation engines as boundary conditions or real time decision systems.
This package aims to provide examples and algorithms for detecting anomalies in time series data specifically tailored to DHI users and the water domain. It is simple to install and deploy operationally and is accessible to everyone (open-source).
Getting Started
Installation
tsod is a pure Python library and runs on Windows, Linux and Mac.
From PyPI:
pip install tsod
Or development version:
pip install https://github.com/DHI/tsod/archive/main.zip
Vision
- A simple and consistent API for anomaly detection of timeseries
- The computational speed will be good for typical timeseries data found in the water domain, to support realtime detection
- It will have a suite of different algorithms ranging from simple rule-based to more advanced based on e.g. neural networks
Definitions
Note that we distinguish between two types of anomaly detection
-
Outlier detection (unsupervised anomaly detection) The training data may contain outliers, i.e. observations far from most other observations. Outlier detectors try to concentrate on the observations in the training data that similar and close together, and ignores observations further away.
-
Novelty detection (semi-supervised anomaly detection) The training data is considered "normal" and is not polluted by outliers. New test data observations can be categorized as an outlier and is in this context called a novelty.
Contribute to tsod
-
Follow PEP8 code style. This is automatically checked during Pull Requests.
-
If citing or re-using other code please make sure their license is also consistent with our policy.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tsod-0.3.0.tar.gz.
File metadata
- Download URL: tsod-0.3.0.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14019b934c93b287b05c6ec05a6de1278487533eecd8e66267ca0bb46807dc40
|
|
| MD5 |
3a7091458c400a4a90ae0f2297128016
|
|
| BLAKE2b-256 |
9aab594cb41a1ff5a9cf4de630ca840b28381e5da590876c5a719b6732d599ea
|
Provenance
The following attestation bundles were made for tsod-0.3.0.tar.gz:
Publisher:
python-publish.yml on DHI/tsod
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tsod-0.3.0.tar.gz -
Subject digest:
14019b934c93b287b05c6ec05a6de1278487533eecd8e66267ca0bb46807dc40 - Sigstore transparency entry: 910403969
- Sigstore integration time:
-
Permalink:
DHI/tsod@54418a578d3b2c9642b16bb51e4ed7bc98fbd598 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/DHI
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@54418a578d3b2c9642b16bb51e4ed7bc98fbd598 -
Trigger Event:
release
-
Statement type:
File details
Details for the file tsod-0.3.0-py3-none-any.whl.
File metadata
- Download URL: tsod-0.3.0-py3-none-any.whl
- Upload date:
- Size: 9.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
54d47d3b12962dfbff3a9b44472c9865062bd7ab48f180dc4ee1dab3c558ab1e
|
|
| MD5 |
ae14dba7aa72e7411fc4ff24261aad63
|
|
| BLAKE2b-256 |
9ef54cd23f631c9633408317904d70db0a70be66e6eafbc6b4034ea57089b2f1
|
Provenance
The following attestation bundles were made for tsod-0.3.0-py3-none-any.whl:
Publisher:
python-publish.yml on DHI/tsod
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tsod-0.3.0-py3-none-any.whl -
Subject digest:
54d47d3b12962dfbff3a9b44472c9865062bd7ab48f180dc4ee1dab3c558ab1e - Sigstore transparency entry: 910403979
- Sigstore integration time:
-
Permalink:
DHI/tsod@54418a578d3b2c9642b16bb51e4ed7bc98fbd598 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/DHI
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@54418a578d3b2c9642b16bb51e4ed7bc98fbd598 -
Trigger Event:
release
-
Statement type: