Detection and translation of logic gate images into Boolean functions
Computer Science and Information Technologies
Abstract
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.
Discover Our Library
Embark on a journey through our expansive collection of articles and let curiosity lead your path to innovation.





