IDEAS home Printed from https://ideas.repec.org/a/plo/pcbi00/1011240.html
   My bibliography  Save this article

Supervised learning and model analysis with compositional data

Author

Listed:
  • Shimeng Huang
  • Elisabeth Ailer
  • Niki Kilbertus
  • Niklas Pfister

Abstract

Supervised learning, such as regression and classification, is an essential tool for analyzing modern high-throughput sequencing data, for example in microbiome research. However, due to the compositionality and sparsity, existing techniques are often inadequate. Either they rely on extensions of the linear log-contrast model (which adjust for compositionality but cannot account for complex signals or sparsity) or they are based on black-box machine learning methods (which may capture useful signals, but lack interpretability due to the compositionality). We propose KernelBiome, a kernel-based nonparametric regression and classification framework for compositional data. It is tailored to sparse compositional data and is able to incorporate prior knowledge, such as phylogenetic structure. KernelBiome captures complex signals, including in the zero-structure, while automatically adapting model complexity. We demonstrate on par or improved predictive performance compared with state-of-the-art machine learning methods on 33 publicly available microbiome datasets. Additionally, our framework provides two key advantages: (i) We propose two novel quantities to interpret contributions of individual components and prove that they consistently estimate average perturbation effects of the conditional mean, extending the interpretability of linear log-contrast coefficients to nonparametric models. (ii) We show that the connection between kernels and distances aids interpretability and provides a data-driven embedding that can augment further analysis. KernelBiome is available as an open-source Python package on PyPI and at https://github.com/shimenghuang/KernelBiome.Author summary: In recent years, advances in gene sequencing technology have allowed scientists to examine entire microbial communities within genetic samples. These communities interact with their surroundings in complex ways, potentially benefiting or harming the host they inhabit. However, analyzing the microbiome—the measured microbial community—is challenging due to the compositionality and sparsity of the data.

