Causal Effect Variational Transformer
for Public Health Measures and COVID-19 Infection Cluster Analysis
CIKM 2025
Jinho Kang, Sungjun Lim, Hojun Park, Jiyoung Jung, Jaehun Jung, Kyungwoo Song
Official PyTorch implementation of CEVT, a Transformer that estimates the causal effect of public health measures on the spread of COVID-19 infection clusters.
- Real-world data. Two COVID-19 infection cluster datasets with public health measures, collected with local governments, a medical university, and a hospital, from two distinct distributions (provincial and municipal).
- Cut-off augmentation. Time series are sliced at different observation windows, which yields diverse feature–label pairs and mimics the partial observations of real settings.
- Causal Effect Variational Transformer. The model captures temporal structure and accounts for multiple treatments and latent confounders through an iterative conditioning mechanism.
- Results. CEVT outperforms the baselines in predicting confirmed cases and cluster durations, and its estimated causal effects agree with earlier findings on public health measures and infection spread.
Clinical benchmarks with public health measures are scarce, so we collected time series of real infection clusters together with the social distancing measures in force.
| Provincial COVID-19 data | Municipal COVID-19 data |
|---|---|
![]() |
![]() |
The datasets are not released publicly. Access for non-commercial research can be requested (see
data/README.md).
Tested with Python 3.10.14.
pip install -r requirements.txtCore packages: pytorch 2.2.2, pandas 2.2.1, numpy 1.26.4, scikit-learn 1.4.1, scipy 1.11.4.
bash sh/provincial_best.sh # CEVT and the baselines on the provincial data
bash sh/municipal_best.sh # CEVT and the baselines on the municipal data├── data
│ ├── data_cut_0.csv ... data_cut_5.csv # provincial data with cut-off augmentation
│ ├── data_final_mod.csv
│ ├── data_task.csv
│ └── municipal
│ └── preprocessed_municipal_98.csv # municipal data
├── sh
│ ├── provincial_best.sh
│ └── municipal_best.sh
├── main.py # CEVT and baselines
├── run_causal.py # causal inference baselines (DragonNet, TARNet)
├── run_itransformer.py # iTransformer baseline
├── models.py
└── utils.py
Recent research increasingly integrates causal inference into deep learning models to enhance the explainability and robustness of medical applications. However, data scarcity remains a fundamental challenge due to privacy constraints and the high cost of data collection. This issue, compounded by complex variable dependencies and unobserved latent confounders, hinders the reliable estimation of causal effects. To address these challenges, we collect two real-world COVID-19 infection cluster datasets, including public health measures, from distinct distributions in collaboration with local governments, a medical university, and a hospital. We also propose a cut-off augmentation method that generates diverse feature–label pairs by slicing time-series sequences at different observation windows, effectively simulating partial observations common in real-world settings. We further introduce the Causal Effect Variational Transformer (CEVT), a Transformer-based model that captures temporal structure while accounting for multiple treatments and latent confounders through an iterative conditioning mechanism. In real-world settings, CEVT outperforms baseline models in predicting confirmed cases and cluster durations, and provides more accurate estimates of the causal impacts of public health measures, demonstrating robust performance across datasets collected from distinct distributions. Moreover, the magnitude of causal effects estimated by CEVT is consistent with previous findings examining the relationship between public health measures and infection spread, further supporting the reliability of CEVT.
@inproceedings{kang2025causal,
title={Causal Effect Variational Transformer for Public Health Measures and COVID-19 Infection Cluster Analysis},
author={Kang, Jinho and Lim, Sungjun and Park, Hojun and Jung, Jiyoung and Jung, Jaehun and Song, Kyungwoo},
booktitle={Proceedings of the 34th ACM International Conference on Information and Knowledge Management},
pages={1282--1291},
year={2025}
}The lab-maintained copy of this repository is at MLAI-Yonsei/CEVT.




