[Paper Review] Calibrar: an R package for fitting complex ecological models
This paper introduces the calibrar R package, which implements a novel Adaptive Hierarchical Recombination Evolutionary Strategy (AHR-ES) for fitting complex ecological models via maximum likelihood estimation. The method improves parameter calibration by integrating data-specific weighting and self-adaptive covariance matrix adjustment, significantly enhancing convergence and performance over standard evolutionary strategies in multimodal, stochastic ecological models.
The fitting or parameter estimation of complex ecological models is a challenging optimisation task, with a notable lack of tools for fitting complex, long runtime or stochastic models. calibrar is an R package that is dedicated to the fitting of complex models to data. It is a generic tool that can be used for any type of model, especially those with non-differentiable objective functions and long runtime, including Individual Based Models. calibrar supports multiple phases and constrained optimisation, includes 18 optimisation algorithms, including derivative-based and heuristic ones. It supports any type of parallelization, the restart of interrupted optimisations for long runtime models and the combination of different optimisation methods during the multiple phases of the calibration. User-level expertise in R is necessary to handle calibration experiments with calibrar, but there is no need to modify the model's code, which can be programmed in any language. It implements maximum likelihood estimation methods and automated construction of the objective function from simulated model outputs. For more experienced users, calibrar allows the implementation of user-defined objective functions. The package source code is fully accessible and can be installed directly from CRAN.
Motivation & Objective
- To address the challenge of calibrating complex, stochastic ecological models with multiple data sources and high-dimensional parameter spaces.
- To improve convergence and robustness in parameter estimation for models with non-linear dynamics and multimodal likelihood surfaces.
- To develop a flexible, open-source R package that supports a range of optimization algorithms and model types for ecological applications.
- To integrate likelihood-based fitness functions to enable statistical inference, including confidence intervals and goodness-of-fit testing.
- To reduce computational burden by enabling efficient optimization with smaller population sizes through advanced recombination and self-adaptation mechanisms.
Proposed method
- Employs Evolutionary Strategies (ES) with a novel Adaptive Hierarchical Recombination (AHR) process that weights parameter solutions based on data-specific likelihoods and parameter variability.
- Uses a self-adaptation mechanism for the covariance matrix (C) to dynamically adjust mutation rates during optimization, preventing premature convergence.
- Applies a fitness function composed of a base term and multiple partial likelihoods (f_k), each corresponding to a different data source or calibration variable.
- Implements selection based on total fitness (f(x)) while using partial fitness rankings (f_k) to guide recombination, enhancing search efficiency.
- Supports constrained optimization via bounds and integrates with R's optimx and cmaes packages for benchmarking and comparison.
- Uses a diagonal covariance matrix for computational efficiency, with extension to full covariance matrices as future work.
Experimental results
Research questions
- RQ1How can evolutionary strategies be enhanced to efficiently calibrate complex, stochastic ecological models with multiple data sources?
- RQ2To what extent does the AHR-ES algorithm improve convergence speed and solution quality compared to standard ES and other optimization methods?
- RQ3Can self-adaptation of the covariance matrix in AHR-ES prevent premature convergence in high-dimensional, multimodal likelihood landscapes?
- RQ4How does the integration of likelihood-based fitness functions improve statistical validity and inference in ecological model calibration?
- RQ5What is the performance of AHR-ES relative to established optimizers (e.g., BFGS, Nelder-Mead, CMA-ES) in real ecological model calibration tasks?
Key findings
- The AHR-ES algorithm significantly outperforms standard evolutionary strategies in terms of convergence speed and solution accuracy on complex ecological models with multimodal likelihood surfaces.
- The inclusion of data-specific weighting in recombination improves model fit by prioritizing parameter sets that best explain each data type.
- Self-adaptation of the covariance matrix reduces the need for manual tuning and prevents stagnation, especially in high-dimensional parameter spaces.
- The calibrar package successfully integrates AHR-ES with existing R optimization tools, enabling benchmarking and reproducible calibration workflows.
- In both predator-prey and autoregressive Poisson mixed models, AHR-ES achieved parameter estimates closest to the true simulated values across all tested methods.
- The use of likelihood-based objective functions enabled by the framework supports downstream statistical inference, such as confidence interval estimation and model comparison.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.