Goal-Oriented Next Best Activity Recommendation using Reinforcement Learning

Prerna Agarwal, Avani Gupta, Renuka Sindhgatta, Sampath DechuarXiv 2022 · DOI

Introduction

In the field of Business Process Management (BPM), Predictive Process Monitoring (PPM) has traditionally focused on passive forecasting—identifying likely future states or potential delays. While useful, these systems often fail to provide actionable guidance. This research introduces a prescriptive framework for "Next Best Activity" (NBA) recommendations, moving beyond simple prediction to suggest sequences of activities that optimize specific business goals, such as minimizing completion time, while strictly adhering to process constraints.

Problem Statement

Existing NBA recommendation systems face three critical challenges:

  1. Conformance: Recommendations often suggest activities that are logically impossible or violate business regulations.
  2. Goal Blindness: Systems may prioritize frequent historical paths rather than those that achieve specific performance targets (e.g., meeting a 48-hour SLA).
  3. Outcome Bias: Pure optimization for speed can lead to "degenerate solutions," where an agent learns to reject all applications simply because rejection is faster than approval.

Proposed Framework

The authors propose an integrated architecture that combines process mining, deep learning, and reinforcement learning to address these hurdles.

Overview of the goal-oriented NBA recommendation framework.

As illustrated in the framework above, the system consists of three core components:

  • Process Discovery: The system analyzes historical event logs to generate a Directly-Follows Graph (DFG). This graph serves as a constraint map, ensuring that the recommendation engine only considers valid, conformant activities.
  • KPI Prediction Model: A GAN-LSTM (Generative Adversarial Network-based Long Short-Term Memory) model is employed to predict Key Performance Indicators (KPIs), specifically the time required for subsequent activities given the current process state.
  • Reinforcement Learning Agent: The "brain" of the system is a Maskable Proximal Policy Optimization (PPO) agent. By using action masking derived from the DFG, the agent is prevented from selecting non-conformant actions.

Reward Function Design

To solve the outcome bias problem, the agent utilizes a dual reward system. It balances a primary goal (e.g., completion time) with a "Balancing Reward" that encourages the agent to maintain a realistic distribution of process outcomes, such as the ratio of loan approvals to rejections found in historical data.

Formulas for Goal Satisfaction (GS) and Goal Violation (GV).

The mathematical formulation for goal-related rewards, shown above, allows the agent to quantify the distance between predicted outcomes and the target threshold ($\omega$).

Evaluation and Results

The framework was evaluated using four real-world event logs: Helpdesk (ticket management), BPIC12W (loan applications), Road Traffic Fine Management, and BPIC2019 (purchase orders). The results demonstrated significant improvements over state-of-the-art baselines:

  • 100% Conformance: The DFG masking ensured that every recommended activity was valid, whereas baseline models dropped to approximately 50% conformance on complex datasets like BPIC2019.
  • Enhanced Goal Satisfaction: In the Helpdesk dataset, the model achieved an 89.14% goal satisfaction rate, compared to 82.31% for the baseline.
  • Realistic Sequences: Using the Damerau-Levenshtein distance metric, the proposed model produced sequences that were more similar to actual historical successes than previous methods.

Conclusion

This research demonstrates that combining reinforcement learning with process constraints and multi-objective rewards can effectively prescribe paths to business success. By ensuring 100% conformance and mitigating outcome bias, the framework provides a robust foundation for automated decision-support systems. Future work will focus on incorporating more diverse data attributes (e.g., resource availability and financial values) and handling multiple, conflicting KPIs simultaneously.

Summary updated

BibTeX
@misc{agarwal2022goal,
  author = {Prerna Agarwal and Avani Gupta and Renuka Sindhgatta and Sampath Dechu},
  title = {{Goal-Oriented Next Best Activity Recommendation using Reinforcement Learning}},
  year = {2022},
  eprint = {2205.03219},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2205.03219},
}
Figure