Anomaly localization for copy detection patterns through print estimations

Brian Pulfer, Yury Belousov, Joakim Tutt, Roman Chaban, Olga Taran, Taras Holotyak, Slava VoloshynovskiyarXiv 2022

TL;DR

Researchers have developed an unsupervised anomaly localization system that detects high-quality, deep-learning-generated counterfeit labels by predicting how a digital template should look once printed. By bridging the gap between perfect digital designs and imperfect physical prints, this method achieves near-perfect detection of "unseen" fakes without requiring prior knowledge of the attacker's techniques.

What Problem Does This Paper Address?

Copy Detection Patterns (CDP) are high-density, 2D binary codes (similar to QR codes but much denser) used to authenticate products. The theory is simple: the physical process of printing introduces subtle, non-linear distortions (like "dot gain") that are extremely difficult for a counterfeiter to replicate perfectly.

However, two major hurdles have emerged:

  1. Deep Learning Attacks: Modern AI can now generate "fakes" that are nearly indistinguishable from originals when using traditional authentication metrics.
  2. The Digital-Physical Gap: Standard authentication compares a scanned physical code against the original digital template. Because printers are imperfect, even a genuine code looks "wrong" compared to its perfect digital source. While comparing a scan to a physical original works better, storing high-resolution scans of every label produced is an industrial and logistical nightmare.

Existing supervised learning models try to solve this but suffer from distribution shift: they are great at catching fakes they've seen before, but fail miserably against new, "unseen" types of counterfeits.

Methods

The authors propose a framework that uses Machine Learning to simulate the printing process itself. Instead of comparing the scanned probe ($y_i$) to the digital template ($t_i$), they compare it to a synthetic print estimation ($\tilde{x}_i$).

The pipeline, illustrated in the figure below, consists of three main components:

  • Print-Imaging Model ($m_\theta$): A shallow U-Net architecture trained to transform a digital template into an estimate of how it would look after being printed by a specific industrial printer.
  • Confidence Map ($C_i$): Printing is stochastic (random). Some pixels are predictable, while others vary every time. The system generates a confidence map to down-weight areas where the printer's behavior is highly uncertain, ensuring the model doesn't flag natural printer variance as a "fake."
  • Anomaly Map ($a_{map}$): The final output is a pixel-wise map highlighting differences between the probe and the synthetic estimate, weighted by the confidence map.
Fig. 2: Proposed anomaly localization method: probe yi, which could be an original or fake code, is compared with an estimate ˜xi of original code xi based on the digital template ti. This comparison is weighted by a confidence map Ci, which captures the uncertainty on the outcome of the defender’s print process. The result is an anomaly map where brightest pixels highlight differences with respect to the estimate ˜xi that are anomalous.

Datasets

The study utilized the Indigo 1x1 base dataset, which includes:

  • Digital Templates: The original binary designs.
  • Printed Originals: Codes printed on two different industrial printers: the HP Indigo 5500 DS (referred to as '55') and the HP Indigo 7600 DS (referred to as '76').
  • ML-based Fakes: Four sets of counterfeits generated by using machine learning to estimate digital templates from scans, which were then reprinted.

Key Insights and Ideas

  • The "Print Estimation" Advantage: By comparing "print to estimated print" rather than "print to digital," the system significantly reduces the noise caused by legitimate printing distortions. This allows the subtle errors made by AI counterfeiters to stand out.
  • Unsupervised is More Robust: Because the model only learns what a genuine print looks like, it doesn't need to know how an attacker might fail. This makes it far more effective against new, unknown attack vectors than supervised classifiers.
  • Handling Stochasticity: The authors found that even high-end industrial printers have a "random" element. As shown in the histograms below, while most pixels are predicted accurately (values near 1.0), a significant portion remains poorly approximated. The confidence map is essential to prevent these random variations from triggering false alarms.
Fig. 3: Histograms showing weight 1 −|mθ(ti) −ti| at each pixel location for models trained for both printers using a subset of 100 codes. Red dashed lines denote the imposed threshold.

Key Results

The proposed method achieved results very close to the "gold standard" of comparing scans to physical templates, without the storage burden.

  • AUC Scores: On the HP Indigo 7600, the system achieved an AUC of 0.99 for all fake types. In contrast, simple digital-to-print MSE (Mean Squared Error) comparison only managed an AUC of 0.92 to 0.95.
  • Robustness: While supervised models trained on one type of fake failed (AUC as low as 0.25) when facing a different type of fake, the proposed unsupervised method maintained near-perfect performance across the board.
  • Localization: The system doesn't just give a "pass/fail" score; it produces a visual map showing where the code is anomalous, which is a powerful tool for forensic analysis of counterfeits.

Limitations and Future Work

  • Stochasticity Modeling: The current model is deterministic. The authors suggest that future versions could benefit from mimicking the stochastic nature of printing to produce small, realistic variations for the same digital template.
  • Real-world Acquisition: The current study uses high-quality scans. The next step is testing the system against images captured by smartphones in uncontrolled lighting and focus conditions, which is how consumers would actually use the technology.
  • Printer Specificity: A separate model $m_\theta$ must be learned for each specific printing process, which may require retraining if a defender changes their hardware.

Summary updated

BibTeX
@misc{pulfer2022anomaly,
  author = {Brian Pulfer and Yury Belousov and Joakim Tutt and Roman Chaban and Olga Taran and Taras Holotyak and Slava Voloshynovskiy},
  title = {{Anomaly localization for copy detection patterns through print estimations}},
  year = {2022},
  eprint = {2209.15625},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2209.15625},
}
Figure