Accessibility settings

Published on in Vol 28 (2026)

Preprints (earlier versions) of this paper are available at https://preprints.jmir.org/preprint/92856, first published .
Patient in hospital bed with doctors discussing recovery plan

Development and Validation of a Mixture-of-Experts–Based Model for Postoperative In-Hospital Mortality Risk Assessment: Multicenter Retrospective Study

Development and Validation of a Mixture-of-Experts–Based Model for Postoperative In-Hospital Mortality Risk Assessment: Multicenter Retrospective Study

Authors of this article:

Shixin Huang1 Author Orcid Image ;   Jinhong Xia2 Author Orcid Image ;   Xixi Nie3 Author Orcid Image ;   Zhuo Zheng4 Author Orcid Image ;   Jiawei Luo5 Author Orcid Image

1Department of Scientific Research, The People's Hospital of Yubei District of Chongqing city, Chongqing, China

2Network Technology and Education Digitalization Center, Sichuan College of Traditional Chinese Medicine, Mianyang, China

3School of Artificial Intelligence, Chongqing University of Posts and Telecommunications, Chongqing, China

4Department of Anesthesiology, Chengdu Second People's Hospital, Chengdu, Sichuan, China

5West China Biomedical Big Data Center, West China Hospital of Sichuan University, No. 37, Guoxue Alley, Wuhou District, Chengdu, Sichuan, China

*these authors contributed equally

Corresponding Author:

Jiawei Luo, PhD


Background: Postoperative mortality remains a key indicator of surgical safety and quality. Traditional risk models based on static preoperative or intraoperative variables often fail to capture dynamic physiological changes during surgery and generalize poorly across surgical types. To address these limitations, we developed and validated a deep learning framework capable of learning heterogeneous temporal patterns from intraoperative signals while maintaining interpretability and adaptability.

Objective: This study aimed to develop a mixture-of-experts–based model (Postoperative Risk Modeling Expert network, PRIME-MoE) to provide dynamic, surgery-adaptive postoperative in-hospital mortality risk prediction. The primary objective was to improve prediction accuracy, cross-database robustness, and interpretability across heterogeneous surgical populations and institutions.

Methods: We retrospectively analyzed 173,990 surgical cases from the INSPIRE (Informative Surgical Patient Dataset for Innovative Research Environment) and HUAXI databases. PRIME-MoE used 4 one-layer unidirectional long short-term memory experts with dense softmax routing based on static surgical context. We evaluated discrimination, calibration, threshold-specific operating points, parameter count, graphics processing unit inference latency, routing patterns, and a sensitivity analysis that truncated the final 30 minutes of each operation without retraining.

Results: PRIME-MoE achieved internal-test area under the receiver operating characteristic curves (AUROCs) of 93.8 (95% CI 92.3‐96.0) in INSPIRE and 90.7 (95% CI 87.1‐94.8) in HUAXI. Reciprocal evaluation retained discrimination (AUROCs 90.8 and 87.8) but showed imperfect calibration (Brier scores 0.035‐0.049; calibration slopes 0.28‐0.49), supporting site-specific recalibration. Graphics processing unit inference required a median of 11.4 ms (9.1-18.0; 3.3-45.3) per case. Without retraining, scoring 30 minutes before the recorded end of surgery retained AUROCs of 93.1 in INSPIRE and 90.2 in HUAXI.

Conclusions: PRIME-MoE provides an interpretable framework for postoperative in-hospital mortality prediction and retained discrimination in reciprocal evaluation across 2 heterogeneous perioperative databases. The 30-minute analysis supports near-end-of-surgery scoring, but calibration was insufficient for direct deployment. Prospective validation, local recalibration, threshold selection, and workflow evaluation are required before clinical use.

J Med Internet Res 2026;28:e92856

doi:10.2196/92856

Keywords



Postoperative mortality is one of the most critical clinical indicators in modern surgery and anesthesiology [1,2]. Surgical procedures impose intense physiological stress on the body and trigger complex systemic responses within a short period. Early identification of patients at high risk of postoperative death is essential for targeted monitoring, timely intervention, and rational allocation of intensive care resources. Accurate prediction of postoperative in-hospital mortality can help clinicians optimize postoperative management, guide resource allocation, and improve overall surgical outcomes. During surgery, monitoring systems continuously record large volumes of high-frequency physiological signals such as blood pressure, heart rate, oxygen saturation, respiratory parameters, and drug infusion rates. These time-series data reflect the dynamic physiological status of the patient, yet their complexity and volume make it difficult for clinicians to capture all critical changes in real time [3-6]. Important fluctuations or latent risk patterns may be missed. AI methods, especially those designed for time-series analysis, can automatically extract and interpret these dynamic patterns, offering a more comprehensive and objective basis for postoperative in-hospital mortality prediction [1,7-12].

Previous studies have developed perioperative risk prediction models using preoperative variables, intraoperative summaries, or routinely available electronic health record (EHR) data, including multicenter machine learning models [1,10,13-17]. These models often rely on static features extracted from preoperative and intraoperative data, such as mean or extreme values of vital signs, durations below specific thresholds (eg, hypotension), and total drug or fluid dosages. However, compressing rich intraoperative trajectories into static summaries inevitably loses crucial temporal information, making it difficult to capture when instability occurs, how long it lasts, or how interventions dynamically affect hemodynamics, which are factors essential for understanding postoperative outcomes. Recent advances in time-series modeling, including long short-term memory (LSTM), gated recurrent units (GRUs), and transformer networks, enable learning of complex temporal dependencies from high-frequency physiological signals and offer a more dynamic representation of patient status [18-21]. However, a single global temporal model may still have difficulty capturing heterogeneous intraoperative patterns across diverse surgical procedures and institutional settings.

Despite prior progress, surgical heterogeneity remains an important challenge for model generalization and clinical interpretation [11,12,22-24]. Different procedures, such as cardiac, neurosurgical, and general surgeries, exhibit distinct physiological patterns, intervention strategies, and risk thresholds [25-27]. The same intraoperative variable (eg, mean arterial pressure or end-tidal CO₂) may have different clinical meanings across surgical types. As a result, a single unified model may not fully adapt to surgery-adaptive dynamics across diverse surgical populations and clinical centers. Training separate models for each surgery may better capture local characteristics but can lead to smaller sample sizes and reduced statistical stability. Therefore, a modeling strategy that balances shared perioperative information with surgery-adaptive specialization may be useful for heterogeneous perioperative prediction tasks.

Mixture-of-experts (MoE) architectures have increasingly been explored for modeling heterogeneity in longitudinal clinical data. Lee and Hauskrecht [28] developed a residual MoE framework in which multiple GRU-based experts captured patient-subpopulation–specific deviations from a population-level model for clinical event sequence prediction. More recently, MIRA incorporated a frequency-specific sparse MoE layer to route irregular medical time-series representations across experts specializing in different temporal regimes [29]. The MANDARIN framework integrated static and temporal intensive care unit (ICU) data using an MoE architecture for dynamic prediction of delirium and coma across multiple clinical cohorts [30]. Collectively, these studies demonstrate that expert routing can help represent heterogeneous temporal patterns in clinical data. However, they focused primarily on general EHR event prediction, medical signal forecasting, or ICU neurological state prediction rather than postoperative mortality prediction from complete intraoperative multivariate trajectories. Beyond clinical prediction, MoE research has addressed heterogeneous sequential prediction, expert routing and specialization, scalable model design, and expert attribution across other domains [31-35]. These broader studies inform architectural design but do not establish clinical use.

To extend this line of research, we developed Postoperative Risk Modeling Expert network (PRIME-MoE), a perioperative MoE model that combines multivariate intraoperative time-series data with static patient and surgical context. Four 1-layer unidirectional LSTM experts process the dynamic sequence, while a dense softmax router derived from the static context forms a weighted expert representation for postoperative in-hospital mortality prediction. We evaluated internal and reciprocal external discrimination, calibration, threshold-specific operating characteristics, computational cost, routing behavior, interpretability, and the feasibility of scoring 30 minutes before the recorded end of surgery.


