Abstract


Kualitas suatu rangkaian elektronik sangat bergantung pada kualitas Printed Circuit Board (PCB) untuk mendukung proses berjalannya semua komponen. Meskipun dapat menggunakan inspeksi manual terhadap kecacatan pada PCB, namun metode tersebut memiliki keterbatasan terhadap ketelitian dan waktu. Oleh karena itu, penelitian ini dilakukan untuk mengimplementasikan Machine Learning dalam deteksi kecacatan pada PCB. Dalam pengaplikasiannya, penelitian ini menggunakan algoritma deteksi objek YOLOv5 (You Look Only Once versi 5), yang merupakan pengembangan dari convolutional neural network. Fokus penelitian ini adalah membangun sistem yang dapat mengidentifikasi kecacatan pada PCB menggunakan algoritma YOLOv5. Dataset yang digunakan terdiri dari 600 gambar, dengan 480 data latih dan 120 data uji. Jenis kecacatan PCB yang diidentifikasi meliputi open circuit, missing hole, mouse bite, short, spur, dan spurious copper. Hasil penelitian menunjukkan bahwa penggunaan YOLOv5m menghasilkan nilai mean Average Precision (mAP) sebesar 95,3%. Selain itu, dalam pengujian dengan 120 data uji, model berhasil mencapai akurasi sebesar 93,83%, presisi 98,13%, recall 95,43%, dan  error 6,17%.  Selain itu peningkatan spesifikasi hardware juga berpengaruh dalam kecepatan deteksi objek kecacatan pada PCB.

Kata kunci : PCB, kecacatan, Machine Learning, convolutional neural network, YOLOv5

 

The quality of an electronic circuit depends significantly on the quality of the Printed Circuit Board (PCB) supporting its operation. While manual inspection of defects on PCBs has been carried out, this method has limitations in terms of precision and time. Therefore, this research aims to implement Machine Learning in detecting defects on PCBs. In its application, this study utilizes the YOLOv5 (You Look Only Once version 5) object detection algorithm, which is an advancement of the convolutional neural network. The focus of this research is to build a system capable of identifying defects on PCBs using the YOLOv5 algorithm. The dataset used consists of 600 images, with 480 training data and 120 test data. Types of PCB defects identified include open circuit, missing hole, mouse bite, short, spur, and spurious copper. The research results indicate that using YOLOv5m yields a mean Average Precision (mAP) value of 95.3%. Additionally, in testing with 120 test data, the model achieved an accuracy of 93.81%, precision of 98.13%, recall of 95.43%, and an error rate of 6.17%. Furthermore, the improvement of hardware specifications also influences the speed of object detection for defects on PCBs.

Keywords: PCB, defect, Machine Learning, convolutional neural network, YOLOv5