arXiv:2611.05680cs.CVNov 2026

Manuscript Offprint

arXiv:2611.05680

Toward an Optimal Configuration for Tree Species Classification from Bark Images: A Leakage-Safe Ablation Study

Maeve Côté

Abstract

Background: The automatic identification of tree species from bark photographs is of practical interest for forestry inventory and for the wood-processing industry, yet the numerous design choices that govern the accuracy of deep-learning approaches have not been studied systematically, and some prior results may be inflated by the leakage of images of the same trunk across training and test partitions. Methods: A systematic ablation study is conducted on the public BarkNet 1.0 dataset (20 species) under the established tree-level, leakage-safe partitioning scheme. Using ConvNeXt-V2 backbones, the following factors are varied in turn and evaluated by five-fold cross-validation: the patch size at which bark is sampled (five sizes), the strategy by which per-patch predictions are aggregated into an image-level decision, the training regime (single- versus two-stage), the backbone capacity, the whole-image baseline, and the number of patches available at inference. Results: Per-patch accuracy rises monotonically with patch size (from 75.6% at 160 px to 89.6% at 512 px), and image-level accuracy rises in step, plateauing near 94.9% around 512 px. Learned aggregation exceeds majority voting by at most 0.7 pp, an advantage that shrinks as patches grow and the attention distribution becomes near-uniform. Backbone capacity (pico to tiny) alters accuracy by less than a point, and two-stage training does not offer an advantage over one-stage training. Whole-image classification (91.9%) trails patch-based aggregation despite its larger field of view, since it admits no bag to average over; and accuracy increases with the number of patches available at inference, saturating around 64 patches. Conclusions: The study yields a simple recommended configuration: patches as large as possible while still leaving enough patches to average over (around 512 px here), with a nano backbone. It also quantifies the second-order role of learned aggregation and model capacity, providing a reproducible reference point for practitioners and future research.

Keywords: tree species identification; bark recognition; ablation study; patch size; multiple instance learning; ConvNeXt; deep learning; data leakage; BarkNet 1.0; forestry; fine-grained visual categorization.

1 Introduction

The identification of tree species is a routine but labour-intensive task in forest inventory, ecological monitoring, and the grading and pricing of timber in the wood-processing industry, and automating it with computer vision has attracted sustained interest over the past decade [1, 2]. Most automated systems identify plants from leaves, flowers, or fruit [1], which are seasonal and frequently out of reach on a standing trunk. Bark, by contrast, is visible throughout the year and remains accessible on both standing and felled trunks, and its texture varies comparatively little with season; these properties have made it an attractive cue for automated identification [3–6].

*Independent researcher, Montréal, Canada; maeve04.cote@gmail.com

Early approaches to bark recognition relied on hand-crafted texture descriptors, such as local binary pattern variants and statistical radial binary patterns [3, 5]. The feasibility of learning such features directly was established by Carpentier et al. [6], who released the BarkNet 1.0 dataset and reported strong accuracy by classifying image crops with a convolutional network and aggregating the per-crop predictions through hard majority voting. Subsequent work has pursued higher accuracy with more capable backbones; Cui et al. [4], for example, reported near-saturated single-image accuracy on an extended dataset using a ConvNeXt architecture [7]. Beyond BarkNet 1.0, larger bark benchmarks have since been released, including Bark-101 [8] and the recent CentralBark dataset [9].

Viewed more abstractly, bark recognition is an instance of fine-grained visual categorization [2]: the classes are visually similar sub-categories separated by subtle, texture-like cues rather than by object shape. It also shares its computational structure with a broader family of tasks in which a single image is too large or too heterogeneous to classify directly and is instead tiled into patches whose predictions are aggregated into an image-level decision. This tile-and-aggregate paradigm is central to computational pathology, where gigapixel whole-slide images are split into thousands of patches and combined by multiple instance learning [10–12], and it recurs in remote sensing and document analysis. The design questions examined here, namely how large each tile should be, how many are needed, and how their predictions should be combined, are therefore not specific to bark, and the conclusions may inform other tile-based fine-grained recognition tasks.

Despite this progress, two issues limit the practical value of the existing literature. First, the design choices that determine accuracy (the resolution at which bark is sampled, the manner in which patch-level evidence is combined, the training procedure, the capacity of the backbone, and the number of patches required at inference) have largely been adopted by convention. Individual choices have been studied in isolation, for instance patch extraction and majority-voting rules for bark by Misra et al. [13], but they have not been compared jointly and on a common footing, so no consolidated guidance exists as to the configuration a practitioner should adopt. Second, when a dataset contains several photographs of the same trunk, partitioning the data at the level of individual images rather than at the level of trees allows near-identical views of a trunk to appear in both training and test sets; the resulting leakage can inflate the reported accuracy and obscure the true difficulty of the task. This is a failure mode documented across many machine-learning-based sciences [14] and guarded against, for example, by patient-level splitting in computational pathology [11]. On BarkNet 1.0, Carpentier et al. [6] adopted a tree-level split, which we retain; some more recent studies instead report image-level results that, as this study shows, can be optimistic.

Accordingly, the present study does not seek to introduce a new architecture or to maximise a single headline figure. Instead, a systematic and leakage-safe ablation study is conducted, in which each principal design choice is varied in isolation and its effect on accuracy is quantified under a common, tree-level evaluation protocol. The aim is to establish which configuration is most effective for bark-based species classification, and by how much each factor matters, so that the result may serve as a dependable starting point for both industrial deployment and future research.

The contributions of this work are as follows:

  1. A systematic five-fold ablation conducted under the tree-level, leakage-safe evaluation protocol of Carpentier et al. [6], with all results reported as means and standard deviations of accuracy and macro- F1F_1, together with a direct demonstration of the accuracy inflation that image-level splits can produce.

  2. A systematic ablation over the principal design choices (patch size, aggregation strategy, training regime, backbone capacity, the whole-image baseline, and test-time bag size), quantifying the contribution of each to overall accuracy.

  3. A practical recommended configuration for deployment, derived from the ablation and supported by an attention-concentration diagnostic and an analysis of the learned attention.

References (21)