[Paper Review] Declarative Sequential Pattern Mining of Care Pathways
This paper proposes a declarative sequential pattern mining framework using Answer Set Programming (ASP) to extract clinically meaningful, non-redundant care pathways from medico-administrative databases. By encoding complex temporal and semantic constraints—such as case-crossover designs and drug switch patterns—it identifies rare, significant patterns (e.g., generic-to-brand AED switches before seizures) with high precision, reducing 4,359 patterns to just 32 in under 30 seconds.
Sequential pattern mining algorithms are widely used to explore care pathways database, but they generate a deluge of patterns, mostly redundant or useless. Clinicians need tools to express complex mining queries in order to generate less but more significant patterns. These algorithms are not versatile enough to answer complex clinician queries. This article proposes to apply a declarative pattern mining approach based on Answer Set Programming paradigm. It is exemplified by a pharmaco-epidemiological study investigating the possible association between hospitalization for seizure and antiepileptic drug switch from a french medico-administrative database.
Motivation & Objective
- To address the problem of excessive, redundant, and clinically irrelevant patterns generated by traditional sequential pattern mining in care pathway analysis.
- To enable clinicians to express complex, semantically rich queries about longitudinal patient data without extensive data preprocessing.
- To support hypothesis generation in pharmaco-epidemiology by modeling case-crossover study designs directly in a logic-based framework.
- To integrate clinical knowledge (e.g., drug taxonomies, ICD-10 codes) into pattern mining for improved semantic relevance.
- To reduce computational and cognitive overhead by focusing mining on patterns that are both frequent in a risk window and absent in a control window.
Proposed method
- Uses Answer Set Programming (ASP) as a declarative paradigm to define pattern mining tasks via logical rules, avoiding imperative algorithmic coding.
- Encodes patient care pathways as logical facts: deliv(P, T, CIP, Q) for drug deliveries and disease(P, T, D) for diagnoses, with temporal constraints.
- Generates two sequences per patient: one for the 3-month period before first seizure (positive), and one for the 3–6 months prior (negative), using temporal bounds and firstseizure(P, T) as a trigger.
- Defines patterns using functional literals: seq(P, T, deliv(AED, Gr, G)) to represent drug deliveries with ATC code, speciality ID, and generic/brand status.
- Applies constraints via ASP rules: frequency threshold of 20, exclusion of patterns in the negative window (via discr(T) and neg_support(T)), and exact one switch (via change(X) and count constraint).
- Employs clingo as the ASP solver to compute answer sets representing valid, constrained patterns, enabling efficient and scalable reasoning.
Experimental results
Research questions
- RQ1Can a declarative logic programming approach like ASP effectively model complex, clinically meaningful sequential patterns in care pathways?
- RQ2How can temporal and semantic constraints (e.g., drug switches, ICD-10 codes, ATC classifications) be encoded to focus mining on rare but significant patterns?
- RQ3To what extent can ASP-based mining reduce the number of irrelevant patterns compared to traditional sequential pattern mining algorithms?
- RQ4Can the framework naturally express case-crossover study designs by using each patient as their own control?
- RQ5How efficient is the approach in extracting constrained patterns from large-scale medico-administrative databases?
Key findings
- The ASP-based framework reduced the number of extracted patterns from 4,359 (using standard sequential pattern mining) to just 32, significantly improving pattern relevance.
- The solver extracted all valid patterns in less than 30 seconds, demonstrating high computational efficiency despite complex constraints.
- A representative pattern was identified: ⟨(N03AG01,438,1),(N03AG01,438,1),(N03AX14,1023,0),(N03AX14,1023,0)⟩, indicating a switch from generic valproic acid (CIP 438) to brand-name levetiracetam (CIP 1023) within 3 months before seizure.
- This specific pattern was observed in more than 20 patients during the risk window but not in the control window, suggesting a potential association with seizure onset.
- The framework successfully encoded and enforced complex constraints: frequency ≥20, absence in control window, and exactly one drug switch (generic to brand or vice versa).
- The approach enables clinicians to rapidly explore and validate new hypotheses about treatment sequences without extensive data wrangling, enhancing clinical hypothesis generation.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.