The completed TRIPOD+AI (Transparent Reporting of a multivariable prediction model for Individual Prognosis Or Diagnosis + Artificial Intelligence) reporting checklist is provided in Checklist 1.

Ethical Considerations

The INSPIRE (Informative Surgical Patient Dataset for Innovative Research Environment) database is a publicly available perioperative dataset hosted on PhysioNet and developed by Seoul National University Hospital (SNUH). It contains deidentified surgical data collected from 2011 to 2020 with prior institutional review board approval. The HUAXI database was retrospectively constructed from electronic medical records at West China Hospital, Sichuan University, covering surgical patients from 2018 to 2024. As this study involved secondary analysis of deidentified data, the requirement for informed consent was waived by the Institutional Review Board of West China Hospital, Sichuan University (approval number 20190473). Both databases were used in accordance with the principles of the Declaration of Helsinki and relevant ethical and data protection standards.

Data Sources

We used 2 perioperative databases in this study: INSPIRE [36], a publicly available dataset for perioperative medicine research, and a retrospective database from West China Hospital of Sichuan University, referred to as the HUAXI database. Both databases contain detailed surgical information, diagnostic data, perioperative vital signs, anesthesia monitoring data, laboratory test results, and medication records. The INSPIRE dataset was collected at Seoul National University Hospital in South Korea between 2011 and 2020 and includes approximately 130,000 surgeries from about 99,000 patients. From this dataset, we extracted 99,735 surgical cases, each uniquely identified by an operation ID (“op_id”). The HUAXI database includes surgical patients treated at West China Hospital between 2018 and 2024, all of whom had complete in-hospital follow-up until discharge. We extracted 83,428 surgical cases, each also uniquely identified by an “op_id.” In both datasets, one surgery was treated as the analysis unit. We excluded cases involving patients younger than 18 years, surgeries with invalid start or end times, nongeneral anesthesia procedures, and surgeries lasting less than 15 minutes. After filtering, 99,735 surgeries from the INSPIRE dataset and 74,255 surgeries from the HUAXI database were included in the final analysis.

Outcome Definition

The primary outcome of this study was postoperative in-hospital mortality. For each eligible surgical case, postoperative in-hospital mortality was defined as death occurring after the end of surgery and before discharge from the index hospitalization. The same outcome definition was applied to both the INSPIRE and HUAXI databases to ensure consistency in model development, internal testing, and cross-database validation. In the present study, we did not use 30-day or 90-day mortality because these longer-term follow-up outcomes were not consistently available across the 2 databases.

Variable Preprocessing

We aligned the measurement units of laboratory tests between the 2 databases and standardized the coding and units of intraoperative medication variables. The corresponding alignment scripts are available in the code repository associated with this study. The input data included patient demographics, preoperative comorbidities, the most recent laboratory measurements before surgery, intraoperative physiological variables, and intraoperative medications and fluids, as summarized in Table S7 in Multimedia Appendix 1. Surgical procedures were harmonized into 9 broad anatomical categories to construct a consistent surgical-site variable across the 2 databases. The Other category was used as a residual harmonization category for procedures that could not be assigned to the 8 principal anatomical categories. In both INSPIRE and HUAXI, this category included procedures involving the Peripheral Vascular System, Lymphatic and Hemic Systems, source-labeled Other procedures, and other procedures that could not be consistently mapped to one of the principal anatomical groups. The same harmonization principle was applied to both databases. Therefore, the Other category should be interpreted as a heterogeneous residual grouping rather than a clinically homogeneous procedural category. Because intraoperative physiological and treatment data were recorded longitudinally at irregular intervals, a standardized preprocessing procedure was required before temporal modeling. To reduce the influence of data-entry and recording errors, continuous values outside predefined clinically plausible ranges were treated as missing. Invalid categories and inconsistent data types for categorical variables were also recoded as missing before subsequent processing.

We processed irregular longitudinal data using the previously published Electronic Medical Record-Longitudinal Irregular Preprocessing (EMR-LIP) framework proposed by Luo et al [37]. EMR-LIP applies a variable-type-specific and observation-aware procedure to transform irregular electronic medical record data into regularly aligned sequences suitable for deep learning. The duration of each operation was divided into consecutive 5-minute intervals from the recorded start to the end of surgery. For each dynamic variable within each interval, directly recorded source measurements were retained. When multiple numerical observations were available within the same interval, their median was used; when multiple categorical observations were available, their mode was used. If no source measurement was recorded for a variable within a given interval, the corresponding value was initially marked as missing.

Missing intervals were subsequently processed according to the variable type and the temporal position of the missing value rather than by applying a single imputation method to all variables. For numerical variables, internal gaps between 2 observed measurements were completed using linear interpolation. Leading missing intervals before the first available measurement were completed using the first available intraoperative observation for that variable, whereas trailing missing intervals after the last available measurement were completed by carrying the last observed value forward. When a variable had no valid observation throughout an operation, the training-set median was used for numerical variables and the training-set mode was used for categorical variables. Intermittently missing categorical values were represented using a distinct missing category. Time points at which no dynamic variable had any source observation were removed from the sequence.

In addition to the completed value sequence, a binary observation mask was generated for every variable and time point to preserve information on whether a value was directly observed or completed during preprocessing. For variable xd at time point ti, the mask was defined as mti,d=0 when at least one original source measurement was available within the corresponding interval and mti,d=1 otherwise. This mask therefore retained the original observation pattern separately from the completed values.

The percentages reported in Table S8 in Multimedia Appendix 1 describe interval-level recording density after construction of the regular 5-minute time grid. Specifically, an observed interval contained at least one original source measurement for the corresponding variable, whereas a completed interval contained no newly recorded source measurement and was processed using the variable-specific EMR-LIP procedure described above. These percentages should not be interpreted as patient-level missingness rates or as indicating that an entire patient trajectory was synthetically generated. In irregular perioperative data, a variable may be available and clinically monitored during an operation without a new value being entered in every 5-minute interval.

Missing values in static variables, including demographics, medical history, and the most recent preoperative laboratory results, were imputed using predictive mean matching. All imputation parameters and training-set summary statistics were estimated using the training data only and were subsequently applied to the validation and test sets to avoid information leakage.

For conventional machine learning models that could not directly process longitudinal sequences, each intraoperative continuous variable was summarized using 8 statistical features: minimum, maximum, median, mean, SD, IQR, skewness, and kurtosis.

Model Development

We developed the PRIME-MoE to estimate postoperative in-hospital mortality from preoperative context and intraoperative time-series data. We use the term surgery-adaptive to mean that static surgical context, including surgical category and American Society of Anesthesiologists (ASA) class, determines patient-specific routing weights over temporal experts that process the complete intraoperative sequence; the model does not train a separate predictor for each procedure group.

Each expert module was implemented as a 1-layer unidirectional LSTM encoder with hidden size 128. The dynamic input contained 143 features per 5-minute interval, including observation masks. Static preoperative features (111 dimensions, including demographics, ASA indicators, surgical-category indicators, preoperative laboratory values, and missingness indicators) were processed by a 2-layer multilayer perceptron (MLP) with hidden size 64. A separate router MLP with hidden size 32 mapped the same static vector to K nonnegative weights using softmax. The weighted expert embedding was concatenated with the static embedding and passed through a prediction MLP with hidden size 128 and a sigmoid output. The final models used K=4 experts, soft dense routing in which all experts contributed according to their router weights, and no dropout layers.

Models were optimized with Adam (learning rate 0.001, weight decay 0.001) using weighted binary cross-entropy to address class imbalance. The batch size was 150. Patient-stratified training, validation, and test splits were created in a 7:2:1 ratio, and early stopping was based on validation area under the receiver operating characteristic curve (AUROC). Sensitivity analyses for K in {1, 2, 3, 4, 5} are reported in Multimedia Appendix 1.

Operational Feasibility and Earlier Prediction Horizons

