Detection of Misoriented Polarized Electronic Components on PCBs Using HOG Features and Neural Networks
DOI:
https://doi.org/10.30871/jaic.v9i6.11330Keywords:
Component Orientation Detection, Histogram of Oriented Gradients, Neural Networks, Printed Circuit Board, Polarized Electronic ComponentsAbstract
Mounting misorientation on polar electronic components in printed circuit boards (PCBs) can cause malfunctions in electronic devices. This study proposes an automatic detection system that utilizes the Histogram of Oriented Gradients (HOG) feature and employs classification using an artificial neural network. The research was conducted by collecting data from PCB images featuring polar components, such as diodes, electrolytic capacitors, and transistors. Once the components are identified, the HOG features are extracted to generate feature vectors used in artificial neural network training. The experiment results show that this system can detect component orientation errors with a high degree of accuracy, achieving accuracy values of 99.5% for transistor components, 97% for electrolyte capacitors, and 93.6% for diodes. Additionally, F1 values and high precision are achieved for all three types of components. The ReLU activation function has been shown to perform best among other activation functions. While the results are promising, further research is necessary to automate the identification of component locations without relying on manual cropping processes.
Downloads
References
[1] Q. Ling and N. A. M. Isa, "Printed Circuit Board Defect Detection Methods Based on Image Processing, Machine Learning and Deep Learning: A Survey," IEEE Access, vol. 11, pp. 15921–15944, 2023, doi: 10.1109/ACCESS.2023.3245093.
[2] M. Polikarpov, Y. Mehmood, D. Boiar, L. Schulte, and J. Deuse, "A Cost-Efficient Robotic Through-Hole Assembly System for Dual-Pin Component Insertion," in 2023 11th International Conference on Control, Mechatronics and Automation (ICCMA), Grimstad, Norway: IEEE, Nov. 2023, pp. 271–277. doi: 10.1109/ICCMA59762.2023.10375039.
[3] Y. Zhou, M. Yuan, J. Zhang, G. Ding, and S. Qin, "Review of vision-based defect detection research and its perspectives for printed circuit board," J. Manuf. Syst., vol. 70, pp. 557–578, Oct. 2023, doi: 10.1016/j.jmsy.2023.08.019.
[4] Q. Ling, N. A. M. Isa, and M. S. M. Asaari, "Precise Detection for Dense PCB Components Based on Modified YOLOv8," IEEE Access, vol. 11, pp. 116545–116560, 2023, doi: 10.1109/ACCESS.2023.3325885.
[5] P. Kim, X. Huang, and Z. Fang, "SSD PCB Component Detection Using YOLOv5 Model," J. Inf. Commun. Converg. Eng., vol. 21, no. 1, pp. 24–31, Mar. 2023, doi: 10.56977/jicce.2023.21.1.24.
[6] H. Xin, Z. Chen, and B. Wang, "PCB Electronic Component Defect Detection Method based on Improved YOLOv4 Algorithm," J. Phys. Conf. Ser., vol. 1827, no. 1, p. 012167, Mar. 2021, doi: 10.1088/1742-6596/1827/1/012167.
[7] J. Li, J. Gu, Z. Huang, and J. Wen, "Application Research of Improved YOLO V3 Algorithm in PCB Electronic Component Detection," Appl. Sci., vol. 9, no. 18, p. 3750, Sept. 2019, doi: 10.3390/app9183750.
[8] B. Li, S. Palayew, F. Li, S. Abbasi, S. Nair, and A. Wong, "PCBDet: An efficient deep neural network object detection architecture for automatic PCB component detection on the edge," Electron. Lett., vol. 60, no. 2, p. e13042, Jan. 2024, doi: 10.1049/ell2.13042.
[9] C.-W. Kuo, J. D. Ashmore, D. Huggins, and Z. Kira, "Data-Efficient Graph Embedding Learning for PCB Component Detection," in 2019 IEEE Winter Conference on Applications of Computer Vision (WACV), Waikoloa Village, HI, USA: IEEE, Jan. 2019, pp. 551–560. doi: 10.1109/WACV.2019.00064.
[10] H. Ma and H. Zhang, "PCB Component Rotation Detection Based on Polarity Identifier Attention," in Artificial Neural Networks and Machine Learning – ICANN 2023, L. Iliadis, A. Papaleonidas, P. Angelov, and C. Jayne, Eds., in Lecture Notes in Computer Science. Cham: Springer Nature Switzerland, 2023, pp. 140–151. doi: 10.1007/978-3-031-44201-8_12.
[11] A. Munawaroh and E. R. Jamzuri, "Automatic optical inspection for detecting keycaps misplacement using Tesseract optical character recognition," Int. J. Electr. Comput. Eng. IJECE, vol. 13, no. 5, Art. no. 5, Oct. 2023, doi: 10.11591/ijece.v13i5.pp5147-5155.
[12] M. Wulandari, R. Chai, B. Basari, and D. Gunawan, "Hybrid Feature Extractor Using Discrete Wavelet Transform and Histogram of Oriented Gradient on Convolutional-Neural-Network-Based Palm Vein Recognition," Sensors, vol. 24, no. 2, p. 341, Jan. 2024, doi: 10.3390/s24020341.
[13] J. Zeng, Y. Chen, Y. Zhai, J. Gan, W. Feng, and F. Wang, "A Novel Finger-Vein Recognition Based on Quality Assessment and Multi-Scale Histogram of Oriented Gradients Feature:," Int. J. Enterp. Inf. Syst., vol. 15, no. 1, pp. 100–115, Jan. 2019, doi: 10.4018/IJEIS.2019010106.
[14] M. Hasan Mutar, E. Hammodi Ahmed, M. R. Mohamed Alsemawi, H. O. Hanoosh, and A. H. Abbas, "Ear recognition system using random forest and histograms of oriented gradients techniques," Indones. J. Electr. Eng. Comput. Sci., vol. 27, no. 1, p. 181, July 2022, doi: 10.11591/ijeecs.v27.i1.pp181-188.
[15] A. M. Ayalew, A. O. Salau, B. T. Abeje, and B. Enyew, "Detection and classification of COVID-19 disease from X-ray images using convolutional neural networks and histogram of oriented gradients," Biomed. Signal Process. Control, vol. 74, p. 103530, Apr. 2022, doi: 10.1016/j.bspc.2022.103530.
[16] M. Jawahar et al., "Computer-aided diagnosis of COVID-19 from chest X-ray images using histogram-oriented gradient features and Random Forest classifier," Multimed. Tools Appl., vol. 81, no. 28, pp. 40451–40468, Nov. 2022, doi: 10.1007/s11042-022-13183-6.
[17] S. Sivamani, S. I. Chon, D. Y. Choi, and J. H. Park, "Investigating and Suggesting the Evaluation Dataset for Image Classification Model," IEEE Access, vol. 8, pp. 173599–173608, 2020, doi: 10.1109/ACCESS.2020.3024575.
[18] M. Magnusson, M. Andersen, J. Jonasson, and A. Vehtari, "Bayesian leave-one-out cross-validation for large data," in Proceedings of the 36th International Conference on Machine Learning, PMLR, May 2019, pp. 4244–4253. Accessed: Apr. 08, 2024. [Online]. Available: https://proceedings.mlr.press/v97/magnusson19a.html
[19] D. Krstinić, L. Šerić, and I. Slapničar, "Comments on 'MLCM: Multi-Label Confusion Matrix,'" IEEE Access, vol. 11, pp. 40692–40697, 2023, doi: 10.1109/ACCESS.2023.3267672.
[20] R. Ramola, S. Jain, and P. Radivojac, "Estimating classification accuracy in positive-unlabeled learning: characterization and correction strategies," in Biocomputing 2019, Kohala Coast, Hawaii, USA: WORLD SCIENTIFIC, Nov. 2018, pp. 124–135. doi: 10.1142/9789813279827_0012.
[21] E. A. Platanios, H. Poon, T. M. Mitchell, and E. Horvitz, "Estimating accuracy from unlabeled data: a probabilistic logic approach," in Proceedings of the 31st International Conference on Neural Information Processing Systems, in NIPS'17. Red Hook, NY, USA: Curran Associates Inc., Desember 2017, pp. 4364–4373.
[22] B. Bilalli, A. Abelló, T. Aluja-Banet, and R. Wrembel, "PRESISTANT: Learning based assistant for data pre-processing," Data Knowl. Eng., vol. 123, p. 101727, Sept. 2019, doi: 10.1016/j.datak.2019.101727.
[23] Y. Yang, C. Miller, P. Jiang, and A. Moghtaderi, "A Case Study of Multi-class Classification with Diversified Precision Recall Requirements for Query Disambiguation," in Proceedings of the 43rd International ACM SIGIR Conference on Research and Development in Information Retrieval, Virtual Event China: ACM, July 2020, pp. 1633–1636. doi: 10.1145/3397271.3401315.
[24] J. C. Fernández, M. Carbonero, P. A. Gutiérrez, and C. Hervás-Martínez, "Multi-objective evolutionary optimization using the relationship between F1 and accuracy metrics in classification tasks," Appl. Intell., vol. 49, no. 9, pp. 3447–3463, Sept. 2019, doi: 10.1007/s10489-019-01447-y.
[25] D. Chicco and G. Jurman, "The Matthews correlation coefficient (MCC) should replace the ROC AUC as the standard metric for assessing binary classification," BioData Min., vol. 16, no. 1, p. 4, Feb. 2023, doi: 10.1186/s13040-023-00322-4.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2025 Eko Rudiawan Jamzuri, Habyb Nur Ikhsan

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License (Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) ) that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).








