|
Biodiversity Information Science and Standards :
Conference Abstract
|
|
Corresponding author: Kenzo Milleville (kenzo.milleville@ugent.be)
Received: 26 Dec 2025 | Published: 23 Mar 2026
© 2026 Kenzo Milleville, Dieter De Witte, Maarten Trekels, Quentin Groom, Steven Verstockt
This is an open access article distributed under the terms of the Creative Commons Attribution License (CC BY 4.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
Citation:
Milleville K, De Witte D, Trekels M, Groom Q, Verstockt S (2026) Determining the Scale of Herbarium Sheet Images via Ruler Detection. Biodiversity Information Science and Standards 10: e183602. https://doi.org/10.3897/biss.10.183602
|
|
The digitization and online availability of herbarium specimens have increased the need for automated tools to extract specimen traits at scale. Quantitative trait data, such as leaf area or petal length, are critical for ecology, evolution, and climate change research. In recent years, automated methods such as LeafMachine2 (
To overcome these limitations, we present a generic pipeline that accurately predicts the CF with few labeled rulers. The approach leverages the fact that many institutions reuse identical rulers, often differing only in institutional logos. Instead of directly classifying or predicting the tick mark locations, the pipeline uses a similarity-based approach. First, rulers on the page are detected using a YOLOv11 object detection model. Second, these rulers are cropped and normalized, ensuring the longest side is horizontal. After detection, we use Contrastive Language-Image Pre-training (CLIP) to embed each ruler and to retrieve the three most similar ruler candidates from our ground-truth dataset. Next, we use the LightGlue keypoint-matching model to detect corresponding keypoints between the query ruler and each retrieved candidate. This model detects and scores similar keypoint pairs (pixel coordinates) between two input image pairs. The candidate ruler with the highest average score across the 100 best keypoint pairs is selected as the best match. If none of the candidates had at least 10 matching keypoint pairs, we consider the query ruler a “no-match”. Finally, these keypoint pairs are used to estimate a homography, which describes how one image can be transformed to align with another taken from a different viewpoint. This transformation is then applied to the ground truth tick mark locations to calculate the CF for the query ruler.
To evaluate the proposed method, we constructed a new dataset by randomly selecting 400 herbarium sheets from the Global Biodiversity Information Facility (GBIF), PlantCLEF2020, and
Top: Sample ruler from our own dataset. Bottom: Sample ruler from the LeafMachine2 dataset. Original images from Clemson University Herbarium, CC BY-NC 3.0.
Rulers without a matching type were excluded for evaluation. The method achieved an average CF error of 0.689% using the best-matching ruler. 94.8% of rulers had a CF error less than 2%. On the LeafMachine2 dataset, performance improved with an average CF error of 0.324%. There, 99.0% of rulers had a CF error less than 2%. We plan to investigate how different annotation strategies affect performance. Table
Evaluation results of our pipeline on our dataset and the dataset of LeafMachine2.
| Dataset | Amount | Annotation error (%) | Average error (%) | Median error (%) | No match |
| Own | 457 | 0.794 | 0.689 | 0.199 | 11 (2.40%) |
| LeafMachine2 | 1131 | 0.800 | 0.324 | 0.141 | 46 (4.07%) |
The proposed method offers several advantages over existing approaches. First, it allows an accurate conversion with fewer annotated rulers of the same type, essentially needing only one. Second, the keypoint matching process is robust to partial detections, occlusions, and low-resolution rulers, as visualized in Fig.
Output of our pipeline for two sample rulers. From top to bottom: the query ruler, the best-matching ruler candidate, and the predicted tick marks visualized in red. Original images from the Field Museum of Natural History (CC BY-NC 4.0) and the University of Florida Herbarium (CC BY-NC 4.0).
Left: Inaccurate prediction due to a failure in the keypoint matching. Right: Accurate prediction despite the best-matching ruler being from a different institution. Original images from Botanic Garden and Botanical Museum Berlin (CC BY-SA 3.0 DE), Clemson University Herbarium (CC BY-NC 3.0), and Royal Botanic Gardens, Kew (CC BY-4.0)
The main limitation of our method is that it requires at least one annotated ruler of a similar type to result in a good match. It also assumes the tick marks are on a straight line, resulting in poorer performance for curved rulers. Finally, we found that simple rulers, such as straight lines, tend to perform worse (see Fig.
This work represents part of our ongoing research to assist trait extraction at scale. We plan to expand the dataset with additional ruler types, including examples from other natural history collections. We will further refine the method to improve its robustness and generalization across institutions and to explore fallback methods when no match is found. The code and dataset are available on GitHub*
computer vision, object detection, trait extraction
Kenzo Milleville
Living Data 2025
This research was supported by the Research Foundation - Flanders (FWO Grant 12A9L25N) and facilitated by the infrastructure provided by DiSSCo Flanders (FWO Project I001625N).