Institutional Design and Dynamic Analysis of Intervention in the Community-based Integrated Care System
A Multi-Agent Simulation Framework with LLM-driven Nudges for Sustainable Healthcare Systems.
* author : Yasuhiro IWAI, * created : 04/10/2026
Modern society faces a "polycrisis" driven by climate change-induced disasters and a rapidly aging population, with the number of people requiring nursing care projected to reach 9 million in Japan by 2050. Conventional socioeconomic mechanisms—namely, the "Market Mechanism" (exchange) and the "Power Mechanism" (redistribution)—are proving insufficient, often leading to systemic failures and the exploitation of care workers' dedication in local communities.
DAI-CICS explores the dynamics of the "Community Mechanism" (spontaneous mutual aid). By employing an LLM-based multi-agent simulation , this project quantitatively demonstrates how AI-driven minimal interventions ("nudges") can prevent the collapse of care networks, mitigate burnout, and guide the system toward sustainable Care Resilience.
- 🧠 Agent-Based Dynamic Analysis: Models complex social preferences, including altruism, reciprocity, and Eudaimonia (virtue-based well-being).
- 🤖 LLM-Driven Nudging Engine: Utilizes AI agents to monitor network health and issue "perspective-shifting nudges" that prevent the crowding-out of intrinsic motivation.
- ⚖️ Normative Economics Integration: Evaluates systemic sustainability using a modified Social Welfare Function (SWF) that penalizes the exploitation of dedicated workers.
- 📊 Real-time Tracking: Seamless integration with Weights & Biases (W&B) for live metric streaming and LLM-as-a-Judge evaluations.
The simulation is populated by four distinct classes of agents:
- Elder (Patients): Individuals facing cognitive decline and Social Determinants of Health (SDH) vulnerabilities, at risk of acute hospital dependence.
- Provider / Family (Caregivers): Driven by both market forces (wages) and community forces (altruism). They possess dynamically updating variables for fatigue (burnout risk) and Eudaimonia.
- Link Worker / Manager: Facilitators of social prescribing and facility managers. Managers operate with an exploitation rate parameter that can be mitigated via AI nudges.
- AI Watcher: A systemic overseer that monitors SDH risks and care burdens, executing targeted nudges (N1-N4) to balance the load and foster community connection.
- Scenario A (Homo-economicus): A baseline model of pure self-interest. The care network fragments, leading to system collapse and runaway social security costs.
- Scenario B (Over-reliance & Burnout): Relies heavily on the community mechanism without AI support. Initially functional, it inevitably leads to "altruism exploitation," causing cascading burnout among caregivers.
- Scenario C (AI-supported Nudging): The proposed optimized model. AI watchers distribute loads and facilitate social prescribing. Providers accumulate Eudaimonia sustainably, realizing a resilient community care model for 2050.
To mathematically prove ethical sustainability, we redefine the Social Welfare Function
Where
Ensure you have Python 3.9+ installed. Clone the repository and install the required dependencies.
git clone https://github.com/ciao421/DAI-CICS.git
cd DAI-CICS
pip install -r requirements.txtSet up your environment variables by copying the template:
cp env-templete.txt .envPopulate the .env file with your credentials:
AWS_BEARER_TOKEN_BEDROCK=bedrock-api-key-...WANDB_API_KEY=wandb_v1_...ANTHROPIC_API_KEY=sk-ant-... (Optional fallback)
Execute the multi-agent simulation across different scenarios to generate CSV logs and comparative visualizations.
# Run all scenarios (A, B, C) with 10 seeds and generate plots
python -m src.run_experiment --scenario all --days 100 --seeds 10 --plot
# Run full ablation study (including C-noN2, C-noN3, C-onlyL1)
python -m src.run_experiment --all-including-ablations --days 100 --seeds 10 --plotOutputs are saved in the results/ directory (e.g., comparison_main.png, milestones.png).
Simulate a dynamic, multi-disciplinary conference (Care Manager, Doctor, Planner AI) to observe real-time LLM nudging.
# Live execution via AWS Bedrock / Claude
python -m src.dialogue_sim --tag liveTrack experiments and utilize LLM-as-a-Judge for behavioral evaluation.
# Stream ABM metrics to W&B in real-time
python -m src.wandb_eval --abm-only --scenario C --days 100 --seeds 10
# Run LLM-as-a-Judge evaluation for Scenario C
python -m src.wandb_eval --scenario C --steps 15📊 View Dashboard: W&B Project: healthcare-collaboration-sim
| Module | Description |
|---|---|
src/config.py |
Centralized parameter management (demographics, thresholds, scenarios). |
src/agents.py |
Mesa-based agent class definitions (Elder, Provider, LinkWorker, etc.). |
src/model.py |
Core ABM logic: daily task generation, state updates, and nudge application. |
src/nudges.py |
AI intervention engine defining intervention levels (L1–L4). |
src/metrics.py |
Calculation of Milestones, Failure Conditions, and Gini coefficients. |
src/plots.py |
Matplotlib-based visualizations for time-series and ablation studies. |
src/llm_agents.py |
Prompts and AWS Bedrock API controllers for LLM-driven agents. |
This project is licensed under the MIT License - see the LICENSE file for details.
Yasuhiro Iwai Consultant & Data Scientist | AI & Data Strategy
- Portfolio: yasuhiroiwai.jp
- Email: contact@yasuhiroiwai.jp
- GitHub: @ciao521