Related Experiment Video
Updated: May 11, 2025

Implementation of a Real-Time Psychosis Risk Detection and Alerting System Based on Electronic Health Records using CogStack
Published on: May 15, 2020
A Transformer-Based Framework for Counterfactual Estimation of Antihypertensive Treatment Effect on COVID-19
Tran Qb Tran1, Stefanie Lip1,2, Honghan Wu3
1School of Cardiovascular and Metabolic Health, University of Glasgow, Glasgow, UK.
Background:
Transformer-based neural networks excel in modelling high-dimensional, time-series data with complex dependencies. This proof-of-concept study applies a transformer-X-learner framework to estimate treatment effects using real-world data, using antihypertensive drug exposure and COVID-19 risk as an exemplar.
Methods:
We conducted a case-control study of 303,220 NHS Greater Glasgow and Clyde patients aged ≥ 40 years during the first two COVID-19 pandemic waves. Using a transformer-X-learner framework that incorporated temporal patterns in medication usage and comorbidities, we controlled for confounding effects and estimated individual and average treatment effects ACEIs, beta-blockers (BBs), calcium channel blockers (CCBs), thiazides (THZs), and statins on 180-day SARS-CoV-2 infection risk.
Results:
The transformer-X-learner framework outperformed traditional approaches, achieving an F1 score of 0.82 and area under the precision-recall curve (AUPRC) of 0.78. ACEIs showed a negligible overall impact on COVID-19 risk (ATE: 0.97%±5.5), while BBs (-8.3%±7.3%) and CCBs (-9.7%±8.1%) were protective. Statins (3.5%±6.1%) and THZs (4.3%±10.8%) showed slight increases in risk. Treatment effects were consistent across age, gender, and socioeconomic categories.
Conclusions:
ACEIs do not substantially increase the risk of COVID-19 infection while the protective effects of BBs and CCBs warrant further investigation. This study highlights the potential of transformer-based causal inference models as a powerful tool for evaluating treatment safety and efficacy in complex healthcare scenarios.
More Related Videos
07:51Hydra, a Computer-Based Platform for Aiding Clinicians in Cardiovascular Analysis and Diagnosis
Published on: September 26, 2018
06:55Inverse Probability of Treatment Weighting Propensity Score using the Military Health System Data Repository and National Death Index
Published on: January 8, 2020
Related Concept Videos
Strategies for Assessing and Addressing Confounding
Confounding can be addressed at both the design phase of a study and through analytical methods after data...
Heart Failure Drugs: Inhibitors of Renin-Angiotensin System
Types of Biopharmaceutical Studies: Controlled and Non-Controlled Approaches
Non-controlled studies, commonly employed for initial exploration, lack a control group, rendering them susceptible to biases and external influences. In contrast,...
Study Designs in Epidemiology
Observational studies are those where the researcher does not intervene but rather observes natural variations. They include cross-sectional, cohort, and...
Pre-Procedural Guidelines for Assessing Blood Pressure
Hazard Ratio
For example, in a clinical trial...