Abstract
Conformal prediction has emerged as a principled framework for uncertainty quantification in computer vision, offering rigorous finite-sample coverage guarantees. However, its application in object detection has remained largely confined to localization, as standard inference codebases typically yield only top-1 class scores, precluding full class-label conformalization. In this work, we bridge this gap by adapting four architecturally diverse detectors—Faster R-CNN, RetinaNet, YOLO11, and RT-DETRv2—to facilitate the extraction of comprehensive per-class score vectors and the estimation of background confidence in the absence of native background modeling. Leveraging these adapted architectures, we implement inductive conformal prediction (ICP) using five distinct nonconformity functions: Top-K, Adaptive Prediction Sets (APS), Hinge, Margin, and Brier score. Our framework is rigorously benchmarked across a curated 20-class subset of MS-COCO and two specialized parasite egg datasets (AI4NTD P1.5v2 and Chula-ParasiteEgg-11). In addition, a Naive cumulative-threshold method is included as a baseline for comparison with APS, given their comparable mathematical formulations. Across target coverage levels of 90%, 95%, and 99%, the conformalized models consistently achieved nominal coverage with only minor finite-sample deviations. Hinge and APS exhibited an optimal balance between statistical coverage and prediction-set efficiency, whereas Margin and Brier scores tended toward larger sets under high data complexity and strict coverage requirements. With empty prediction sets maintained below 0.1%, our findings establish ICP as a robust and adaptable paradigm for trustworthy class-label uncertainty estimation, particularly within safety-critical workflows such as automated parasite diagnostics.
1. Introduction
Object detection, a fundamental problem in computer vision, requires the precise localization and identification of objects within an image [1]. This technology has proven indispensable across a broad range of applications, including autonomous driving [2], extreme-environment perception [3,4], security and surveillance [5], healthcare [6], retail and e-commerce [7,8], agriculture [9,10], manufacturing [11], sports [12], environmental monitoring [13,14], and robotics [15]. Despite their widespread adoption, object detection models, like other machine learning techniques, are inherently subject to both aleatoric and epistemic uncertainty. Aleatoric uncertainty, arising from intrinsic variability or noise within the training data, and epistemic uncertainty, stemming from model limitations or the constraints imposed by finite data sampling, pose substantial challenges to the reliability and trustworthiness of object detectors [16,17]. Effectively addressing these uncertainties is essential for ensuring the practical applicability, trustworthiness, and robustness of object detectors in real-world scenarios. However, conventional evaluation metrics such as precision, recall, F1-score, and average precision (AP) often fail to characterize or quantify the impact of uncertainty adequately. This limitation has led to a growing research interest in quantifying uncertainty in object detection models and the broader field of machine learning [18].
Numerous techniques for uncertainty quantification in object detection have been developed to enhance the reliability of prediction outputs. Among the most prominent are Bayesian neural networks [19], Monte Carlo (MC) dropout [20,21], Platt and temperature scaling [22], Deep Ensembles [23], variational inference [24], and evidential deep learning (EDL) [25]. While these methods demonstrate substantial utility in capturing uncertainties in object detection models, they are not without limitations.
Methods such as MC-Dropout and Deep Ensembles incur substantial computational overhead. Their reliance on multiple forward passes increases inference time and computational cost, rendering them impractical for resource-constrained environments like edge devices and real-time systems. Similarly, Bayesian neural networks and variational inference introduce additional complexity due to their mathematically intricate formulations, often requiring careful tuning and expertise in implementation, which poses barriers to widespread adoption and scalability in applied settings. While computationally lighter, Platt and temperature scaling merely adjust confidence scores; they do not guarantee statistically valid calibrated probabilities or alter the original predicted class. Moreover, EDL requires architectural modifications, further complicating deployment.
Recently, conformal prediction has emerged as a robust framework for uncertainty quantification in machine learning, distinguished by its model-agnostic nature [26,27]. Unlike ensemble methods, which require training multiple models [28], or EDL, which necessitates modified loss functions [29], conformal prediction imposes no architectural constraints, ensuring compatibility with any model or dataset. Furthermore, compared with calibration techniques such as Platt scaling and temperature scaling, which merely adjust classification probabilities and lack formal coverage guarantees [22], conformal prediction provides rigorous finite-sample coverage guarantees for both classification and regression tasks by operating on the output of a pretrained model. This simplicity and flexibility make conformal prediction particularly effective in resource-constrained settings, such as edge devices for real-time object detection, where computational overhead from methods like Bayesian neural networks or MC-Dropout poses challenges [20]. By providing a guaranteed coverage framework for uncertainty estimation, conformal prediction directly addresses limitations of existing techniques, thereby enhancing reliability in complex safety-critical applications.
This versatility of conformal prediction is particularly relevant to object detection, where it can address uncertainty across distinct subtasks. Object detection combines localization (a regression task predicting object bounding boxes) with classification (assigning semantic labels). In safety-critical applications such as pedestrian localization in autonomous vehicles [30], railway signaling [31], and delineating regions of interest in medical radiography [32], managing spatial uncertainty is paramount. In contrast, semantic accuracy takes precedence in domains like parasitological analysis, where detecting and accurately counting parasite eggs in stool samples directly informs treatment decisions, rendering correct class-label assignment more critical than precise localization [33,34]. These examples highlight how the relative importance of spatial versus semantic uncertainty varies considerably across application domains. Although conformal prediction has been widely employed to establish tolerance margins for spatial localization, its application to ensure valid coverage of true class labels in the semantic subtask remains, to the best of our knowledge, significantly underexplored.
The limited exploration of conformal prediction for the semantic aspect of object detection is, in part, due to the design of current object detection models. At inference time, these models typically output a confidence score only for the top-ranked class, without providing the full confidence distribution over all classes. This lack of per-class confidence scores fundamentally limits the applicability of conformal prediction in the semantic subtask, as these scores are essential for constructing valid prediction sets. To address this critical limitation, we introduce a conformal prediction framework—specifically, inductive conformal prediction (ICP)—tailored for object detection that ensures valid class-label coverage. ICP is a variant of conformal prediction that uses a dedicated calibration set to provide statistically valid coverage of class labels. By constructing and using multiclass confidence distributions, our approach enhances the semantic reliability of object detectors and improves their trustworthiness in high-stakes domains where classification accuracy is paramount.
The key contributions of the paper can be summarized as follows:
- Introducing the application of ICP for semantic classification in object detection: Whereas previous work focused solely on bounding-box localization guarantees, we tackle the unaddressed challenge of achieving guarantees for class-label coverage of detected objects, by designing an application of ICP for semantic classification within object detection pipelines, distinguishing our work from existing conformal prediction applications.
- Enabling conformal prediction in standard object detectors via score adaptation: We address a key practical barrier by successfully adapting widely used object detection models (Faster R-CNN, RetinaNet, YOLO11, RT-DETR) to expose the necessary per-class confidence scores, including a heuristic for estimating the background class confidence. This modification overcomes a critical limitation of standard models, which typically output only the top-class score, thereby enabling conformal prediction for valid class-wise coverage in the semantic subtask of object detection.
- Curating and introducing MS-COCO-20 as a benchmark subset: We introduce MS-COCO-20, a curated 20-class subset derived from MS-COCO, designed to serve as an efficient (in terms of computational cost and experimentation time) and accessible benchmark for evaluating and comparing nonconformity scores for the classification aspect of object detection.
- Empirical validation of guaranteed coverage on the MS-COCO-20 benchmark and two use-case datasets: We empirically validate the effectiveness of our conformal prediction approach on the MS-COCO-20 benchmark, as well as on two use-case datasets focused on detecting parasite eggs in microscopy images. Our results demonstrate that finite-sample guaranteed class-label coverage can be achieved for detected instances in both general-purpose and practical, specialized settings, highlighting the potential of conformal prediction to enhance trustworthiness in downstream analysis.
2. Materials and Methods
This section details the methodology used to develop and evaluate a conformal prediction approach for generating object detection predictions with class-label guarantees. Figure 1 provides a schematic overview of our four-stage process. The four-stage pipeline involves (i) preparing datasets, including a dedicated calibration split; (ii) fine-tuning and evaluating baseline object detection models; (iii) refactoring model outputs into normalized confidence distributions, augmented with a heuristic artificial background class (except Faster R-CNN); and (iv) applying nonconformity functions to construct and evaluate statistically valid prediction sets.
Figure 1.
An overview of our workflow for generating class-label conformal prediction sets with statistical guarantees in object detection. The process involves (i) preparing the data using a dedicated calibration set; (ii) fine-tuning standard baseline object detectors; (iii) refactoring model outputs into confidence score distributions, appending a heuristic artificial background class (where applicable), and normalizing the result; and (iv) applying conformal prediction to produce prediction sets that are guaranteed to contain the true class label at a user-specified significance level (e.g., ). Icons from the Lucide project (https://lucide.dev/, accessed on 20 July 2026), licensed under the ISC License © Lucide Contributors.
2.1. Datasets
To facilitate consistent experimentation and establish a benchmark for evaluating the effectiveness of conformal prediction in providing guaranteed class-label coverage in object detection, we introduce MS-COCO-20. This dataset, derived from the 80-class MS-COCO dataset [35], comprises the 20 most frequent object classes in the original MS-COCO validation set, as determined by instance frequency. Selecting 20 classes strikes a balance between computational efficiency and semantic diversity, enabling faster experimentation without sacrificing generalizability. By focusing on the most populated classes, we ensure sufficient calibration and evaluation samples per class, which is critical for reliable uncertainty quantification. Importantly, this frequency-based selection does not affect the validity of ICP’s coverage guarantee, which holds for any class composition provided the calibration and test detections are exchangeable. The MS-COCO-20 dataset consists of images from the original MS-COCO training and validation splits that contain at least one instance of the selected object classes. The class distribution within MS-COCO-20 is shown in Table 1. Baseline models were trained and validated using the original MS-COCO training split. For the conformal prediction experiments, the calibration and test sets were sampled from the original MS-COCO validation set. We aimed for a 50/50 split; however, the co-occurrence of multiple object classes within the same image prevented an exact 50/50 split. This approximate 50/50 partition was selected because it ensures balance: neither the calibration nor the test set is so small as to cause either quantile instability or high-variance evaluation.
Table 1.
Object instance distribution within the MS-COCO-20 dataset, presented per class and split (train, validation, calibration, test) for use in inductive conformal prediction experiments.
To further evaluate conformal prediction for object detection, we also selected two publicly available use-case-specific datasets focusing on parasite egg detection. The first dataset, AI4NTD KK2.0 P1.5 STH & SCHm v2 [36], hereafter referred to as P1.5v2, contains four types of parasite eggs (Table 2). For P1.5v2, the training and validation sets were generated from the original training data at approximately a 4:1 ratio. The original validation and test sets were used to generate the calibration and final test sets, respectively. The second dataset, Chula-ParasiteEgg-11 (Chula) [37], comprises 11 parasite egg classes, with its class distribution across splits outlined in Table 3. Training and validation sets were generated from the original training data, and calibration and test sets were obtained from the original test data.
Table 2.
Object instance distribution within the AI4NTD KK2.0 P1.5 STH & SCHm v2 (P1.5v2) dataset, presented per class (egg type) and split (train, validation, calibration, test), for use in inductive conformal prediction experiments.
Table 3.
Object instance distribution within the Chula-ParasiteEgg-11 (Chula) dataset, presented per class (egg type) and split (train, validation, calibration, test), for use in inductive conformal prediction experiments.
2.2. Object Detection Models
To evaluate the effectiveness of conformal prediction in providing guaranteed class-label coverage across diverse object detection architectures, we selected four established models (see Table 4): Faster R-CNN, RetinaNet, YOLO11, and RT-DETRv2. This selection encompasses both established Deep Convolutional Neural Networks (DCNNs) and emerging Transformer-based paradigms, enabling us to assess the robustness of conformal prediction across diverse architectures.
Table 4.
Object detection models used in this study, with summaries of their detection paradigms, architectures, and classification activations.
- Faster R-CNN [38]: An established two-stage detector, included due to foundational role and widespread adoption.
- RetinaNet [39]: A one-stage detector chosen for its use of focal loss, a key contribution to handling class imbalance in real-world object detection scenarios.
- YOLO11 [40]: A one-stage detector known for its efficient architecture, enabling fast inference speeds crucial for real-time applications.
- RT-DETRv2 [41]: A one-stage detector that leverages self-attention mechanisms in its Transformer-based architecture to improve long-range dependency modeling.
A significant challenge in applying conformal prediction to object detection models stems from limited access to per-class confidence scores during inference, as commonly used codebases—primarily Detectron2 [42] and Ultralytics [43]—typically return only the confidence score for the predicted class. However, most conformal prediction approaches for classification tasks require softmax probability outputs (or equivalent sigmoid-weighted confidence scores) for all classes of a given instance (including background) to compute nonconformity scores. To address this, we refactored the inference process in each model codebase to extract all per-class confidence scores without altering the training pipeline or compromising the model-agnostic nature of conformal prediction. Crucially, this constitutes an inference-only code change; no model layers, weights, or training procedures were modified. To understand the practical implications, we next examine the output categories of object detection models and their relevance to conformal prediction.
When evaluating object detection models, three primary outcomes are considered: True Positives (correctly identified objects), False Positives (detections that do not correspond to a ground-truth object, including those in background regions), and False Negatives (missed objects). In the context of conformal prediction applied to object detection, per-class confidence scores are essential for constructing prediction sets for detected objects, namely, True Positives and False Positives. These scores allow conformal prediction to estimate the uncertainty associated with each predicted instance and determine whether the actual class label is covered. In contrast, False Negatives correspond to objects that the model failed to detect. Because conformal prediction operates on model outputs, it cannot correct for or quantify errors arising from missed detections. Consequently, False Negatives reflect intrinsic limitations of the base detector rather than a shortcoming of the conformal prediction framework; thus, they lie outside the scope of conformal coverage guarantees. To minimize their occurrence, we set a deliberately low detection confidence threshold of 0.1, maximizing recall over precision. Crucially, although object detection models typically provide only confidence scores for foreground classes associated with detected objects, the availability and quality of confidence scores, particularly for a dedicated background class, vary substantially across architectures. This inconsistency necessitates additional adaptations to enable a universally applicable conformal prediction framework.
Handling of background classes varies across object detection architectures. Faster R-CNN, for instance, incorporates a background class via softmax activation in its classification head, differentiating non-object regions. In contrast, models such as RetinaNet, YOLO11, and RT-DETRv2 output independent sigmoid-weighted per-class confidence scores and, therefore, lack an explicit background class. This architectural difference reflects deliberate design choices. Faster R-CNN’s two-stage (“crop-and-classify” design) pipeline assumes one object per region proposal (mutual exclusivity), making softmax the natural choice, whereas the rest of the one-stage detectors treat classification as independent binary decisions to handle potentially overlapping labels that are better served by sigmoid activations. The nonconformity score constructions used in this study operate on a score vector on the probability simplex (non-negative entries summing to one), while raw sigmoid outputs are not normalized in this way. To make sigmoid-based detectors compatible with a unified conformal scoring pipeline, we introduce an artificial background confidence score for models without a native background class (Algorithm 1) as and then normalize the extended score vector. We treat this as a pragmatic score-adaptation heuristic for implementation compatibility, not as a new probabilistic model or a theoretical requirement for ICP validity.
| Algorithm 1 Background Confidence Score and Normalization |
|
2.3. Conformal Prediction
Conformal prediction is a general framework, not a specific algorithm, designed to produce valid prediction regions with statistical guarantees [27]. Specifically, conformal prediction probabilistically ensures that the actual outcome lies within the prediction region with a user-specified confidence level of at least , where is the significance level controlling the allowable error rate. This probabilistic guarantee is marginal coverage, meaning that it holds on average over the joint distribution of the data and model predictions, rather than conditioning on specific inputs. The conformal prediction framework is model-agnostic and can be applied on top of any underlying predictive model, making it especially valuable for complex tasks such as object detection, which require reliable spatial and semantic coverage and, thus, uncertainty quantification in both dimensions.
Inductive conformal prediction (ICP) [27], also known as split conformal prediction, is a practical variant of conformal prediction that improves computational efficiency by partitioning the available data into a proper training set (used for baseline model training) and a separate calibration set . The calibration set is used to create nonconformity scores, which, in turn, are used to construct valid prediction sets for new examples. A new test dataset , comprising examples not included in either the proper training or calibration datasets, is assumed to be independently and identically distributed (i.i.d.) with . This i.i.d. assumption between and is critical for the validity of conformal prediction. Notably, the may or may not be i.i.d. with and . Compared with transductive conformal prediction, which requires re-evaluating the model for each new test point and class label, ICP provides the same marginal coverage guarantees with significantly less computational overhead. Here, we outline the formulation of conformal prediction to ensure guarantees for class-label coverage in object detection under this i.i.d. assumption [26].
The ICP guarantee in this work is marginal at the detection level. It holds on average over all predicted detections, not on a per-image basis. Calibration and inference are performed per detection (post-NMS), using only per-class confidence vector each detection, and exchangeability is assumed over these pooled per-detection nonconformity scores. Marginal detection-level ICP provides a provable, distribution-free finite-sample guarantee; exact per-image or per-class conditional guarantees are distribution-free impossible for finite samples and require impractical sample sizes or conservative bounds. For detection i with set , standard ICP yields
assuming exchangeability between calibration and test detections.
After training the baseline model, we utilize the calibration () and test () sets to implement conformal prediction. In ICP, the goal is to construct a prediction set that, for each class, contains the true class at least of the time, probabilistically. To do so, we compute nonconformity scores from the per-class confidence scores of the models, which form a probability distribution over all foreground classes and a background class. When the model lacks an explicit background class, an artificial score is introduced, and the complete set of scores is normalized (Algorithm 1). From , we estimate the empirical quantile of these nonconformity scores. Then, for each test example in , we construct the prediction set by including every class whose score is above this threshold. This procedure guarantees marginal coverage at level .
2.3.1. Nonconformity Scores
Nonconformity functions (NCFs) are central to conformal prediction, quantifying the “strangeness” or “nonconformity” of a data point with respect to its label. A higher nonconformity score indicates a poorer fit. For a given vector of confidence scores and true label y, a model-agnostic NCF A computes a nonconformity score .
In the calibration phase, nonconformity scores are computed for each pair in the calibration set . For a new test example with confidence score vector , a nonconformity score is calculated for each possible candidate label . Subsequently, a p-value is derived for each candidate label y by comparing its nonconformity score to the distribution of nonconformity scores from the calibration set:
where is the calibration set size.
Finally, the prediction set for the test example includes all candidate labels y whose p-value is greater than or equal to the significance level :
This construction gives us the probabilistic marginal coverage guarantee; i.e., the true label is included in the prediction set with at least marginal probability. This finite-sample coverage guarantee hinges on the i.i.d. property between the calibration and test sets.
In this research, we employed five distinct nonconformity scores, elaborated as follows. These nonconformity scores were applied to per-class confidence scores from adapted models, incorporating the artificial background score as described in Section 2.2 and Algorithm 1.
Top-K Method
The Top-K nonconformity score quantifies nonconformity based on the confidence score rank of the true label. For the ith instance from the calibration set, model confidence scores (where j indexes the classes) are sorted in descending order. The nonconformity score for this ith instance is the rank (position) of the true label within this sorted list [44]. While typically applied to softmax probabilities in multiclass classification, we adapted this method to utilize normalized confidence scores. For models without a native background confidence score, these scores were generated as detailed in Algorithm 1.
Adaptive Prediction Sets (APS) Method
The APS method defines nonconformity based on the cumulative confidence score required to include the true label. For the calibration instance , the confidence scores are sorted in descending order. The nonconformity score for this ith instance is the sum of scores from the top-ranked class down to the rank where the true label appears. These nonconformity scores are used in the calibration phase to determine a threshold corresponding to the desired coverage level . During inference, for a new instance, classes are added to the prediction set in descending order of score until their cumulative sum reaches , resulting in adaptively sized sets [45].
Hinge Method
The Hinge nonconformity score directly uses the confidence score of the model in the true label. For the calibration instance , the score is calculated as , where is the confidence score for the true class-label . These scores, , are used during calibration to determine a threshold, , that ensures the coverage guarantee. During inference, for the scores of a new instance, any candidate class y with nonconformity score is included in the prediction set.
Margin Method
This method defines nonconformity based on the margin between the confidence score of the true label and the highest confidence of any other class. For the ith calibration instance , the nonconformity score is calculated as
where is the confidence score for class k for instance i. A smaller (or more negative) indicates better separation and, thus, higher conformity. Calibration involves sorting these scores to find a threshold for the coverage level. During inference, for a new instance, a candidate class y is included in the prediction set if its calculated margin score satisfies the following inequality:
Brier Score Method
This nonconformity score leverages the Brier score to measure discrepancy between confidence scores and the true outcome. For the ith calibration instance , the nonconformity score is computed as the mean squared error between the confidence score vector and a one-hot encoded vector for the true label . Explicitly,
where j indexes classes from 1 to K, is the confidence score for class j on instance i, and is 1 if and 0 otherwise. A smaller signifies a better prediction (closer to one-hot truth) and, thus, higher conformity. These scores are calibrated by sorting them to find a threshold ensuring coverage. During inference, for a new instance, a potential nonconformity score is calculated for each candidate class y (treating y as the hypothetical true label) using the same Brier formula:
Class y is then included in the final prediction set if its potential nonconformity score .
It is necessary to remember that all nonconformity functions evaluated in this work were utilized strictly to measure the nonconformity of the confidence scores of the detector. They served no auxiliary probabilistic calibration or modeling role within our pipeline. In addition to five distinct nonconformity scores, we applied a Naive approach, which can be viewed as a non-conformal version of the APS approach.
Naive Method
This method constructs prediction sets by directly thresholding cumulative confidence scores. For the instance , its confidence scores (where j indexes classes) are sorted in descending order. Classes are then added to the prediction set in decreasing score until their cumulative sum reaches a predefined threshold, typically . Unlike conformal methods, this approach uses a fixed threshold directly, without a true-label-based calibration step.
2.4. Computational Overhead
During the calibration phase, all nonconformity methods operate post hoc on the class score vectors generated via a single forward pass over the K classes per instance, allowing the calibration quantile to be computed entirely offline. Consequently, runtime deployment is highly optimized, leaving only the inference-stage nonconformity score calculation and a simple scalar threshold comparison against . Theoretically, during inference, Top-K, APS, and Naive are computationally efficient, requiring a single sorting operation or a localized vector mask over the post-threshold detections, thereby minimizing overhead in high-density scenes. Conversely, Hinge, Margin, and Brier require more computational resources in dense environments; for each candidate proposal, these functions perform element-wise tensor subtractions or squaring operations across the entire K-dimensional confidence score (probability) array, so their latency scales with proposal density.
2.5. Evaluation Metrics
The effectiveness of conformal prediction was evaluated using several key metrics that assess both the validity (coverage) and efficiency (set size) of the generated prediction sets .
2.5.1. Coverage-Related Metrics
Marginal Coverage (MrgC)
This primary validity metric measures the proportion of instances where the true class-label is included in its corresponding prediction set across the entire test dataset of size N. It estimates marginal probability. The target for conformal prediction is .
where is the indicator function.
2.5.2. Efficiency-Related Metric
Average Set Size (AvgC)
This metric measures the average number of classes in the prediction sets, indicating the average level of prediction ambiguity or inefficiency. Smaller values are preferred, provided the coverage target is met.
where denotes the cardinality (size) of the set.
Singleton Rate (OneC)
This measures the fraction of prediction sets containing exactly one class label . A higher rate, combined with high coverage, suggests that the model makes precise, confident predictions.
Empty Set Rate (EmpC)
Particularly relevant for object detection, this metric calculates the fraction of predictions for which the prediction set is empty . An ideal conformal procedure should avoid generating empty sets for relevant objects in i.i.d. scenarios. However, this metric can also be informative in situations such as out-of-distribution (OOD) detection.
3. Results and Discussion
3.1. Effectiveness of the Baseline Models
Figure 2 presents the predictive performance of the four baseline object detection models (Faster R-CNN, RetinaNet, YOLO11, RT-DETRv2) across the three datasets (MS-COCO-20, P1.5v2, Chula) on the validation, calibration, and test splits. The metric shown is , visualized as box plots showing the performance distribution across classes within each split. denotes the area under the precision–recall curve for a specific class, considering predictions with an IoU of at least 50% as correct detections. Here, AP@IoU0.5 is reported as the commonly used baseline detector metric to contextualize detector quality before conformalization, while the main objective of this manuscript is ICP evaluation through conformal metrics (MrgC, AvgC, OneC, EmpC). For reference, AP@IoU0.5:0.95 and Recall@IoU0.5 are reported in the Appendix A.
Figure 2.
Predictive performance of baseline models on evaluation splits. Box plots show the distribution of values across classes for the validation (Val.), calibration (Cal.), and test sets for four object detection models on three datasets: MS-COCO-20 (left), P1.5 (middle), and Chula (right).
The results highlight substantial differences in task difficulty across datasets. On the left panel (MS-COCO-20 dataset), we observe moderate values, with medians typically ranging between approximately 0.40 and 0.50 depending on the model and split. The box plots exhibit considerable spread and outliers, indicating notable variability in effectiveness across the 20 classes. Furthermore, noticeable differences are observed among the validation, calibration, and test splits for some models, suggesting potential shifts in class-wise effectiveness. All four models demonstrate broadly similar profiles on this dataset.
In contrast, the middle panel (P1.5v2 dataset) illustrates a substantially straightforward task for the evaluated models. All models achieve very high values, with medians consistently above 0.95. As shown in Figure 2, the box plots are incredibly narrow, with low variance and few outliers, indicating highly consistent performance across all four parasite egg classes. Crucially, the effectiveness distributions across the validation, calibration, and test splits are remarkably similar and tightly clustered across all models, indicating a high degree of consistency among these data partitions in terms of model predictive performance.
The right panel (Chula dataset) presents an intermediate scenario. values are generally high, with medians for YOLO11 and RT-DETRv2 above 0.9. At the same time, Faster R-CNN and RetinaNet show slightly lower medians, particularly on the calibration and test splits. The range and interquartile range are larger than on P1.5v2, and outliers are present. While effectiveness is generally substantial, slight variations across the validation, calibration, and test splits are observed, particularly for Faster R-CNN and RetinaNet. More recent models, YOLO11 and RT-DETRv2, appear to exhibit slightly more stable performance across splits on this dataset than older architectures.
These baseline effectiveness results are critical for interpreting subsequent conformal prediction outcomes. Datasets such as P1.5v2, in which models achieve high, stable effectiveness across splits, represent an ideal scenario for conformal prediction, as calibration-set nonconformity scores are likely highly representative of those on the test set. Conversely, datasets such as MS-COCO-20—where baseline effectiveness is lower and more variable, and where effectiveness distributions show some divergence across splits—pose a more challenging setting for achieving tight, reliable coverage guarantees, highlighting the importance of robust nonconformity score definitions and sufficient calibration data. The Chula dataset represents a scenario in which the task is manageable, but potential split differences may still affect the performance of conformal prediction. The observed differences in stability across models on Chula also suggest that the choice of the underlying base detector may influence the properties of the resulting prediction sets.
3.2. Impact of Artificial Background Confidence Score
Figure 3 illustrates the effectiveness of the proposed artificial background confidence score in quantifying detected background instances (False Positives). Analysis was conducted on the challenging MS-COCO-20 test split, which, as discussed in Section 2, represents a more complex scenario than other datasets. Overlaid histograms reveal a consistent pattern across all evaluated models: the background confidence score distribution for all detections is bimodal; foreground objects tend to yield low background confidence scores, whereas False Positives (background regions misclassified as foreground) are overwhelmingly concentrated at high background confidence scores. This demonstrates that, whether native (Faster R-CNN) or artificially computed (RetinaNet, YOLO11, RT-DETRv2), the background score effectively assigns high confidence to true background detections. This consistent behavior observed on the complex MS-COCO-20 dataset validates the heuristic approach as a practical and valuable method for estimating background confidence scores for models lacking a native background class, thereby enabling conformal prediction across diverse object detection architectures. Similar distributions for the P1.5v2 and Chula datasets are presented in Appendix B.
Figure 3.
Distribution of background confidence scores on the MS-COCO-20 test set for Faster R-CNN, RetinaNet, YOLO11, and RT-DETRv2. Overlaid histograms show “All Detections” and “False Positives (Background)”.
3.3. Effectiveness of the Conformal Prediction Nonconformity Functions
The evaluation of conformal prediction methods is based on two core principles: validity and adaptivity [26]. Validity refers to the ability of a process to consistently achieve the desired marginal coverage guarantee , while adaptivity describes its capacity to produce prediction sets whose size reflects individual instance difficulty, yielding smaller, more informative sets for straightforward inputs and larger sets for ambiguous ones.
We evaluated the effectiveness of the implemented nonconformity scores (Top-K, APS, Hinge, Margin, Brier score) and the non-conformal prediction method (Naive), as introduced in Section 2.3.1, with respect to the metrics introduced in Section 2.5. The evaluation was performed across all four fine-tuned object detection models (see Section 3.1) and across the three datasets (see Section 2.1), for different significance levels . Detailed results are presented in Table 5, Table 6 and Table 7 for the MS-COCO-20, P1.5v2, and Chula datasets, respectively. These tables focus on the primary validity metric, MrgC, and the prediction set efficiency metrics: AvgC, OneC, and EmpC. Cells with a red background indicate MrgC values below the required threshold; cells with an violet background flag AvgC values exceeding half the total class space, signaling excessively large prediction sets. Visualizations of AvgC results across nonconformity scores and models for each dataset are provided in Figure 4, Figure 5 and Figure 6. Exact calibrated quantile thresholds for all model–dataset–nonconformity score combinations at are provided in Appendix F, Table A2, Table A3, Table A4 and Table A5.
Table 5.
Effectiveness of the nonconformity scores on the MS-COCO-20 dataset, evaluated at three significance levels: , , and . Red background indicates MrgC values below ; violet background indicates AvgC values exceeding half the total class space.
Table 6.
Effectiveness of the nonconformity scores on the P1.5v2 dataset, evaluated at three significance levels: , , and . Red background indicates MrgC values below ; violet background indicates AvgC values exceeding half the total class space.
Table 7.
Effectiveness of the nonconformity functions on the Chula-ParasiteEgg11 dataset, evaluated at three significance levels: , , and . Red background indicates MrgC values below ; violet background indicates AvgC values exceeding half the total class space.
Figure 4.
Empirical AvgC for different NFCs and base models on the MS-COCO-20 dataset. Results are shown for target significance levels (). Lower AvgC signifies more efficient prediction sets.
Figure 5.
Empirical AvgC for different NCFs and base models on the P1.5 dataset. Results are shown for target significance levels (). Lower AvgC signifies more efficient prediction sets.
Figure 6.
Empirical AvgC for different nonconformity scores and base models on the Chula-ParasiteEgg11 dataset. Results are shown for target significance levels (). Lower AvgC signifies more efficient prediction sets.
3.3.1. Validity
Validity demands that the MrgC probability is at least , meaning that the empirical marginal coverage on the test set should probabilistically meet or exceed this target. Observing Table 5, Table 6 and Table 7, we analyze the adherence of each nonconformity score to this principle.
Across the four evaluated object detection models and three datasets with varying class counts (including the background class), most nonconformity scores demonstrated strong empirical effectiveness, with MrgC consistently close to or exceeding the target . For instance, APS frequently showed coverage of 0.99 or higher at and generally met or exceeded the target at (e.g., Faster R-CNN on MS-COCO-20, Table 5). While the theoretical guarantee is exact in the limit with exchangeability [46], observed minor shortfalls slightly below the target for some methods (e.g., Hinge, Margin, and Brier on Faster R-CNN for P1.5 at , Table 6) are typically small fluctuations attributable to finite-sample effects from the calibration set, rather than a fundamental failure of the guarantee. Formally, split conformal prediction admits an exact finite-sample characterization: for exchangeable data, the training-conditional coverage stochastically dominates a distribution, which yields the concentration bound [46]. This Beta law provides an exact reference band for the observed shortfalls. To quantify this, we evaluated each undercoverage case against the Beta reference by computing , the probability of observing coverage at or below the reported value. For YOLO11, the four undercoverage combinations (Hinge, Margin, and Brier on P1.5v2 at , and Hinge on Chula at ) have – (Table 8); that is, the observed coverage lies at roughly the 2nd–6th percentile of the predicted finite-sample band, consistent with expected finite-sample fluctuation rather than a systematic failure of the guarantee. These tables provide mere empirical snapshots; complete verification of validity ideally involves assessing coverage distributions over multiple i.i.d. trials or different data splits [26]. In contrast, the Naive method, which lacks a calibration step, showed less consistent coverage. It noticeably dips below the target on other datasets (e.g., Faster R-CNN and YOLO11 on Chula at , Table 7).
Table 8.
Statistical validation of YOLO11 coverage deviations. ; is the CDF at the observed coverage (Theorem 4.1, [46]); the last column is the bound.
Standard ICP guarantees coverage on average over the full joint distribution of detections and classes, without conditioning on the identity of any specific detection or class. Class-conditional coverage is a strictly stronger property. It requires the guarantee to hold individually for every semantic category, which standard ICP does not ensure. As shown in Appendix E (Figure A6, Figure A7 and Figure A8), these two properties are empirically distinct; per-class coverage rates vary across classes and can fall below the marginal target, illustrating that satisfying the marginal guarantee is not sufficient to ensure class-level coverage. Achieving class-conditional guarantees requires a fundamentally different approach, such as Mondrian conformal prediction [27], which stratifies the calibration set by class label and estimates a separate quantile threshold per class.
3.3.2. Adaptivity and Prediction Set Efficiency
Although not directly captured by the marginal coverage (MrgC) metric, adaptivity is a crucial property for the practical utility and interpretability of conformal prediction sets. It refers to the ability of prediction set sizes to adjust dynamically to the difficulty of individual instances, yielding smaller, more informative sets for easy-to-classify examples and larger sets for more ambiguous or uncertain cases. This instance-wise adaptivity thus reflects the confidence of the model in a transparent manner. Our analysis of the AvgC, OneC, and empty set rates provides insight into the efficiency of the methods and their potential for practical adaptability.
AvgC
AvgC is an essential metric for evaluating the efficiency and practical utility of prediction sets, as smaller sets are more informative. The values obtained for this metric indicate substantial variation that is directly correlated with the number of classes in the dataset and the choice of nonconformity score. On the 21-class MS-COCO-20 dataset, the larger output space made it inherently challenging to form small sets while maintaining high coverage. As shown in Table 5, the non-conformal prediction method (Naive) produced large AvgC values, particularly for RetinaNet and RT-DETRv2. For instance, RT-DETERv2 yielded AvgC values of , , and for , , and , respectively. In contrast, the conformal variant of Naive (APS) substantially reduced these sizes by factors of approximately 6.70, 9.10, and 9.34. This illustrates how conformal prediction can tune the overly conservative behavior of Naive. Among the other conformal prediction methods, Margin and Brier score also resulted in notably large sets at lower levels, e.g., for Faster R-CNN at , AvgC was approximately 18, reflecting their difficulty in distinguishing the true class from 21 alternatives (including the background). On the other hand, APS and Hinge consistently yielded much smaller AvgC values on MS-COCO-20, demonstrating improved efficiency across models and levels. Top-K also produced compact sets; however, its set size is fixed by construction and, therefore, is not adaptable to the difficulty of individual instances.
On the five-class P1.5v2 dataset, where the reduced class space simplified the task, all methods produced notably small AvgC, often clustering between 1.00 and 2.00 (Table 6). Notably, regardless of its non-adaptivity, Top-K frequently achieved the minimum possible AvgC of 1.00 on P1.5 at higher levels, indicating exact singleton predictions. The 12-class Chula dataset presented an intermediate challenge, yielding AvgC values typically between those of MS-COCO-20 and P1.5 (Table 7). Across this range of difficulty, APS and Hinge consistently demonstrated a strong balance between validity and efficiency, yielding considerably smaller AvgC compared to the Naive, Margin, and Brier score methods at lower levels. Their efficiency in controlling the prediction set size while maintaining coverage across varying class-space complexities is a critical advantage for usability. Although Top-K also produced compact sets, it is essential to note that it is non-adaptive: its set size is fixed by construction. It therefore does not adjust to the difficulty of individual test instances. Figure 4, Figure 5 and Figure 6 visualize the AvgC across nonconformity scores and models for each dataset.
OneC
OneC measures the proportion of predictions that contain exactly a single class label, indicating high precision and confidence in the decision provided that the required marginal coverage is met. In our setting, a single-element prediction set (|C(X)| = 1) is categorized as an informative indicator of classification precision specifically when that element corresponds to a foreground target class; singletons containing exclusively the background class reflect confident candidate rejection rather than positive target identification. Empirically, for YOLO11 on P1.5v2 at under the Margin nonconformity score, () of all background singletons corresponded directly to non-object background proposals (correctly rejecting false-positive candidates). The remaining () stemmed from base detector misclassifications of foreground objects as background. Qualitative inspection of these seven missed singletons (Appendix C, Figure A3) reveals that all produced initial candidate confidence scores within a narrow sub-threshold band (), primarily driven by physical edge truncation (3/7), severe debris occlusion (2/7), or high morphological ambiguity (2/7). The number of classes markedly impacted the achievable singleton rate: it was higher on the 5-class P1.5v2 dataset than on the 12-class Chula or 21-class MS-COCO-20, as distinguishing the true class from fewer distractors is inherently easier. On P1.5, many conformal prediction methods, especially Hinge, Margin, and Brier score at higher , achieved exceptionally high, often perfect, OneC (e.g., Table 6, YOLO11, : Hinge/Margin/Brier 1.00), indicating near-perfect precision for predictions provided at these confidence levels. On MS-COCO-20 and Chula, OneC values were comparatively lower, reflecting the increased difficulty. Within these larger class spaces, Hinge, Margin, and Brier generally showed greater precision (higher OneC) than the Naive method and APS at higher levels (e.g., Table 7, RT-DETRv2, : Hinge 0.97, Margin 0.98, Brier 0.98 vs Naive 0.00, APS 0.64), demonstrating their ability to generate concise sets when the underlying model scores allow. A notable example is RT-DETRv2 on MS-COCO-20, where Margin achieved an exceptional 1.00 OneC at (Table 5), illustrating that when a strong base model provides well-separated scores, these functions can yield maximum precision even in a large class space. The non-conformal prediction method (Naive) consistently exhibited low OneC, a direct consequence of its general tendency to produce large, inefficient sets on our benchmark datasets.
EmpC
EmpC indicates the percentage of instances where the prediction set is empty, representing a failure to provide any prediction. A key strength observed across the evaluation is the exceptionally low frequency of empty sets. For Top-K, Naive, and APS, the EmpC was 0.00% across all datasets, models, and significance levels. By design, these three methods are guaranteed to produce non-empty prediction sets. Hinge, Margin, and Brier score also predominantly achieved 0.00% EmpC but showed minor non-zero values in specific contexts. This was most notable on the five-class P1.5v2 dataset, where EmpC ranged from 0.01 to 0.11 across different models and values (e.g., Table 6). Minimal empty sets (0.01–0.02%) were also observed for Brier score on RT-DETRv2 for MS-COCO-20 at , and for Margin and Brier score on RT-DETRv2 for Chula at (Table 5 and Table 6). This minor occurrence of empty sets for Hinge, Margin, and Brier score, particularly on the simpler P1.5v2 dataset, stems directly from high calibration confidence setting a strict nonconformity threshold. On P1.5v2, due to the relative simplicity and highly curated nature of the dataset, base models such as YOLO11 output near-perfect top-1 confidence across calibration samples. This causes bounded score functions like Brier score to yield near-zero nonconformity values, compressing the calibrated coverage threshold to a very tight cutoff (e.g., a nonconformity threshold of ). During testing, if a candidate proposal exhibits even a modest drop in confidence (such as top-1 confidence dropping to 88%), its nonconformity score exceeds the threshold so that no class meets the inclusion criterion, causing all classes to be rejected and resulting in an empty prediction set. Conversely, on complex datasets like MS-COCO-20 (21 classes), lower base confidence yields larger calibration nonconformity scores, maintaining a wider threshold that absorbs test-time confidence drops. More generally, empty prediction sets signal predictions that fail to meet the calibrated certainty threshold, either due to high classification ambiguity (a uniform confidence spread across classes) or slight confidence drops under strict quantile bounds. Crucially, empty sets are more likely to occur at higher significance levels (larger ), where higher error tolerance yields a smaller quantile threshold that is harder for low-confidence proposals to satisfy. Empty sets arising on background-labeled detections represent principled rejections of non-object regions; notably, their occurrence is exclusively confined to score functions that threshold true-class nonconformity scores directly (Hinge, Margin, Brier), whereas Top-K, Naive, and APS produce non-empty sets by construction.
3.3.3. Subjective Analysis
While aggregate metrics like MrgC and AvgC are essential, they do not fully characterize the effectiveness of the nonconformity scores. A truly adaptive conformal procedure should yield prediction set sizes that reflect instance-level difficulty: smaller for straightforward samples, larger for complex ones. Without this property, efficiency metrics alone can be misleading. Therefore, both quantitative and qualitative assessments are required to verify that prediction set sizes genuinely correlate with instance complexity, thereby ensuring meaningful adaptivity. To assess this quantitatively, we relate the prediction set size of each detection to its per-detection uncertainty, measured using Shannon entropy as a representative proxy for distribution dispersion computed over the normalized per-class score vector, for YOLO11 using the Hinge nonconformity score at a significance level of on the P1.5v2 dataset—a combination chosen for its reasonable empirical performance and the practical relevance of the parasite detection use case. Set size increases monotonically with entropy (Spearman , Pearson ; ), confirming that larger sets are assigned to more uncertain detections rather than being distributed arbitrarily, as shown in Figure 7. Complementing this, Figure 8 visually illustrates the prediction set behavior for the same configuration, providing a representative real-world setting in which to demonstrate meaningful adaptivity. Visualizations for the remaining two datasets (Ms-COCO-20 and Chula) are added in Appendix D.
Figure 7.
Instance-level adaptivity for YOLO11 with the Hinge nonconformity score at on the P1.5v2 dataset. Each point is a test detection, the horizontal axis is the Shannon entropy of the normalized per-class score vector, and the vertical axis is the conformal prediction set size. The orange line indicates the linear fit highlighting the trend of increasing set size with higher uncertainty. Set size increases monotonically with entropy (Spearman , Pearson ; ), confirming that larger sets are assigned to more uncertain detections.
Figure 8.
Qualitative examples for the P1.5 dataset at (). The instances on the right are straightforward hookworm eggs, resulting in singleton prediction sets. In contrast, the instance in the lower-left is a slightly difficult hookworm egg and requires a larger prediction set to maintain coverage.
3.3.4. Comparison with MC-Dropout
While MC-Dropout offers a Bayesian approximation to uncertainty quantification by leveraging stochastic forward passes to assess model consistency, its practical application is often hampered by substantial computational overhead. Specifically, MC-Dropout necessitates multiple inferences for a single image (e.g., ) with active dropout layers, leading to a significant increase in computational cost. The uncertainty generated by the MC-Dropout pipeline is quantified by aggregating the empirical distribution across the T stochastic forward passes. For a given input image, the final classification score is computed as the empirical mean of the predicted probability vectors. The epistemic uncertainty (or model hesitation) is subsequently derived by calculating either the empirical variance or the predictive entropy across these T discrete samples. High variance among the outputs indicates that the active dropout masks are disrupting unstable internal representations, signaling low model confidence. Conversely, a tightly clustered output distribution indicates a robust, high-confidence prediction. However, the computational overhead imposed by the T passes makes the method impractical for real-time applications and deployment on resource-constrained edge devices, where latency and power consumption are critical.
In stark contrast, ICP presents a highly efficient and rigorously guaranteed alternative for uncertainty estimation. ICP operates on the output of a single, deterministic forward pass, introducing negligible overhead while providing robust finite-sample marginal coverage guarantees. This ensures that the true class label is contained within the prediction set at a user-specified significance level . While a direct comparison between MC-Dropout and ICP evaluates two epistemologically distinct paradigms of uncertainty, characterizing their respective operational efficiencies provides a critical metric for practical utility. Furthermore, ICP is entirely model-agnostic, requiring no architectural modifications, specialized loss functions, or retraining. This inherent flexibility and minimal computational footprint position ICP as a feasible solution for edge-device applications. MC-Dropout was chosen as a benchmark because it also provides post hoc uncertainty without model retraining. However, its overhead scales linearly with the number of forward passes, unlike the constant single-pass overhead of ICP. Empirical evidence supporting these efficiency claims is shown in Table 9 for the SOTA YOLO11 model only. Among the five nonconformity scores evaluated, APS incurred a modest latency overhead of approximately <2.0%. In contrast, MC-Dropout introduced an overhead exceeding 800%, making the computational cost of all nonconformity scores negligible by comparison.
Table 9.
Empirical runtime overhead comparison between MC-Dropout () and inductive conformal prediction (ICP) for YOLO11 across datasets. Base detector runtime per image is P1.5v2 = ms, MS-COCO-20 = ms, Chula = ms (isolated pure inference and NMS post-processing).
3.3.5. Implications of the Research
In summary, selecting a nonconformity function requires balancing set adaptivity, runtime latency, and empty-set risks. APS is recommended as the primary default for maximum adaptivity to instance ambiguity without yielding empty sets. For latency-critical applications, Hinge is optimal, delivering the lowest runtime overhead while preserving adaptivity. Conversely, Top-K is not recommended due to its fixed, non-adaptive nature and higher processing latency relative to Hinge. Finally, while Margin and Brier score achieve tight set-size efficiency, practitioners should exercise caution, as they can suffer from empty prediction sets on highly saturated datasets.
Building on these operational trade-offs, the successful application of conformal prediction to the semantic classification component of object detection—which allows seamless post hoc integration across standard, fine-tuned models without architectural modifications, although switching detector architectures requires brief recalibration due to model-specific effectiveness dynamics—carries practical and scientific implications. This capability, which provides statistically guaranteed class-label coverage through prediction sets, fundamentally transforms the trustworthiness and utility of object detection systems in real-world scenarios as follows:
- Enhanced Reliability in Automated Systems: By providing prediction sets with statistically guaranteed coverage, conformal prediction enables automated systems to not only produce predictions but also quantify their uncertainty in a principled manner. Instances with higher uncertainty, as indicated by larger prediction sets, can be automatically flagged for further examination. This allows for the strategic allocation of human expert intervention to review, validate, or correct only the most ambiguous or high-risk instances. Such targeted oversight enhances overall system reliability while maintaining scalability, particularly in sensitive applications such as medical diagnosis, where misclassification (such as parasite identification and counting) can have critical consequences. Moreover, the ability to signal uncertainty in predictions enhances transparency and trust in automated decision-making pipelines, paving the way for more responsible, human-in-the-loop AI deployment.
- Streamlined Data Annotation and Curation: The enhanced trustworthiness and interpretability of object detection outputs, particularly through adaptive methods that differentiate between easy and hard examples based on prediction set size, offer potential for streamlining labor-intensive tasks such as data annotation and dataset curation. By clearly identifying instances where the model is highly confident (small sets) versus uncertain (large sets), resources can be efficiently prioritized for validation and cleaning efforts, focusing human attention where it is most needed.
- Broadened Applicability in Critical Domains: The demonstration that this framework can be applied to standard, fine-tuned object detection models without requiring complex architectural modifications or extensive retraining is a key advantage. This facilitates immediate integration into existing pipelines across various critical domains, providing a solid foundation for downstream tasks that require reliable uncertainty estimates. Specifically, prediction sets act directly as calibrated candidate lists, allowing single-element sets to pass automatically while routing multi-label sets for expert review. Such adaptability is crucial for deployment in applications where regulatory or ethical considerations mandate predictable uncertainty behavior, such as biomedical imaging.
- Foundation for Future Research and Development: This work establishes a solid empirical foundation for further research into uncertainty quantification for object detection, particularly concerning the semantic class-label component. It opens avenues for exploring more refined nonconformity scores specifically tailored to the nuances of object detection outputs related to semantic differentiation, including the development of non-heuristic methods for background class confidence score estimation, investigating instance-conditional coverage properties for semantic labels in more detail, and developing strategies to improve the efficiency of prediction sets on highly complex datasets while maintaining coverage guarantees.
4. Conclusions
This work addressed the challenge of quantifying semantic uncertainty in object detection by introducing an ICP framework that provides probabilistically guaranteed class-label coverage for standard detectors. We demonstrated that widely used models—including Faster R-CNN, RetinaNet, YOLO11, and RT-DETRv2—can be conformalized without architectural changes or retraining by exposing per-class confidence scores and, when necessary, generating a synthetic background-class score. To support systematic evaluation, we also introduced MS-COCO-20, a curated 20-class benchmark for assessing semantic uncertainty quantification methods.
Comprehensive experiments across MS-COCO-20 and two parasitological datasets (P1.5v2 and Chula) confirmed the validity of the framework and revealed clear efficiency differences across nonconformity scores. On the highly curated P1.5v2 dataset, conformal prediction produced highly efficient singleton sets, while the more challenging Chula and MS-COCO-20 datasets highlighted the ability of the framework to adapt to varying task complexities. Across all datasets, all conformal methods consistently achieved or closely approached the target marginal coverage (), with minor deviations attributable to finite-sample effects.
Efficiency analysis showed that adaptive nonconformity scores, particularly Hinge and APS, offered the best balance between coverage and set size. While Top-K provided minimal but non-adaptive sets, adaptive scores produced smaller sets when model confidence allowed and expanded them appropriately under stricter coverage requirements. Methods such as Hinge, Margin, and Brier score achieved high efficiency but were more sensitive to dataset complexity and base-model choice. Importantly, all valid conformal methods exhibited a negligible empty set rate, underscoring their practical reliability.
By equipping standard object detectors with prediction sets that carry statistical coverage guarantees, this work enables more trustworthy deployment in safety-critical settings. Larger prediction sets naturally flag uncertain classifications for targeted human review, supporting applications such as parasite egg identification and improving data annotation workflows by prioritizing ambiguous instances.
Future research should explore principled approaches for estimating background confidence scores, methods that relax the i.i.d. assumption, and techniques that emphasize marginal rather than strict instance-conditional coverage, including class-conditional coverage guarantees for rare and imbalanced class populations via Mondrian conformal prediction [47]. Because the present experiments primarily establish ICP’s applicability in object detection, a more principled stability validation using repeated resampling across splits is deferred to future work. Investigating robustness under distribution shift (including the open-set scenarios where test classes fall outside the calibration set) and integrating conformal prediction with Explainable AI, such as designing nonconformity scores that reveal why a prediction is uncertain, represents a promising direction for advancing both reliability and interpretability in object detection.
Author Contributions
Conceptualization, M.A.M., J.J., E.T.A., J.K., W.D.N. and S.V.H.; methodology, M.A.M., J.J., E.T.A., J.K., W.D.N. and S.V.H.; software, M.A.M.; data curation, M.A.M.; formal analysis, M.A.M., J.J., E.T.A., J.K., W.D.N. and S.V.H.; writing—original draft preparation, M.A.M.; writing—review and editing, M.A.M., J.J., E.T.A., J.K., W.D.N. and S.V.H.; visualization, M.A.M.; supervision, J.K., W.D.N. and S.V.H. All authors have read and agreed to the published version of the manuscript.
Funding
This research was partially funded by the Special Research Fund (BOF) at Ghent University through a PhD sandwich scholarship (Grant code: BOF.DCV.2022.0011, awarded to M.A.M.). J.J. is funded by the Research Foundation-Flanders (FWO, Ref. 1S11525N). The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
The dataset supporting this study is publicly available in Dataset for Conformal Object Detection at the following DOI: https://doi.org/10.34740/kaggle/ds/7567820, accessed on 31 July 2026.
Conflicts of Interest
The authors declare no conflicts of interest.
Abbreviations
The following abbreviations are used in this manuscript:
| AI | Artificial intelligence |
| AP | Average precision |
| APS | Adaptive Prediction Sets |
| AvgC | Average set size |
| BOF | Special Research Fund |
| Cal. | Calibration |
| Chula | Chula-ParasiteEgg-11 |
| DCNNs | Deep Convolutional Neural Networks |
| EDL | Evidential deep learning |
| EmpC | Empty set rate |
| ICP | Inductive conformal prediction |
| IoU | Intersection over Union |
| MC | Monte Carlo |
| MrgC | Marginal coverage |
| MS-COCO-20 | Curated 20-class subset derived from MS-COCO |
| NCFs | Nonconformity functions |
| OOD | Out-of-distribution |
| OneC | Average singleton sets |
| P1.5v2 | AI4NTD KK2.0 P1.5 STH & SCHm v2 |
| Val. | Validation |
| i.i.d. | Independently and identically distributed |
Appendix A. Baseline Model Performance
Table A1.
Performance metrics (mAP@IoU0.5, mAP@IoU0.5:0.95, and mAR@IoU0.5:0.95) for the base object detection models across the MS-COCO-20, P1.5v2, and Chula datasets for the validation, calibration, and test splits.
Appendix B. Background Confidence Score Distributions
Figure A1.
Distribution of background confidence scores on the P1.5 test set for Faster R-CNN, RetinaNet, YOLO11, and RT-DETRv2. Overlaid histograms show “All Detections” and “False Positives (Background)”.
Figure A2.
Distribution of background confidence scores on the Chula test set for Faster R-CNN, RetinaNet, YOLO11, and RT-DETRv2. Overlaid histograms show “All Detections” and “False Positives (Background)”.
Appendix C. Qualitative Error Analysis of Missed Foreground Singletons
Figure A3.
Visual breakdown of the seven missed foreground singletons assigned to the background class. Red bounding boxes indicate predicted regions. Center translucent overlays summarize ground-truth (GT) and predicted (Pred) classes along with initial confidence scores (). Failure modes are categorized by edge truncation (a–c), debris occlusion (d,e), and morphological ambiguity (f,g).
Appendix D. Adaptability Qualitative Examples
Figure A4.
Qualitative assessment of prediction set adaptivity. This figure shows the behavior of our conformal framework with a YOLOv11 model and a Hinge nonconformity score on the MS-COCO-20 dataset (). The left column presents a straightforward motorcycle instance, which results in a singleton prediction set. The right column presents an ambiguous motorcycle instance, resulting in a two-element prediction set to maintain target coverage.
Figure A5.
Qualitative examples for the Chula dataset at (). The instance in the right column is a straightforward A. lumbricoides egg, resulting in a singleton prediction set. In contrast, the instance in the left column is a slightly difficult A. lumbricoides egg and requires a larger prediction set to maintain coverage.
Appendix E. Class-Conditional Coverage
Figure A6.
Class-conditional empirical coverage across different nonconformity scoring methods using YOLO11 on the MS-COCO-20 dataset. Each panel compares six scoring functions (TopK, Naive, APS, Hinge, Margin, and Brier) evaluated at target significance levels . Dashed horizontal lines indicate the theoretical coverage guarantees ().
Figure A7.
Class-conditional empirical coverage across different nonconformity scoring methods using YOLO11 on the P1.5v2 dataset. Each panel compares six scoring functions (TopK, Naive, APS, Hinge, Margin, and Brier) evaluated at target significance levels . Dashed horizontal lines indicate the theoretical coverage guarantees ().
Figure A8.
Class-conditional empirical coverage across different nonconformity scoring methods using YOLO11 on the Chula dataset. Each panel compares six scoring functions (TopK, Naive, APS, Hinge, Margin, and Brier) evaluated at target significance levels . Dashed horizontal lines indicate the theoretical coverage guarantees ().
Appendix F. Calibrated Quantile Thresholds
Table A2.
Calibrated quantile thresholds for Faster R-CNN across datasets and nonconformity scores.
Table A3.
Calibrated quantile thresholds for RetinaNet across datasets and nonconformity scores.
Table A4.
Calibrated quantile thresholds for YOLO11 across datasets and nonconformity scores.
Table A5.
Calibrated quantile thresholds for RT-DETRv2 across datasets and nonconformity scores.
References
- Chen, W.; Luo, J.; Zhang, F.; Tian, Z. A review of object detection: Datasets, performance evaluation, architecture, applications and current trends. Multimed. Tools Appl. 2024, 83, 65603–65661. [Google Scholar] [CrossRef] [Scilit]
- Khan, A.H.; Rizvi, S.T.R.; Dengel, A. Real-time Traffic Object Detection for Autonomous Driving. arXiv 2024, arXiv:2402.00128. [Google Scholar]
- Guan, B.; Tao, J.; Xu, L.; Tan, D.; Sun, P.; Liu, J.; Shang, Y.; Yu, Q. A DMD-Based Adaptive Modulation Method for High Dynamic Range Imaging in High-Glare Environments. Exp. Mech. 2026, 66, 713–725. [Google Scholar] [CrossRef] [Scilit]
- Guan, B.; Zhao, J.; Kneip, L. A Complete Solution to Generalized Relative Pose Estimation from Affine Correspondences. IEEE Trans. Pattern Anal. Mach. Intell. 2026, 48, 8598–8612. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Sudha, I.; Kirubasri, G.; Deivakani, M.; Singh, V.P.; Kumar, T.R.; Niranjanamurthy, M. Detecting Objects in Surveillance Videos with Deep Neural Networks for Crime Scene Analysis. In Proceedings of the 2023 International Conference on Data Science, Agents and Artificial Intelligence, ICDSAAI 2023, Chennai, India, 21–23 December 2023. [Google Scholar] [CrossRef] [Scilit]
- Ragab, M.G.; Abdulkadir, S.J.; Muneer, A.; Alqushaibi, A.; Sumiea, E.H.; Qureshi, R.; Al-Selwi, S.M.; Alhussian, H. A Comprehensive Systematic Review of YOLO for Medical Object Detection (2018 to 2023). IEEE Access 2024, 12, 57815–57836. [Google Scholar] [CrossRef] [Scilit]
- Wei, Y.; Tran, S.; Xu, S.; Kang, B.; Springer, M. Deep Learning for Retail Product Recognition: Challenges and Techniques. Comput. Intell. Neurosci. 2020, 2020, 8875910. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Wang, C.; Zhu, B.; Huang, C.; Zhao, L. Real-Time Efficient Retail Object Recognition. In Proceedings of the 2023 International Conference on Platform Technology and Service, PlatCon 2023, Busan, Republic of Korea, 16–18 August 2023; pp. 30–35. [Google Scholar] [CrossRef] [Scilit]
- Wosner, O.; Farjon, G.; Bar-Hillel, A. Object detection in agricultural contexts: A multiple resolution benchmark and comparison to human. Comput. Electron. Agric. 2021, 189, 106404. [Google Scholar] [CrossRef] [Scilit]
- Anul Haq, M.; Author, C. CNN Based Automated Weed Detection System Using UAV Imagery. Comput. Syst. Sci. Eng. 2022, 42, 837–849. [Google Scholar] [CrossRef] [Scilit]
- Malburg, L.; Rieder, M.P.; Seiger, R.; Klein, P.; Bergmann, R. Object Detection for Smart Factory Processes by Machine Learning. Procedia Comput. Sci. 2021, 184, 581–588. [Google Scholar] [CrossRef] [Scilit]
- Naik, B.T.; Hashmi, M.F.; Bokde, N.D. A Comprehensive Review of Computer Vision in Sports: Open Issues, Future Trends and Research Directions. Appl. Sci. 2022, 12, 4429. [Google Scholar] [CrossRef] [Scilit]
- Liu, T.; Han, X.; Xie, Y.; Tu, B.; Gao, Y.; Wang, W. Objects detection theory for evaluating the city environmental quality. Front. Ecol. Evol. 2023, 11, 1310267. [Google Scholar] [CrossRef] [Scilit]
- Haldorai, A.; Lincy R, B.; M, S.; Balakrishnan, M. An improved single short detection method for smart vision-based water garbage cleaning robot. Cogn. Robot. 2024, 4, 19–29. [Google Scholar] [CrossRef] [Scilit]
- Aulia, U.; Hasanuddin, I.; Dirhamsyah, M.; Nasaruddin, N. A new CNN-BASED object detection system for autonomous mobile robots based on real-world vehicle datasets. Heliyon 2024, 10, e35247. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Hüllermeier, E.; Waegeman, W. Aleatoric and epistemic uncertainty in machine learning: An introduction to concepts and methods. Mach. Learn. 2021, 110, 457–506. [Google Scholar] [CrossRef] [Scilit]
- Riedlinger, T.; Rottmann, M.; Schubert, M.; Gottschalk, H. Gradient-Based Quantification of Epistemic Uncertainty for Deep Object Detectors. In Proceedings of the 2023 IEEE Winter Conference on Applications of Computer Vision, WACV 2023, Waikoloa, HI, USA, 2–7 January 2023; pp. 3910–3920. [Google Scholar] [CrossRef] [Scilit]
- Gawlikowski, J.; Tassi, C.R.N.; Ali, M.; Lee, J.; Humt, M.; Feng, J.; Kruspe, A.; Triebel, R.; Jung, P.; Roscher, R.; et al. A survey of uncertainty in deep neural networks. Artif. Intell. Rev. 2023, 56, 1513–1589. [Google Scholar] [CrossRef] [Scilit]
- Harakeh, A.; Smart, M.; Waslander, S.L. BayesOD: A Bayesian Approach for Uncertainty Estimation in Deep Object Detectors. In Proceedings of the IEEE International Conference on Robotics and Automation, Paris, France, 31 May–31 August 2020; pp. 87–93. [Google Scholar] [CrossRef] [Scilit]
- Gal, Y.; Ghahramani, Z. Dropout as a Bayesian Approximation: Representing Model Uncertainty in Deep Learning. In Proceedings of the 33rd International Conference on Machine Learning, ICML 2016, New York, NY, USA, 19–24 June 2016; Volume 3, pp. 1651–1660. [Google Scholar]
- Miller, D.; Nicholson, L.; Dayoub, F.; Sunderhauf, N. Dropout Sampling for Robust Object Detection in Open-Set Conditions. In Proceedings of the IEEE International Conference on Robotics and Automation, Brisbane, Australia, 21–25 May 2018; pp. 3243–3249. [Google Scholar] [CrossRef] [Scilit]
- Guo, C.; Pleiss, G.; Sun, Y.; Weinberger, K.Q. On Calibration of Modern Neural Networks. In Proceedings of the 34th International Conference on Machine Learning, ICML 2017, Sydney, Australia, 6–11 August 2017; Volume 3, pp. 2130–2143. [Google Scholar]
- Sahay, R.; Birch, G.C.; Stubbs, J.J.; Brinton, C.G. Uncertainty Quantification-Based Unmanned Aircraft System Detection using Deep Ensembles. In Proceedings of the IEEE Vehicular Technology Conference 2022, Helsinki, Finland, 19–22 June 2022. [Google Scholar] [CrossRef] [Scilit]
- He, H.; Lin, W.; Zhang, Y.; He, T.; Li, Y.; Li, J. Toward Accurate and Robust Pedestrian Detection via Variational Inference. Int. J. Comput. Vis. 2024, 133, 867–889. [Google Scholar] [CrossRef] [Scilit]
- Nallapareddy, M.R.; Sirohi, K.; Drews, P.L.; Burgard, W.; Cheng, C.H.; Valada, A. EvCenterNet: Uncertainty Estimation for Object Detection Using Evidential Learning. In Proceedings of the IEEE International Conference on Intelligent Robots and Systems, Detroit, MI, USA, 1–5 October 2023; pp. 5699–5706. [Google Scholar] [CrossRef] [Scilit]
- Angelopoulos, A.N.; Bates, S. A Gentle Introduction to Conformal Prediction and Distribution-Free Uncertainty Quantification. arXiv 2021, arXiv:2107.07511. [Google Scholar]
- Vovk, V.; Gammerman, A.; Shafer, G. Algorithmic Learning in a Random World; Springer: Cham, Switzerland, 2022. [Google Scholar]
- Lakshminarayanan, B.; Pritzel, A.; Blundell, C. Simple and Scalable Predictive Uncertainty Estimation using Deep Ensembles. In Advances in Neural Information Processing Systems; Curran Associates, Inc.: Red Hook, NY, USA, 2017; pp. 6403–6414. [Google Scholar]
- Sensoy, M.; Kaplan, L.; Kandemir, M. Evidential Deep Learning to Quantify Classification Uncertainty. In Advances in Neural Information Processing Systems; Curran Associates, Inc.: Red Hook, NY, USA, 2018; Volume 31. [Google Scholar]
- de Grancey, F.; Adam, J.L.; Alecu, L.; Gerchinovitz, S.; Mamalet, F.; Vigouroux, D. Object Detection with Probabilistic Guarantees: A Conformal Prediction Approach. In Computer Safety, Reliability, and Security. SAFECOMP 2022 Workshops; Lecture Notes in Computer Science (LNCS) (Including Subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics); Springer: Cham, Switzerland, 2022; Volume 13415, pp. 316–329. [Google Scholar] [CrossRef] [Scilit]
- Andéol, L.; Fel, T.; de Grancey, F.; Mossina, L. Conformal prediction for trustworthy detection of railway signals. AI Ethics 2024, 4, 157–161. [Google Scholar] [CrossRef] [Scilit]
- Gamble, C.; Faghani, S.; Erickson, B.J. Toward Clinically Trustworthy Deep Learning: Applying Conformal Prediction to Intracranial Hemorrhage Detection. arXiv 2024, arXiv:2401.08058. [Google Scholar]
- Genchi, M.; Potters, I.; Kaminsky, R.; Montresor, A.; Magnino, S. Bench Aids for Intestinal Parasites WHO; World Health Organization: Geneva, Switzerland, 2019; 32p. [Google Scholar]
- Mohammed, M.A.; Anzaku, E.T.; Ward, P.K.; Levecke, B.; Krishnamoorthy, J.; De Neve, W.; Van Hoecke, S. Detecting soil-transmitted helminth and Schistosoma mansoni eggs in Kato-Katz stool smear microscopy images: A comprehensive in- and out-of-distribution evaluation of YOLOv7 variants. PLoS Negl. Trop. Dis. 2025, 19, e0013234. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Lin, T.Y.; Maire, M.; Belongie, S.; Hays, J.; Perona, P.; Ramanan, D.; Dollár, P.; Zitnick, C.L. Microsoft COCO: Common Objects in Context. In Computer Vision—ECCV 2014; Lecture Notes in Computer Science (LNCS) (Including Subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics); Springer: Cham, Switzerland, 2014; Volume 8693, pp. 740–755. [Google Scholar] [CrossRef] [Scilit]
- Ward, P.; Dahlberg, P.; Lagatie, O.; Larsson, J.; Tynong, A.; Vlaminck, J.; Zumpe, M.; Ame, S.; Ayana, M.; Khieu, V.; et al. Affordable artificial intelligence-based digital pathology for neglected tropical diseases: A proof-of-concept for the detection of soil-transmitted helminths and Schistosoma mansoni eggs in Kato-Katz stool thick smears. PLoS Negl. Trop. Dis. 2022, 16, e0010500. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Anantrasirichai, N.; Chalidabhongse, T.H.; Palasuwan, D.; Naruenatthanaset, K.; Kobchaisawat, T.; Nunthanasup, N.; Boonpeng, K.; Ma, X.; Achim, A. ICIP 2022 Challenge on Parasitic Egg Detection and Classification in Microscopic Images: Dataset, Methods and Results. In Proceedings of the International Conference on Image Processing, ICIP, Bordeaux, France, 16–19 October 2022; pp. 4306–4310. [Google Scholar] [CrossRef] [Scilit]
- Ren, S.; He, K.; Girshick, R.; Sun, J. Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks. IEEE Trans. Pattern Anal. Mach. Intell. 2015, 39, 1137–1149. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Lin, T.Y.; Goyal, P.; Girshick, R.; He, K.; Dollar, P. Focal Loss for Dense Object Detection. IEEE Trans. Pattern Anal. Mach. Intell. 2017, 42, 318–327. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Jocher, G.; Qiu, J. Ultralytics YOLO11; Ultralytics: Frederick, MD, USA, 2024. [Google Scholar]
- Lv, W.; Zhao, Y.; Chang, Q.; Huang, K.; Wang, G.; Liu, Y. RT-DETRv2: Improved Baseline with Bag-of-Freebies for Real-Time Detection Transformer. arXiv 2024, arXiv:2407.17140. [Google Scholar]
- Wu, Y.; Kirillov, A.; Massa, F.; Lo, W.Y.; Girshick, R. Detectron2; Facebook AI Research: Menlo Park, CA, USA, 2019. [Google Scholar]
- Jocher, G.; Qiu, J.; Chaurasia, A. Ultralytics YOLO; Ultralytics: Frederick, MD, USA, 2023. [Google Scholar]
- Angelopoulos, A.N.; Bates, S.; Malik, J.; Jordan, M.I. Uncertainty Sets for Image Classifiers using Conformal Prediction. In Proceedings of the ICLR 2021—9th International Conference on Learning Representations, Virtual, 3–7 May 2021. [Google Scholar]
- Romano, Y.; Sesia, M.; Candès, E.J. Classification with Valid and Adaptive Coverage. In Advances in Neural Information Processing Systems; Curran Associates, Inc.: Red Hook, NY, USA, 2020. [Google Scholar]
- Angelopoulos, A.N.; Barber, R.F.; Bates, S. Theoretical Foundations of Conformal Prediction. arXiv 2024, arXiv:2411.11824. [Google Scholar]
- Vovk, V.; Gammerman, A.; Shafer, G. Introduction. In Algorithmic Learning in a Random World; Springer: Cham, Switzerland, 2022; pp. 1–16. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.















