arXiv:2608.31107cs.CVAug 2026

Manuscript Offprint

arXiv:2608.31107

VeriCam: A Verification Baseline for the Classification of Unknown Data

Lucas Wojcik, Gabriel E. Lima, Sergio M. Silva, Eduil Nascimento, David Menotti

Lucas Wojcik 1^{1}, Gabriel E. Lima 1^{1}, Sergio M. Silva Jr. 1^{1}, Eduil Nascimento Jr. 2^{2}, David Menotti 1^{1}

1^{1}Department of Informatics, Federal University of Paraná, Curitiba, Brazil

2^{2}Department of Technological Development and Quality,

Paraná Military Police, Curitiba, Brazil

Abstract. The advent of foundation models has enabled a new era in zero-shot classification. Yet, key challenges persist. Despite their impressive generalization power that leverages the immense pre-training knowledge, both foundation models for image and text, as well as vision-text hybrids, lack the representational power needed for fine-grained, minutiae-based class separation that some real-world tasks require. To address the current gaps in the literature, we propose VeriCam, a pipeline designed to learn highly specialized features that enable the classification of unknown classes in unseen data. VeriCam works by leveraging the representation power of image models trained for the verification task, where the model develops an intricate feature space that incorporates fine-grained details. By training a model to discriminate between pairs of images from the same or different classes, a relational graph is constructed, representing the class relationships between data points. We then present two approaches for graph clustering: a naive algorithm and a specific setup for the Leiden graph clustering algorithm. The pipeline is validated on the LPLCv2 dataset, which comprises real-world traffic surveillance images. We show that the dataset carries an inherent capture device bias that poses a generalization challenge for downstream License Plate recognition tasks such as OCR. As such, we dynamically identify capture devices with a label-agnostic approach, enabling the construction of a fair and unbiased benchmark. In the cross-device scenario, our pipeline reaches an F1-Score of 93.45 in the verification baseline and a V-Measure score of 80.13 in the clustering step. All code is publicly available at https://github.com/lmlwojcik/VeriCam

1. Introduction

Deep Learning (DL) has established itself as the state-of-the-art approach for automatic pattern recognition par excellence, a development enabled by the large amounts of data available today [Zha et al. 2025]. Owing to its data-driven nature, its success often depends on the quantity and quality of training data [Hoffmann et al. 2022]. Each real-world application of DL, therefore, sees its effectiveness inherently linked to the quality of the training data available, often leveraging domain-specific knowledge encoded in the annotated labels.

Accepted for publication at SIBGRAPI WIP 2026. The final version will be published at SBC-OpenLib (SOL).

As such, one of the major real-world challenges for the state of the art consists of dealing with inconsistent, incomplete or misleading data. Some domain-specific constraints may also render some tasks unmanageable for classic approaches. In particular, we are interested in the case where the number of classes is unknown and unconstrained a priori. This scenario cannot be handled through standard classification models, as these employ a fixed number of output neurons to encode an already known number of classes.

A few strategies have been employed over the years to deal with this issue. Early research developed Out of Distribution (OOD) classification [Hendrycks and Gimpel 2017], which extends the standard N classification to an N+1N + 1 scenario, where the model should also be capable of identifying instances not belonging to the initial N classes. Some recent works extend OOD towards zero-shot classification [Yin et al. 2019], aiming to categorize unseen data into new classes, effectively tackling the multi-unknown class issue. However, these approaches face significant limitations represented by overall lower accuracy and the complexity of domain-specific knowledge, limiting their generalization potential [Vaze et al. 2022, Wen et al. 2023].

An important application of zero-shot classification, and the one to which we apply our proposal, is capture device recognition in Automatic License Plate Recognition (ALPR) datasets. A previous ALPR study has unraveled unexpected biases in street surveillance datasets [Laroca et al. 2022], showing that a very small CNN can correctly identify the datasets that each traffic image instance comes from when trained on a standard classification task. While this largely impacts cross-dataset generalization, intra-dataset contamination can also be seen in some large datasets. We show that intra-dataset experiments can also be skewed by an invisible bias in the form of device contamination in the testing sets. As such, device recognition is an important step towards building a fair, unbiased benchmark.

With these motivations in mind, we propose VeriCam, a DL pipeline designed to enable the classification of unknown classes. Instead of mapping instances to a predefined label space, we reframe zero-shot inference using a pairwise binary decision task. We employ a verification network to estimate the probability that two samples belong to the same latent class, and build a graph representation of the target dataset from which same-class clusters can be identified and extracted. By decoupling class discrimination from static semantic signatures, we learn a universal, domain-invariant feature space to determine semantic identity spanning novel classes. In this work, we narrow our focus on validation within the street surveillance domain, tailoring the approach for a practical application.

Therefore, our contributions can be summarized as:

• A novel method for zero-shot classification based on a verification network.

• Two algorithms that employ the original intuition, and their experimental validation.

• A short study on capture device contamination for OCR efficiency.

• The open source implementation of all pipeline steps, available at https://github.com/lmlwojcik/VeriCam.

The remainder of this paper is organized as follows. Section 2 presents related work and the current state of the art behind our motivation and proposal. Section 3 details our proposed pipeline and algorithms, as well as the target dataset. Section 4 details the experiments used to validate our approach. Section 5 presents the results for each experimental scenario. Finally, Section 6 concludes the paper.

References (30)