arXiv:2608.29535physics.soc-phAug 2026

Manuscript Offprint

arXiv:2608.29535

Integrating adaptive human behavior into epidemic models with large language models

Yicheng Mao, Haoyang Li, Rob Deardon, Hongru Du

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Yicheng Mao 1^{1}, Haoyang Li 2^{2}, Rob Deardon 1,3^{1,3}, Hongru Du 2∗^{2*}

1^{1}Department of Mathematics and Statistics, University of Calgary, University Drive NW, Calgary, T2N 1N4, Canada

2^{2}Department of Systems & Information Engineering, University of Virginia, Charlottesville, VA, USA

3^{3}Faculty of Veterinary Medicine, University of Calgary, University Drive NW, Calgary, T2N 1N4, Canada

∗^{*}Corresponding author. Email: hongrudu@virginia.edu

Infectious disease transmission is shaped by patterns of human interaction, which adapt as epidemic conditions change. Capturing these context-dependent behaviors remains a fundamental challenge for epidemic models. Here, we recast this challenge by using large language models (LLMs) to represent adaptive human behavior within mechanistic epidemic models. We operationalize this idea through Generative Adaptive Behavioral Layer for Epidemics (GABLE), which adapts LLMs to infer behavioral responses to epidemic and policy conditions and translates them into age-structured contact matrices coupled to a mechanistic epidemic model. Applied to COVID-19 in France, GABLE reproduced responses in population mixing and age-specific contact structures that remained epidemiologically informative. In short-term forecasting, LLM-generated contact matrices outperformed mobility-driven matrices derived from real-world mobility data, with the largest gains at longer horizons. GABLE also extends beyond forecasting to prospective policy evaluation by projecting behavioral and epidemic responses to candidate interventions before implementation. When supplied with subsequently implemented policies, GABLE reproduced epidemic trajectories and generated distinct responses to alternative policy timing and composition. By leveraging LLMs as a flexible behavioral layer, GABLE provides a framework for coupling context-sensitive behavioral generation with epidemic dynamics.

Introduction

Epidemics are coupled behavioral–biological systems. Human behavior determines when, where, and between whom opportunities for transmission arise, while infectious disease risks and public-health interventions, in turn, reshape those behaviors (1, 2, 3). Mathematical and data-driven models seek to represent this evolving system, anticipate future disease burden, and support the design and evaluation of public-health interventions (4). Their prospective value therefore depends on the joint representation of disease transmission and adaptive human response (3).

Behavior is nevertheless one of the least directly observed components of an epidemic system. Contact surveys provide direct measurements of population mixing (5, 6, 7), but representative contact studies remain unavailable for many populations (8), require substantial data-collection infrastructure (9), and capture behavior only after it has occurred. Digital mobility data provide a more timely but indirect behavioral signal. Mobility indicators have been used to drive contact rates and reconstruct transmission across epidemic waves (10, 11, 12), but movement does not uniquely determine interpersonal contact or age-specific mixing, which are more directly linked to opportunities for infectious disease transmission. More fundamentally, both approaches rely on realized behavior, limiting their ability to anticipate how populations will respond beyond observed conditions or under interventions that have not yet occurred.

To enable such prospective simulation, epidemic models can instead represent behavioral adaptation endogenously (13). At the population level, contact rates have been coupled to incidence, prevalence, or perceived risk through predefined response functions (14, 15, 16, 17). At the individual level, economic and game-theoretic frameworks derive protective behavior from decisions made alongside epidemic dynamics (18, 19, 20, 21, 22). These approaches support prospective simulation, but they obtain this capability by specifying behavioral mechanisms and functional relationships in advance. Real-world responses emerge from interacting influences, including policy content and duration, perceived risk, economic and caregiving obligations, activity setting, adherence fatigue, and imperfect compliance (23, 24). Epidemic models therefore still lack a general mechanism for translating such heterogeneous and interacting context into transmission-relevant responses without prescribing separate rules for each input and interaction.

