Manuscript Offprint
arXiv:2609.05323Scalable Detection of Fossil Palynomorphs in Multifocal Digital Microscopy Images
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.
Abbas Shaikh
Rice University
Houston TX USA
Praise Mayor
Rice University
Houston TX USA
Teon Golden
Rice University
Houston TX USA
Patrick Ainlay-Vazquez
Rice University
Houston TX USA
Aditya Viswanathan
Rice University
Houston TX USA
Eric Zhang
Rice University
Houston TX USA
Ingrid C. Romero
Smithsonian National Museum of Natural History
Washington DC USA
Alexander E. White
Smithsonian Office of Digital and Innovation
Washington DC USA
Scott Wing
Smithsonian National Museum of Natural History
Washington DC USA
Arko Barman
Rice University
Houston TX USA
Abstract
Palynomorphs (microscopic, organic-walled fossils such as pollen, spores, and dinoflagellates) are important high-resolution records of past climates and are critical to the study of ancient ecosystems. Existing methods rely on manual analysis of high-resolution, multifocal digital microscopy images, which is slow and time-consuming and requires researchers to compromise on the scale of their investigations. To the best of our knowledge, our work proposes the first ever scalable end-to-end pipeline for automated palynomorph detection in whole slide images that addresses this bottleneck through: (1) efficient methods for decomposing and compressing digitized multifocal microscope slide images into tractable 2-dimensional tiles for analysis; (2) benchmarking modern object detection models, including RF-DETR, for the detection of palynomorphs, achieving an AP@50 of 0.879; (3) an efficient algorithm for the synthesis of detection outputs across large-scale, high-resolution images; and (4) an I/O optimization resulting in faster inference time. Our methods drastically reduce the time required for palynomorph detection in a single slide from often days of manual inspection to under one hour of
automated analysis, enabling palynological research at a substantially greater scale.
1. Introduction
Palynomorphs – microscopic, organic-walled fossil particles including pollen, spores, dinoflagellates, fungi, and algae – are among the most abundant and best-preserved plant fossils in the geological record [23, 24]. The study of palynomorphs is of critical importance in paleoclimatological research, acting as direct and resilient records of past environments that inform reconstructions of Earth’s past climates and projections of future ones [7, 24]. In particular, palynomorphs from ancient warm intervals, when was elevated, offer empirical analogues for projecting ecosystem response under continued warming [4].
The Smithsonian National Museum of Natural History stewards a collection of tens of thousands of microscope slides of palynomorphs, in which a single slide can contain thousands of specimens [21]. While many slides have been digitized, only a small fraction have been actively studied. Manual analysis is often slow and time-consuming, as palynomorphs are interspersed with other sediments,

