Household SARS-CoV-2 secondary transmission risk prediction for Swedish national register data using TabPFN with SHAP-based explainability
Mingtong Du, Jonas Björk, Amir Aminifar, Atiye Sadat Hashemi
Key points
From the paper's conclusion- We perform household SARS-CoV-2 secondary transmission risk prediction using TabPFN, a transformer-based tabular foundation model, on Swedish national register data, and explain the model’s predictions both across the population and for single households.
Abstract
Artificial intelligence is increasingly applied to infectious disease surveillance and intervention planning through large-scale health data analysis. One of the challenges in this domain is understanding household transmission risk and identifying factors associated with secondary cases. We perform household SARS-CoV-2 secondary transmission risk prediction using TabPFN, a transformer-based tabular foundation model, on Swedish national register data, and explain the model’s predictions both across the population and for single households. The task is formulated as supervised binary classification using 287 nationwide demographic, socioeconomic, and clinical features for 990,916 individuals in 252,472 households with primary (index) infections. To address the structural context-size limitations of TabPFN, we introduce a bagging ensemble with positive-class oversampling, achieving a ROC-AUC of 0.625 ± 0.002, within the narrow 0.605–0.630 range spanned by five tree-based and linear baselines. TabPFN was selected because it fits new data through in-context learning rather than task-specific gradient-based training, while performing comparably to the baselines. SHAP explanations identify household income, age composition and living area as the most influential single features, illustrated with two example households. As the data cover Sweden’s first pandemic year, before vaccination and major variants, applicability to later phases requires further validation. These findings provide a basis for further investigation of explainable AI approaches for infectious disease risk prediction using large-scale population register data. Code is available at: https://github.com/mingtongdu862-dot/Household-SARS-CoV-2-secondary-case-prediction-with-TabPFN-and-SHAP .
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- APH-Net: a multi-task uncertainty-weighted neural architecture for subgroup-level pediatric health surveillance modelingScientific Reports · 2026
- Using iterative agentic retrieval-augmented generation to refine the risk of infection from social contexts during the COVID-19 pandemic: Development and Evaluation StudymedRxiv · 2026
- TACO: TabPFN augmented causal outcomes for early detection of long COVIDMachine Learning Science and Technology · 2026
- Reconstruction of SARS-CoV-2 transmissibility within households in the UK Virus Watch StudyCommunications Medicine · 2026
- Predicting Suicidal Ideation in Postpartum Women Using Perceived Stress and Social Support: A Machine Learning ApproachIndian Journal of Science and Technology · 2026
- Integrating Survival Modelling and Machine Learning to Unravel the Drivers of Geographic Disparities in COVID-19 Booster Vaccination TimingVaccines · 2026