Trace Clustering on Very Large Event Data in Healthcare Using Frequent Sequence Patterns

Xixi Lu, Seyed Amin Tabatabaei, Mark Hoogendoorn, Hajo A. Reijers

This paper, presented by researchers from Utrecht University and Vrije Universiteit Amsterdam, tackles the "spaghetti model" problem in healthcare process mining. By leveraging small expert-provided samples and frequent sequence patterns, the authors propose a scalable way to group patients into meaningful clinical pathways.

TL;DR

The authors introduce a novel trace clustering approach that uses small, expert-defined patient samples to "learn" the behavioral signatures of specific medical conditions. By identifying Frequent Sequence Patterns (FSPs) and using them to rank and cluster the broader patient population, the method achieves high accuracy (up to 0.9 F1-score) and produces process maps that medical professionals find intuitive and actionable.

What Problem Does This Paper Address?

In the world of "Process Mining," researchers try to turn event logs (e.g., a timestamped list of every lab test, surgery, and consultation a patient receives) into visual process maps. In healthcare, this is notoriously difficult. A single hospital might generate millions of events across thousands of distinct activities.

Standard unsupervised clustering techniques (like k-means) often fail here for three reasons:

  1. Scalability: Comparing every patient's "trace" to every other patient's trace is computationally expensive.
  2. Clinical Irrelevance: Algorithms might group patients based on administrative similarities that have no medical meaning.
  3. Complexity: Patients with the same diagnosis often follow wildly different paths, leading to "spaghetti" diagrams that are impossible to interpret.

The gap the authors address is the lack of a clustering method that is both computationally efficient and aligned with the "mental models" of medical experts.

Methods

The authors propose a semi-supervised approach called Partial Trace Clustering. Instead of clustering the whole dataset at once, they find one cluster at a time using a "seed" sample.

  1. Seed Sampling: Medical experts provide a small list (e.g., 30 IDs) of patients known to belong to a specific group (e.g., "Kidney Failure").
  2. Frequent Sequence Pattern (FSP) Mining: Using the CloFAST algorithm, the system identifies patterns of activities that appear frequently in the seed sample. Crucially, they look for:
  3. Length 1 patterns: Frequent individual activities.
  4. Length 2 patterns: "Activity A is eventually followed by Activity B."
    • Closed patterns: The longest sequences that capture the core behavior without redundancy.
  5. Trace Ranking: Every patient in the entire database is scored based on how many of these expert-group patterns they match.
  6. Automated Thresholding: The system uses a heuristic to find the optimal "cutoff" score to decide who belongs in the final cluster, aiming to maximize recall while maintaining precision.
  7. Process Map Generation: The discovered patterns are used to create a simplified, readable process map for that specific cluster.

Datasets

The study utilized a massive real-world dataset from the VU University Medical Center Amsterdam:

  • Timeframe: 2013–2017.
  • Scale: 328,256 patients and over 15.5 million events.
  • Complexity: 7,426 unique activities and 2,251 unique diagnosis codes.
  • Ground Truth: The authors evaluated their method against expert-curated lists for three specific conditions: Kidney Injury, Diabetes, and Head/Neck Tumors.

Key Insights and Ideas

  • Sequences > Item Sets: Previous attempts used "Frequent Item Sets" (treating a patient's care as a "bag of activities"). This paper argues that the order of events is vital. For example, a lab test before surgery means something very different than one after surgery.
  • The Power of Small Samples: You don't need a perfectly labeled dataset of thousands. A "seed" of just 30 patients is enough to learn the behavioral criteria of a group.
  • Explainability via Patterns: Because the clusters are defined by specific sequences (e.g., "Creatinine test" followed by "Follow-up"), doctors can validate why a patient was put in a certain group. This moves away from "black box" clustering.

Key Results

The approach was implemented in the ProM process mining toolkit and yielded impressive quantitative and qualitative results:

  • Accuracy: The automated approach achieved F1-scores of 0.7 for Kidney Injury, 0.9 for Diabetes, and 0.64 for Head/Neck Tumors.
  • Improvement: In the Diabetes group, this sequence-based approach outperformed previous item-set-based methods by a margin of 0.2 to 0.3 in F1-score.
  • Simplification: For the Kidney group, the algorithm reduced a mess of 4,700 distinct activity labels down to 11 crucial behavioral markers, which were confirmed as clinically significant by medical staff.

Limitations and Future Work

  • Sample Dependency: The quality of the cluster depends heavily on the representativeness of the initial small sample provided by the experts.
  • Semantic Nuance: The process maps generated use "eventually-followed" semantics. While useful, these are different from formal Petri nets or BPMN models, which might be required for more rigorous compliance checking.
  • Future Directions: The authors plan to explore different strategies for selecting which sequence patterns are "best" for clustering and to test the system in different hospital environments to ensure generalizability.

Summary updated

BibTeX
@inproceedings{lu2019trace,
  author = {Xixi Lu and Seyed Amin Tabatabaei and Mark Hoogendoorn and Hajo A. Reijers},
  title = {{Trace Clustering on Very Large Event Data in Healthcare Using Frequent Sequence Patterns}},
  booktitle = {BPM},
  year = {2019},
  doi = {10.1007/978-3-030-26619-6\_14},
}
Figure