ROAMM-EHR & SCMTF: EHR Phenotyping
- The paper introduces SCMTF, a supervised coupled matrix-tensor factorization method that integrates multi-modal EHR and PRO data for computational phenotyping in ulcerative colitis.
- The methodology jointly factorizes static demographics with temporal lab and PRO data while handling up to 90% missing entries via masked reconstruction and imputation.
- The approach achieved high predictive performance (AUC 0.853 at 8 months) and offered clinical interpretability by identifying distinct latent phenotypes.
ROAMM-EHR is not directly referenced or defined as a stand-alone term in the arXiv source, but its relevant context, methodologies, and technical workflows are exemplified by the Supervised Coupled Matrix-Tensor Factorization (SCMTF) approach for computational phenotyping of patient-reported outcomes (PROs) within electronic health record (EHR) systems, as applied to ulcerative colitis (UC) data (Minoccheri et al., 24 Jun 2025). The following sections detail the foundation, mathematical formalism, missing data handling, optimization, and the interpretability and significance of SCMTF-based approaches in EHR-driven clinical phenotyping.
1. Foundational Principles: Multi-Modal and Heterogeneous Data in EHR
SCMTF addresses computational phenotyping by distinguishing latent patient phenotypes through joint factorization of multi-modal, heterogeneous, and highly incomplete EHR-derived data. This paradigm incorporates both time-varying and static patient variables. Traditionally, patient-reported outcomes (PROs)—subjective, noisy, and overwhelmingly sparse—are routinely excluded from EHR-based machine learning pipelines due to their incomplete availability. SCMTF challenges this exclusion, leveraging deep low-rank matrix and tensor models to incorporate temporal PROs, laboratory measures, and baseline features for robust patient stratification and outcome prediction (Minoccheri et al., 24 Jun 2025).
2. Mathematical Architecture: Supervised Coupled Matrix-Tensor Factorization
The SCMTF model assumes availability of a third-order tensor , where is the patient index, the set of time-varying variables (labs and PROs), and discrete time windows—here, seven bins of four months each, contextualized to key clinical events (e.g., medication initiation). Additionally, static feature matrices (demographics, medication history, etc.) and binary outcome labels (e.g., medication persistence at a specific time horizon) are provided.
The factorization posits a rank- coupled CANDECOMP/PARAFAC (CP) decomposition:
where:
- : patient–phenotype membership matrix
- : variable–phenotype matrix (temporal features)
- 0: time–pattern matrix
- 1: feature bias (offsets per feature)
- 2: patient bias (offsets per patient)
The static matrix 3 is coupled via the patient mode:
4
A neural classifier 5 with parameters 6 links 7 to clinical outcome via cross-entropy loss:
8
where 9.
The total loss incorporates tensor and matrix reconstruction, 0 sparsity, bias regularization, and the supervised loss, subject to nonnegativity constraints on all factor matrices.
3. Missing Data: Masking and Imputation
EHR and PRO data are typically characterized by severe missingness (up to 90%), particularly in longitudinal symptom reporting. SCMTF introduces binary masks 1 and 2 to indicate observed entries in 3 and 4 respectively. Reconstruction losses are masked via Hadamard product, ensuring that only observed entries contribute to the objective:
5
After optimization, missing entries in both 6 and 7 are naturally imputed using the learned low-rank and bias structure.
4. Optimization Strategies and Hyperparameters
Training proceeds as joint all-at-once gradient-based optimization implemented in PyTorch, leveraging TensorLy-Torch for tensor operations. All factors 8, biases 9, and classifier parameters 0 are updated simultaneously.
Key characteristics:
- Nonnegativity enforced by clamping factors after each step.
- Factor variables updated via Adam (1); classifier via SGD (2, momentum = 0.9)
- Learning rates decayed by 3 every 4 steps
- 5 sparsity handled by proximal-gradient/soft-thresholding
- Hyperparameters (6, 7, 8, 9) selected through grid search on a held-out validation set, targeting AUC and imputation error
In the referenced work, the optimal configuration was 0, 1, and 2 (Minoccheri et al., 24 Jun 2025).
5. Application: Ulcerative Colitis Computational Phenotyping
For UC, the SCMTF workflow was instantiated as follows:
- 3 comprising 24 laboratory variables and 34 PRO items, binned into seven 4-month intervals centered on medication start.
- 4 reflecting static demographics (age, sex, BMI), disease/therapy history, and baseline endoscopic scores.
- Labels 5 marking medication persistence at 8 and 20 months.
Post-training, each rank component 6 defines a distinct phenotype with interpretation derived from:
- 7: per-patient phenotype strengths
- 8: variable/PRO contributions
- 9: temporal evolution
- 0: static feature influences
Features with maximal loadings (e.g., arthritis pain, CRP, prior biologic use) and their corresponding time profiles informed clinical interpretations such as “chronic inflammation” or “episodic systemic symptoms.”
6. Predictive and Clinical Significance
The learned patient phenotypes, summarized by 1, served as covariates for medication persistence prediction with high accuracy:
- Random Forest on 2 yielded test AUC = 0.853 (8-month) and AUC = 0.803 (20-month)
- A subset of three dominant phenotypes preserved AUC > 0.80
- Imputation accuracy for missing tensor values was MAE 3 0.145, RMSE 4 0.197
Approximately 76% of tensor entries were missing (88% in PROs). The discovery of phenotypes featuring PROs indicates these data types, typically discarded for sparsity and subjectivity, contain clinically actionable information for outcome modeling in UC (Minoccheri et al., 24 Jun 2025).
7. Context and Implications
SCMTF represents the first tensor-based, supervised, and coupled factorization applied to the UC domain and to highly missing PRO data. It offers a unified, interpretable modeling framework capable of:
- Jointly factorizing static and temporal, multi-modal clinical data
- Absorbing patient and feature bias
- Integrating clinical supervision directly in the factorization
- Handling massive missingness via masked loss
- Yielding interpretable latent phenotypes with demonstrable predictive utility
A plausible implication is the extension of similar SCMTF-based factorizations to broader EHR phenotyping tasks and other highly missing clinical data domains, where integration of multiple data types and interpretability are crucial for precision medicine (Minoccheri et al., 24 Jun 2025).