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 条
  • [1] Matching of hand-drawn flowchart, pseudocode, and english description using transfer learning
    Sagarika Ghosh
    Sanjoy Pratihar
    Sanjay Chatterji
    Anupam Basu
    Multimedia Tools and Applications, 2023, 82 : 27027 - 27055
  • [2] Retrieval of hand-drawn sketches with partial matching
    Leung, WH
    Chen, T
    2003 IEEE INTERNATIONAL CONFERENCE ON ACOUSTICS, SPEECH, AND SIGNAL PROCESSING, VOL III, PROCEEDINGS: IMAGE & MULTIDIMENSIONAL SIGNAL PROCESSING SIGNAL, PROCESSING EDUCATION, 2003, : 5 - 8
  • [3] Hierarchical matching for retrieval of hand-drawn sketches
    Leung, WH
    Chen, TH
    2003 INTERNATIONAL CONFERENCE ON MULTIMEDIA AND EXPO, VOL II, PROCEEDINGS, 2003, : 29 - 32
  • [4] Temporal-domain matching of hand-drawn pictorial queries
    Lopresti, D
    Tomkins, A
    HANDWRITING AND DRAWING RESEARCH: BASIC AND APPLIED ISSUES, 1996, : 387 - 401
  • [5] A fuzzy matching algorithm for hand-drawn graphic primitives recognition
    Gong, X
    Pei, JH
    Xie, WX
    IMAGE MATCHING AND ANALYSIS, 2001, 4552 : 274 - 279
  • [6] Hand-drawn electronic component recognition using deep learning algorithm
    Wang, Haiyan
    Pan, Tianhong
    Ahsan, Mian Khuram
    INTERNATIONAL JOURNAL OF COMPUTER APPLICATIONS IN TECHNOLOGY, 2020, 62 (01) : 13 - 19
  • [7] Learning and recognition of hand-drawn shapes using generative genetic programming
    Jaskowski, Wojciech
    Krawiec, Krzysztof
    Wieloch, Bartosz
    APPLICATIONS OF EVOLUTIONARY COMPUTING, PROCEEDINGS, 2007, 4448 : 281 - +
  • [8] ChemPix: automated recognition of hand-drawn hydrocarbon structures using deep learning
    Weir, Hayley
    Thompson, Keiran
    Woodward, Amelia
    Choi, Benjamin
    Braun, Augustin
    Martinez, Todd J.
    CHEMICAL SCIENCE, 2021, 12 (31) : 10622 - 10633
  • [9] Hand-drawn sketch and vector map matching based on topological features
    Lu, Yuefeng
    Sun, Ying
    Liu, Shuo
    Li, Jing
    Liu, Yanru
    Yao, Kaizhong
    Wang, Yanjun
    Fu, Zhongliang
    Lu, Shaofeng
    Shao, Shiwei
    FRONTIERS IN EARTH SCIENCE, 2023, 11
  • [10] Recognizing hand-drawn quadrilaterals using genetic algorithms
    Mota-Gutierrez, Sergio A.
    Ayala-Ramirez, Victor
    Sanchez-Yanez, Raul E.
    2009 III CONFERENCE OF UNIVERSITY OF GUANAJUATO IEEE STUDENTS CHAPTER (IEEEXPO 2009), 2009, : 20 - 23