--- license: cc-by-sa-4.0 task_categories: - image-classification - image-feature-extraction - tabular-classification - feature-extraction language: - ar - en pretty_name: 'HDL: Hand-drawn Digital Logic Gates Dataset' --- ๐Ÿ“Œ Dataset Summary HDL (Hand-drawn Digital Logic Gates) is the first balanced image and tabular dataset dedicated to the classification of hand-drawn digital logic gates. The dataset is designed primarily for machine learning education, computer vision research, and AI-assisted electronics applications. HDL contains 1,200 hand-drawn images covering the 8 fundamental digital logic gates (AND, OR, NOT (INVERTER), BUFFER, NAND, NOR, XOR, and XNOR), with 150 images per class, ensuring perfect class balance. ๐Ÿง  Motivation Most existing handwritten or hand-drawn datasets focus on: * Digits (e.g., MNIST) * Characters and scripts However, no publicly available balanced dataset existed for hand-drawn digital logic gates, despite their importance in: * Digital electronics education * Circuit analysis * AI-assisted schematic interpretation HDL was created to fill this gap and to support: * Teaching Machine Learning to engineering students * No-code ML experimentation * Benchmarking shallow and deep learning models ๐Ÿ“‚ Images Dataset Structure ``` HDL/ โ”œโ”€โ”€ AND/ โ”œโ”€โ”€ OR/ โ”œโ”€โ”€ NOT/ โ”œโ”€โ”€ BUFFER/ โ”œโ”€โ”€ NAND/ โ”œโ”€โ”€ NOR/ โ”œโ”€โ”€ XOR/ โ””โ”€โ”€ XNOR/ ``` * Image format: `.jpg` / `.jpeg` * Image source: Hand-drawn on paper and photographed or scanned * Contributors: Umm Al-Qura University students + logic gates drawn using Logisim-evolution ๐Ÿ“Š Benchmark Results The dataset has been extensively benchmarked using both no-code tools and deep learning models. ๐Ÿ”น Best Result * Model: EfficientNet with data augmentation * Platform: Liner.ai * Accuracy: 92.5% * F1-score: 92.5% ๐Ÿ”น Feature Extraction (Image Embedding) (Tabular Dataset) Image embeddings were generated using: * SqueezeNet * Inception v3 * Google ViT * Facebook DINOv2 * Nvidia MambaVision Top-performing classifiers: * Logistic Regression * Neural Networks ๐Ÿงช Typical Use Cases HDL is suitable for: ๐ŸŽ“ Machine Learning Education ๐Ÿง  TinyML & Edge AI โœ๏ธ OCR-like systems for circuit digitization ๐Ÿงฉ Logic gate classification ๐Ÿ–ผ๏ธ Image embedding & feature extraction experiments ๐Ÿ› ๏ธ No-code ML platforms (Orange Data Mining, Liner.ai) ๐Ÿ“„ Research Paper: To be published soon. Please cite the dataset if used in academic work.