Skip to main content

Activity and Sequence Detection Performance Measures: A package to evaluate activity detection results, including the sequence of events given multiple activity types.

Project description

AquDeM

https://img.shields.io/pypi/v/aqudem.svg Documentation Status

Activity and Sequence Detection Evaluation Metrics: A Comprehensive Tool for Event Log Comparison.

Installation

pip install aqudem

Usage

import aqudem

aqu_context = aqudem.Context("ground_truth_log.xes", "detected_log.xes")

aqu_context.activity_names # get all activity names present in log
aqu_context.case_ids # get all case IDs present in log

aqu_context.cross_correlation() # aggregate over all cases and activites
aqu_context.event_analysis(activity_name="Pack", case_id="1") # filter on case and activity
aqu_context.two_set(activity_name="Pack") # filter on activity, aggregate over cases

For a more detailed description of the available methods, please refer to the rest of the documentation.

Preface

  • Metrics to evaluate activity detection results

  • Input: two XES files, one with the ground truth and one with the detection results

  • Output: a set of metrics to evaluate the detection results

  • Prerequisites for the input files: the XES files must…

    • … have a sampling_freq in Hz associated with each case (only detected file), and each case must have the same sampling frequency

    • … have a concept:name attribute for each case (case ID), with a matching case ID in both files (ground truth and detected)

    • … have a time:timestamp attribute for each event

    • … have an concept:name attribute for each event (activity name)

    • … have a lifecycle:transition attribute for each event

    • … each start event must have a corresponding complete event; and only these two types of events are relevant for the analysis currently; activity executions with a duration of exactly zero are removed

An ACTIVITY_METRIC is a metric that is calculated for each activity type in each case separately. Available ACTIVITY_METRICs are:

A SEQUENCE_METRIC is a metric that is calculated for each case separately. Available SEQUENCE_METRICs are:

  • Damerau-Levenshtein Distance

  • Levenshtein Distance

All metrics are also available in appropriately normalized versions. For requests that span multiple cases, the results are aggregated. The default and only aggregation method is currently the mean. For more detailed definitions of the metrics, please refer to the documentation.

History

0.1.1 (2024-06-19)

  • Added additional validations and checks for the input logs, with helpful tips in errors in case of non-compliance.

  • Minor bug fixes.

0.1.0 (2024-06-19)

  • First release on PyPI.

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

aqudem-0.1.1.tar.gz (40.1 kB view details)

Uploaded Source

Built Distribution

aqudem-0.1.1-py3-none-any.whl (32.6 kB view details)

Uploaded Python 3

File details

Details for the file aqudem-0.1.1.tar.gz.

File metadata

  • Download URL: aqudem-0.1.1.tar.gz
  • Upload date:
  • Size: 40.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for aqudem-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8fcb3be8ba91a91b12584c982aa91c79b419eba08f90e8355d676c4acb75b540
MD5 ca22f0df7527d4f65a8449e61a82dd7c
BLAKE2b-256 d7e1703e44ba80da9aca77159dfc08bc6514f4b66f832c737921080daa8a7d57

See more details on using hashes here.

File details

Details for the file aqudem-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: aqudem-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 32.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for aqudem-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e638ff64c8af54e2ef856a94a7a454df0a58740004d653c943c98b6c391bb9f9
MD5 cd3aad276a4a04cbf03b1b9c21cca3a4
BLAKE2b-256 44269c679c4fd147f38f6910e3c7fd0953294188a38c7a7e3b35e37cdb7a8b08

See more details on using hashes here.

Supported by

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