Skip to contents

Classification of spatial landscape patterns using neural networks. The package provides tools for generating artificial landscapes with different spatial patterns, calculating landscape metrics, and training neural network classifiers.

Two classification approaches are supported:

  • **Pixel-based classification** using convolutional neural networks via keras3 (see train_nn_pixels)

  • **Metrics-based classification** using landscape metrics computed with landscapemetrics as input features for a neural network (see train_nn_metrics)

Typical workflow

  1. Generate training landscapes with create_landscapes

  2. Optionally calculate and evaluate landscape metrics with calculate_landscape_metrics and evaluate_landscape_metrics

  3. Train a classifier with train_nn_pixels or train_nn_metrics

  4. Apply the trained model to new landscapes with apply_nn_pixels or apply_nn_metrics

  5. Visualize results with plot_classified_landscapes

References

Baldauf, S., Tietjen, B., & Berger, U. (2025). spatPatClassifyR: An R package for classifying spatial landscape patterns using neural networks. *Methods in Ecology and Evolution*. In review.

Author

Maintainer: Selina Baldauf selina.baldauf@fu-berlin.de (ORCID)

Authors: