Framework for Automatic PCB Marking Detection and Recognition for Hardware Assurance

Olivia P. Dizon-Paradis, Daniel E. Capecci, Nathan Jessurun, Damon L. Woodard, Mark Tehranipoor, Navid AsadizanjaniarXiv 2023 · DOI

Abstract

A Bill of Materials (BoM) is a list of all components on a printed circuit board (PCB). Since BoMs are useful for hardware assurance, automatic BoM extraction (AutoBoM) is of great interest to the government and electronics industry. To achieve a high-accuracy AutoBoM process, domain knowledge of PCB text and logos must be utilized. In this study, we discuss the challenges associated with automatic PCB marking extraction and propose 1) a plan for collecting salient PCB marking data, and 2) a framework for incorporating this data for automatic PCB assurance. Given the proposed dataset plan and framework, subsequent future work, implications, and open research possibilities are detailed.

The Challenge of AutoBoM

In the field of hardware assurance, verifying that electronics are genuine and free of malicious "Trojans" requires a definitive Bill of Materials (BoM). This inventory lists every component on a PCB, but manually verifying a board with thousands of components is an arduous task for human experts.

While "AutoBoM" (Automatic BoM extraction) systems aim to solve this, they face significant hurdles because PCB markings are notoriously difficult for standard computer vision models to interpret. Unlike text in a document, PCB markings are characterized by high density, non-standard fonts, and physical obscuration. For instance, markings may be interrupted by copper traces or vias, and manufacturers often use unique shorthand or logos that lack a universal digital standard.

Example of dense and non-standard markings on integrated circuits, including reference designators like R69 and U3.

Visual Complexity and Obstacles

The paper identifies six major challenges that any robust AutoBoM system must overcome:

  • Intra-class variation: The same component type may have wildly different markings depending on the manufacturer.
  • Imbalanced classes: Common components like resistors appear thousands of times, while specialized ICs may appear only once.
  • Imaging issues: Glare, low contrast, and blurring are common in industrial inspection environments.
  • Physical Obstructions: Markings are often covered by quality control stickers, heat sinks, or are simply worn away by age.
Common recognition hurdles: (a) low-contrast text, (b) specialized component codes, and (c) physical obstructions like stickers.

Proposed Multi-Stage Framework

To address these challenges, the authors propose a framework that mimics the logic of a human Subject Matter Expert (SME). This framework moves beyond simple OCR (Optical Character Recognition) by integrating domain-specific knowledge and iterative verification.

1. Domain Knowledge Integration

The system utilizes industry standards (such as ASME Y14.44) to interpret reference designators. For example, a label starting with "R" is identified as a resistor, while "U" indicates an integrated circuit. This context helps resolve ambiguities, such as distinguishing between a zero ("0") and the letter "O."

2. The Pipeline

  • Detection: Locating regions of interest (ROIs) where text or logos reside.
  • Recognition: Converting those ROIs into digital text or identifying specific manufacturer logos using a specialized lookup table.
  • Association: A logic layer that links recognized text to the physical component closest to it, using spatial context to ensure the "R69" label is correctly assigned to the nearby resistor.

3. Contextual Decoding

Markings on components are often encoded. A resistor marked "221" represents 220 Ohms ($22 \times 10^1$). The proposed framework includes logic to decode these values, allowing the system to verify the physical component against the original design specifications.

Data Strategy and Future Directions

A primary bottleneck in this research is the lack of high-quality, annotated PCB data. While datasets like FICS-PCB exist, they often lack consistent formatting or logo identification. The authors outline a new data collection strategy emphasizing color and scale normalization—using color checkers and rulers—to ensure models are camera-agnostic.

Future work will focus on executing this data collection plan and benchmarking existing algorithms against this difficult domain. The ultimate goal is an iterative system where, if a visual model identifies a component as a capacitor but the adjacent text says "R69," the system flags the discrepancy for expert review, significantly reducing the manual workload of hardware assurance.

Summary updated

BibTeX
@misc{dizonparadis2023framework,
  author = {Olivia P. Dizon-Paradis and Daniel E. Capecci and Nathan Jessurun and Damon L. Woodard and Mark Tehranipoor and Navid Asadizanjani},
  title = {{Framework for Automatic PCB Marking Detection and Recognition for Hardware Assurance}},
  year = {2023},
  eprint = {2307.13105},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2307.13105},
}
Figure