(a) High-level crop of a slide image with annotations.
(b) Crop at magnification with palynomorphs circled.
Figure 1. Sample slide image crops with human annotations at different scales.
making them difficult to distinguish and localize quickly. However, digitizing these slide collections opens the possibility of using machine-learning object detection models to support scalable, high-throughput palynological research [9, 15, 16, 18, 21].
Digitized slides are scanned at several magnifications and focal planes, producing several high-resolution images often exceeding 25 GB in total [21]. Given the sheer volume of data in a single digitized slide, processing an image in its entirety is computationally infeasible. This challenge prohibits the use of standard techniques for pre-processing, modeling, and post-processing used in standard object detection frameworks. These challenges are further compounded by the fact that multifocal images capture significantly more information and complexity than a standard two-dimensional image.
Each palynomorph specimen is a three-dimensional body suspended in mounting medium, and no single focal plane in a slide brings every specimen into focus. Specimens are also frequently dense, overlapping, or occluded by debris of similar contrast and texture. Furthermore, variations in staining, mounting medium, and acquisition parameters induce substantial appearance shifts across slides. Hence, a model fit to one preparation cannot necessarily be assumed to transfer to another. Figure 1 shows a representative annotated crop illustrating the density, variation in scale, and background clutter that characterize the data.
Due to these challenges, automated palynology has largely focused on classification of pre-cropped specimens, whether from single images [11, 18] or by treating image stacks as 3D sequential data [5, 20]. Detection has been addressed more recently [3, 6, 8, 12, 14, 22], but on fields of view of a few megapixels only [8], not on whole slide images.
The challenges of decomposing high-resolution, multifocal data from whole slide images remain unaddressed; hence, the throughput problem that motivates automation remains unsolved. Multifocal information is also seldom used for detection, the most common approach being to apply an object detection method once per plane and fuse the
resulting proposals across planes with non-maximum suppression (NMS) [8]. This strategy is impractical for most palynological research: for multifocal images consisting of 25–27 focal planes and up to 10,000 tiles per slide, detection and aggregation become exponentially costly. To the best of our knowledge, no prior work performs palynomorph detection at a whole-slide scale, and none reports an end-to-end system capable of performing detection on a complete, multifocal digitized slide.
Moreover, our end-to-end pipeline performs inference on entire slides at a pace comparable with the digitization of slides. While our baseline methods yield a runtime of roughly 8–9 hours per slide, our I/O optimization strategy reduces inference time to less than 1 hour per slide. Additionally, to the best of our knowledge, our work is the first to detect all organic remains that can fall into the palynomorph category, not focusing solely on pollen and spores, as seen in all prior research [3, 6, 8, 12, 14, 22].
Our contributions can be summarized as follows:
• We propose an end-to-end whole-slide palynomorph detection pipeline leveraging state-of-the-art object detection models, including You Only Look Once 26 (YOLO26) [10] and Roboflow DEtection TRansformer (RF-DETR) [19], usable at operational scale with inference times comparable to the digitization of microscope slide images.
• We develop a scalable preprocessing pipeline for high-resolution, multifocal microscopy data that crops images into tiles that are tractable for processing and compresses each focal stack into a single 2D image, yielding inputs directly usable by object detection models.
• We introduce a boundary-aware variant of the non-maximum suppression procedure to merge and deduplicate detections across thousands of tiles efficiently.
• We devise an I/O optimization method to speed up inference about 10 times, resulting in an inference time of less than 1 hour per slide.
More recently, CNN-based object detection methods have been applied to automate localization. Previous work has explored a variety of methods for object detection, including You Only Look Once (YOLO), Faster Region-based CNN (Faster R-CNN), and RetinaNet, for both localization and recognition of pollen in microscopy data [8, 12]. There have been methodological advances in CNN-based pollen detection, such as HieraEdgeNet [14], which incorporates multi-scale edge-enhanced features into model reasoning to address the challenging visual features of microscopic specimens, such as indistinct borders and highly complex background debris. Pollen-YOLO, a pollen detection method based on YOLO, leverages an improved channel-spatial collaborative attention module to ensure robustness to morphological variability and distortion of specimens within images [22].
While transformer-based architectures have now emerged as powerful alternatives for object detection, their use in palynology remains relatively unexplored. Recent work has investigated the use of pre-trained vision transformers via linear probing as robust feature extractors in hybrid CNN-transformer architectures for automated pollen detection [3]. Real-Time DEtection Transformer (RT-DETR) has also been applied as a localization tool within a two-stage semi-supervised framework for the identification and classification of pollen particles in evanescent wave scattering microscopy [6]. In addition, while existing deep learning frameworks largely process specimens as isolated 2D planes, prior work has highlighted the value of incorporating multifocal input to resolve structural occlusion and blur [5]. Thus, there remains an unaddressed need to leverage modern transformer architectures for scalable end-to-end object detection that leverages multifocal inputs in palynology and paleontology.
3. Data
The dataset used in this study consists of 847 microscopy slides provided by the Smithsonian National Museum of Natural History, collected from sites across North America. Each slide was digitized using a NanoZoomer Slide Scanner, which outputs data in the NanoZoomer Digital Pathology Image (NDPI) format. Each resulting image is a scanned area of from a slide at varying magnifications that can contain tens of thousands of palynomorphs. At each magnification, the image captures a multifocal view across 25–27 focal planes. Due to the high resolution of digital microscopy images, each slide can be greater than 25 gigabytes in size [21].
Among these 847 slides, 82 slides were selected for annotation and curation for this study. Each such image is paired with a NanoZoomer Digital Pathology Annotation (NDPA) file, an XML-based file that stores annotations, measurements, and regions of interest. For each slide, one or more rectangular regions of interest of were se-

Figure 2. Crops at magnification from the (left) and (right) focal planes of a slide.
lected and manually annotated with all palynomorphs by researchers at the Smithsonian.
The images within the dataset capture a wide range of visual characteristics, including multiple staining methods and mounting media, various densities and distributions of palynomorphs (as well as different palynomorph subtypes), along with both organic and inorganic matter. These variations, collected from diverse environments, all produce variability that informed our modeling choices.
Figure 1a presents a high-level crop of a slide image within the dataset, providing visual evidence of the diversity and scale of organic and inorganic matter found within a single slide image. The annotated region of interest can be seen outlined in black, with individual palynomorphs outlined in blue. A closer view of the slide shown in Figure 1b displays a smaller region containing identified palynomorphs at higher resolution. As shown, the volume and diversity of data within a given slide underscores the need for automated methods of analysis.
Figure 2 shows 2 different focal planes (z = -12μm and z = 0μm) of the same region of a slide at 15× magnification. The slide was originally imaged at 25 focal planes, encompassing all positions in the z-stack from -12μm to 12μm. It can be observed that the sharpness of the image varies considerably across focal planes, and in this example, the 0μm focal plane provides the clearest image.
We note that the objects on the slides are suspended in a medium and free to move in a 3D space. As a result, individual structures of a single palynomorph may be located in different focal planes, and different objects on the same slide may be in focus in different focal planes. As a result, a single globally optimal focal plane (where all objects appear sharply visible) typically does not exist for any multifocal slide images of this nature. Thus, considerable preprocessing is needed to determine how to effectively compress information across multiple focal planes for efficient 2D object detection.

