Suffugium is a thermally dependent agent-based model (ABM) designed to simulate the behavior of an ectothermic predator within a predator–prey system under varying environmental temperature regimes.
The model focuses on how temperature-dependent physiology and behavior (e.g., thermoregulation, foraging, resting, brumation) scale up to influence prey consumption and population-level dynamics. It is intended as a process-driven modeling framework rather than a point-forecasting tool.
Suffugium is built in Python using the Mesa framework and is designed to integrate empirical temperature data, biologically informed metabolic constraints, and configurable behavioral decision rules.
-
Thermally explicit behavior
-
Predator body temperature is driven by environmental temperatures and behavioral choices.
-
Behavior selection is governed by a utility-based decision algorithm.
-
-
Agent-based structure
-
Individual predators act autonomously at hourly time steps.
-
Behaviors include resting, thermoregulation, foraging, searching, and brumation.
-
-
Empirically grounded
-
Designed to ingest operative temperature data (e.g., burrow vs. open microhabitats).
-
Parameterized using biologically realistic metabolic and energetic constraints.
-
-
Scalable outputs
-
Produces individual-level time series as well as aggregated hourly, monthly, and seasonal summaries.
-
Outputs can be used directly or linked to population-level models (e.g., functional responses, ODE systems).
-
Python ≥ 3.10
Recommended environment management:
conda, mamba, or venv
Typical dependencies include:
mesa
numpy
pandas / polars
pyyaml
duckdb
(See requirements.txt or environment file if provided.)
Suffugium simulations are controlled via a YAML configuration file. Users must create a config.yaml that defines:
Landscape and environmental temperature inputs
Predator and prey biological parameters
Behavioral and metabolic coefficients
Simulation duration and population sizes
An example configuration file is provided:
config.yaml
Use this file as a template when building custom simulations.
From the project root (or within an HPC job script), run the model using:
python "$MODEL_DIR/run_model.py" \
--config "$CONFIG_FILE" \
--output "$OUTPUT_DIR" \
--sim_id $sim_id \
--seed $SEED \
--db_path "$db_path" \
--keep_data $keep_data \
--seasonal_summary \
--monthly_summary \
--hourly_summaryCommand-Line Arguments Argument Description --config Path to the YAML configuration file --output Directory where results will be written --sim_id Unique identifier for the simulation --seed Random seed for reproducibility --db_path Path to DuckDB database (if used) --keep_data Whether to retain individual-level output --seasonal_summary Generate seasonal summaries --monthly_summary Generate monthly summaries --hourly_summary Generate hourly summaries
On completion, the model will report:
Simulation <sim_id> completed.
See run_suffugium.sh for an example script
Outputs are csvs written to the specified output directory and may include:
Individual agent time series if keep_data argument > 0
Aggregated hourly, monthly, and seasonal summaries
Energy balance and prey consumption metrics
Optional database-backed storage for large simulations
Exact outputs depend on configuration and summary flags.
Suffugium is designed for:
-
Exploring mechanistic drivers of predator behavior under climate warming
-
Linking fine-scale behavioral decisions to population-level dynamics
-
Sensitivity analyses across environmental and physiological parameters
-
Integration with downstream models (e.g., functional response estimation, ODE systems)
It is not intended to directly predict real-world population sizes without further calibration and validation.