Detection and translation of logic gate images into Boolean functions
DOI:
https://doi.org/10.11591/csit.v7i3.p346-352Keywords:
Artificial intelligence, Boolean function, Logic gate, Object detection, YOLOv5sAbstract
Artificial intelligence (AI) has become an essential tool in solving complex problems effectively and efficiently. In digital electronics, translating logic gate circuits into Boolean functions can be challenging, especially for more complex structures. This study presents the design of a detection and translation system for logic gate images into Boolean functions using the You Only Look Once (YOLOv5) object detection model. A dataset of 800 images was collected using a smartphone camera under varied lighting conditions and preprocessing to ensure robustness. The dataset was divided into 70% for training, 20% for validation, and 10% for testing. Training was conducted using YOLOv5s with batch size 32, 100 epochs, and pre-trained weights. The trained model achieved strong results with an overall mean average precision (mAP@0.5) of 0.922, precision of 0.98, and recall of 0.984. The confusion matrix confirmed accurate detection across all classes, with minimal misclassification. Furthermore, the translator system successfully converted recognized objects into correct Boolean expressions, with results validated in multiple test cases. This demonstrates that the proposed system can reliably automate circuit image-to-Boolean translation, bridging image recognition and symbolic computation.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Muhammad Shidqii Taqiyyuddin, Muhammad Subali

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