Suggested Citation

  • Shimeng Huang & Elisabeth Ailer & Niki Kilbertus & Niklas Pfister, 2023. "Supervised learning and model analysis with compositional data," PLOS Computational Biology, Public Library of Science, vol. 19(6), pages 1-19, June.
  • Handle: RePEc:plo:pcbi00:1011240
    DOI: 10.1371/journal.pcbi.1011240
    as

    Download full text from publisher

    File URL: https://journals.plos.org/ploscompbiol/article?id=10.1371/journal.pcbi.1011240
    Download Restriction: no

    File URL: https://journals.plos.org/ploscompbiol/article/file?id=10.1371/journal.pcbi.1011240&type=printable
    Download Restriction: no

    File URL: https://libkey.io/10.1371/journal.pcbi.1011240?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    References listed on IDEAS

    as
    1. Thibault Laurent & Christine Thomas-Agnan & Anne Ruiz-Gazen, 2023. "Covariates impacts in spatial autoregressive models for compositional data," Journal of Spatial Econometrics, Springer, vol. 4(1), pages 1-23, December.
    2. John Aitchison & Michael Greenacre, 2002. "Biplots of compositional data," Journal of the Royal Statistical Society Series C, Royal Statistical Society, vol. 51(4), pages 375-392, October.
    3. Wei Lin & Pixu Shi & Rui Feng & Hongzhe Li, 2014. "Variable selection in regression with compositional covariates," Biometrika, Biometrika Trust, vol. 101(4), pages 785-797.
    4. Joanna Morais & Christine Thomas-Agnan, 2021. "Impact of covariates in compositional models and simplicial derivatives," Post-Print hal-03180682, HAL.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Thibault Laurent & Christine Thomas-Agnan & Anne Ruiz-Gazen, 2023. "Covariates impacts in spatial autoregressive models for compositional data," Journal of Spatial Econometrics, Springer, vol. 4(1), pages 1-23, December.
    2. Dargel, Lukas & Thomas-Agnan, Christine, 2023. "Share-ratio interpretations of compositional regression models," TSE Working Papers 23-1456, Toulouse School of Economics (TSE), revised 20 Sep 2023.
    3. Juan José Egozcue & Vera Pawlowsky-Glahn, 2019. "Compositional data: the sample space and its structure," TEST: An Official Journal of the Spanish Society of Statistics and Operations Research, Springer;Sociedad de Estadística e Investigación Operativa, vol. 28(3), pages 599-638, September.
    4. B. Baris Alkan & Afsin Sahin, 2011. "Measuring inequalities in the distribution of health workers by bi-plot approach: The case of Turkey," Journal of Economics and Behavioral Studies, AMH International, vol. 2(2), pages 57-66.
    5. Michael Greenacre, 2016. "Selection and statistical analysis of compositional ratios," Economics Working Papers 1551, Department of Economics and Business, Universitat Pompeu Fabra.
    6. Giovanni C. Porzio & Giancarlo Ragozini & Domenico Vistocco, 2008. "On the use of archetypes as benchmarks," Applied Stochastic Models in Business and Industry, John Wiley & Sons, vol. 24(5), pages 419-437, September.
    7. Javier Palarea-Albaladejo & Josep Martín-Fernández & Jesús Soto, 2012. "Dealing with Distances and Transformations for Fuzzy C-Means Clustering of Compositional Data," Journal of Classification, Springer;The Classification Society, vol. 29(2), pages 144-169, July.
    8. Michael Greenacre & Paul Lewi, 2005. "Distributional equivalence and subcompositional coherence in the analysis of contingency tables, ratio-scale measurements and compositional data," Economics Working Papers 908, Department of Economics and Business, Universitat Pompeu Fabra, revised Aug 2007.
    9. Anna Maria Fiori & Francesco Porro, 2023. "A compositional analysis of systemic risk in European financial institutions," Annals of Finance, Springer, vol. 19(3), pages 325-354, September.
    10. Germ`a Coenders & N'uria Arimany Serrat, 2023. "Accounting statement analysis at industry level. A gentle introduction to the compositional approach," Papers 2305.16842, arXiv.org, revised Jun 2025.
    11. Jiarui Lu & Pixu Shi & Hongzhe Li, 2019. "Generalized linear models with linear constraints for microbiome compositional data," Biometrics, The International Biometric Society, vol. 75(1), pages 235-244, March.
    12. Juan José Egozcue & Vera Pawlowsky-Glahn, 2019. "Rejoinder on: Compositional data: the sample space and its structure," TEST: An Official Journal of the Spanish Society of Statistics and Operations Research, Springer;Sociedad de Estadística e Investigación Operativa, vol. 28(3), pages 658-663, September.
    13. Marco Taussi & Caterina Gozzi & Orlando Vaselli & Jacopo Cabassi & Matia Menichini & Marco Doveri & Marco Romei & Alfredo Ferretti & Alma Gambioli & Barbara Nisi, 2022. "Contamination Assessment and Temporal Evolution of Nitrates in the Shallow Aquifer of the Metauro River Plain (Adriatic Sea, Italy) after Remediation Actions," IJERPH, MDPI, vol. 19(19), pages 1-24, September.
    14. Siham Zaaboubi & Lotfi Khiari & Salah Abdesselam & Jacques Gallichand & Fassil Kebede & Ghouati Kerrache, 2020. "Particle Size Imbalance Index from Compositional Analysis to Evaluate Cereal Sustainability for Arid Soils in Eastern Algeria," Agriculture, MDPI, vol. 10(7), pages 1-10, July.
    15. Jacob Fiksel & Scott Zeger & Abhirup Datta, 2022. "A transformation‐free linear regression for compositional outcomes and predictors," Biometrics, The International Biometric Society, vol. 78(3), pages 974-987, September.
    16. Gardner-Lubbe, Sugnet, 2016. "A triplot for multiclass classification visualisation," Computational Statistics & Data Analysis, Elsevier, vol. 94(C), pages 20-32.
    17. Michael Greenacre & Rafael Pardo, 2006. "Subset Correspondence Analysis," Sociological Methods & Research, , vol. 35(2), pages 193-218, November.
    18. Greenacre, Michael, 2009. "Power transformations in correspondence analysis," Computational Statistics & Data Analysis, Elsevier, vol. 53(8), pages 3107-3116, June.
    19. Michael Greenacre, 2009. "Contribution biplots," Economics Working Papers 1162, Department of Economics and Business, Universitat Pompeu Fabra, revised Jan 2011.
    20. Michael Greenacre, 2023. "The chi-square standardization, combined with Box-Cox transformation, is a valid alternative to transforming to logratios in compositional data analysis," Economics Working Papers 1857, Department of Economics and Business, Universitat Pompeu Fabra.

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:plo:pcbi00:1011240. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: ploscompbiol (email available below). General contact details of provider: https://journals.plos.org/ploscompbiol/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.