Real-Time AI-Powered Industrial PCB Defect Detection and Surface Anomaly Segmentation System: A Final Year Engineering Project
$60.99
What's Included in this package:
Upload Base Abstract / Requirements
Need this project customized? Upload your college's base paper, abstract, or specific custom requirements document (PDF/DOCX).
Click to select document
Project Details & Documentation
Abstract
Automated Visual Inspection (AVI) plays a pivotal role in modern electronics manufacturing, where printed circuit board (PCB) assembly requires micro-level precision. Traditional human inspection is prone to fatigue, subjective bias, and slowness, whereas classic rule-based machine vision struggles with complex geometric variations and lighting fluctuations. This project introduces a hybrid Deep Learning and Computer Vision framework for real-time PCB defect detection and pixel-level surface anomaly segmentation, designed explicitly as an end-to-end Final Year Engineering solution.
The system utilizes YOLOv8 for high-speed object detection of component misalignments and missing parts, coupled with a fine-tuned MobileSAM (Segment Anything Model) for fine-grained surface defect segmentation like solder bridges, spurs, and short circuits. Operating via a low-latency web platform built with FastAPI and React, the system processes high-resolution visual feeds at 45+ FPS, providing instant pass/fail alerts, visual heatmaps, and downloadable quality assurance logs.
Project Overview
Printed Circuit Boards are the fundamental backbone of modern electronic architecture. With modern surface-mount technology (SMT) packing thousands of components onto compact multi-layer boards, manual quality assurance is statistically inefficient, suffering from error rates exceeding 20% during extended shifts. Existing commercial automated optical inspection (AOI) machines are extremely costly, rigid, and require tedious expert recalibration whenever PCB designs change.
This project bridges the gap by delivering a lightweight, highly accurate, and adaptable AI-driven optical inspection system. Designed for practical student implementation and real-world industrial applicability, the framework seamlessly ingests feed from standard CMOS cameras or microscope streams, preprocesses frames using custom image normalization algorithms, and executes dual-stage neural inference to detect and segment PCB structural flaws with sub-millimeter precision.
Problem Statement
Industrial PCB manufacturing faces critical bottlenecks due to tiny structural anomalies such as pinholes, short circuits, missing components, unwanted spurs, and solder bridges. Microscopic solder bridges or hairline opens often bypass standard automated electrical continuity tests during early production stages, leading to catastrophic product failure in field deployment.
Furthermore, traditional machine vision technologies rely on rigid template matching algorithms that fail under slight illumination shifts or board positioning offsets. Small-scale electronics manufacturers lack affordable, customizable inspection tools that can dynamically adapt to new PCB layouts without requiring expensive hardware upgrades or extensive manual recalibration. There is an urgent need for an flexible, open-source-driven deep learning inspection system that delivers instant feedback on board integrity.
Proposed Solution
To solve these manufacturing challenges, our system adopts a dual-model computer vision pipeline combined with classical edge-aligned image processing techniques. The input pipeline captures high-resolution PCB frames, applying Adaptive Histogram Equalization (CLAHE) and perspective transformation to correct spatial orientation relative to a reference 'golden board' layout.
The normalized frame is first evaluated by a custom-trained YOLOv8 object detector optimized via TensorRT execution engines to identify macro-defects, such as missing integrated circuits (ICs), misplaced capacitors, and wrong resistor orientations. Simultaneously, fine-grained surface regions are passed to a lightweight U-Net / MobileSAM segmentation model trained on the HR-IPCB and DeepPCB datasets. This secondary network generates precise pixel-level masks around microscopic defects including copper spurs, spurious voids, and solder bridging between adjacent pins.
Expected Outcomes
The implementation delivers a complete, production-ready computer vision software stack that yields high classification accuracy and near-zero false-negative rates on critical electrical open/short defects. The software highlights defects on live video streams using distinct color-coded bounding boxes and semantic segmentation overlays, providing visual inspection feedback in under 25 milliseconds per frame.
Additionally, the solution includes a comprehensive quality management dashboard. Quality control engineers can track historical defect distribution analytics, inspect real-time video feeds with thermal-style confidence overlays, and generate automated PDF audit reports detailing component error rates, batch pass/fail percentages, and time-stamped defect snapshots.
Research Papers & References
- DeepPCB: A Benchmark Dataset for Printed Circuit Board Defect Detection
- Real-time Surface Defect Detection on PCBs using Lightweight YOLO Architecture
- Segment Anything in Industrial Visual Inspection: Benchmarking and Optimization
- Automated Optical Inspection for Solder Joint Quality using Convolutional Neural Networks