The present study is retrospective. The primary prediction time point was the recorded end-of-surgery timestamp after offline EMR-LIP preprocessing. This design evaluates the information available in complete intraoperative trajectories but does not measure prospective data availability, streaming latency, or workflow integration.

For prospective deployment, the intended use is early postoperative risk stratification near the anticipated end of surgery, such as during wound closure, when postanesthesia care unit (PACU) or higher-acuity disposition decisions are often finalized. Minimum inputs would include the preoperative static features used by the model and intraoperative variables aligned to the 5-minute EMR-LIP grid from surgery start to the selected trigger time.

To test an earlier trigger without retraining, we removed the final six 5-minute bins from each intraoperative sequence, retained at least 1 bin for short operations, and generated scores with the end-of-surgery-trained weights. This analysis therefore represents scoring 30 minutes before the recorded end of surgery rather than a separately trained 30-minute model.

Neural-network inference latency was benchmarked on an NVIDIA L20 graphics processing unit (GPU). On 300 real INSPIRE test sequences, median per-case scoring time for PRIME-MoE (K=4) was 11.4 ms (9.1-18.0; 3.3-45.3)(mean 13.1; SD 7.0; P95 25.8 ms), excluding EHR extraction and EMR-LIP preprocessing.

Model Interpretation

To examine how inputs contributed to PRIME-MoE predictions, we applied integrated gradients (IG) [38]. IG attributes the difference between a model output and a defined baseline to individual input features along a gradient path. The method is computationally tractable for the high-dimensional LSTM-based sequence model and satisfies the completeness property. These attributions describe model dependence and were not interpreted as causal effects.

Formally, for a model F and an input vector x, IG measures the accumulated gradients of F with respect to x along a straight-line path from a baseline input x′ (often a zero tensor) to x. This ensures that feature attributions are consistent and satisfy key properties such as completeness and sensitivity, making IG a robust and theoretically sound choice for medical deep learning interpretation.

The IG for input x is defined as follows:

IntegratedGrads(x)=(x−x′)×∫α=01∂F(x′+α(x−x′))∂x dα

where x′ represents the baseline input and α defines the interpolation path between x′ and x. In practice, this integral is numerically approximated as follows:

IntegratedGrads(x)≈(x−x′)×1m∑k=1m∂F(x′+km(x−x′))∂x

where m is the number of integration steps used for the approximation. In our implementation, the baseline x′ was set to a zero tensor in the standardized model-input space. Because continuous variables were standardized using z-score normalization based on the mean and SD calculated from the training set, a value of zero in the transformed space corresponds to the training-set mean of that variable in the original scale. Therefore, the IG baseline represented an average reference state derived from the training data rather than physiologically impossible values such as a heart rate or blood pressure of zero.

By applying IG, we were able to visualize and quantify the attribution of preoperative features and intraoperative time-series signals to the predicted risk of postoperative in-hospital mortality. This approach provided transparent explanations for the model’s decision-making process and helped identify clinical features associated with model predictions, while not implying causal effects of individual variables on mortality.

Model Evaluation

We evaluated discrimination using AUROC and area under the precision-recall curve (AUPRC) and reported accuracy, recall, precision, and F1-score at prespecified operating points. Calibration was quantified using the Brier score, logistic calibration slope and intercept (outcome regressed on the logit of predicted probability), and 10-bin expected calibration error. Reliability diagrams were generated for internal and reciprocal evaluations. Subgroup analyses examined broad surgical categories and ASA physical status groups.

For each subgroup, performance was evaluated independently using the same set of metrics. The 95% CIs were estimated through bootstrapping with 1000 resamples. The evaluation metrics were defined as follows:

Accuracy=TP+TNTP+TN+FP+FN
Recall=TPTP+FN
Precision=TPTP+FP
F1 Score=Precision×RecallPrecision+Recall

where TP denotes true positives, TN true negatives, FP false positives, and FN false negatives. By evaluating PRIME-MoE across surgical and ASA-based subgroups, we aimed to verify its generalizability and fairness in capturing in-hospital mortality risk across heterogeneous patient populations and surgical types. Pairwise comparisons of AUROC between PRIME-MoE and LSTM within each subgroup were performed using DeLong’s test. Because these subgroup analyses were exploratory, unadjusted P values are reported. Interpretation focused primarily on point estimates, 95% CIs, subgroup sample sizes, and outcome event counts rather than on statistical significance. No adjustment for multiple comparisons was applied.

Threshold-Oriented Evaluation

Because postoperative in-hospital mortality is rare, we did not recommend a universal threshold. We evaluated Youden and F1-maximizing thresholds and operating points targeting sensitivities of at least 80%, 90%, and 95%. For clinical use, we propose a site-specific process: estimate local prevalence and acceptable alerts per 1000 procedures; select a sensitivity target appropriate to the use case; determine and freeze the corresponding threshold on a local validation set; recalibrate probabilities when slope or intercept indicates miscalibration; and monitor positive predictive value, false positives per 1000 procedures, and missed events after deployment. F1-maximizing thresholds are reported for completeness but are not proposed as default clinical cutoffs.


Baseline Characteristics of the Cohort

To build the model, we included a total of 173,990 inpatient records of surgeries performed under general anesthesia from 2 databases, with 99,735 cases from the INSPIRE database and 74,255 cases from the HUAXI database (Figure 1). Table 1 presents the baseline characteristics of the included patients from both databases, using each surgery record as the unit of analysis. Table S1 in Multimedia Appendix 1 shows the baseline characteristics of the training, validation, and test sets from INSPIRE and HUAXI. Among all included cases, the overall postoperative in-hospital mortality rate was 0.50% (862/173,990), including 0.58% (577/99,735) in INSPIRE and 0.38% (285/74,255) in HUAXI.

‎
Figure 1. (A) Sample selection process in the INSPIRE (Informative Surgical Patient Dataset for Innovative Research Environment) database. (B) Sample selection process in the HUAXI database.
Table 1. Demographic characteristics of selected samples from different databases.
CharacteristicsOverallINSPIREaHUAXI
Operations, n173,99099,73574,255
Age (y), mean (SD)56.99 (15.69)54.61 (15.68)60.19 (15.13)
Sex, n (%)
Female88,260 (50.73)54,857 (55)33,403 (44.98)
Male85,729 (49.27)44,878 (45)40,851 (55.02)
BMI (kg/m2), mean (SD)23.54 (3.47)23.65 (3.47)23.39 (3.48)
ASAb grade, n (%)
1‐2135,378 (79.05)87,045 (89.74)48,333 (65.09)
3‐435,739 (20.87)9851 (10.16)25,888 (34.86)
≥5140 (0.08)106 (0.11)34 (0.05)
Emergency, n (%)
No160,001 (91.96)89,761 (90)70,240 (94.59)
Yes13,989 (8.04)9974 (10)4015 (5.41)
Surgery sites, n (%)
Abdomen59,669 (34.29)21,837 (21.9)37,832 (50.95)
Cardiovascular4819 (2.77)2777 (2.78)2042 (2.75)
Central nervous system5361 (3.08)4681 (4.69)680 (0.92)
Head and neck19,541 (11.23)16,281 (16.32)3260 (4.39)
Musculoskeletal20,912 (12.02)9533 (9.56)11,379 (15.32)
Other12,708 (7.3)11,725 (11.76)983 (1.32)
Respiratory13,656 (7.85)4509 (4.52)9147 (12.32)
Skin and soft tissue15,934 (9.16)13,166 (13.2)2768 (3.73)
Urinary and reproductive21,390 (12.29)15,226 (15.27)6164 (8.3)
Duration of surgery (min), mean (SD)136.55 (104.35)136.44 (110.35)136.71 (95.70)
Duration of anesthesia (min), mean (SD)186.55 (118.52)174.05 (120.93)203.33 (113.05)
Postoperative in-hospital death, n (%)
Survived173,128 (99.5)99,158 (99.42)73,970 (99.62)
Died862 (0.5)577 (0.58)285 (0.38)