Large language models (LLMs) offer a potential way to fill this gap. Their capacity to integrate heterogeneous information within a common contextual representation allows policy restrictions, numerical epidemic indicators, individual circumstances, and activity-specific considerations to be evaluated jointly (25). A growing body of work has shown that LLMs can reproduce aspects of human judgment and behavior across experimental and real-world settings. Despite systematic biases (26, 27, 28, 29), LLMs have recovered population-level patterns in public-opinion surveys (30, 27, 31), reproduced established findings from economic and social-psychological experiments (32, 33, 34, 35, 36), and predicted treatment effects in preregistered social-science studies (37). Recent studies have also used LLMs to simulate behavioral responses to public policies during epidemics and reported realistic population-level response patterns (38, 39). These findings motivate the use of LLMs as context-sensitive behavioral models that translate complex and potentially unseen conditions into structured population responses. The remaining challenge is to connect these responses to disease transmission within a dynamically coupled epidemic system.

Here, we propose the Generative Adaptive Behavioral Layer for Epidemics (GABLE), which embeds an a LLM-based behavioral layer

  1. Context inputs

Figure

  1. LLM Behavior generation under current context

Figure

Baseline contacts (Pre-pandemic)

Updated contacts under current conditions

Participant Profile

Child (0-10)

Youth (11-18)

Adults (19-64)

Seniors (65+)

Conditioned on

current epidemic

state X(t)X(t)

C(t+1)C(t+1) drives transmission

Mechanistic epidemic model

Time-varying contact matrix C

Generate contact matrix C(t+1)C(t+1)

Use C(t+1)C(t+1) in epidemic model

Figure

Feedback X(t+1)X(t+1)

Behavior-disease feedback

Update epidemic state X(t+1)X(t+1) feeds back to update C(t+2)C(t+2)

Figure

Model Outputs

Update epidemic state X(t+1)X(t+1) feeds back to update C(t+2)C(t+2)

Daily hospital admissions

Incident infections

b Retrospective reconstruction

Past context known

(Historical weekly inputs

are fully observed)

Reconstruct past

epidemic trajectory

Figure

Time (weeks)

Past window

C Short-term forecasting

Rolling 4-week forecast from origin-available data

d

Prospective scenario modeling

Policy options (affects contacts)

Future epidemic outcomes (daily hospital admissions)

Figure

Observed history(past) Policy change

Future (weeks)

Figure 1: Overview of GABLE framework. (a) The proposed framework couples an LLM-based behavioral layer with a mechanistic compartmental epidemic model through a time-varying contact matrix. The LLM-based behavioral layer takes pre-pandemic contacts with policy and epidemic conditions and uses the LLM to determine how baseline contacts are changed under the current context. These behavioral responses are aggregated into an age-structured contact matrix, which governs the mechanistic epidemic model. The resulting epidemic outcomes are then fed back to the behavioral layer to update subsequent contacts, forming a dynamic behavior–disease feedback loop. (b-d) The proposed framework supports three complementary tasks. (b) Retrospective reconstruction: historical policy and epidemic conditions are used to generate time-varying contacts, and the coupled model is fitted to the observed epidemic trajectory. (c) Short-term forecasting: policies are held fixed and enable rolling forecasts in which future contacts and epidemic outcomes evolve through the coupled behavior–disease system. (d) Prospective scenario modeling: alternative future policies are used to project and compare downstream epidemic outcomes.

LLM-based behavioral layer within a mechanistic epidemic model through age-structured contact matrices. GABLE translates changing public-health policies, epidemic conditions, demographic characteristics, and pre-pandemic contact diaries into adaptive population mixing patterns, which directly govern transmission in the epidemiological model. During forward simulation, projected epidemic conditions are returned to the behavioral layer, allowing population mixing and disease dynamics to co-evolve. Please see Materials and Methods for full details of the model formulation, implementation, and data inputs. Applied to the COVID-19 epidemic in France, GABLE generated epidemiologically informative temporal and age-specific changes in population mixing, improved short-term forecasts relative to mobility-driven and statistical reference models, and produced distinct behavioral and epidemic trajectories under alternative future policy scenarios. GABLE provides a generative behavior–epidemiology framework for prospective epidemic modeling, allowing adaptive human responses and disease dynamics to co-evolve when direct behavioral observations are sparse, delayed, or unavailable.