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:
- 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.
- Natural Language: Patients say "my voice turns nasal," not "bulbar muscle weakness."
- 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.
- 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.
- 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.
- Object-Centric Mapping: Rather than forcing every reported fact to be a timestamped event, the authors introduce five clever mapping principles:
- 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!
- 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
EndTreatmentfollowed byStartTreatmentis 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
PM4Pyto order them arbitrarily. - Tooling Blind Spots:
PM4Pyautomatically 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