A Transformer-Based Framework for Counterfactual Estimation of Antihypertensive Treatment Effect on COVID-19 Infection Risk - A Proof-of-Concept Study.
Tran Q B Tran, Stefanie Lip, Honghan Wu, Shyam Visweswaran, Jill P Pell, Sandosh Padmanabhan
{"title":"A Transformer-Based Framework for Counterfactual Estimation of Antihypertensive Treatment Effect on COVID-19 Infection Risk - A Proof-of-Concept Study.","authors":"Tran Q B Tran, Stefanie Lip, Honghan Wu, Shyam Visweswaran, Jill P Pell, Sandosh Padmanabhan","doi":"10.1093/ajh/hpaf055","DOIUrl":null,"url":null,"abstract":"<p><strong>Background: </strong>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.</p><p><strong>Methods: </strong>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.</p><p><strong>Results: </strong>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.</p><p><strong>Conclusions: </strong>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.</p>","PeriodicalId":7578,"journal":{"name":"American Journal of Hypertension","volume":" ","pages":"595-604"},"PeriodicalIF":3.2000,"publicationDate":"2025-07-15","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC12260164/pdf/","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"American Journal of Hypertension","FirstCategoryId":"3","ListUrlMain":"https://doi.org/10.1093/ajh/hpaf055","RegionNum":3,"RegionCategory":"医学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q2","JCRName":"PERIPHERAL VASCULAR DISEASE","Score":null,"Total":0}
引用次数: 0
Abstract
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.
期刊介绍:
The American Journal of Hypertension is a monthly, peer-reviewed journal that provides a forum for scientific inquiry of the highest standards in the field of hypertension and related cardiovascular disease. The journal publishes high-quality original research and review articles on basic sciences, molecular biology, clinical and experimental hypertension, cardiology, epidemiology, pediatric hypertension, endocrinology, neurophysiology, and nephrology.