A Bayesian latent allocation model for clustering compositional data with application to the Great Barrier Reef

Luiza Piancastelli, Nial Friel, Julie Vercelloni, Kerrie Mengersen, Antonietta MiraarXiv 2021 · DOI · arXiv

Introduction

In ecological research, relative abundance—the percentage of a habitat covered by various species or substrates—is a fundamental metric for understanding community structure. However, this type of "compositional data" presents unique statistical challenges. Because proportions must sum to 100%, the variables are inherently co-dependent; an increase in one component necessitates a decrease in others. Standard clustering techniques like K-means or Gaussian Mixture Models often fail to account for this simplex-constrained geometry or struggle with "zero" values (e.g., the total absence of a species at a site).

This paper introduces a novel Bayesian latent allocation model designed to cluster compositional data directly. The researchers applied this model to survey data from Australia’s Great Barrier Reef (GBR) collected between 2012 and 2017, a period marked by severe environmental disturbances including cyclones and mass bleaching events.

Methodology

The core of the proposed approach is a finite mixture of Dirichlet distributions. The Dirichlet distribution is the multivariate generalization of the Beta distribution and is naturally suited for data constrained to a simplex.

Key technical features of the model include:

  • Latent Variable Allocation: Cluster memberships are treated as unobserved latent variables, allowing the model to estimate the probability of a site belonging to a specific ecological group based on its composition.
  • Bayesian Inference: Parameters are estimated using a Metropolis-within-Gibbs Markov Chain Monte Carlo (MCMC) strategy.
  • Adaptive Jumping Rule: To handle the varying magnitudes of Dirichlet parameters, the authors developed a proposal distribution where variance scales with the current state, preventing the algorithm from becoming trapped in local optima.
  • Computational Optimization: By implementing the model in Python using the Numba just-in-time compiler, the authors achieved a 99.9% reduction in computation time, making the Bayesian framework feasible for complex ecological datasets.

Data and Application

The model was validated on synthetic datasets before being applied to 58 transect locations along the GBR. The GBR data, sourced from the XL Seaview Catlin Survey and classified via convolutional neural networks, categorized reef cover into four components: Hard Coral, Soft Coral, Algae, and Sand.

Figure 1: (a-b) Spatial distribution of surveyed reef locations. (c) Temporal changes in the distribution of community composition (Hard coral, Soft coral, Algae, and Sand) from 2012 to 2017.

Results and Discussion

The application of the model revealed significant ecological shifts over the five-year study period:

  • Cluster Reduction and Homogenization: In 2012, the model identified four distinct community clusters, which appeared to be driven by physical factors such as wave exposure and tidal currents. However, following the sequence of extreme weather events, the number of optimal clusters dropped to two by 2014 and remained there through 2017.
  • Increased Similarity: The probability of site pairs belonging to the same cluster increased dramatically. In 2012, only 5.4% of site pairs had a high probability (>0.9) of being in the same cluster; by 2017, this figure rose to 64.2%. This suggests a widespread "homogenization" of the reef's ecological structure.
  • Loss of Diversity: Using differential entropy as a metric, the researchers found that even within the remaining clusters, internal variability was shrinking. The GBR is not only losing coral cover but also the diversity of its community assemblages.

Conclusion and Future Directions

The Bayesian latent allocation model provides a robust framework for analyzing compositional shifts in fragile ecosystems. While the current model focuses purely on composition, future iterations could incorporate environmental covariates (e.g., temperature, depth) directly into the Dirichlet parameters or utilize a "Generalized Dirichlet" likelihood for greater covariance flexibility. Additionally, integrating a hidden Markov model (HMM) structure could allow for explicit modeling of spatio-temporal transitions, offering deeper insights into the resilience and recovery of the Great Barrier Reef.

Summary updated

Abstract

Relative abundance is a common metric to estimate the composition of species in ecological surveys reflecting patterns of commonness and rarity of biological assemblages. Measurements of coral reef compositions formed by four communities along Australia's Great Barrier Reef (GBR) gathered between 2012 and 2017 are the focus of this paper. We undertake the task of finding clusters of transect locations with similar community composition and investigate changes in clustering dynamics over time. During these years, an unprecedented sequence of extreme weather events (cyclones and coral bleaching) impacted the 58 surveyed locations. The dependence between constituent parts of a composition presents a challenge for existing multivariate clustering approaches. In this paper, we introduce a finite mixture of Dirichlet distributions with group-specific parameters, where cluster memberships are dictated by unobserved latent variables. The inference is carried in a Bayesian framework, where MCMC strategies are outlined to sample from the posterior model. Simulation studies are presented to illustrate the performance of the model in a controlled setting. The application of the model to the 2012 coral reef data reveals that clusters were spatially distributed in similar ways across reefs which indicates a potential influence of wave exposure at the origin of coral reef community composition. The number of clusters estimated by the model decreased from four in 2012 to two from 2014 until 2017. Posterior probabilities of transect allocations to the same cluster substantially increase through time showing a potential homogenization of community composition across the whole GBR. The Bayesian model highlights the diversity of coral reef community composition within a coral reef and rapid changes across large spatial scales that may contribute to undermining the future of the GBR's biodiversity.
BibTeX
@misc{piancastelli2021bayesian,
  author = {Luiza Piancastelli and Nial Friel and Julie Vercelloni and Kerrie Mengersen and Antonietta Mira},
  title = {{A Bayesian latent allocation model for clustering compositional data with application to the Great Barrier Reef}},
  year = {2021},
  eprint = {2105.02140},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2105.02140},
}
Figure