Back to Feed
Benchmarks & Evals

Improving Delay Detection in Business Processes

Original: Mind the Long Tail: Understanding the Difficulty of Delay Detection in Business Processes

Listen to the summary

Uses a voice available on your device

Audio options
On this page 4 sections
Related concepts 1 concepts

Key Takeaways

  • An uncertainty-aware model increased recall for delay detection from an average of 0.21 to 0.61 across evaluated datasets.
  • The uncertainty-aware model correctly identified 132 out of 175 high-delay cases in the BPIC20PTC log, while the baseline detected only 1.
  • Data-level techniques like SMOGN show mixed results, reducing error in few-shot regions by 8.0% but increasing total error by 17.5% across broader data distributions.
  • The authors identified significant limitations in current models, including a lack of clarity on the underlying sources of predictive uncertainty like process variability and concept drift.

Summary & Methodology Analysis

The research focuses on the persistent difficulty of identifying high-delay cases in business processes, where existing models often fail due to the rarity of these events. The team utilized a data-aware LSTM model, originally proposed by Navarin et al., which processes event prefixes encoded as sequences of feature vectors covering control-flow, temporal, and data attributes. To address the inherent imbalance in event log data, they tested the SMOGN technique, which mixes undersampling of frequent regions with oversampling of rare targets. While this approach improved performance for few-shot scenarios, it negatively impacted overall accuracy by increasing the nMAE in medium and many regions by 20.5% and 31.4% respectively.

Illustrative Implementation

A short sketch of the paper's core idea, not the authors' own code.

# Illustrative sketch (not from the paper)
import torch
import torch.nn as nn
from catboost import CatBoostClassifier

# 1. Encode prefix (placeholder function)
def encode_prefix(prefix):
    # returns tensor of shape (seq_len, feature_dim)
    return torch.tensor(prefix, dtype=torch.float32)

# 2. Data‑aware LSTM for remaining‑time prediction
class RemTimeLSTM(nn.Module):
    def __init__(self, input_dim, hidden_dim):
        super().__init__()
        self.lstm = nn.LSTM(input_dim, hidden_dim, batch_first=True)
        self.fc = nn.Linear(hidden_dim, 1)  # deterministic output
    def forward(self, x):
        _, (h_n, _) = self.lstm(x)
        return self.fc(h_n.squeeze(0))

# 3. Survival‑hazard head (discrete‑time) – returns K hazards
class SurvivalHead(nn.Module):
    def __init__(self, hidden_dim, K):
        super().__init__()
        self.fc = nn.Linear(hidden_dim, K)
        self.sigmoid = nn.Sigmoid()
    def forward(self, h):
        return self.sigmoid(self.fc(h))

# 4. Build full model
class DelayDetector(nn.Module):
    def __init__(self, input_dim, hidden_dim, K):
        super().__init__()
        self.lstm = nn.LSTM(input_dim, hidden_dim, batch_first=True)
        self.surv = SurvivalHead(hidden_dim, K)
    def forward(self, x):
        _, (h_n, _) = self.lstm(x)
        hazards = self.surv(h_n.squeeze(0))
        # mean remaining time = sum_{k} hazard_k * interval_width (placeholder)
        mean_rt = (hazards * torch.arange(1, hazards.size(1)+1, device=hazards.device)).sum(dim=1, keepdim=True)
        # uncertainty = std dev approximated by interval variance (placeholder)
        unc = hazards.std(dim=1, keepdim=True)
        return mean_rt, unc, hazards

# 5. Train LSTM + survival head (omitted – assume model trained)
model = DelayDetector(input_dim=30, hidden_dim=64, K=10)

# 6. Inference – extract features for classifier
prefix = [[0.1]*30] * 15  # dummy padded prefix
x = encode_prefix(prefix).unsqueeze(0)  # batch dim
mean_rt, unc, hazards = model(x)
features = torch.cat([mean_rt, unc, hazards], dim=1).detach().cpu().numpy()

# 7. Binary delay detection with CatBoost
cat = CatBoostClassifier(iterations=100, verbose=False)
# cat.fit(train_features, train_labels)  # training omitted
# pred = cat.predict(features)        # prediction

Cross-Examination & FAQs

A deeper dive clarifying mechanics, constraints, and baseline evaluations.

Q1. What is the primary problem addressed by this paper?

The paper addresses the difficulty of detecting high-delay cases in business processes, which often remain undetected by standard predictive models.

Q2. Did the researchers introduce a new model architecture?

The study evaluates existing architectures, including a data-aware LSTM and an uncertainty-aware pipeline that uses CatBoost to process output from a survival-based model.

Q3. What was the main improvement observed?

The uncertainty-aware model substantially improved recall across all datasets, moving from an average of 0.21 to 0.61.

Q4. How did the SMOGN technique perform?

SMOGN reduced nMAE in the few-shot region by 8.0%, but it increased error in the medium and many regions by 20.5% and 31.4%, leading to a 17.5% higher overall nMAE.

Q5. What components make up the uncertainty-aware pipeline?

The pipeline uses a discrete-time survival formulation to generate uncertainty estimates, which are then used as features for a CatBoost gradient boosting classifier.

Q6. What are the identified sources of predictive uncertainty?

The paper notes that sources are not fully disentangled but may stem from process variability, missing context, or concept drift.

Q7. What is the limitation of treating delay detection as a binary task?

Reformulating remaining time prediction as a binary task results in a loss of information and creates a dependence on the chosen threshold.

Q8. Did the study cover industrial settings?

The empirical evaluation was limited to publicly available event logs, so it remains an open question how findings generalize to industrial settings or different model architectures.

Q9. What input features are used for the models?

The LSTM model uses event prefixes encoded as sequences of feature vectors containing control-flow, temporal, and all data attributes, left-padded to a fixed length.

Flag an issue

What is wrong with this summary?

What is wrong?