A syntactic approach based on distortion-tolerant Adjacency Grammars and a spatial-directed parser to interpret sketched diagrams

This paper presents a syntactic approach based on Adjacency Grammars (AG) for sketch diagram modeling and understanding. Diagrams are a combination of graphical symbols arranged according to a set of spatial rules defined by a visual language. AG describe visual shapes by productions defined in terms of terminal and non-terminal symbols (graphical primitives and subshapes), and a set functions describing the spatial arrangements between symbols. Our approach to sketch diagram understanding provides three main contributions. First, since AG are linear grammars, there is a need to define shapes and relations inherently bidimensional using a sequential formalism. Second, our parsing approach uses an indexing structure based on a spatial tessellation. This serves to reduce the search space when finding candidates to produce a valid reduction. This allows order-free parsing of 2D visual sentences while keeping combinatorial explosion in check. Third, working with sketches requires a distortion model to cope with the natural variations of hand drawn strokes. To this end we extended the basic grammar with a distortion measure modeled on the allowable variation on spatial constraints associated with grammar productions. Finally, the paper reports on an experimental framework an interactive system for sketch analysis. User tests performed on two real scenarios show that our approach is usable in interactive settings.

[1]  Ephraim P. Glinert,et al.  Online parsing of visual languages using adjacency grammars , 1995, Proceedings of Symposium on Visual Languages.

[2]  Éric Anquetil,et al.  A Generic Method for Eager Interpretation of On-Line Handwritten Structured Documents , 2006, 18th International Conference on Pattern Recognition (ICPR'06).

[3]  Kim Marriott Constraint multiset grammars , 1994, Proceedings of 1994 IEEE Symposium on Visual Languages.

[4]  B. Ripley,et al.  Pattern Recognition , 1968, Nature.

[5]  Horst Bunke Attributed Programmed Graph Grammars and Their Application to Schematic Diagram Interpretation , 1982, IEEE Transactions on Pattern Analysis and Machine Intelligence.

[6]  Horst Bunke,et al.  HYBRID PATTERN RECOGNITION METHODS , 1990 .

[7]  Éric Anquetil,et al.  Eager interpretation of on-line hand-drawn structured documents: The DALI methodology , 2009, Pattern Recognit..

[8]  Alan C. Shaw,et al.  Parsing of Graph-Representable Pictures , 1970, JACM.

[9]  Jack Bresenham,et al.  Algorithm for computer control of a digital plotter , 1965, IBM Syst. J..

[10]  Randall Davis,et al.  LADDER, a sketching language for user interface developers , 2005, Comput. Graph..

[11]  Horst Bunke,et al.  Syntactic and structural pattern recognition : theory and applications , 1990 .

[12]  Donald E. Knuth,et al.  On the Translation of Languages from Left to Right , 1965, Inf. Control..

[13]  James A. Landay,et al.  Interactive sketching for the early stages of user interface design , 1995, CHI '95.

[14]  Salvatore Tabbone,et al.  Stable and Robust Vectorization: How to Make the Right Choices , 1999, GREC.

[15]  Christian Viard-Gaudin,et al.  On-line hand-drawn electric circuit diagram recognition using 2D dynamic programming , 2009, Pattern Recognit..

[16]  Gennaro Costagliola,et al.  Extended positional grammars , 2000, Proceeding 2000 IEEE International Symposium on Visual Languages.

[17]  Stephen H. Unger A global parser for context-free phrase structure grammars , 1968, CACM.

[18]  Genny Tortora,et al.  Automatic parser generation for pictorial languages , 1993, Proceedings 1993 IEEE Symposium on Visual Languages.

[19]  Jay Earley,et al.  An efficient context-free parsing algorithm , 1970, Commun. ACM.

[20]  Genny Tortora,et al.  Relation grammars and their application to multi-dimensional languages , 1991, J. Vis. Lang. Comput..

[21]  Louis Weitzman,et al.  Relational Grammars: Theory and Practice in a Visual Language Interface for Process Modeling , 1996 .

[22]  Dorothea Blostein,et al.  A Graph-Rewriting Paradigm for Discrete Relaxation: Application to Sheet-Music Recognition , 1998, Int. J. Pattern Recognit. Artif. Intell..

[23]  Tadao Kasami,et al.  A Syntax-Analysis Procedure for Unambiguous Context-Free Grammars , 1969, J. ACM.

[24]  Michele Risi,et al.  A Parsing Technique for Sketch Recognition Systems , 2004, 2004 IEEE Symposium on Visual Languages - Human Centric Computing.

[25]  N. Hari Narayanan,et al.  Visual language theory: towards a human computer interaction perspective , 1998 .

[26]  Ernest Valveny,et al.  Symbol Recognition: Current Advances and Perspectives , 2001, GREC.

[27]  Andy Schürr,et al.  Defining and Parsing Visual Languages with Layered Graph Grammars , 1997, J. Vis. Lang. Comput..

[28]  Levent Burak Kara,et al.  Hierarchical parsing and recognition of hand-sketched diagrams , 2004, UIST '04.

[29]  J. Jorge,et al.  Fuzzy adjacency languages and applications to spatial reasoning , 1996, Proceedings of IEEE 5th International Fuzzy Systems.

[30]  James A. Landay,et al.  Sketching Interfaces: Toward More Human Interface Design , 2001, Computer.

[31]  Eric J. Golin,et al.  Parsing visual languages with picture layout grammars , 1991, J. Vis. Lang. Comput..

[32]  Horst Bunke,et al.  A Parser for Context Free Plex Grammars , 1989, WG.

[33]  James V. Mahoney,et al.  Three main concerns in sketch recognition and an approach to addressing them , 2002 .

[34]  Michele Risi,et al.  Sketch Grammars: a formalism for describing and recognizing diagrammatic sketch languages , 2005, Eighth International Conference on Document Analysis and Recognition (ICDAR'05).

[35]  Randall Davis,et al.  HMM-based efficient sketch recognition , 2005, IUI.

[36]  Bertrand Coüasnon DMOS, a generic document recognition method: application to table structure analysis in a general and in a specific way , 2005, International Journal of Document Analysis and Recognition (IJDAR).

[37]  Ernest Valveny,et al.  A Platform to Extract Knowledge from Graphic Documents. Application to an Architectural Sketch Understanding Scenario , 2004, Document Analysis Systems.

[38]  Randall Davis,et al.  Tahuti: a geometrical sketch recognition system for UML class diagrams , 2006, SIGGRAPH Courses.

[39]  Stuart Russell,et al.  Statistical Visual Language Models for Ink Parsing , 2002 .

[40]  Christine Alvarado,et al.  Dynamically constructed Bayes nets for multi-domain sketch understanding , 2005, IJCAI.

[41]  Jerome Feder,et al.  Plex languages , 1971, Inf. Sci..