bioRxivEcology
Dynamic species classification of microorganisms across time, abiotic and biotic environments - a sliding window approach
F. Pennekamp, J. I. Griffiths, E. A. Fronhofer, M. Seymour, A. Garnier, F. Altermatt, O. L. Petchey
Abstract
1. Technological advances have greatly simplified to take and analyze digital images and videos, and ecologists increasingly use these techniques for trait, behavioral and taxonomic analyses. The development of techniques to automate biological measurements from the environment opens up new possibilities to infer species numbers, observe presence/absence patterns and recognize individuals based on audio-visual information.\n\n2. Streams of quantitative data, such as temporal species abundances, are processed by machine learning (ML) algorithms into meaningful information. Machine learning approaches learn to distinguish classes (e.g., species) from observed quantitative features (phenotypes), and in-turn predict the distinguished classes in subsequent observations. However, in biological systems, the environment changes, often driving phenotypic changes in behaviour and morphology.\n\n3. Here we describe a framework for classifying species under dynamic biotic and abiotic conditions using a novel sliding window approach. We train a random forest classifier on subsets of the data, covering restricted temporal, biotic and abiotic ranges (i.e. windows). We test our approach by applying the classification framework to experimental microbial communities where results were validated against manual classification. Individuals from one to six ciliate species were monitored over hundreds of generations in dozens of different species combinations and over a temperature gradient. We describe the steps of our classification pipeline and systematically explore the effects of the abiotic and biotic environments as well as temporal effects on classification success.\n\n4. Differences in biotic and abiotic conditions caused simplistic classification approaches to be unsuccessful. In contrast, the sliding window approach allowed classification to be highly successful, because phenotypic differences driven by environmental change could be captured in the learning algorithm. Importantly, automatic classification showed comparable success compared to manual identifications.\n\n5. Our framework allows for reliable classification even in dynamic environmental contexts, and may help to improve long-term monitoring of species from environmental samples. It therefore has application in disciplines with automatic enumeration and phenotyping of organisms such as eco-toxicology, ecology and evolutionary ecology, and broad-scale environmental monitoring.
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Machine learning to classify animal species in camera trap images: applications in ecology
M. A. Tabak, M. S. Norouzzadeh, … R. S. Miller·bioRxiv·Jul 9, 2018
- Deep learning classification of temporal data in ecology
C. Capinha, A. Ceia-Hasse, … C. Meijer·bioRxiv·Sep 14, 2020
- LizardLens: A Two-Stage Deep Learning Pipeline for Detecting and Classifying Similar Species in Visually Complex Environments
Wen Han Chia, Ilia Jahanshahi, … James T. Stroud·bioRxiv·Jun 12, 2026
- Automated community ecology using deep learning: a case study of planktonic foraminifera
A. Y. Hsiang, P. M. Hull·bioRxiv·Oct 31, 2022
- ClassifyMe: a field-scouting software for the identification of wildlife in camera trap images.
G. Falzon, C. Lawson, … P. D. Meek·bioRxiv·May 24, 2019
- Leveraging machine learning and accelerometry to classify animal behaviours with uncertainty
Medha Agarwal, Kasim Rafiq, … Zaïd Harchaoui·Methods in Ecology and EvolutionPeer-reviewed·Dec 8, 2025