Skip to main content

Python tool to analyse process drifts

Project description

driftbench

Benchmarking framework for generating high-dimensional synthetic drifted data and evaluating models.

The corresponding open-access paper, Edgar Wolf and Tobias Windisch (2025), A method to benchmark high-dimensional process drift detection, describes the method in detail.

To run the benchmarks, execute:

python run_benchmarks.py

To visualize the model performance, run

import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
import numpy as np

def plot_benchmark(df):

    fig, axes = plt.subplots(ncols=3, figsize=(15, 5))
    sns.boxplot(data=df, x="TAUC", y="Detector", hue='Data',  native_scale=True, ax=axes[0])
    sns.boxplot(data=df, x="SoftTAUC", y="Detector", hue='Data', native_scale=True, ax=axes[1])
    sns.boxplot(data=df, x="AUC", y="Detector", hue='Data', native_scale=True, ax=axes[2])
    
    for ax in axes[1:]:
        ax.legend([])
        ax.set_yticklabels([])
    
    axes[0].set_xlabel('TAUC')
    axes[1].set_xlabel('sTAUC')
    axes[2].set_xlabel('AUC')
    for ax in axes:
        ax.grid()
        ax.set_ylabel('')
    fig.tight_layout()
    
    return fig

df = pd.read_json('benchmarks.json') 
fig = plot_benchmark(df)

Citation

Please cite driftbench if you use this framework in your publications:

@article{wolf_method_2025,
	title = {A method to benchmark high-dimensional process drift detection},
	issn = {1572-8145},
	url = {https://doi.org/10.1007/s10845-025-02590-9},
	doi = {10.1007/s10845-025-02590-9},
	journal = {Journal of Intelligent Manufacturing},
	author = {Wolf, Edgar and Windisch, Tobias},
	year = {2025},
}

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

driftbench-0.0.12.tar.gz (21.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

driftbench-0.0.12-py3-none-any.whl (24.1 kB view details)

Uploaded Python 3

File details

Details for the file driftbench-0.0.12.tar.gz.

File metadata

  • Download URL: driftbench-0.0.12.tar.gz
  • Upload date:
  • Size: 21.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for driftbench-0.0.12.tar.gz
Algorithm Hash digest
SHA256 fc26e55c472f23cec28bd09ea0bd839ba62012b2fde365c8644b84f4f8205f9c
MD5 929962a86d4322e5b26c30f685b7f9b8
BLAKE2b-256 7d8a992022782987aecd609eb0f853e46d159b4131d00f9d933f80a9bb0fe9f7

See more details on using hashes here.

File details

Details for the file driftbench-0.0.12-py3-none-any.whl.

File metadata

  • Download URL: driftbench-0.0.12-py3-none-any.whl
  • Upload date:
  • Size: 24.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for driftbench-0.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 792ce973683cdb9190233159f87f8c8f2e94a5b157183a3086982e54637e73e3
MD5 a5410c412cfce0cdb04225904e2b4515
BLAKE2b-256 0f5df710c9afbe4a58c3f0d0b8eb1e468e61b0857d8396029f5d95d1e04baafd

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