English

changepointGA: An R package for Fast Changepoint Detection via Genetic Algorithm

Computation 2025-09-30 v2 Applications

Abstract

Detecting changepoints in a time series of length NN entails evaluating up to 2N12^{N-1} possible changepoint models, making exhaustive enumeration computationally infeasible. Genetic algorithms (GAs) provide a stochastic way to identify the structural changes: a population of candidate models evolves via selection, crossover, and mutation operators until it converges on one changepoint model that balances the goodness-of-fit with parsimony. The R package changepointGA encodes each candidate model as an integer chromosome vector and supports both the basic single-population model GA and the island model GA. Parallel computing is implemented on multi-core hardware to further accelerate computation. Users may supply custom fitness functions or genetic operators, while a user-friendly wrapper streamlines routine analyses. Extensive simulations demonstrate that our package runs significantly faster than binary-encoded GA alternatives. Additionally, this package can simultaneously locate changepoints and estimate their effects, as well as other model parameters and any integer-valued hyperparameters. Applications to array-based comparative genomic hybridization data and a century-long temperature series further highlight the package's value in biological and climate research.

Keywords

Cite

@article{arxiv.2410.15571,
  title  = {changepointGA: An R package for Fast Changepoint Detection via Genetic Algorithm},
  author = {Mo Li and QiQi Lu},
  journal= {arXiv preprint arXiv:2410.15571},
  year   = {2025}
}
R2 v1 2026-06-28T19:29:00.290Z