Machine Leaning-based Determination of Sampling Depth for Complex Environmental Systems: Case Study with Single-Cell Raman Spectroscopy Data in EBPR Systems

Guangyu Li, Chieh Wu, Dongqi Wang, V. Srinivasan, David Kaeli, Jennifer Dy, April Z. GubioRxiv 2020

TL;DR

This paper introduces a novel, machine learning-based method using "kernel divergence" to determine the optimal sample size for single-cell analysis, specifically applied to complex environmental microbial communities. This approach eliminates the need for prior knowledge of community composition, offering a standardized and robust way to balance statistical power with resource constraints.

What Problem Does This Paper Address?

Analyzing complex environmental microbial communities with single-cell technologies, like Single-Cell Raman Spectroscopy (SCRS), offers unprecedented insights into microbial ecology. However, a significant challenge is determining the "sufficient" number of cells to analyze. This is difficult because we often lack prior knowledge of the community's complexity and diversity. Collecting too few samples compromises statistical power, while collecting too many wastes valuable time and resources. This lack of a standardized method hinders the reproducibility and wider adoption of these powerful technologies.

Methods

The core of this paper is a new computational protocol for sample size assessment based on kernel divergence. Kernel divergence is a metric that measures the distributional differences between two datasets without making assumptions about their underlying distributions or requiring human pre-classification. The method works by iteratively increasing the number of samples and calculating the kernel divergence between the current sample set and a slightly larger one. As more samples are added, the distributional change converges towards zero. The point at which this change falls below a user-defined threshold (the "point of convergence" or POC) indicates the sufficient sample size. This approach leverages the power of kernel methods to capture non-linear relationships within the data, making it suitable for complex, real-world datasets.

Datasets

The method was validated using:

  • Synthetic Datasets:
    • Dataset 1: A 2-dimensional dataset composed of four Gaussian sub-populations, designed to be non-overlapping and linearly separable. This dataset was used to test the method's performance with varying sampling sizes (20, 40, 100, 200, 500).
  • Dataset 2 ("Spiral"): A 2-dimensional dataset with a spiral morphology, containing three clusters and representing complex, non-linear relationships.
  • Real-World Datasets: Eight SCRS datasets from different enhanced biological phosphorus removal (EBPR) activated sludge communities located across North America. These datasets represent complex environmental samples.

Key Insights and Ideas

  • Prior Knowledge is Not Required: The kernel divergence method is "prior-knowledge independent," meaning it doesn't need pre-classification or knowledge of the microbial community's composition to determine sample size. This is a major advantage for exploring novel or poorly understood environments.
  • Handles Non-Linearity: Unlike some previous methods that rely on linear assumptions, kernel divergence effectively captures complex, non-linear relationships within the data, making it more robust for real-world biological systems.
  • Standardization Potential: The method offers a standardized approach to sample size determination, which is crucial for improving the comparability and reproducibility of studies across different labs and experimental setups.
  • Balancing Act: The core idea is to find the "sweet spot" where adding more samples yields diminishing returns in terms of new distributional information, thus optimizing resource allocation.

Key Results

  • Synthetic Data Performance: The method successfully identified sufficient sample sizes for both linear (Dataset 1) and non-linear (Dataset 2) synthetic datasets. For Dataset 1, a sufficient sample size of around 40 was identified for a convergence threshold of 0.01. For the non-linear "spiral" dataset, the required sample size varied with batch size, increasing from 59 to 123 as batch size increased from 1 to 3.
  • EBPR Case Study: For the eight EBPR communities, the method determined sufficient sample sizes ranging from 26-39 for a resolution threshold of t=0.01, and 47-71 for a higher resolution threshold of t=0.005. These results were comparable across the different EBPR systems, suggesting a degree of similarity in their microbial phenotypic "richness."
  • Threshold Sensitivity: The choice of convergence threshold (t) directly impacts the determined sample size, with lower thresholds (higher resolution) requiring more samples. For the EBPR datasets, a threshold of 0.01 captured OPU clusters with >5% abundance, while 0.005 improved resolution to 2%.

Limitations and Future Work

  • Continuous Features: The method is currently applicable to datasets containing only continuous features.
  • Generalizability: While the authors suggest it can be generalized to other single-cell technologies and environmental applications, this requires further validation.
  • Parameter Selection: The choice of convergence threshold (t) and batch size (k) are important parameters that influence the outcome and need careful consideration based on the specific analytical system and desired resolution.
  • Future Work: The authors envision this method being generalized to other analytical technologies like Raman-based histopathological assessments, flow cytometry gating strategies, and cellular imaging libraries. They also highlight the ongoing investigation into the correlation between SCRS-based phenotypic clusters and phylogenetic OTUs for deeper insights into microbial communities.

Summary updated

Abstract

ABSTRACT Rapid progress in various advanced analytical methods such as single-cell technologies enable unprecedented and deeper understanding of microbial ecology beyond the resolution of conventional approaches. A major application challenge exists in the determination of sufficient sample size without sufficient prior knowledge of the community complexity and, the need to balance between statistical power and limited time or resources. This hinders the desired standardization and wider application of these technologies. Here, we proposed, tested and validated a computational sampling size assessment protocol taking advantage of a metric, named kernel divergence. This metric has two advantages: First, it directly compares dataset-wise distributional differences with no requirements on human intervention or prior knowledge-based pre-classification. Second, minimal assumptions in distribution and sample space are made in data processing to enhance its application domain. This enables test-verified appropriate handling of datasets with both linear and non-linear relationships. The model was then validated in a case study with eight SCRS phenotyping datasets each sampled from a different enhanced biological phosphorus removal (EBPR) activated sludge community located across North America. The model allows the determination of sufficient sampling size for any targeted or customized information capture capacity or resolution level. For example, an approximated sampling size of 50 or 100 spectra for full-scale EBPR-related ecosystems at 5% or 2% OPU cluster resolution. Promised by its flexibility and minimal restriction of input data types, the proposed method is expected to be a standardized approach for sampling size optimization, enabling more comparable and reproducible experiments and analysis on complex environmental samples. Finally, these advantages exhibit the capability of generalizing to other single-cell technologies or environmental applications, provided that the input datasets contain only continuous features. TOC
BibTeX
@misc{li2020machine,
  author = {Guangyu Li and Chieh Wu and Dongqi Wang and V. Srinivasan and David Kaeli and Jennifer Dy and April Z. Gu},
  title = {{Machine Leaning-based Determination of Sampling Depth for Complex Environmental Systems: Case Study with Single-Cell Raman Spectroscopy Data in EBPR Systems}},
  year = {2020},
  doi = {10.1101/2020.12.18.423496},
  howpublished = {bioRxiv},
}
Figure