aINSPIRE: Informative Surgical Patient Dataset for Innovative Research Environment.

bASA: American Society of Anesthesiologists.

Model Performance on the INSPIRE and HUAXI Databases

After conducting the sensitivity analysis of K, we found that the overall performance of the model no longer improved when K exceeded 4. Therefore, we set K to 4 for the subsequent analyses (Figure S1 in Multimedia Appendix 1). In the postoperative in-hospital mortality prediction task triggered at the end of surgery, the PRIME-MoE model consistently outperformed all baseline models, including ASA, logistic regression, extreme gradient boosting (XGBoost), and LSTM (Table 2). On the INSPIRE database, PRIME-MoE achieved an AUROC of 93.8 (95% CI 92.3‐96.0) and an AUPRC of 22.2 (95% CI 16.6‐29.8), outperforming the LSTM model, which achieved an AUROC of 91.1 (95% CI 88.8‐92.9) and an AUPRC of 17.8 (95% CI 13.6‐24.5). Similarly, on the HUAXI database, PRIME-MoE achieved an AUROC of 90.7 (95% CI 87.1‐94.8) and an AUPRC of 6.4 (95% CI 4.4‐10.4), compared with an AUROC of 88.5 (95% CI 85.5‐91.8) and an AUPRC of 4.3 (95% CI 2.4‐6.9) for the LSTM baseline. These results suggest that the MoE framework improved overall discrimination and precision-recall performance across both datasets. However, given the very low incidence of postoperative in-hospital mortality, especially in the HUAXI cohort, threshold-dependent metrics such as recall, precision, and F1-score should be interpreted with caution.

Table 2. Summary of model performance across the two databases.
Database and modelAUROCa (95% CI)AUPRCb (95% CI)Accuracy (95% CI)Recall (95% CI)Precision (95% CI)F1-score (95% CI)
INSPIREc
ASAd84.7 (80.8-87.8)22.4 (16.4-30.8)99.5 (99.4-99.6)16.4 (0.0-24.2)94.7 (0.0-100.0)27.9 (0.0-38.6)
LRe86.9 (84.0-88.8)16.2 (12.2-22.8)99.1 (98.9-99.3)30.5 (24.9-41.9)31.4 (21.9-39.8)30.9 (25.0-38.7)
XGBoostf88.9 (85.8-91.2)15.9 (10.1-23.2)99.1 (98.4-99.3)28.9 (24.0-43.9)30.8 (18.8-41.1)29.8 (23.7-37.4)
LSTMg91.1 (88.8-92.9)17.8 (13.6-24.5)99.2 (98.4-99.3)28.1 (23.6-53.5)34.0 (18.8-42.2)30.8 (24.4-36.3)
PRIME-MoEh93.8 (92.3-96.0)22.2 (16.6-29.8)98.8 (98.7-99.3)43.8 (29.1-52.5)25.8 (21.6-40.1)32.5 (26.5-38.8)
HUAXI
ASA81.5 (77.2-86.7)5.7 (2.2-13.0)99.6 (99.6-99.7)3.8 (0.0-8.8)50.0 (0.0-100.0)7.0 (0.0-15.3)
LR85.9 (81.3-89.4)2.7 (1.6-5.1)97.9 (97.1-99.1)26.4 (4.5-34.1)5.0 (2.1-8.1)8.3 (2.9-12.2)
XGBoost86.8 (84.1-90.5)3.1 (1.9-6.2)98.2 (97.8-99.3)26.4 (7.4-38.0)5.8 (3.0-9.6)9.5 (5.2-14.0)
LSTM88.5 (85.5-91.8)4.3 (2.4-6.9)98.7 (97.3-99.3)24.5 (9.5-39.3)7.7 (3.5-11.2)11.7 (6.2-15.5)
PRIME-MoE90.7 (87.1-94.8)6.4 (4.4-10.4)99.3 (97.9-99.4)17.0 (11.5-45.7)13.4 (6.9-20.1)15.0 (9.1-20.7)

aAUROC: area under the receiver operating characteristic curve.

bAUPRC: area under the precision-recall curve.

cINSPIRE: Informative Surgical Patient Dataset for Innovative Research Environment.

dASA: American Society of Anesthesiologists.

eLR: logistic regression.

fXGBoost: extreme gradient boosting.

gLSTM: long short-term memory.

hPRIME-MoE: Postoperative Risk Modeling Expert network.

Threshold-dependent metrics were calculated using model-specific thresholds selected by maximizing the F1-score in the validation set rather than using a universal threshold of 0.5.

Operational Feasibility and Earlier Prediction

Using the end-of-surgery-trained models without retraining, removal of the final 30 minutes of intraoperative data yielded AUROCs of 0.931 (AUPRC 0.205; Brier score 0.048) in INSPIRE and 0.902 (AUPRC 0.065; Brier score 0.038) in HUAXI, compared with end-of-surgery AUROCs of 0.937 and 0.907, respectively. The absolute AUROC reductions were 0.006 and 0.005. A full 30-minute lead time was unavailable for 4.9% of INSPIRE and 7.7% of HUAXI test cases; these short operations retained at least one time bin (Table S14 in Multimedia Appendix 1).

On 300 real INSPIRE test cases, PRIME-MoE required a median of 11.4 ms (9.1-18.0; 3.3-45.3) per case on GPU (mean 13.1, SD 7.0; P95 25.8 ms; P99 33.8 ms). These measurements exclude EHR extraction and preprocessing, which remain the principal unmeasured contributors to end-to-end clinical latency (Table S12 in Multimedia Appendix 1).

Threshold-Oriented Performance and False-Positive Burden

Because postoperative in-hospital mortality was rare, we further evaluated PRIME-MoE and LSTM at matched high-sensitivity operating points rather than relying on a single fixed threshold (Table 3). In the HUAXI test set, at a sensitivity of 81.1%, PRIME-MoE achieved a specificity of 87.2% and a PPV of 2.2%, compared with 79.0% and 1.4%, respectively, for LSTM. PRIME-MoE generated 127.2 false-positive predictions per 1000 procedures, compared with 209.1 for LSTM, corresponding to 81.9 fewer false positives per 1000 procedures. Both models missed 10 deaths at this operating point.

Table 3. Threshold-oriented comparison of PRIME-MoEa and long short-term memory (LSTM) at matched high-sensitivity operating pointsb.
Database and target sensitivityModelThresholdSensitivitySpecificityPPVcFPd per 1000FNe
HUAXI
80LSTM0.089181.1791.4209.110
80PRIME-MoE0.02581.187.22.2127.210
90LSTM0.022690.669.11308.45
90PRIME-MoE0.003690.676.41.4235.15
INSPIREf
80LSTM0.102480.584.83.3151.525
80PRIME-MoE0.339580.5948.159.425
90LSTM0.001490.673.82.2260.512
90PRIME-MoE0.002890.680.52.9193.612

aPRIME-MoE: Postoperative Risk Modeling Expert network.

bThresholds corresponding to the prespecified sensitivity targets were determined using the validation set and then applied without modification to the corresponding internal test set.

cPPV: positive predictive value.

dFP: false positive.

eFN: false negative.

fINSPIRE: Informative Surgical Patient Dataset for Innovative Research Environment.

At a sensitivity of 90.6% in HUAXI, PRIME-MoE generated 235.1 false positives per 1000 procedures, compared with 308.4 for LSTM, while both models missed 5 deaths. In the INSPIRE test set, at a sensitivity of 80.5%, PRIME-MoE generated 59.4 false positives per 1000 procedures, compared with 151.5 for LSTM. At a sensitivity of 90.6%, the corresponding false-positive burdens were 193.6 and 260.5 per 1000 procedures, respectively. The false-negative counts were identical between the 2 models at each matched-sensitivity operating point.