Figure 3. Our end-to-end palynomorph detection pipeline for digitized multifocal whole slide images.
4. Methods
4.1. Overview
Processing of high-resolution NDPI images is time and resource-intensive. We introduce an efficient, end-to-end pipeline to split an image into manageable tiles, convert these multifocal tiles into compressed, two-dimensional representations that can be used to train and test object detection models, and finally synthesize tile-level predictions to produce complete palynomorph detection results on whole slides. We explored two methods for compression of multifocal images: (1) focus stacking, which combines information across focal planes; and (2) focal plane selection, which identifies the sharpest individual plane. These two techniques were used in conjunction with significant data augmentation to train and evaluate two state-of-the-art object detection models: YOLO26 [10] and RF-DETR [19]. Finally, we integrated the trained models into a scalable pipeline with optimized tile reading, focal plane compression, and an efficient post-processing method to aggregate and de-duplicate tile-level predictions across whole-slide images. These methods enable efficient and accurate automated analysis of high-resolution, multifocal microscopy images of palynomorphs. Figure 3 shows our end-to-end pipeline for palynomorph detection for whole-slide images.
4.2. Pre-processing
As noted, processing raw NDPI files in their entirety is computationally infeasible given the memory constraints of standard hardware. Consequently, the following preprocessing pipeline was used to extract and organize relevant data into a usable format. In particular, the pipeline serves to (1) efficiently decompose large images into smaller tiles and (2) compress all focal planes for each multifocal image into a single 2-dimensional image, which can be readily used for training and evaluating state-of-the-art
object detection models.
For model development, we select only the 2.9mm² regions of interest containing ground truth annotated palynomorphs from each image. First, we subdivide these large annotated regions into fixed-size tiles (e.g., 1024×1024 pixels) at the maximum magnification of 40× and an overlap of 10%. This approach reduces the input size for the model while maintaining high resolution and sufficient scale to contain larger specimens. An overlap of 10% was empirically chosen to ensure that palynomorphs spanning tile boundaries were fully captured within at least one tile, enabling effective compositing of detections from adjacent tiles during post-processing.
Ground truth annotations, stored in physical nanometer coordinates relative to the slide center, were mapped onto the image pixel grid at the specified magnification using an affine transformation. Additionally, while the source data contains circular ground truth annotations, they were transformed to standard rectangular bounding box coordinates that bound these circular regions, where indicates the coordinates of the center of the bounding box for YOLO26 or the coordinates of the top left corner for RF-DETR, is the width, and is the height of the bounding box. In addition, bounding boxes were excluded from a given tile if their intersection with the tile boundary retained less than 25% of the ground truth annotated area, thereby preventing the inclusion of marginal object fragments as positive training samples. Extracted tiles were stored as 4-dimensional arrays with shape , where is height, is width, is the number of channels, and is the number of focal planes.
We employ two approaches to compress information from each multifocal image into a single 2D representation:
- Focus Stacking: Since important information about structures within the image may be present across multiple focal planes, we employ a technique called focus

