Skip to main content
QUICK REVIEW

[Paper Review] How to avoid machine learning pitfalls: a guide for academic researchers

Michael A. Lones|arXiv (Cornell University)|Aug 5, 2021
Explainable Artificial Intelligence (XAI)Computer Science23 references44 citations
TL;DR

This guide outlines common ML mistakes in academia and practical strategies to avoid them, covering data prep, model building, evaluation, fair comparison, and reporting.

ABSTRACT

Mistakes in machine learning practice are commonplace, and can result in a loss of confidence in the findings and products of machine learning. This guide outlines common mistakes that occur when using machine learning, and what can be done to avoid them. Whilst it should be accessible to anyone with a basic understanding of machine learning techniques, it focuses on issues that are of particular concern within academic research, such as the need to do rigorous comparisons and reach valid conclusions. It covers five stages of the machine learning process: what to do before model building, how to reliably build models, how to robustly evaluate models, how to compare models fairly, and how to report results.

Motivation & Objective

  • Identify common pitfalls in applying machine learning within academic research.
  • Provide actionable guidelines for data understanding, data handling, and study design.
  • Promote rigorous model evaluation, fair comparison, and transparent reporting to improve publishability and reproducibility.
  • Encourage engagement with domain experts and literature to ground ML work in real-world relevance.
  • Highlight practical considerations for deployment and modern ML developments to avoid overreliance on trends.

Proposed method

  • Present a structured, Dos and Don’ts style guide suitable for researchers with basic ML knowledge.
  • Discuss data-focused prerequisites before model building, including data origin, quality, and deployment considerations.
  • Advise on model selection, hyperparameter tuning, and awareness of deep learning pitfalls with up-to-date references.

Experimental results

Research questions

  • RQ1What are the key stages and practices that prevent common ML pitfalls in academic research?
  • RQ2How can researchers reliably build and evaluate ML models to ensure generalisability?
  • RQ3What guidance ensures fair comparison and transparent reporting of ML results in academic work?
  • RQ4How should deployment considerations influence ML methodology in research projects?

Key findings

  • Avoid data leakage by proper data partitioning, pre-processing, and restricting test-set influence during model selection.
  • Do experiment with a range of models and tune hyperparameters using principled optimisation; avoid assuming a single best model.
  • Do not perform data augmentation or feature selection before splitting data to prevent leakage and biased evaluation.
  • Do use appropriate test sets, multiple evaluation runs, and nested cross-validation to obtain reliable performance estimates.
  • Do report performance in multiple metrics and be transparent about methods, limitations, and data provenance.
  • Be cautious with deep learning: it is not always superior and may require large data and careful consideration of interpretability and privacy concerns.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.