Compared with LSTM, PRIME-MoE reduced false-positive burden at the matched 80% and 90% sensitivity operating points in both databases. Nevertheless, positive predictive value remained low, particularly in HUAXI. The expanded operating-point analysis (Table S15 in Multimedia Appendix 1) shows why F1-maximizing thresholds and a fixed threshold of 0.5 are not appropriate universal defaults. Institutions should choose a locally validated sensitivity-alert burden trade-off after recalibration and then monitor false positives, missed deaths, and alert frequency prospectively.

Cross-Database Generalization

Reciprocal evaluation showed that discrimination was retained better than calibration (Table S2 in Multimedia Appendix 1). The HUAXI-trained model achieved an AUROC of 0.908 and an AUPRC of 0.128 in INSPIRE; the INSPIRE-trained model achieved an AUROC of 0.878 and an AUPRC of 0.081 in HUAXI. Differences in patient characteristics, surgical case mix, outcome prevalence, calendar period, geographic setting, and data collection practices represent a substantial distribution shift. These results indicate shared discriminative signal across the 2 databases rather than universal clinical transportability.

Calibration

Calibration metrics are summarized in Table 4. In internal evaluation, the Brier score, calibration slope, intercept, and expected calibration error were 0.045, 0.35, –4.06, and 0.054 in INSPIRE and 0.035, 0.40, –4.11, and 0.048 in HUAXI, respectively. Reciprocal evaluations showed similar miscalibration, with slopes of 0.28 and 0.49. Thus, discrimination remained useful, but raw predicted probabilities were not aligned with observed event rates. Reliability diagrams are provided in Figure S2 in Multimedia Appendix 1. These findings support site-specific recalibration before thresholded clinical use.

Table 4. Calibration metrics for PRIME-MoEa,b.
SettingSurgical cases (in-hospital deaths), nPrevalence (%)AUROCcAUPRCdBrier (95% CI)SlopeInterceptECEe
INSPIREf internal19,743 (128)0.650.9370.2220.045 (0.042‐0.048)0.35−4.060.054
HUAXI internal14,749 (53)0.360.9070.0640.035 (0.033‐0.038)0.40−4.110.048
INSPIRE to HUAXI14,749 (53)0.360.8780.0810.048 (0.046‐0.052)0.28−4.630.063
HUAXI to INSPIRE19,743 (128)0.650.9080.1280.044 (0.041‐0.047)0.49−3.850.067

aPRIME-MoE: Postoperative Risk Modeling Expert network.

bCalibration slope and intercept were estimated by regressing the outcome on the logit of predicted probability. Ideal values are 1 and 0, respectively.

cAUROC: area under the receiver operating characteristic curve.

dAUPRC: area under the precision-recall curve.

eECE: expected calibration error using 10 equal-width bins.

fINSPIRE: Informative Surgical Patient Dataset for Innovative Research Environment.

Subgroup Analysis

We further conducted exploratory analyses across broad surgical site categories and ASA physical status groups (Tables S3-S6 in Multimedia Appendix 1). Across both databases, PRIME-MoE showed numerically higher or comparable AUROC values relative to LSTM in most surgical subgroups. However, several subgroups contained very few postoperative in-hospital deaths, including central nervous system surgery in HUAXI (2/134) and head and neck surgery in HUAXI (4/647), resulting in wide CIs and potentially unstable comparisons. Unadjusted DeLong P values are provided for descriptive purposes, but these analyses were not designed for confirmatory hypothesis testing. Accordingly, interpretation focused on the direction and magnitude of the AUROC differences, CIs, sample sizes, and event counts rather than on isolated P values. In HUAXI, the largest numerical difference was observed in cardiovascular surgery, for which PRIME-MoE achieved an AUROC of 81.1 (95% CI 73.1‐89.0), compared with 55.6 (95% CI 41.9‐69.3) for LSTM. In INSPIRE, numerical differences were observed in several categories, including musculoskeletal, cardiovascular, respiratory, and urinary and reproductive surgery. However, because some subgroup event counts were small and multiple comparisons were conducted, these findings should be considered hypothesis-generating rather than evidence of model superiority within individual surgical categories. In the ASA subgroup analyses, PRIME-MoE and LSTM showed comparable discrimination among patients with ASA physical status 1 to 2 in HUAXI, whereas PRIME-MoE had a numerically higher AUROC among patients with ASA physical status 3 to 6. In INSPIRE, PRIME-MoE showed higher AUROC values than LSTM in both ASA groups. These findings likewise represent exploratory assessments of model robustness across broad risk strata. Because the composition of the Other category differed between the source taxonomies of INSPIRE and HUAXI, its subgroup results should not be interpreted as a direct procedure-matched cross-database comparison.

Computational Profile and Expert Routing

PRIME-MoE with K=4 contained 665,029 trainable parameters, compared with 555,775 for the LSTM baseline with hidden size 256 and 196,066 for PRIME-MoE with K=1 (Table S12 in Multimedia Appendix 1). Router weights varied significantly by surgical site (INSPIRE: χ224=822.7; P<.001; HUAXI: χ224=1272.4; P<.001). Mean Expert 0 weight was lower in cardiovascular and respiratory cases and higher in urinary and reproductive and skin and soft-tissue cases (Figure 2). Expert 0 was nevertheless the highest-weighted expert for 18,815/19,743 (95.3%) of INSPIRE and 10,565/14,749 (71.6%) of HUAXI cases. We therefore interpret the pattern as a shared generalist expert supplemented by context-dependent residual experts, not as evidence of fully disjoint procedure-specific specialists.

‎
Figure 2. Mean Postoperative Risk Modeling Expert network (PRIME-MoE) router weights by surgical site in (A) INSPIRE (Informative Surgical Patient Dataset for Innovative Research Environment) and (B) HUAXI. Expert 0 remained the highest-weighted expert for most cases, while secondary-expert participation varied by surgical context. Surgical site was associated with the dominant expert in both databases (P<.001). CNS: central nervous system.

Feature Importance Analysis

We used the IG method to quantify the contribution of both static and dynamic variables to postoperative in-hospital mortality predictions generated by the PRIME-MoE model. Overall, dynamic intraoperative features received higher attribution values than most static features. Heart rate had the highest average IG attribution in both databases, indicating that the model relied strongly on heart-rate information relative to the selected baseline (Figure 3). Other dynamic variables with relatively high attributions included arterial diastolic blood pressure, oxygen concentration, arterial blood gas parameters, peak inspiratory pressure, end-tidal CO₂, and bispectral index. These attributions indicate associations with model predictions but do not distinguish physiological severity from the effects of treatment and intraoperative management. Static features showed comparatively lower but nonnegligible contributions. Variables such as age, ASA classification, emergency status, and selected laboratory indicators provided important baseline risk context, complementing the time-varying physiological signals rather than dominating the prediction. Figure 4 illustrates a representative case predicted by PRIME-MoE. The patient was a 70-year-old female undergoing respiratory surgery, for whom the model assigned a high predicted risk of in-hospital mortality. The IG heatmaps showed progressively increasing attribution values for several dynamic inputs toward the later intraoperative period. These patterns indicate increasing model reliance on the corresponding inputs but should not be interpreted as direct evidence of clinical deterioration or causal effects. Meanwhile, the MoE weights revealed a highly concentrated routing pattern, with Expert 0 receiving the majority of the activation weight, while the remaining experts contributed marginally. This case illustrates how PRIME-MoE combines expert routing with temporal feature attribution to provide a model-level explanation of an individual prediction. The attribution results are descriptive and should not be used independently to guide treatment decisions.

