Sketch2Sim: An end-to-end modular framework for hand-drawn circuit analysis


Abstract

Context: The digitization of handwritten circuits plays a crucial role in the education and engineering domains. They can help analyze circuits and provide feedback that enables students, researchers, educators, and other stakeholders.
Additionally, due to the spread of digital platforms in education, handwritten circuit digitization can help students and educators in various developing countries who lack access to fully digitized content. However, this topic has remained underexplored due to data scarcity, lack of datasets, and the complexity of processing.
Objective: This study proposes a sketch-to-simulation system to solve handwritten circuit diagrams. The system converts raw images into a SPICE-compatible netlist and automatically calculates the nodal voltages and currents of the circuit.
Another objective is to propose a holistic framework that benefits students and educators by enhancing the teaching and learning experience of electric circuits and expediting engineering design reviews.
Methods: This paper presents a multistage pipeline that converts raw photographs of handwritten electric circuits into executable SPICE-like netlists, providing a solution. A dataset of 1,000 hand-drawn RLC circuits was curated and annotated for components, text regions, and character recognition. The proposed system decomposes a circuit diagram into three stages: (i) dual YOLO-based detectors for components and text regions, (ii) a CRNN with CTC-based domain-aware symbol value extraction, and (iii) image processing with thresholding, skeletonization, and DBSCANs to automatically identify nodes and map them with corresponding components.
Results: The proposed system produces the netlist and solves the circuit. The qualitative and quantitative ablation studies on modular stages, as well as end-to-end tests, demonstrate robust performance across various handwriting styles, lighting conditions, and clutter.
Conclusion: This study serves as an interactive learning aid and practical tool for professionals, enabling rapid digitization of circuit sketches for study, design, prototyping, or troubleshooting.
Ask to review this manuscript

Notes for potential reviewers

  • Volunteering is not a guarantee that you will be asked to review. There are many reasons: reviewers must be qualified, there should be no conflicts of interest, a minimum of two reviewers have already accepted an invitation, etc.
  • This is NOT OPEN peer review. The review is single-blind, and all recommendations are sent privately to the Academic Editor handling the manuscript. All reviews are published and reviewers can choose to sign their reviews.
  • What happens after volunteering? It may be a few days before you receive an invitation to review with further instructions. You will need to accept the invitation to then become an official referee for the manuscript. If you do not receive an invitation it is for one of many possible reasons as noted above.

  • PeerJ Computer Science does not judge submissions based on subjective measures such as novelty, impact or degree of advance. Effectively, reviewers are asked to comment on whether or not the submission is scientifically and technically sound and therefore deserves to join the scientific literature. Our Peer Review criteria can be found on the "Editorial Criteria" page - reviewers are specifically asked to comment on 3 broad areas: "Basic Reporting", "Experimental Design" and "Validity of the Findings".
  • Reviewers are expected to comment in a timely, professional, and constructive manner.
  • Until the article is published, reviewers must regard all information relating to the submission as strictly confidential.
  • When submitting a review, reviewers are given the option to "sign" their review (i.e. to associate their name with their comments). Otherwise, all review comments remain anonymous.
  • All reviews of published articles are published. This includes manuscript files, peer review comments, author rebuttals and revised materials.
  • Each time a decision is made by the Academic Editor, each reviewer will receive a copy of the Decision Letter (which will include the comments of all reviewers).

If you have any questions about submitting your review, please email us at [email protected].