Supervised Coupled Matrix-Tensor Factorization
- SCMTF is a low-rank framework that simultaneously decomposes temporal tensors and static matrices to identify interpretable clinical phenotypes.
- It integrates a supervised loss to directly guide latent factor extraction using clinical outcomes while handling missing data through explicit masking.
- Its application to ulcerative colitis demonstrates effective phenotype prediction with validated AUCs, highlighting potential for clinical stratification.
Supervised Coupled Matrix-Tensor Factorization (SCMTF) is a low-rank factorization framework designed to extract interpretable latent structures—termed phenotypes—from heterogeneous clinical data integrating temporal, static, and patient-reported variables. Its defining features are the simultaneous factorization (coupling) of a temporal tensor and a static matrix, explicit handling of missing data, and direct supervision by clinical outcomes, making it especially suited for phenotyping in domains with complex, multi-modal, and highly incomplete data such as patient-reported outcomes (PROs) in ulcerative colitis (Minoccheri et al., 24 Jun 2025).
1. Data Organization and Mathematical Formulation
SCMTF models datasets comprising patients, each described by both time-varying and static clinical features:
- : Third-order tensor of temporal observations, combining temporal features (labs and PRO items) over time windows.
- : Matrix of static features per patient (e.g., demographics, medication history).
- : Binary outcome vector (e.g., medication persistence).
The unsupervised base is a coupled low-rank factorization:
- , a rank- nonnegative CANDECOMP/PARAFAC (CP) decomposition.
- , where the patient-mode factor 0 is shared.
Bias tensors 1 (size 2) and 3 (size 4) are introduced to account for feature- and patient-level offsets, ensuring that the factorized components model deviations—representing temporal phenotypes—rather than global shifts.
2. Supervised Extension
To direct the factor model towards predictive phenotypes, SCMTF integrates an explicit supervised loss. A two-layer neural classifier 5 maps each subject's phenotype vector 6 (row 7 of 8) to 9, an estimated probability for the clinical outcome.
The total loss optimized is:
0
subject to 1.
Here,
- 2, 3: Binary masks for observed entries in 4, 5
- 6: 7 sparsity term
- 8: Cross-entropy (logistic) loss for outcome prediction
- 9: Balance between reconstruction and supervised loss
- 0: Sparsity penalty
3. Handling Missing Data
SCMTF is explicitly constructed to address missingness pervasive in PRO data:
- For the tensor 1, only observed entries (where 2) contribute to the squared error; unobserved data is ignored in both loss computation and gradient updates.
- Missing values in 3 are similarly handled via 4.
- This design allows for data imputation as a byproduct, as missing entries are completed by the fitted model.
A plausible implication is that this approach makes SCMTF applicable to high-missingness scenarios, such as longitudinal PRO data, without introducing bias from imputation preprocessors (Minoccheri et al., 24 Jun 2025).
4. Optimization and Implementation
SCMTF is optimized end-to-end in a deep learning environment (TensorLy + PyTorch):
- Variables 5: Updated via Adam with 6-proximal steps, enforcing nonnegativity by projection after each gradient step.
- Classifier parameters 7: Trained with stochastic gradient descent (SGD) with momentum.
- Hyperparameters (rank 8, loss balance 9, learning rate, and 0 penalty 1) are determined via grid search. Optimal settings in the reported work were 2, 3, learning rate 4, and 5.
5. Application to Ulcerative Colitis Phenotyping
In the published UC application, data included 6 patients with:
- 7 (8): Static features (age, sex, disease duration/location, endoscopic severity, medication status).
- 9 (0): Temporal features, such as 4-month binned labs (CRP, calprotectin, Hgb, WBC) and patient-reported Likert-scale surveys across 7 windows centered on medication change.
Phenotypes are defined by the columns of factor matrices 1:
- 2: Patient 3’s membership in phenotype 4.
- 5: Loading of temporal feature 6 for 7.
- 8: Time profile across the 7 windows for 9.
- 0: Static-feature contribution to 1.
Downstream prediction of medication persistence used the 2 factors as inputs:
- Neural network classifier inside SCMTF achieved test set AUC 3.
- Random Forest on 4 achieved AUC 5 at 6 months, 7 at 8 months.
Three phenotypes—indexed 9, 0, and 1—were most predictive:
- 24 (“chronic arthritis-pain-lab”): Persistently high pain, bloating, arthritis, elevated albumin.
- 16 (“episodic emotional-and-arthritis symptoms”): Fluctuating arthritis, anger, worry, CRP/WBC—relevant for 2-month prediction.
- 27 (“hemoglobin-driven”): Variable Hgb and arthritis—most relevant at 3 months.
This suggests that PRO-based and mixed temporal phenotypes, previously excluded due to data challenges, can be leveraged for clinically-relevant stratification (Minoccheri et al., 24 Jun 2025).
6. Interpretability and Domain Significance
SCMTF produces sparse, nonnegative, and interpretable phenotypes by construction:
- Each phenotype connects static and temporal clinical features, with explicit temporal profiles.
- Phenotype-specific patterns (e.g., symptom trajectories, biomarker dynamics) are recoverable and clinically characterizable.
- The use of nonnegativity and sparsity encourages each phenotype to capture distinct clinical presentations.
A plausible implication is that such structure facilitates downstream clinical interpretation and discovery of actionable patient subgroups, especially where symptom data has previously been omitted (Minoccheri et al., 24 Jun 2025).
7. Distinguishing Features and Research Impact
SCMTF is the first tensor-based approach to be both supervised and coupled, with the inaugural application to ulcerative colitis and patient-reported outcomes. By jointly factorizing static and temporal modalities, effectively handling missing values, and incorporating supervision via a flexible neural classifier, SCMTF advances computational phenotyping in settings with heterogeneous and incomplete clinical data. Its empirical performance in medication-persistence prediction and clinical interpretability demonstrates the viability of low-rank matrix and tensor factorization in domains and data regimes previously considered inaccessible (Minoccheri et al., 24 Jun 2025).