‎
Figure 3. (A) Top 20 integrated gradients attributions of the Postoperative Risk Modeling Expert network (PRIME-MoE) model for predicting postoperative in-hospital mortality risk in the INSPIRE (Informative Surgical Patient Dataset for Innovative Research Environment) database. (B) Top 20 integrated gradients attributions in the HUAXI database. Integrated gradients attributions quantify model dependence relative to the selected baseline and should not be interpreted as causal effects. Intervention-sensitive variables may reflect underlying physiological instability, treatment response, or clinical management intensity. Categorical variables were represented using full one-hot encoding. For these variables, the zero baseline represents the absence of an individual category indicator rather than an actual patient category; therefore, category-specific attributions should not be interpreted as comparisons with another category. ASA: American Society of Anesthesiologists; BIS: bispectral index; DBP: diastolic blood pressure; FiO2: fraction of inspired oxygen; MBP: mean blood pressure; SpO2: peripheral oxygen saturation.
‎
Figure 4. Representative case of postoperative in-hospital mortality risk prediction by Postoperative Risk Modeling Expert network (PRIME-MoE), showing integrated gradients attributions for static and dynamic inputs and the corresponding mixture-of-experts weights. Integrated gradients attributions describe model dependence relative to the selected baseline and should not be interpreted as causal effects, treatment effects, or evidence that modifying a highly attributed variable would change mortality risk. For 1-hot encoded categorical inputs, the zero baseline represents the absence of each category indicator and does not constitute a clinically realizable patient profile. The displayed categorical attributions therefore reflect the contribution of activated indicators relative to this mathematical baseline rather than category-to-category comparisons. ASA: American Society of Anesthesiologists; BIS: bispectral index; BMI: body mass index; BUN: blood urea nitrogen; CO₂: carbon dioxide; CRP: C-reactive protein; CVP: central venous pressure; DBP: diastolic blood pressure; FiO2: fraction of inspired oxygen; MBP: mean blood pressure; SpO2: peripheral oxygen saturation; WBC: white blood cell.

Principal Findings

We developed PRIME-MoE for postoperative in-hospital mortality prediction using 2 large perioperative databases. Internal AUROCs were 0.938 in INSPIRE and 0.907 in HUAXI. Reciprocal evaluation retained discrimination, but calibration slopes of 0.28‐0.49 showed that probabilities were not directly transportable. Scoring 30 minutes before the recorded end of surgery reduced AUROC by only 0.006 in INSPIRE and 0.005 in HUAXI, and median neural-network inference time was 11.4 ms per case. These findings support further evaluation of PRIME-MoE as a near-end-of-surgery triage aid, with local recalibration and prospective workflow validation before deployment.

Interpretation and Comparison With Prior Work

Across the INSPIRE and HUAXI cohorts, PRIME-MoE achieved higher AUROC and AUPRC values than the evaluated logistic regression, XGBoost, and LSTM models. Each temporal expert was a 1-layer unidirectional LSTM, and static perioperative context generated dense softmax weights over all experts. This architecture allowed shared temporal representations to be combined according to surgical context, but the present analyses do not establish that gating is superior to simple context concatenation. A direct retrained ablation remains necessary.

Previous clinical MoE studies used multiple temporal experts to represent heterogeneous patient trajectories [28-30]. PRIME-MoE differs in that it uses static perioperative context to assign patient-specific dense weights to LSTM experts, each of processes the complete intraoperative sequence. Its contribution is the application and reciprocal evaluation of this context-informed routing strategy for postoperative in-hospital mortality prediction.

Cross-Database Generalization and Subgroup Performance

Reciprocal evaluation indicates that PRIME-MoE captured shared discriminative signal across INSPIRE and HUAXI despite differences in patient mix, surgical categories, outcome prevalence, calendar period, and institutional practice. The HUAXI-trained model achieved an AUROC of 0.908 in INSPIRE, whereas the INSPIRE-trained model achieved an AUROC of 0.878 in HUAXI. These results should not be interpreted as universal transportability.

Calibration results sharpen this limitation. Slopes substantially below 1 and large negative intercepts show that raw probability estimates were not transferable, even when AUROC remained useful. The low HUAXI AUPRC (0.064 internally) also indicates a high false-positive burden in a lower-prevalence setting. Reciprocal validation therefore supports shared signal, not plug-and-play clinical deployment. New sites should recalibrate the model and select operating points on local validation data.

Expert Activation Patterns

Router weights were associated with surgical site in both databases, but one expert remained dominant for most patients. The lower Expert 0 weights in cardiovascular and respiratory procedures and greater participation of secondary experts suggest context-dependent routing. However, this pattern does not prove that individual experts represent distinct physiological mechanisms. We therefore describe the result as a shared generalist expert with residual context-dependent experts and treat a direct concatenation-versus-gating ablation as future work.

Clinical and Methodological Implications

PRIME-MoE contained about 20% more trainable parameters than the LSTM baseline used in the paper (665,029 vs 555,775). Synthetic GPU inference at sequence length 40 was approximately 7.2 ms per case for PRIME-MoE and 1.8 ms for the LSTM baseline. Although PRIME-MoE was slower, real-data scoring remained in the millisecond range. Training wall-clock time was not recorded prospectively and could not be reconstructed reliably; this is reported transparently rather than estimated after the fact.

PRIME-MoE is positioned as an end-of-surgery or near-end postoperative triage aid, not an intraoperative closed-loop controller. A prospective score could be generated when surgery end is anticipated, provided that the preoperative features and intraoperative stream up to that time are available. The 30-minute truncation analysis suggests that much of the discriminative information is available before formal surgery end, but it does not replace prospective testing of data availability and clinical workflow.

Model evaluation required only milliseconds per case in the GPU benchmarks; end-to-end latency will depend on data extraction, resampling, and integration with the anesthesia information system. Scores should support clinician review of PACU or higher-acuity disposition and should not independently mandate ICU admission or another intervention.

No universal probability threshold is supported by these data. Institutions should choose a sensitivity target based on the intended use and acceptable alerts per 1000 procedures; recalibrate probabilities locally; freeze the selected threshold for evaluation; and monitor positive predictive value, false positives, and missed deaths after deployment.

At matched sensitivity, PRIME-MoE produced fewer false positives than LSTM, but the alert burden increased sharply at higher sensitivity and positive predictive value remained low. A continuous or tiered risk display may therefore be more appropriate than an isolated binary alarm. Prospective studies should measure alert frequency, clinician response, changes in postoperative disposition, and patient outcomes.

Interpreting Feature Attributions for Clinical Readers

GI attributions quantify how each input contributes to a model prediction relative to the selected baseline. They describe associations with the model output, not causal effects on postoperative death. This distinction is essential for perioperative readers.

Highly attributed variables such as heart rate, arterial pressure, oxygenation measures, and vasoactive drug exposure are also treatment targets or indicators of treatment intensity. A vasopressor may receive high attribution because it marks hemodynamic instability that prompted treatment, not because the drug caused mortality. Blood-pressure and heart-rate patterns can likewise reflect both patient state and the response to clinical management.

IG can be used to audit whether the model relies on clinically plausible signals, explain why an individual score is elevated, and generate hypotheses for future studies. It should not be used to rank independent causal risk factors, justify changing a drug solely because it has high attribution, or replace clinical judgment about reversible intraoperative physiology.

Complementary tools can provide different views of model behavior. Shapley additive explanations (SHAP) offers alternative additive explanations, and router-weight visualizations summarize which temporal experts receive weight for a given surgical context. Counterfactual or treatment-aware models would be required for causal questions. Until such approaches are validated prospectively, clinical displays should include an explicit noncausal disclaimer. Related work has incorporated human expertise into MoE models and developed interpretable representations for multivariate medical time series [39-41]. These approaches are complementary to IG and may support future comparisons of interpretability methods in perioperative prediction.

Fairness Considerations

Interpretability does not eliminate bias. PRIME-MoE may reproduce disparities in historical care or perform less reliably in rare surgical conditions and underrepresented groups. Prospective evaluation should therefore examine calibration, error rates, and clinical consequences across relevant subgroups. Clinical deployment would also require explicit governance for patient privacy, clinician oversight, accountability, and appropriate limits on automated decision-making [42,43].

Limitations

