Machine Learning in Environmental Research: Common Pitfalls and Best Practices

Environ Sci Technol. 2023 Nov 21;57(46):17671-17689. doi: 10.1021/acs.est.3c00026. Epub 2023 Jun 29.

Abstract

Machine learning (ML) is increasingly used in environmental research to process large data sets and decipher complex relationships between system variables. However, due to the lack of familiarity and methodological rigor, inadequate ML studies may lead to spurious conclusions. In this study, we synthesized literature analysis with our own experience and provided a tutorial-like compilation of common pitfalls along with best practice guidelines for environmental ML research. We identified more than 30 key items and provided evidence-based data analysis based on 148 highly cited research articles to exhibit the misconceptions of terminologies, proper sample size and feature size, data enrichment and feature selection, randomness assessment, data leakage management, data splitting, method selection and comparison, model optimization and evaluation, and model explainability and causality. By analyzing good examples on supervised learning and reference modeling paradigms, we hope to help researchers adopt more rigorous data preprocessing and model development standards for more accurate, robust, and practicable model uses in environmental research and applications.

Keywords: Machine learning; causality; data leakage; data preprocessing; environmental research; hyperparameter optimization; model explainability; supervised learning.

Publication types

  • Review

MeSH terms

  • Environmental Science*
  • Machine Learning*