Explainable Artificial Intelligence Reveals Spatially Divergent Effects of Global Change on Mammals.
This study uses SHapley Additive exPlanations (SHAP) to assess how climate and land cover drivers influence future mammal distributions across different global change scenarios. We quantify both directional changes (favoring/disfavoring turnovers) and gradual changes (favorability shifts) to evaluate species-specific spatial risks and opportunities under global change.
The repository includes:
- Scripts for preprocessing species and environmental data
- Code for fitting species distribution models (SDMs)
- SHAP-based analysis and visualization
- Reproducible figures and tables
├── docs/ # Workflows and technical reports.
│ ├── figures/ # Scripts to generate manuscript figures
├── R/ # All analysis scripts
│ ├── figures/ # Scripts to generate manuscript figures
├── Schedulers/ # Supportive HPC schedule scripts for R scripts.
├── data/
│ └── generation_length/ # Generation length data of species
│ └── IUCN/ # Species IUCN range polygons
│ └── IUCN_AOH_100m/ # The refined AOH of species
│ └── occurrences/ # Species occurrence data for modeling
│ └── terr-ecoregions-TNC/ # TNC ecoregion polygons used in the analysis
│ └── variables # Environmental variables used for modeling
├── results/
│ ├── sdm/ # All modeling results
│ └── species_analysis/ # Species-level analysis
│ └── climate_change/ # Global-level analysis aggregating all species
│ └── figures/ # All visual figures
│ └── tables/ # All summarized tables to support results
└── README.md
Note: Large input and output files (e.g., occurrence maps, SHAP matrices) are not tracked in this repo but are shared via OSF.
Please check the demo or its webpage for the method used in this study.
Please check documents: docs/workflow.Rmd to start the analysis.
All analyses were conducted in R. The full R session information, including package versions and system details, is saved in session_info.txt for reproducibility.
NOTE: due to a bug in CRAN version of package spatialEco, users need to install the development version of this package.
This work is supported by project “BoCP-Implementation: BioFI- Biodiversity Forecasting Initiative to Understand Population, Community and Ecosystem Function Under Global Change” funded by a grant to A.E.F. from the National Science Foundation (award number: 2416164).