This study has several limitations. First, it was retrospective and did not measure streaming-data latency, system integration, or effects on PACU or ICU decisions. Second, postoperative in-hospital mortality may be influenced by discharge practice and does not capture 30- or 90-day mortality. Third, both databases came from large East Asian academic hospitals, so performance in other countries, community hospitals, and different surgical case mixes is unknown. Fourth, raw probability calibration was suboptimal and requires site-specific recalibration before thresholded use. Fifth, expert routing was associated with surgical context but was dominated by a shared expert; a retrained ablation against simple feature concatenation remains necessary. Sixth, regular-grid completion may introduce imputation-related artifacts despite observation masks, and removal of time points without source observations can shorten usable sequences. Missingness-aware encoders such as GRU-D [44] are alternatives for future study. Seventh, several subgroup comparisons contained few or no events; their CIS and unadjusted DeLong tests are exploratory. Finally, the 30-minute analysis reused end-of-surgery-trained weights and retained at least 1 bin for short operations; a prospective model trained and evaluated at a prespecified earlier trigger may perform differently.

Conclusions

In conclusion, PRIME-MoE combined static preoperative context with intraoperative time-series data and retained useful discrimination across 2 heterogeneous perioperative databases. Scoring 30 minutes before the recorded end of surgery produced only small AUROC reductions, and neural-network inference was fast. However, poor calibration and low positive predictive value in the lower-prevalence cohort preclude direct deployment. Prospective external validation, local recalibration, threshold selection, and workflow evaluation are required before clinical use.

Generative AI Use

During manuscript revision, the authors used the generative AI tool OpenAI Codex (OpenAI) for English-language refinement. The tool was not used to generate or analyze study data, conduct statistical analyses, or make scientific conclusions. The authors reviewed and verified all AI-assisted text and reference edits and take full responsibility for the final manuscript.

Funding

This research was funded by Chongqing Postdoctoral Research Project Special Funding (First-Class Funding) (grant number: 2025CQBSHTB1013) and the Sichuan Science and Technology Program (grant number: 2023YFS0200).

Data Availability

The INSPIRE (Informative Surgical Patient Dataset for Innovative Research Environment) database is publicly available on PhysioNet after registration and completion of the required data use agreement. The HUAXI perioperative database is not publicly downloadable because it contains deidentified institutional clinical data; access requires approval from West China Hospital, an institutional data use agreement, and applicable ethics oversight. Preprocessing scripts, model definitions, training and evaluation code, and configuration examples are available at GitHub [46].

Authors' Contributions

SH, JX, and XN contributed equally to this work. SH contributed to the study conception and design, data preprocessing and analysis, model development, and drafting of the manuscript. JX contributed to data curation, preprocessing, and analysis, as well as to drafting and revising sections of the manuscript. XN contributed to methodological development, statistical analysis, and critical revision of the manuscript for important intellectual content. ZZ contributed to data acquisition, preprocessing, and validation and participated in result interpretation. JL supervised the overall study, provided methodological and statistical guidance, led the interpretation of results, and finalized the manuscript. All authors read and approved the final version of the manuscript.

Multimedia Appendix 1

Supplementary figures and tables detailing cohort characteristics, data preprocessing, model development, performance evaluation, calibration, and sensitivity analyses.

DOCX File, 476 KB

Checklist 1

TRIPOD+AI checklist.

