On the Creation of Object-Centric Event Logs from Patient Journeys

Saimir Bala, Neven Borak, Maximilian König, Anjo Seidel, Zeinab Soleimani, Lorenzo Famiglini, Lev Petrov, Jonas Witt, Mathias WeskearXiv 2026

TL;DR

Healthcare records usually only see what happens inside a single hospital's walls, missing the messy, multi-year reality of a patient’s actual life with a disease. This paper introduces a framework to transform unstructured, patient-reported narratives into Object-Centric Event Logs (OCELs)—a specialized data structure that lets researchers untangle overlapping illnesses, treatments, and clinical milestones without flattening away crucial context. Even better, their design preserves fuzzy dates and things that didn’t happen, which standard data pipelines normally throw in the trash.

What Problem Does This Paper Address?

Process mining is the science of reconstructing real-world workflows—complete with bottlenecks and detours—from digital footprints (event logs). In healthcare, this usually relies on hospital IT databases. That approach has a massive blind spot: patients bounce between clinics, private specialists, and unrecorded therapies. The only person who knows the whole story is the patient.

However, extracting process data directly from patients introduces three headaches:

  1. An "Open World": Accounts are incomplete, revised later, and full of fuzzy dates ("early 2023"). Plus, explicit non-events ("I never had surgery") matter clinically.
  2. Natural Language: Patients say "my voice turns nasal," not "bulbar muscle weakness."
  3. Intertwined Perspectives: Traditional process mining forces you to pick one "case" ID (like the Patient). If a patient has both an autoimmune disease and a thyroid condition, a flat timeline mashes all their diagnoses and drugs together. Object-Centric Event Logs (OCEL 2.0) solve this by tracking multiple interacting entities (patients, conditions, treatment courses) simultaneously—yet nobody had built a blueprint to generate OCELs from messy patient stories.

Methods

The authors propose a three-step pipeline to turn raw patient interviews, questionnaires, and clinical letters into OCEL 2.0 logs.

A three-step pipeline transforming raw patient narratives into structured Journey and Provenance OCELs.
  1. Event Extraction: Guided by a structured domain model, clinical "facts" (visits, symptoms, treatments), high-level milestones (e.g., misdiagnosis), and inter-event relations are pulled from raw evidence, flagged as occurred, negated, or intended.
  2. Temporal & Semantic Resolution: Vague dates become explicit date ranges with precision tags. Where dates are missing, a Large Language Model (LLM) infers temporal ordering from narrative phrasing (e.g., whether drug B replaced or joined drug A). Fuzzy string matching maps everyday phrasing to standardized clinical vocabularies while keeping the patient's exact words.
  3. Object-Centric Mapping: Rather than forcing every reported fact to be a timestamped event, the authors introduce five clever mapping principles:
  4. Facts become Objects; Occurrences become Events: Every reported fact becomes an object in the log. It only spawns a timestamped event if it actually happened at a known time. Negated, planned, or undated facts survive in the log as eventless objects!
  5. Dual Logging: Because OCEL 2.0 only allows one timestamp per attribute, the system outputs two logs: a Journey Log (when medical events happened) and a Provenance Log (when the patient reported or revised them).

Datasets

Because real patient narratives contain sensitive health data, the authors evaluated their pipeline on a synthetic cohort of 280 Myasthenia Gravis (MG) patients provided by their industry partner, mama health. Mimicking real-world data collection, this dataset spans 12,254 messages, 2,795 questionnaire answers, and 446 documents, yielding 13,684 extracted clinical facts and 2,267 milestones across MG and various comorbidities.

Key Insights and Ideas

  • Saving the "Dark Matter" of Patient Stories: Standard event logs drop anything lacking a clean timestamp. By separating facts (objects) from occurrences (events), this method keeps the 46.3% of patient-reported facts that are negated, future-intended, or undated.
  • Untangling Treatment Switches: In a traditional patient-level log, seeing EndTreatment followed by StartTreatment is ambiguous—did the patient switch MG drugs, restart an old drug, or take antibiotics for an unrelated infection? Tracking Patient, Condition (Journey), and Treatment Course as distinct object types makes true treatment switches jump right out of the graph.
  • Time-Travel Debugging for Evidence: Splitting clinical reality (Journey Log) from reporting history (Provenance Log) neatly bypasses OCEL's single-timestamp limitation without losing auditability when patients misremember and later correct their timelines.

Key Results

  • Log Generation: The pipeline produced a Journey Log (17,706 objects; 10,364 events across 30 activities) and a Provenance Log (30,553 objects; 29,179 events). Over 39.3% of facts (5,377) were preserved as negated/intended, and 7.0% (956) as undated objects.
  • Clinical Milestones: Flattening the log reproduced the industry partner's ground-truth metrics: median time from symptom onset to MG diagnosis was 12.7 months, jumping from 10.6 months (no misdiagnosis) to 19.6 months for misdiagnosed patients.
  • Multi-Perspective Precision: Object-centric discovery isolated 80 exact treatment switches across 67 disease journeys—compared to 114 ambiguous transitions when flattened to a traditional patient-centric view.

Limitations and Future Work

  • Timestamp Ties: OCEL 2.0 forces a single timestamp per event, so month-level dates default to the 1st of the month. Consequently, 31.0% of sequential event pairs share identical timestamps, causing standard tools like PM4Py to order them arbitrarily.
  • Tooling Blind Spots: PM4Py automatically drops the 6,771 eventless objects (and 4,712 relations pointing to them) during discovery, meaning researchers must query the raw OCEL directly to study non-occurrences.
  • Loss of Relation Nuance: OCEL object-to-object relations carry no attributes, so the log cannot distinguish patient-suspected causality from clinically established causality.
  • Future Work: The authors plan to validate the extraction and LLM-resolution steps against independent ground truth on real-world patient cohorts and expand beyond Myasthenia Gravis.

Summary updated

Abstract

Interactions between patients and health systems as well as conditions that individuals experience during a disease are represented in patient journeys. Therefore, patient journeys are important assets to investigate how care is being provided, and how health systems can be designed to better suit the needs of patients. While there is initial work on patient journeys from a process mining perspective with traditional case notions, object-centric process mining techniques have yet to be covered. This is unfortunate, since due to the rich structure of objects and their relationships, object-centric process mining approaches are particularly promising in this context. This paper addresses this gap by investigating object-centric event log (OCEL) generation from patient journeys. Based on a list of challenges and requirements, the paper presents an approach for the creation of OCELs from patient journey data. The approach is evaluated on a synthetic patient cohort provided by our industry partner.
BibTeX
@misc{bala2026creation,
  author = {Saimir Bala and Neven Borak and Maximilian König and Anjo Seidel and Zeinab Soleimani and Lorenzo Famiglini and Lev Petrov and Jonas Witt and Mathias Weske},
  title = {{On the Creation of Object-Centric Event Logs from Patient Journeys}},
  year = {2026},
  eprint = {2611.33074},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.33074},
}
Figure