Matching of hand-drawn flowchart, pseudocode, and english description using transfer learning

被引:0
|
作者
Ghosh, Sagarika [1 ,2 ]
Pratihar, Sanjoy [1 ]
Chatterji, Sanjay [1 ]
Basu, Anupam [3 ]
机构
[1] Indian Inst Informat Technol Kalyani, Comp Sci & Engn, Kalyani 741235, West Bengal, India
[2] Univ Engn & Management Jaipur, Comp Sci & Engn, Jaipur 303807, Rajasthan, India
[3] Natl Inst Technol Durgapur, Comp Sci & Engn, Durgapur 713209, West Bengal, India
关键词
Hand-drawn flowchart; Pseudocode; Text description; S-DistilBERT; Ruleset; Embedding; Transfer learning; Similarity matching; OPTIMAL POLYGONAL-APPROXIMATION; DOMINANT POINTS; ALGORITHM;
D O I
10.1007/s11042-023-14346-9
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
An algorithm plays an important role when solving a problem. It is challenging to comprehend for computer novices or machines. Therefore, a textual explanation is provided to illustrate the algorithm. To understand an algorithm, a method needs to be devised to find or generate the corresponding text description and vice versa. This paper matches an algorithm in a variety of forms, such as pseudocode and hand-drawn flowchart, with the illustrative text written in English to facilitate a thorough understanding of the algorithm. The experiment includes a proposed set of rules for generating pseudocode from a hand-drawn flowchart and a proposed S-DistilBERT-based transfer learning method to determine the similarity match score between multiple forms of algorithm and text description. Basic block and line identification, as well as OCR-ization, are used to characterize the hand-drawn flowcharts. The experimental result show that we can generate the equivalent pseudocode in 85% cases, and our fine-tuned S-DistilBERT model can accommodate the matching text for the existing pseudocode with 75.59% and the generated pseudocode with 74.57% accuracy. We also find the appropriate description from an algorithm in the top five matches in 30 out of 50 cases. The rules are found to be adequate for non-recursive flowcharts.
引用
收藏
页码:27027 / 27055
页数:29
相关论文
共 50 条
  • [31] Vectorization of hand-drawn image using piecewise cubic Bezier curves fitting
    Chang, HH
    Yan, H
    PATTERN RECOGNITION, 1998, 31 (11) : 1747 - 1755
  • [32] Unsupervised Learning of 3D Model Reconstruction from Hand-Drawn Sketches
    Wang, Lingjing
    Qian, Cheng
    Wang, Jifei
    Fang, Yi
    PROCEEDINGS OF THE 2018 ACM MULTIMEDIA CONFERENCE (MM'18), 2018, : 1820 - 1828
  • [33] Hand-Drawn Electrical Circuit Recognition Using Object Detection and Node Recognition
    Rachala R.R.
    Panicker M.R.
    SN Computer Science, 2022, 3 (3)
  • [34] Learning obstacle avoidance reflex behavior for autonomous navigation from hand-drawn trajectories
    Chatterjee, R
    Matsuno, F
    PROCEEDINGS OF IEEE INTERNATIONAL CONFERENCE ON INDUSTRIAL TECHNOLOGY 2000, VOLS 1 AND 2, 2000, : 58 - 63
  • [35] Indoor SLAM based on line observation probability using a hand-drawn map
    Suzuki, Ryuki
    Ji, Yonghoon
    Pathak, Sarthak
    Umeda, Kazunori
    2022 IEEE/SICE INTERNATIONAL SYMPOSIUM ON SYSTEM INTEGRATION (SII 2022), 2022, : 695 - 698
  • [36] Extracting Route Information from Hand-Drawn Map Using Fuzzy Vector
    Samakrob, Boonyarit
    Auephaniriyakul, Sansanee
    Theera-Umpon, Nipon
    2012 IEEE INTERNATIONAL CONFERENCE ON FUZZY SYSTEMS (FUZZ-IEEE), 2012,
  • [37] CodeGraffiti: Using hand-drawn sketches connected to code bases in navigation tasks
    Lichtschlag, Leonhard
    Spychalski, Lukas
    Bochers, Jan
    2014 IEEE SYMPOSIUM ON VISUAL LANGUAGES AND HUMAN-CENTRIC COMPUTING (VL/HCC 2014), 2014, : 65 - 68
  • [38] Classification of Hand-Drawn Basic Circuit Components Using Convolutional Neural Networks
    Gunay, Mihriban
    Koseoglu, Murat
    Yildirim, Ozal
    2ND INTERNATIONAL CONGRESS ON HUMAN-COMPUTER INTERACTION, OPTIMIZATION AND ROBOTIC APPLICATIONS (HORA 2020), 2020, : 134 - 138
  • [39] Multi-Domain Recognition of Hand-Drawn Diagrams Using Hierarchical Parsing
    Deufemia, Vincenzo
    Risi, Michele
    MULTIMODAL TECHNOLOGIES AND INTERACTION, 2020, 4 (03) : 1 - 30
  • [40] Using Analogy to Cluster Hand-Drawn Sketches for Sketch-Based Educational Software
    Chang, Maria D.
    Forbus, Kenneth D.
    AI MAGAZINE, 2014, 35 (01) : 76 - 84