(a) A focus-stacked tile.
(b) The representative plane of a tile.
Figure 4. A side-by-side comparison of focus stacking and focal plane selection.
stacking to combine information from all planes into a single 2D image. In particular, the Laplacian of Gaussian (LoG) was used as a focus measure operator and applied to each focal plane. The LoG operator first smooths an image with a isotropic Gaussian filter to reduce noise, and then applies a isotropic Laplacian filter to detect regions of rapid intensity change (edges and fine detail), which are most pronounced in well-focused images. Each pixel in the output is drawn from whichever focal plane produced the maximum LoG response at that position.
- Focal Plane Selection: Our other method selects the single most in-focus plane without modifying its contents using the Tenengrad score, rather than compressing information across planes. Tenengrad score is computed as the sum of squared Sobel gradients. As a result, a peak in the Tenengrad score is observed in the plane with the strongest, most well-defined edges. Thus, the plane with the highest Tenengrad score was chosen as the representative plane for each multifocal tile.
A comparison between a focus-stacked tile and the representative plane of the tile is shown in Figure 4. Notably, while a singular focal plane preserves most of the image in focus, larger structures tend to have some components that still remain out of focus. The focus-stacking procedure leverages information from other planes where these structures might be in focus to produce a higher contrast image. However, the trade-offs of using focus-stacking include increased noise and visual artifacts. Since adjacent pixels may be sourced from different planes, the stacking process can introduce discontinuities that are not edges or corners.
4.3. Models
The datasets of extracted tiles for both focus-stacking and focal plane selection were used to train and evaluate two object detection models. We frame the palynomorph detection as a single-class object detection task. To evaluate the effectiveness of modern object detection architectures
for this task, we benchmark state-of-the-art convolutional neural networks and transformer-based models. In particular, we adopt the YOLO26-L architecture [10] as our CNN baseline along with RF-DETR-2XL [19], which currently achieves state-of-the-art performance in object detection on standard COCO benchmarks [13].
To mitigate the sensitivity of the models to variations in staining, mounting media, image acquisition parameters, and ecological diversity present within the Smithsonian's palynological collection, we incorporate extensive data augmentation to improve the robustness of our pipeline. Our augmentation includes affine transformations; flips; hue, saturation, and value shifts; as well as mosaic augmentation.
4.4. Whole-Slide Inference
Obtaining palynomorph detection inference in a full slide poses additional computational challenges compared to training a model on pre-processed tiles. Namely, it requires reading each tile and compressing its focal planes in direct sequence with detection across thousands of tiles. Furthermore, tile-level detections must then be synthesized into a single cohesive set of detections across a whole slide. To handle the computational constraints of this task, we employ an additional I/O optimization and an efficient post-processing algorithm described below.
4.4.1. I/O Optimization
In initial experiments, we noted GPU utilization near 0% for extended periods, with per-tile inference runtime dominated by reading the NDPI file rather than by the detector model. Hence, we designed three changes to the slide input path for I/O optimization:
-
Handle Caching: NDPI files store each focal plane as a sequence of JPEG-compressed horizontal strips, each spanning the full width of the slide. We read the NDPI file handle and the strip index for each focal plane only once per slide and reuse them, rather than reconstructing on every tile read across all focal planes.
-
Band Reading: A single tile covers only a small horizontal fraction of the strips it intersects, so reading tiles independently forces each strip to be decoded again for every tile along its width. As a result, over a region spanning many tiles in width, the same compressed data is decoded many times. To optimize these I/O reads, we instead read a full-width band of tiles in a single operation, so that each strip is decoded exactly once, and crop individual tiles from the band in memory.
-
Parallel Input Preparation: We run tile reading and focal plane compression in parallel CPU worker processes that feed the GPU, overlapping input preparation of subsequent tiles (parallelizing both I/O reads and focal plane compression) with inference on the current tiles.
We empirically verified that each optimization leaves the output of our end-to-end pipeline unchanged. Tiles sliced from bands are pixel-exact against individual per-tile reads, and the serial and parallel paths produce identical detections (bounding box coordinates and dimensions as well as confidence scores) on whole test slides. Together, these changes reduce input cost from approximately 3 s to 0.2 s per tile, and the end-to-end whole-slide inference time by roughly an order of magnitude (Section 5.2).
4.4.2. Post-processing
Each slide can span up to 100,000 pixels in each dimension, resulting in up to 10,000 tiles per slide image. At inference time, tiles are passed through the model independently, producing a set of bounding box predictions with associated confidence scores. Collecting predictions across all tiles yields a dense set of candidate annotations over the entire slide. Since adjacent tiles overlap, objects near tile boundaries may be detected multiple times across neighboring tiles, producing duplicate annotations.
The most commonly employed solution to resolve duplicate detections is NMS, which greedily retains the highest-confidence annotation and suppresses any overlapping annotation whose Intersection-over-Union (IoU) with the retained box exceeds a fixed threshold, iterating until no further suppression occurs ([17]). Applied naively across all tiles, this would require comparing every pair of annotations from all 10,000 tiles, which is often computationally infeasible. To enable efficient whole-slide annotation, we additionally introduce a boundary-aware variant of NMS described in Algorithm 1.
For the -th tile , the set of detections within is denoted as , where is the bounding box of a detection and its associated confidence score. For each pair of overlapping tiles, , we compute the IoU between pairs of detections, , where and . All pairs exceeding a threshold are merged via a union-find structure . Across successive iterations, duplicate detections are grouped globally into connected components, and the highest-scoring detection within each component is efficiently retrieved via the find operation. By restricting de-duplication to detections that fall only within overlapping tiles and excluding detections in non-overlapping tiles, the algorithm avoids the quadratic comparison cost of traditional NMS, keeping whole-slide post-processing tractable.
5. Experiments and Results
5.1. Experiment Design
Data Splits. Of the 82 annotated slides described in Section 3, we select 58 for training, 12 for validation, and 12 as a held-out test set (a 70/15/15 split), yielding 4,585, 1,288,
Algorithm 1 Boundary-Aware NMS for Whole-Slide De-duplication
Require: Detections per tile , IoU threshold
1: Sort tiles in row-major order
2: Flatten all detections into global list , recording per-tile indices
3: Initialize union - find over elements
4: for each tile do
5: for each later tile overlapping do
6: for , do
7: if IoU( ) > then
8: .UNION( )
9:
10: for each do
11: .FIND(d)
12: if or then
13:
14: return
and 986 tiles in each split, respectively. While the number of tiles between splits is not uniform, splitting at the slide level prevents data leakage across splits, which is especially important since every slide may visually differ due to variations in staining, mounting medium, and specimen distribution. Additionally, we verified that annotation density, palynomorph subtype distribution, and staining method were comparable across the three splits prior to training.
Training. YOLO26-L [10] was trained on tiles at a resolution of , with a composite bounding-box regression and Complete IoU (CIoU) loss, applying early stopping with a patience of 10 epochs. RF-DETR-2XL [19] was trained on tiles resampled to a resolution of (to accommodate the backbone's stride requirement) with a Hungarian-matching objective that combines and generalized IoU losses, under the same early-stopping criterion and smoothed using an exponential moving average of its weights. Both models were optimized with AdamW (batch size 16) on a single NVIDIA L40S GPU, and the final checkpoint for each run was selected based on the peak validation AP@50-95 (mean of average precision values across IoU thresholds from 0.5–0.95 in increments of 0.05). For each pair of focal plane compression (focus stacking vs. focal plane selection) and model, we tuned the optimizer, regularization, and augmentation hyperparameters with Optuna's Bayesian optimization framework [1], with the objective of maximizing validation AP@50-95, followed by a secondary refinement search around the best selected configuration from the first stage: RF-DETR-2XL with focus-stacked inputs.
Metrics. We evaluate detection performance using precision, recall, and average precision (AP), following the
Table 1. Detection performance for all four pairs of model and focal plane compression configurations. Best result in every column is written in bold.
| Model | Pre-processing | AP@50 | AP@50-95 | Prec. | Rec. |
|---|---|---|---|---|---|
| YOLO26-L | Focus stacking | 0.826 | 0.594 | 0.825 | 0.752 |
| YOLO26-L | Focal plane selection | 0.860 | 0.604 | 0.838 | 0.757 |
| RF-DETR-2XL | Focus stacking | 0.879 | 0.642 | 0.840 | 0.799 |
| RF-DETR-2XL | Focal plane selection | 0.877 | 0.637 | 0.833 | 0.792 |
COCO evaluation protocol. Precision and recall are reported at the confidence threshold that maximizes the score. A detection is considered correct if its predicted box and matched ground-truth box satisfy an IoU exceeding a specified threshold. We report AP@50 as well as AP@50-95, which penalizes coarse localization more strictly, both calculated using an IoU threshold of 0.5.
5.2. Results
Table 1 reports test-set performance for all four pairs of models and pre-processing conditions. RF-DETR-2XL outperforms YOLO26-L for both focal plane compression methods, by AP@50 of 0.053 and 0.017 for focus stacking and focal plane selection, respectively, with even larger margins in recall. The two architectures also respond differently to the choice of pre-processing method: YOLO26-L shows a considerable increase of 4% in AP@50 from focus-stacked to selected focal plane images, a gap unlikely to be explained by training noise alone, while RF-DETR-2XL demonstrates similar performance for both focal plane compression methods. The overall best configuration, RF-DETR-2XL on focus-stacked images, achieves an AP@50 of 0.879 and AP@50-95 of 0.642, and is used as the final model for evaluating our I/O optimization methods.
Figure 5 shows tile-level predictions from both models alongside the ground truth annotations for a representative held-out test tile, both trained on focus-stacked images. RF-DETR-2XL recovers more true positives in visually dense, overlapping regions, consistent with its higher recall in Table 1, while YOLO26-L misses specimens more frequently in cluttered areas.
To evaluate the full end-to-end pipeline of Section 4.4 at operational scale, we ran both the final RF-DETR-2XL and YOLO26-L models on a representative held-out test slide using focus-stacked tiles (Table 2, rows 1–2). With the original read path, RF-DETR-2XL generates inference slower than YOLO26-L by roughly 50 minutes per slide. Since both models are intended for offline, whole-slide inference rather than real-time use, this overhead may be considered an acceptable cost for the higher accuracy of RF-DETR-2XL. However, these inference times far exceed the time required for the digitization of slides.
With the optimized read path of Section 4.4.1, whole-

Figure 5. Qualitative detection results on a representative held-out test tile (focus-stacked input). Blue boxes in (a) are ground-truth annotations; green boxes in (b) and (c) are model predictions.
Table 2. End-to-end whole-slide inference time (focus-stacked input) using a single NVIDIA L40S GPU. Rows 1–2: original read path, single held-out test slide. Row 3: optimized read path of Section 4.4.1; values are means over five production slides.
| Model | Read path | Whole-slide Inference | Tile Inference |
|---|---|---|---|
| YOLO26-L | Original | 7h 52m | 2.60s |
| RF-DETR-2XL | Original | 8h 42m | 2.75s |
| RF-DETR-2XL | Optimized | 51m | 0.41s |
slide inference with RF-DETR-2XL drops to 51 minutes per slide in production (reading and focal compression 0.18–0.24 s per tile and inference 0.15–0.20 s per tile, at four CPU workers feeding a single GPU), roughly an order of magnitude faster end-to-end (Table 2, row 3). At this rate, whole slide inference now keeps pace with digitization: whole-slide inference on a slide is obtained in under an hour on a single GPU, so newly scanned slides can be processed as they are produced rather than accumulating a backlog.
Finally, deploying a model requires a single operating confidence threshold. We select by maximizing the score on the test set, which gives for the best overall configuration (RF-DETR-2XL, focus-stacked), with precision 0.824, recall 0.810, and at that threshold. Since is chosen on the same data used to report model performance, it represents a best-case operating point rather than an unbiased estimate of deployment performance. Lowering trades precision for recall, favoring more comprehensive slide coverage at the cost of additional false positives.
6. Discussion
6.1. Model Performance
We achieve the best inference performance using the RF-DETR-2XL architecture, trained and evaluated on focus-stacked images across all metrics, including precision, recall, AP@50, and AP@50-95. The transformer-based RF-DETR model also outperformed our CNN baseline,
YOLO26. This advantage likely arises from the architectural differences between the models. The transformer backbone of RF-DETR applies self-attention across the full feature map, enabling it to model long-range dependencies and global context more comprehensively than YOLO26. This approach may be particularly advantageous for palynomorph slides, which are characterized by high visual density and complex backgrounds, requiring contextual understanding to distinguish biological entities from inorganic debris.
Although RF-DETR achieved higher AP and recall than YOLO26, precision remained comparable between the two models. Qualitative results showed that RF-DETR substantially reduced false negatives at the cost of occasional false positives, particularly in areas of high occlusion. The higher AP indicates that these additional false positives were less detrimental than the comparatively larger number of missed ground-truth detections produced by YOLO. This difference may result from RF-DETR's matching strategy in training, which enforces one-to-one assignment between predictions and ground-truth objects, thereby reducing missed detections in dense or crowded regions where multiple nearby objects might otherwise compete for the same prediction.
For our particular application, the higher recall of RF-DETR is preferred. False positives can be eliminated through expert review, whereas false negatives represent undetected specimens. RF-DETR, therefore, better aligns with workflows requiring comprehensive specimen discovery. The optimal confidence threshold for RF-DETR indicates that the model generates well-calibrated, moderately high-confidence detections for a broad fraction of the specimen distribution. In a deployment context, researchers may choose to further lower or raise the threshold, depending on whether downstream review capacity or data completeness is the binding constraint.
6.2. Comparison of Focal Plane Compressions Methods
While the best focal plane selection substantially improved the performance of YOLO26 compared to focus stacking, it provided no discernible benefit for RF-DETR, which achieved near-identical results across both the focal plane compression strategies. Focus stacking can bring structures at different depths into focus within a single tile, but its pixel-wise selection introduces artifacts, such as halo edges, blending seams, and other high-frequency artifacts at depth discontinuities, that are absent in single-plane images. We attribute the performance differences of YOLO26 between the two focal plane compression methods to these artifacts. In contrast, RF-DETR demonstrated slight improvements using focus-stacked images. These results likely indicate that the larger representational capacity of RF-DETR was robust to the localized artifacts that focus stacking can introduce, allowing it to effectively leverage the sudden changes in sharpness that might be lost in a single representative focal plane. We also note that the aggressive data augmentation pipeline may have reduced much of the sharpness benefit that focus stacking provides, such that either model no longer significantly benefited from enhanced image contrast. However, our results generally suggest that while the optimal focal plane compression method may be dependent on the detector architecture, more robust models can better leverage sharper, focus-stacked images.
6.3. Limitations and Future Work
While the performance of RF-DETR establishes a promising baseline for automated palynology, there are several constraints that warrant further investigation. A relatively small sample size of 82 annotated slides may have resulted in a coarse train/validation/test split that might have lacked sufficient stratification of palynomorph subtypes. During development, we observed a consistent gap between validation and test performance, suggesting uneven difficulty of detection across splits, potentially driven by differences in geographic origin, staining protocols, and specimen density between slides. A more balanced, stratified sampling approach based on morphological complexity, slide quality, and/o palynomorph subtype distribution would likely yield a more reliable estimate of generalization performance in future work.
Additionally, while both focus stacking and focal plane selection enable the use of standard 2D object detection architectures, they discard volumetric information – through multi-image blending in focus stacking and through the loss of structural context from other planes in focal plane selection. Models specifically targeted toward multifocal object detection, capable of processing raw multifocal z-stacks, could potentially improve detection quality by retaining depth information end-to-end. However, we conjecture that the inference time of these models would be much higher compared to our efficient 2D approach.
Finally, our current focus on detection does not yet account for palynomorph subtype identification, which is a separate challenge due to the subtle taxonomic features required for differentiation, and could be an objective of future work.
7. Conclusion
Automated detection of palynomorphs in digital microscopy represents a critical step toward scaling palynological research. Manual annotation workflows are labor-intensive and constrained by the rapidly increasing volume of high-resolution slide data, limiting both throughput and reproducibility. In this work, we developed an end-to-end automated palynomorph detection pipeline for multifocal whole-slide images that integrates structured data handling, I/O optimization, depth-aware pre-processing, modern object detection architectures, and boundary-aware NMS to address these challenges.
The proposed solution demonstrates that advanced detection models, particularly RF-DETR, can effectively capture complex visual patterns in palynomorps, achieving an AP@50 of 0.879 and an AP@50-95 of 0.642. By incorporating multifocal information, the pipeline enhances the reliability of object detection in visually dense and heterogeneous images. Furthermore, we demonstrate the efficiency and scalability of the proposed pipeline, reducing the time for detection to under one hour. These improvements represent a meaningful step toward robust, automated analysis in this domain. Beyond performance gains, this work establishes a generalizable framework for large-scale microscopy analysis, especially for multifocal slide images. Our pipeline is designed to be extensible to other imaging-based scientific applications, reducing reliance on expert-driven labeling while maintaining reproducibility and scalability.
Overall, this study highlights the potential of modern AI and machine learning approaches to transform manual workflows in palynology and paleontology. By enabling data-driven analysis of palynomorph datasets, the proposed framework supports more comprehensive and efficient reconstruction of past environmental conditions and Earth's climate history.
References
[1] Takuya Akiba, Shotaro Sano, Toshihiko Yanase, Takeru Ohta, and Masanori Koyama. Optuna: A next-generation hyperparameter optimization framework. In Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, 2019. 6
[2] Lina Bhoyar and Bhavya Srivastava. Revolutionizing forensic investigations through ai-driven pollen analysis: A narrative review. Review of Palaeobotany and Palynology, page 105440, 2025. 2
[3] András Biricz, Donát Magyar, Björn Gedda, Antonio Spanu, János Fillinger, Adrián Pesti, István Csabai, and Péter Pollner. Efficient and scalable training set generation for automated pollen monitoring with hirst-type samplers. Scientific Reports, 2025. 2, 3
[4] Kevin D Burke, John W Williams, Mark A Chandler, Alan M Haywood, Daniel J Lunt, and Bette L Otto-Bliesner. Pliocene and eocene provide best analogs for near-future climates. Proceedings of the National Academy of Sciences, 115(52):13288–13293, 2018. 1
[5] Amar Daood, Eraldo Ribeiro, and Mark Bush. Classifying pollen using robust sequence alignment of sparse z-stack volumes. In International Symposium on Visual Computing, pages 331–340. Springer, 2016. 2, 3
[6] Sachin Dhawan, Anuj Saxena, Anand Kumar, Mukesh Khare, and Dalip Singh Mehta. A two-stage, semi-
supervised deep learning framework for the detection and classification of ambient pollen using evanescent wave scattering. Environmental Science & Technology, 2026. 2, 3
[7] Dave Egan and Evelyn A. Howell, editors. The Historical Ecology Handbook: A Restorationist's Guide to Reference Ecosystems. Princeton University Press, 2005. 1
[8] Ramón Gallardo-Caballero, Carlos J García-Orellana, Antonio García-Manso, Horacio M González-Velasco, Rafael Tormo-Molina, and Miguel Macías-Macías. Precise pollen grain detection in bright field microscopy using deep learning techniques. Sensors, 19(16):3583, 2019. 2, 3
[9] Carlos Jaramillo, Surangi W. Punyasena, Daurys De Alba, Roxana Alveo, Angelica Arcila, Jorge Bermudez, Jonatan Bustos, Dayenari Caballero-Rodriguez, Karen Cardenas, David Caro, Francy Carvajal, Ivonne Marcela Castañeda, Shara Chaves, Carlos D'Apolito, Andres Diaz-Jaramillo, Laura Diaz, Luisa Gomez, Mauricio León-Carreño, Paula Lopera, Maria Alejandra Lopez, Priscila Lopez, Luke Mander, Jhonatan Martínez Murcia, Carlos Moreno, Enrique Moreno, Enrique Neyra, Brenda Orosco, Jhon Ortiz, Natalia Ossa, Natalia Ovalle, Carolina Ovalle, Angelo Plata, Ingrid Romero, Bruno Scudeiro, Silane A. F. Da Silva Caminha, Axel Tejada-Fajardo, Vinicius Do Valle, and Thiago Wood. Digitizing collections to unlock the full potential of palynology: A case study with the Smithsonian palynology collection. PLANTS, PEOPLE, PLANET, 8(4):1116–1131, 2026. 2
[10] Glenn Jocher, Jing Qiu, Mengyu Liu, Shuai Lyu, Fatih Catgatay Akyon, and Muhammad Esat Kalfaoglu. Ultralytics yolo26: Unified real-time end-to-end vision models, 2026. 2, 4, 5, 6
[11] Shu Kong, Surangi Punyasena, and Charless Fowlkes. Spatially aware dictionary learning and coding for fossil pollen identification. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, pages 1–10, 2016. 2
[12] Elżbieta Kubera, Agnieszka Kubik-Komar, Paweł Kurasinski, Krystyna Piotrowska-Weryszko, and Magdalena Skrzypiec. Detection and recognition of pollen grains in multilabel microscopic images. Sensors, 22(7): 2690, 2022. 2, 3
[13] Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dollár, and C. Lawrence Zitnick. Microsoft COCO: Common Objects in Context. In Computer Vision – ECCV 2014, pages 740–755, Cham, 2014. Springer International Publishing. 5
[14] Yuchong Long, Wen Sun, Ningxiao Sun, Wenxiao Wang, Chao Li, and Shan Yin. Hieraedgegen: A multi-scale edge-enhanced framework for automated pollen recognition. Agriculture, 15(23):2518, 2025. 2, 3
[15] Iver Martinsen, David Wade, Benjamin Ricaud, and Fred Godtliebsen. The 3-billion fossil question: How to automate classification of microfossils. Artificial Intelligence in Geosciences, 5:100080, 2024. 2
[16] Iver Martinsen, Benjamin Ricaud, David Wade, Odd Kolbjørnsen, and Fred Godtliebsen. The Fossil Frontier: An answer to the 3-billion fossil question. Artificial Intelligence in Geosciences, 7(1):100184, 2026. 2
[17] Alexander Neubeck and Luc Van Gool. Efficient non-maximum suppression. In 18th international conference on pattern recognition (ICPR'06), pages 850–855. Ieee, 2006. 6
[18] Surangi W Punyasena, Derek S Haselhorst, Shu Kong, Charless C Fowlkes, and J Enrique Moreno. Automated identification of diverse neotropical pollen samples using convolutional neural networks. Methods in ecology and evolution, 13(9), 2022. 2
[19] Isaac Robinson, Peter Robicheaux, Matvei Popov, Deva Ramanan, and Neehar Peri. Rf-detr: neural architecture search for real-time detection transformers. arXiv preprint arXiv:2511.09554, 2025. 2, 4, 5, 6
[20] Ingrid C. Romero, Shu Kong, Charless C. Fowlkes, Carlos Jaramillo, Michael A. Urban, Francisca Oboh-Ikuenobe, Carlos D'Apolito, and Surangi W. Punyasena. Improving the taxonomy of fossil pollen using convolutional neural networks and superresolution microscopy. Proceedings of the National Academy of Sciences, 117(45):28496–28505, 2020. 2
[21] Ingrid C. Romero, Scott L. Wing, Carlos A. Jaramillo, Holly Little, Surangi W. Punyasena, and Alexander E. White. Digitizing microscope slide-based natural history collections: A protocol using slide scanner technology. PLOS One, 21(4): e0346139, 2026. 1, 2, 3
[22] Xuan Shi, Guangliang Hou, Fubo Wang, and Hongyu Li. Pollen-yolo: A deep learning framework for automated pollen identification and its application to palaeoecological reconstruction on the tibetan plateau. Quaternary, 9(1):6, 2026. 2, 3
[23] Alfred Traverse. Paleopalynology. Springer, Dordrecht, 2 edition, 2007. 1
[24] Mohammad Abass Zargar, Muzafar Riyaz, Shaik Mohammad Hussain, Arfat Nazir, Saima Hamid, Ishfaq Ahmad Gojree, and Khursheed Ahmad Parray. Pollen and spores as proxies for palaeoenvironment reconstruction: A review of sediment-based research. Journal of the Palaeontological Society of India, 70(1):42–60, 2025. 1