Rational Ensemble Logic for Cohort Discovery with Real-World Electrophysiology Data
Organizations: The University of Texas Health Science Center at Houston, 7000 Fannin Street, Houston, 77030, Texas, USA
Abstract
Biomedical knowledge representation should make the passage from observations to conclusions transparent, rigorous, understandable, explainable, and reproducible (TRUER). We introduce Rational Ensemble Logic (QEL) for specifying temporal phenotypes in real-world electrophysiology data (RWED), with a meaning independent of the implementation software. QEL combines three parameterized modal operators (exact displacement, bounded existence, and bounded universality) over rational time with Boolean connectives and first-order quantification. Its Labeled Interval Ensemble (LINE) semantics represents annotated records as finite interval ensembles. We relate the operators to morphological operations and develop endpoint-array algorithms and finite rational evidence sets for model checking. We prove closure and semantic correctness of the interval operations, obtain finite evidence sets by quantifier elimination, and establish polynomial data complexity for fixed formulas. On 54 manually constructed records, a prototype agreed with the assigned outcomes for base and strict post-ictal generalized EEG suppression (PGES) queries. A separate feasibility experiment over 1,976 patients identified 37 qualifying patients and 45 annotation patterns in 16 seconds. The released prototype uses endpoint candidates and numerical tolerances. QEL supports the TRUER principle through explicit phenotype definitions, precise semantics, and provably correct evaluation procedures, with rational witnesses for existential queries. These provide a logical foundation for formal specification and correctness of algorithms that are independent of specific clinical interpretation, data annotation quality, and software implementation.
Figures & tables
| Property | Meaning | How QEL supports it | Where shown |
| Transparent | The assumptions and the logical chain of reasoning for a biomedical conclusion are explicitly inspectable. | By design. A phenotype definition is a single declarative formula. Each temporal assumption (ordering, duration, latency, persistence) appears as an operator, a bound, or a quantifier; the semantics determines their interpretation. | GTC and PGES specifications (Sections 6.2 and 6.3 ). |
| Rigorous | Biomedical representations and conclusions are governed by precise definitions, validated methods, explicit assumptions, and verifiable evidence. | By construction. Every formula has a mathematically defined meaning over annotated records, and the evaluation algorithms are proved to compute exactly that meaning, with stated complexity. | Semantics (Definitions 3 , 7 ); correctness (Propositions 2 , 3 ; Theorems 2 , 3 ); complexity (Theorem 3 ). |
| Understandable | The meaning of a representation or result is accessible to clinicians and investigators who are in a position to interpret, evaluate, and use it. | By design. The three operators read the way temporal criteria are phrased in clinical practice: at this offset, somewhere within this window, throughout this window. In the Cohort Builder, a specification is composed along a timeline, and its formula is synthesized and displayed. | Operators by example (Section 2.2 ) and formally (Definition 3 ); Cohort Builder (Section 6.6 ). |
| Explainable | While understandability clarifies meaning, explainability identifies the reasoning steps from which the conclusion is deduced (transparency is a prerequisite, not a substitute). | By construction. An existential specification admits witness values that can be checked against the formula and annotations. The prototype displays matched patterns; its search limitations are stated separately. | Evidence sets (Theorems 2 and 3 ); matched annotation patterns returned (Section 6.4 ) and displayed (Section 6.6 ). |
| Reproducible | An independent party or context can reconstruct, re-execute, test, and modify a process under stated conditions. | By design and by construction. Reconstruct: the formula and annotation conventions determine a meaning independently of software. Re-execute: conforming evaluators return the same cohort from the same records. Test: the prototype is compared with assigned outcomes on constructed records. Modify: formula and boundary-convention changes are explicit in the base and strict PGES queries. | PGES specification (Section 6.3 ); strict variant, conformance assessment on 54 records, and released checker (Section 6.5 ); feasibility experiment over 1,976 patients (Section 6.6 ). |
| Formalism | Evaluated at | Durations and offsets | What is checked |
| MTL, STL | Positions of a timed word; time points of a signal | Numerical constants | All behaviors of a system model, or one signal |
| Parametric logics (PLTL, PSTL) | Positions of a trace; time points of a signal | Parameters: free variables with one value for the whole formula | Which parameter values make a system or a signal satisfy the formula |
| TPTL | Positions of a timed word | Variables that a freeze quantifier binds to the current time | Same as for MTL |
| HS | Intervals; tracks of a Kripke structure in model checking | Qualitative interval relations; metric variants exist | All initial tracks of a system model, under homogeneity |
| QEL (EL) | Time points in (in EL, points of a metric monoid) | Terms over variables bound by and inside the formula | One annotated record; existential queries admit rational witnesses |
| TEL ( Zhang, 2024 ) | ( Droste and Zhang, 2026 ) | QEL (this paper) | |
| Time domain | Positive ordered monoid; theory for | (ordered group; signed displacement) | |
| Models | Interpretations | -words; finite traces | LINE: finite interval ensembles (Definitions 4 – 7 ) |
| Main results | Proof system; undecidable satisfiability; expressiveness | -complete satisfiability; expressiveness; relatively complete Hilbert system; NP-complete existential fragment | Morphological semantics and closure (Propositions 2 and 3 ); finite rational evidence sets (Theorem 2 ); semi-algebraic closure for spatial supports (Theorem 1 ) |
| Model checking (single model) | Listed as open | Finite active-domain semantics: PTIME data, PSPACE-complete combined complexity | Endpoint arrays (Algorithms 1 – 3 ); polynomial data complexity in the number of endpoints (Theorem 3 ) |
| Application | Outlook | — | GTC and PGES cohorts on Center for SUDEP Research data; conformance assessment; Cohort Builder (Section 6 ) |