Skip to main content

NeSy4PPM documentation

NeSy4PPM is the first Python package designed for both single-attribute (e.g., activity) and multi-attribute (e.g., activity and resource) suffix prediction in predictive process monitoring. It implements a Neuro-Symbolic (NeSy) system that integrates neural models with various types of symbolic background knowledge (BK), enabling accurate and compliant predictions even under concept drift.

NeSy4PPM offers the following key features:

  1. Symbolic knowledge integration: supports declarative and procedural BK, including DECLARE, MP-DECLARE (multi-perspective DECLARE), ProbDECLARE (probabilistic DECLARE), and Petri nets.

  2. Flexible learning: provides multiple prefix encoding methods and supports LSTM (Long Short-Term Memory) and Transformer architectures.

  3. Drift-aware prediction: contextualizes neural predictions using BK in real-time, enhancing prediction accuracy and compliance in dynamic environments.

Installation

We recommend using a virtual environment to avoid conflicts between your local Python setup and required libraries. You can use Conda or venv:

  1. Clone/download the NeSy4PPM project.

  2. Activate your virtual environment.

  3. Install the dependencies listed in requirements.txt using:: pip install -r requirements.txt

Alternatively, you can install NeSy4PPM directly from PyPi.

For ProbDECLARE BK conformance checking, install the Lydia backend using Docker:

  1. Install Docker

  2. Pull the Lydia image:

    docker pull whitemech/lydia:latest
  3. Make the Docker image executable under the name lydia. On Linux and macOS machines, the following commands should work:

    echo '#!/usr/bin/env sh' > lydia
    echo 'docker run -v$(pwd):/home/default whitemech/lydia lydia "$@"' >> lydia
    sudo chmod u+x lydia
    sudo mv lydia /usr/local/bin/

More information can be found at Logaut repository.

Tutorials

Here, you will find tutorials explaining how to utilize the different functionalities of NeSy4PPM. All tutorials can be downloaded and run from our Github. The tutorials use the Helpdesk log as a running example.

Repository Structure

  • NeSy4PPM/learning: contains the implementation of event log encoding and Neural Networks model training.

  • NeSy4PPM/ProbDeclmonitor: contains the implementation of suffix prediction using a contextualized Neural predictions with BK.

  • tests/: provides evaluation scripts for assessing the NeSy4PPM prediction performance.

  • docs/tutorials/: contains step-by-step guides and examples to help users get started with NeSy4PPM.

Metadata

Release files for nesy4ppm 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nesy4ppm 0.1
File Size Uploaded
nesy4ppm-0.1.tar.gz 7.0 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for nesy4ppm 0.1
File Interpreter ABI Platform
nesy4ppm-0.1-py3-none-any.whl Python 3 none any Details

Total release size: 7.1 MB

Release files / nesy4ppm-0.1.tar.gz

Download URL nesy4ppm-0.1.tar.gz
Size 7.0 MB
Tags Source
SHA-256 checksum
How to use checksums
fafe7d87c65c16f8cb39d6a4ab99f647a3d0c344f20f68c7660e8c6bc2009339
BLAKE2b-256 checksum
How to use checksums
009bff936e5b6c334ff77280487f141cda25476c488646150c9eac58e166da9f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.0

Release files / nesy4ppm-0.1-py3-none-any.whl

Download URL nesy4ppm-0.1-py3-none-any.whl
Size 99.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
681601616fbc3096eeeda82d2b7ce130b40cbd63d117426677dc128fb7829075
BLAKE2b-256 checksum
How to use checksums
2d48be18279fc45739319c9e3afb70c6165d06b7588c972ce309c5d6adf44585
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.0

Release history Release notifications | RSS feed

This release

0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page