Image Classification Guide


Welcome! This page provides access to Jupyter notebooks that demonstrates how to (1) implement cross-validation with YOLO for image classification in Python and (2) deploy a trained YOLO model, from Hugging Face for example, on new images ๐Ÿ“ท๐ŸŒŠ๐Ÿ™๐Ÿค–

These are designed to be beginner-friendly, with the option to run them entirely online using Google Colab โ€” no installation or GPU required. However, if you're more comfortable with Python and Jupyter, you can also clone the repository and run it locally.

No data is required, as the code also downloads an open-source dataset from Hugging Face. Note that this is a copy of the original dataset (for faster access), see Meyer et al., 2023 for details.

This resource is a supplement to our paper: Deep Blueprint: A Literature Review and Guide to Automated Image Classification for Ecologists (see below).

For R users: A shiny app (and associated R code) is also available here for select tasks.

Classification workflow
Figure 1: Simplified and idealized diagram of an image classification scenario. Each box represents a key task and corresponds to a section of the paper to aid comprehension. While presented largely linearly for clarity, real-world ML workflows are often iterative and non-linear and the need to revisit specific sections may vary depending on the scenario.

๐Ÿ“š How to Cite This Work

If you use this code, please cite our paper :

Game, C. A., Piechaud, N., & Howell, K. L. (2026). "Deep blueprint: A literature review and guide to automated image classification for ecologists", Journal of Animal Ecology, 00, 1โ€“28. Available at: https://doi.org/10.1111/1365-2656.70271.)

Or use the following BibTeX entry:


@article{Game2026,
author = {Game, Chloe A. and Piechaud, Nils and Howell, Kerry L.},
title = {Deep blueprint: A literature review and guide to automated image classification for ecologists},
journal = {Journal of Animal Ecology},
volume = {00},
number = {n/a},
pages = {1-28},
keywords = {benthic imagery, biotope classification, convolutional neural networks, deep learning, deep-sea ecology, image classification, machine learning, tutorial},
doi = {https://doi.org/10.1111/1365-2656.70271},
url = {https://besjournals.onlinelibrary.wiley.com/doi/abs/10.1111/1365-2656.70271},
eprint = {https://besjournals.onlinelibrary.wiley.com/doi/pdf/10.1111/1365-2656.70271}
}