Back to search

Science

TwinRx: Safety-Aware Digital Twins for Prostate Cancer Inpatient Emergencies

Abstract

dc:description.abstract

Digital twin technology aims to create virtual representations of patients that can forecast health risks and guide treatment decisions in real time. This thesis presents an AI-driven digital twin framework for prostate-cancer inpatient care, developed and evaluated using the MIMIC-IV database. The system comprises two complementary modules that work together to predict outcomes and recommend treatments in a safe and transparent manner. The first module is a predictive multitask model based on a Multitask Mixture-of-Experts (MMoE) architecture. Using electronic health record data, it jointly predicts five key outcomes: in-hospital mortality, ICU admission, 30-day emergency readmission (ED30), acute kidney injury (AKI), and hospital length of stay (LOS). Through ablation studies, the configuration with input from six experts achieved the best balance between accuracy and interpretability, outperforming traditional models such as logistic regression, gradient boosting, and standard neural networks. The MMoE achieved consistent gains in predicting rare-events while maintaining compactness and interpretability. Expert specialization patterns revealed clinically coherent routing behavior, with experts aligning to outcome clusters such as renal complications or prolonged stays, supporting transparent task disentanglement within the model. The second module focuses on causal reasoning, addressing “what-if” treatment questions through doubly robust learning with cross-fitting. It estimates how common inpatient drugs affect each outcome within the first 12 hours of admission. Policy evaluation demonstrates that benefit-targeted treatment strategies improve expected outcomes relative to risk-only approaches. The causal layer incorporates safety mechanisms that block unsafe drug combinations, enforce stricter limits for high-risk or elderly patients, and confirm treatment-effect consistency across demographic strata. Together, these modules form TwinRx, a bidirectional digital twin that both predicts what is likely to happen and estimates what could happen under alternative treatments. Designed for hospitalized prostate-cancer patients—a high-risk yet under-studied group in oncology AI—TwinRx unifies predictive and prescriptive intelligence to support short-term clinical decisions around monitoring, medication, and resource allocation. Positioned between a one-way digital shadow and a fully actuating digital twin, TwinRx represents a practical step toward real-time, safety-aware clinical digital twins that combine multitask prediction, and prescriptive reasoning.

Degree

thesis:*
Name thesis:degree_name
Master of Science (MSc)
Discipline thesis:degree_discipline
Computer Science
Grantor
Science
Year dc:date.issued
2025

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • John, Annette
Advisors dc:contributor.advisor
  • Alhajj, Reda
  • Rokne, Jon
Committee members dc:contributor.committeemember
  • Alhajj, Reda
  • Rokne, Jon
  • Ovens, Katie
  • Far, Behrouz

Subjects

dc:subject × 3

Rights

dc:rights
Statement dc:rights
  • Unless otherwise indicated, this material is protected by copyright and has been made available with authorization from the copyright owner. You may use this material in any way that is permitted by the Copyright Act or through licensing that has been assigned to the document. For uses that are not allowable under copyright legislation or licensing, you are required to seek permission.
Language dc:language.iso
en

Identifiers

dc:identifier.*
Dc Identifier Citation
John, A. (2025). TwinRx: safety-aware digital twins for prostate cancer inpatient emergencies (Master's thesis, University of Calgary, Calgary, Canada). Retrieved from https://prism.ucalgary.ca.

Chain of custody

source
Harvested from
University of Calgary
Base URL
ucalgary.scholaris.ca/server/oai/request
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
citation

John, Annette. TwinRx: Safety-Aware Digital Twins for Prostate Cancer Inpatient Emergencies. Science, 2025. https://hdl.handle.net/1880/123383