PDF File, 1022 KB

  1. Hofer IS, Lee C, Gabel E, Baldi P, Cannesson M. Development and validation of a deep neural network model to predict postoperative mortality, acute kidney injury, and reintubation using a single feature set. NPJ Digit Med. 2020;3:58. [CrossRef] [Medline]
  2. Lee SW, Lee HC, Suh J, et al. Multi-center validation of machine learning model for preoperative prediction of postoperative mortality. NPJ Digit Med. Jul 12, 2022;5(1):91. [CrossRef] [Medline]
  3. Zhao X, Liao K, Wang W, Xu J, Meng L. Can a deep learning model based on intraoperative time-series monitoring data predict post-hysterectomy quality of recovery? Perioper Med (Lond). Apr 6, 2021;10(1):8. [CrossRef] [Medline]
  4. Chen H, Lundberg SM, Erion G, Kim JH, Lee SI. Forecasting adverse surgical events using self-supervised transfer learning for physiological signals. NPJ Digit Med. Dec 8, 2021;4(1):167. [CrossRef] [Medline]
  5. Park S, Chung S, Kim Y, et al. A deep-learning algorithm using real-time collected intraoperative vital sign signals for predicting acute kidney injury after major non-cardiac surgeries: a modelling study. PLoS Med. Apr 2025;22(4):e1004566. [CrossRef] [Medline]
  6. Shickel B, Loftus TJ, Ruppert M, et al. Dynamic predictions of postoperative complications from explainable, uncertainty-aware, and multi-task deep neural networks. Sci Rep. Jan 21, 2023;13(1):1224. [CrossRef] [Medline]
  7. Arina P, Kaczorek MR, Hofmaenner DA, et al. Prediction of complications and prognostication in perioperative medicine: a systematic review and PROBAST assessment of machine learning tools. Anesthesiology. Jan 1, 2024;140(1):85-101. [CrossRef] [Medline]
  8. Hashimoto DA, Rosman G, Rus D, Meireles OR. Artificial intelligence in surgery: promises and perils. Ann Surg. Jul 2018;268(1):70-76. [CrossRef] [Medline]
  9. Maheshwari K, Cywinski JB, Papay F, Khanna AK, Mathur P. Artificial intelligence for perioperative medicine: perioperative intelligence. Anesth Analg. Apr 1, 2023;136(4):637-645. [CrossRef] [Medline]
  10. Lee CK, Samad M, Hofer I, Cannesson M, Baldi P. Development and validation of an interpretable neural network for prediction of postoperative in-hospital mortality. NPJ Digit Med. Jan 8, 2021;4(1):8. [CrossRef] [Medline]
  11. Mahajan A, Esper S, Oo TH, et al. Development and validation of a machine learning model to identify patients before surgery at high risk for postoperative adverse events. JAMA Netw Open. Jul 3, 2023;6(7):e2322285. [CrossRef] [Medline]
  12. Bonde A, Varadarajan KM, Bonde N, et al. Assessing the utility of deep neural networks in predicting postoperative surgical complications: a retrospective study. Lancet Digit Health. Aug 2021;3(8):e471-e485. [CrossRef] [Medline]
  13. Xue B, Li D, Lu C, et al. Use of machine learning to develop and evaluate models using preoperative and intraoperative data to identify risks of postoperative complications. JAMA Netw Open. Mar 1, 2021;4(3):e212240. [CrossRef] [Medline]
  14. Hill BL, Brown R, Gabel E, et al. An automated machine learning-based model predicts postoperative mortality using readily-extractable preoperative electronic health record data. Br J Anaesth. Dec 2019;123(6):877-886. [CrossRef] [Medline]
  15. Fritz BA, Cui Z, Zhang M, et al. Deep-learning model for predicting 30-day postoperative mortality. Br J Anaesth. Nov 2019;123(5):688-695. [CrossRef] [Medline]
  16. Lee CK, Hofer I, Gabel E, Baldi P, Cannesson M. Development and validation of a deep neural network model for prediction of postoperative in-hospital mortality. Anesthesiology. Oct 2018;129(4):649-662. [CrossRef] [Medline]
  17. Lee TH, Marcantonio ER, Mangione CM, et al. Derivation and prospective validation of a simple index for prediction of cardiac risk of major noncardiac surgery. Circulation. Sep 7, 1999;100(10):1043-1049. [CrossRef] [Medline]
  18. Harutyunyan H, Khachatrian H, Kale DC, Ver Steeg G, Galstyan A. Multitask learning and benchmarking with clinical time series data. Sci Data. Jun 17, 2019;6(1):96. [CrossRef] [Medline]
  19. Kapral L, Dibiasi C, Jeremic N, et al. Development and external validation of temporal fusion transformer models for continuous intraoperative blood pressure forecasting. EClinicalMedicine. Sep 2024;75:102797. [CrossRef] [Medline]
  20. Hyland SL, Faltys M, Hüser M, et al. Early prediction of circulatory failure in the intensive care unit using machine learning. Nat Med. Mar 2020;26(3):364-373. [CrossRef] [Medline]
  21. Thorsen-Meyer HC, Nielsen AB, Nielsen AP, et al. Dynamic and explainable machine learning prediction of mortality in patients in the intensive care unit: a retrospective study of high-frequency data in electronic patient records. Lancet Digit Health. Apr 2020;2(4):e179-e191. [CrossRef] [Medline]
  22. Ren Y, Loftus TJ, Datta S, et al. Performance of a machine learning algorithm using electronic health record data to predict postoperative complications and report on a mobile platform. JAMA Netw Open. May 2, 2022;5(5):e2211973. [CrossRef] [Medline]
  23. Nagata C, Hata M, Miyazaki Y, et al. Development of postoperative delirium prediction models in patients undergoing cardiovascular surgery using machine learning algorithms. Sci Rep. Nov 30, 2023;13(1):21090. [CrossRef] [Medline]
  24. Shen J, Xue B, Kannampallil T, Lu C, Abraham J. A novel generative multi-task representation learning approach for predicting postoperative complications in cardiac surgery patients. J Am Med Inform Assoc. Mar 1, 2025;32(3):459-469. [CrossRef] [Medline]
  25. Balch J, Upchurch GR, Bihorac A, Loftus TJ. Bridging the artificial intelligence valley of death in surgical decision-making. Surgery. Apr 2021;169(4):746-748. [CrossRef] [Medline]
  26. Castela Forte J, Yeshmagambetova G, van der Grinten ML, et al. Comparison of machine learning models including preoperative, intraoperative, and postoperative data and mortality after cardiac surgery. JAMA Netw Open. Oct 3, 2022;5(10):e2237970. [CrossRef] [Medline]
  27. Stam WT, Goedknegt LK, Ingwersen EW, Schoonmade LJ, Bruns ERJ, Daams F. The prediction of surgical complications using artificial intelligence in patients undergoing major abdominal surgery: a systematic review. Surgery. Apr 2022;171(4):1014-1021. [CrossRef] [Medline]
  28. Lee JM, Hauskrecht M. Learning to adapt dynamic clinical event sequences with residual mixture of experts. In: Artificial Intelligence in Medicine. Springer; 2022:155-166. [CrossRef]
  29. Li H, Deng B, Xu C, et al. MIRA: medical time series foundation model for real-world health data. Presented at: Advances in Neural Information Processing Systems 38; Dec 2-7, 2025. [CrossRef]
  30. Contreras M, Sena J, Davidson A, et al. MANDARIN: mixture-of-experts framework for dynamic delirium and coma prediction in ICU patients: development and validation of an acute brain dysfunction prediction model. arXiv. Preprint posted online on Mar 8, 2025. [CrossRef]
  31. Xi H, Shao Z, Hensher DA, Nelson JD, Chen H, Wijayaratna K. A multi-task Transformer with mixture-of-experts for personalized periodic predictions of individual travel behavior in multimodal public transport. Transp Res Part C Emerg Technol. Oct 2025;179:105287. [CrossRef]
  32. Li J, Wang B, Zhou X, Jiang P, Liu J, Hu X. Decoding knowledge attribution in mixture-of-experts: a framework of basic-refinement collaboration and efficiency analysis. Presented at: Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers); Jul 27 to Aug 1, 2025. [CrossRef]
  33. Gan W, Ning Z, Qi Z, Yu PS. Mixture of experts (MoE): a big data perspective. Inf Fusion. Mar 2026;127:103664. [CrossRef]
  34. Cai W, Jiang J, Wang F, Tang J, Kim S, Huang J. A survey on mixture of experts in large language models. IEEE Trans Knowl Data Eng. 2025:3896-3915. [CrossRef]
  35. Dai D, Deng C, Zhao C, et al. DeepSeekMoE: towards ultimate expert specialization in mixture-of-experts language models. In: Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). Association for Computational Linguistics; 2024:1280-1297. [CrossRef]
  36. Lim L, Lee H, Jung CW, et al. INSPIRE, a publicly available research dataset for perioperative medicine. Sci Data. Jun 21, 2024;11(1):655. [CrossRef] [Medline]
  37. Luo J, Huang S, Lan L, et al. EMR-LIP: a lightweight framework for standardizing the preprocessing of longitudinal irregular data in electronic medical records. Comput Methods Programs Biomed. Feb 2025;259:108521. [CrossRef] [Medline]
  38. Sundararajan M, Taly A, Yan Q. Axiomatic attribution for deep networks. Presented at: ICML’17: Proceedings of the 34th International Conference on Machine Learning; Aug 6-11, 2017. URL: https://dl.acm.org/doi/10.5555/3305890.3306024 [Accessed 2026-10-12]
  39. Pradier MF, Zazo J, Parbhoo S, Perlis RH, Zazzi M, Doshi-Velez F. Preferential mixture-of-experts: interpretable models that rely on human expertise as much as possible. AMIA Jt Summits Transl Sci Proc. 2021;2021:525-534. [Medline]
  40. Chen SF, Guo Z, Ding C, Hu X, Rudin C. Sparse learned kernels for interpretable and efficient medical time series processing. Nat Mach Intell. Oct 2024;6(10):1132-1144. [CrossRef] [Medline]
  41. Rahman A, Chang Y, Rubin J. Interpretable additive recurrent neural networks for multivariate clinical time series. arXiv. Preprint posted online on Sep 15, 2021. [CrossRef]
  42. Regulation (EU) 2016/679 of the European Parliament and of the Council of 27 April 2016 on the protection of natural persons with regard to the processing of personal data and on the free movement of such data, and repealing Directive 95/46/EC (General Data Protection Regulation) (Text with EEA relevance). European Union; 2026. URL: https://eur-lex.europa.eu/eli/reg/2016/679/oj/eng/ [Accessed 2026-10-12]
  43. Cohen IG, Amarasingham R, Shah A, Xie B, Lo B. The legal and ethical concerns that arise from using complex predictive analytics in health care. Health Aff (Millwood). Jul 2014;33(7):1139-1147. [CrossRef] [Medline]
  44. Ruan X, Fu S, Storlie CB, Mathis KL, Larson DW, Liu H. Real-time risk prediction of colorectal surgery-related post-surgical complications using GRU-D model. J Biomed Inform. Nov 2022;135:104202. [CrossRef] [Medline]
  45. MOE_perioperative. GitHub. URL: https://github.com/ljwa2323/MOE_perioperative [Accessed 2026-10-12]


‎
ASA: American Society of Anesthesiologists
AUPRC: area under the precision-recall curve
AUROC: area under the receiver operating characteristic curve
ECE: expected calibration error
EHR: electronic health record
EMR-LIP: Electronic Medical Record-Longitudinal Irregular Preprocessing
GPU: graphics processing unit
GRU: Gated Recurrent Unit
ICU: intensive care unit
IG: integrated gradients
INSPIRE: Informative Surgical Patient Dataset for Innovative Research Environment
LSTM: long short-term memory
MLP: multilayer perceptron
MoE: Mixture of Experts
PACU: postanesthesia care unit
PRIME-MoE: Postoperative Risk Modeling Expert network
SHAP: Shapley additive explanations
TRIPOD+AI: Transparent Reporting of a multivariable prediction model for Individual Prognosis Or Diagnosis + Artificial Intelligence
XGBoost: extreme gradient boosting


Edited by Ivan Steenstra; submitted 04.Feb.2026; peer-reviewed by Pei-fu Chen, Yanna Si; final revised version received 28.Sep.2026; accepted 28.Sep.2026; published 04.Nov.2026.

Copyright

© Shixin Huang, Jinhong Xia, Xixi Nie, Zhuo Zheng, Jiawei Luo. Originally published in the Journal of Medical Internet Research (https://www.jmir.org), 4.Nov.2026.

This is an open-access article distributed under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work, first published in the Journal of Medical Internet Research (ISSN 1438-8871), is properly cited. The complete bibliographic information, a link to the original publication on https://www.jmir.org/, as well as this copyright and license information must be included.