Workshops & Courses
研讨会与课程
C-16
Course
Flexible species distribution models based on presences or abundances with flexsdm and adm R packages.
Saturday, June 27th, 2026
Organizer(s):
Santiago Velazco, San Diego State University; Miranda Rose, San Diego State University; Admir de Oliveira Junior, Universidade Federal de Integração Latinoamericana
Description
Understanding species distribution patterns is critical for effective tropical conservation in our rapidly changing world. Species distribution models (SDMs) combine species presence/absence with environmental variables to predict suitability maps, while abundance-based species distribution models (ASDMs) correlate spatial abundance with environmental data to project abundance maps. SDMs and ASDMs have applications in ecology, conservation, and biogeography, being used to prioritise conservation areas and evaluate climate and land-use changes. SDMs remain popular due to simple data requirements and broad applicability. ASDMs are still underdeveloped compared to traditional SDMs.
Despite the relative ease of use of both models, their outcomes are sensitive to data inputs and methodological choices. This makes it important to develop robust workflows that can be easily inspected at each step. flexsdm is an R package (https://sjevelazco.github.io/flexsdm/) that enables users to design complete or partial SDM workflows. The adm R package (https://sjevelazco.github.io/adm/) is a novel modeling toolbox designed to streamline the creation of ASDM workflows. adm enables users to build modeling workflows and can be easily integrated with some flexsdm’s functions. Both packages are based on the philosophy of providing multiple functions that can be used as building blocks to create partial or complete modeling workflows. They can also be easily integrated with other packages.
This course will introduce participants to the flexsdm and adm key features and guide them through a complete modeling workflow by providing presence and abundance data of a terrestrial organism from the Neotropics. This session will guide participants through the full protocol of an SDM and ASDM project:
1) Pre-modeling: Prepare model input data, exploring sampling bias approaches, delimitation of training area, selecting pseudo-absences, partitioning data, and addressing predictor collinearity.
2) Modeling: Fit and evaluate models using various machine learning and statistical algorithms (e.g., Random Forest, Support Vector Machine, Deep Neural Network). Learn about key decisions on tuning model hyperparameters.
3) Post-modeling and model output exploration: Refine output maps, evaluate model extrapolation for current and future conditions, and produce exploratory plots such as univariate and bivariate partial dependence curves.
Target Audience: This course is for graduate students, postdocs, and professors at all levels. While covering advanced concepts, the workflow is accessible to those with basic R programming knowledge.
Program Outline
0:00 – 0:10 | Introduction & Setup
Brief introduction to SDMs and flexsdm package architecture.
Logistics check: Ensuring all participants have packages loaded and data accessible.
0:10 – 0:40 | Module 1: Pre-modeling & Data Curation
Handling occurrence data: Sampling bias correction.
Delimitation of the training area.
Environmental predictors: Addressing collinearity.
Generating pseudo-absences and background points.
Data partitioning.
0:40 – 1:10 | Module 2: Model Fitting & Tuning
Fitting SDM based on different algorithms
The importance of hyperparameter tuning and its interaction with threshold and performance metrics.
Creating ensemble models
1:10 – 1:15 | Break
1:15 – 1:45 | Module 3: Post-processing and outputs exploration
Predicting species distribution for current and future conditions
Correcting overprediction in output maps.
Evaluating model extrapolation for current and future conditions.
Plotting partial dependence curves (univariate and bivariate) and suitability in the geographical and environmental space.
1:45 – 2:00 | Q&A and discussion
2:00 – 2:10 | Introduction & Setup
Brief introduction to ASDMs and adm package architecture, and the key difference between SDM and ASDM.
2:10 – 2:40 | Module 1: Pre-modeling & Data Curation
Delimitation of calibration area
Thing of absences data.
Environmental predictors: Addressing collinearity.
Applying data partitioning strategies for robust validation
2:40 – 3:10 | Module 2: Model Fitting & Tuning
Fitting ASDM for different algorithms
The importance of hyperparameter tuning and its interaction with threshold and performance metrics.
Model performance metrics
3:10 – 3:15 | Break
3:15 – 3:45 | Module 3: Post-processing and outputs exploration
Predict abundance map for current and future conditions.
Evaluating model extrapolation for current and future conditions.
Plotting partial dependence curves (univariate and bivariate).
3:45 – 4:00 | Q&A and discussion
Materials that participants need to bring:
Participants must bring a laptop with R and RStudio or Positron installed. Attendees will receive a template for rigorous workflows applicable to their research.
Hardware: A personal laptop (Windows, Mac, or Linux).
Software: Latest versions of R (v4.5 or higher) and an IDE (RStudio or Positron) installed before the course.
Packages: Participants will be sent a script to install flexsdm and dependencies (e.g., terra, dplyr) before the conference.
Background: Basic familiarity with R syntax (loading data, basic plotting) is assumed; no prior experience with SDMs or ASDMs is required.
Data sets and codes: All data necessary for this course, including presence and abundance data, predictor variables, and scripts, will be provided before the start of the course.


