Effects of using examples on structural model comprehension: a controlled experiment

We present a controlled experiment for the empirical evaluation of Example-Driven Modeling (EDM), an approach that systematically uses examples for model comprehension and domain knowledge transfer. We conducted the experiment with 26 graduate and undergraduate students from electrical and computer engineering (ECE), computer science (CS), and software engineering (SE) programs at the University of Waterloo. The experiment involves a domain model, with UML class diagrams representing the domain abstractions and UML object diagrams representing examples of using these abstractions. The goal is to provide empirical evidence of the effects of suitable examples in model comprehension, compared to having model abstractions only, by having the participants perform model comprehension tasks. Our results show that EDM is superior to having model abstractions only, with an improvement of 39% for diagram completeness, 30% for questions completeness, 71% for efficiency, and a reduction of 80% for the number of mistakes. We provide qualitative results showing that participants receiving model abstractions augmented with examples experienced lower perceived difficulty in performing the comprehension tasks, higher perceived confidence in their tasks' solutions, and asked fewer clarifying domain questions, a reduction of 90%. We also present participants' feedback regarding the usefulness of the provided examples, their number and types, as well as, the use of partial examples.

[1]  Rick Salay,et al.  Language Independent Refinement Using Partial Modeling , 2012, FASE.

[2]  P. Pirolli Effects of Examples and Their Explanations in a Lesson n Recursion: A Production System Analysis , 1991 .

[3]  Michal Antkiewicz,et al.  Partial Instances via Subclassing , 2013, SLE.

[4]  Marco Torchiano Empirical assessment of UML static object diagrams , 2004, Proceedings. 12th IEEE International Workshop on Program Comprehension, 2004..

[5]  Jeffrey G. Gray,et al.  Creating visual Domain-Specific Modeling Languages from end-user demonstration , 2012, 2012 4th International Workshop on Modeling in Software Engineering (MISE).

[6]  Natalia Juristo Juzgado,et al.  Basics of Software Engineering Experimentation , 2010, Springer US.

[7]  Rajesh Parekh,et al.  Grammar Inference Automata Induction and Language Acquisition , 2005 .

[8]  Jeremy Dick,et al.  Automating the Generation and Sequencing of Test Cases from Model-Based Specifications , 1993, FME.

[9]  R. Likert “Technique for the Measurement of Attitudes, A” , 2022, The SAGE Encyclopedia of Research Design.

[10]  Michal Antkiewicz,et al.  Example-Driven Modeling using Clafer , 2013, MDEBE@MoDELS.

[11]  B. L. Welch The generalisation of student's problems when several different population variances are involved. , 1947, Biometrika.

[12]  H. H. Ku,et al.  Contributions to Probability and Statistics, Essays in Honor of Harold Hotelling. , 1961 .

[13]  Rini van Solingen,et al.  Goal Question Metric (GQM) Approach , 2002 .

[14]  Shari Lawrence Pfleeger,et al.  Preliminary Guidelines for Empirical Research in Software Engineering , 2002, IEEE Trans. Software Eng..

[15]  Jonathan I. Maletic,et al.  An empirical study on the comprehension of stereotyped UML class diagram layouts , 2009, 2009 IEEE 17th International Conference on Program Comprehension.

[16]  K. Holyoak,et al.  Schema induction and analogical transfer , 1983, Cognitive Psychology.

[17]  Jeffrey Parsons,et al.  How UML is used , 2006, CACM.

[18]  Søren Lauesen,et al.  Preventing Requirement Defects: An Experiment in Process Improvement , 2001, Requirements Engineering.

[19]  Slava Kalyuga,et al.  Knowledge Elaboration: A Cognitive Load Perspective , 2009 .

[20]  Jonathan I. Maletic,et al.  Assessing the Comprehension of UML Class Diagrams via Eye Tracking , 2007, 15th IEEE International Conference on Program Comprehension (ICPC '07).

[21]  Shelly Park Communicating domain knowledge through example-driven story testing , 2011 .

[22]  Marco Torchiano,et al.  The Role of Experience and Ability in Comprehension Tasks Supported by UML Stereotypes , 2007, 29th International Conference on Software Engineering (ICSE'07).

[23]  Mark Rouncefield,et al.  Empirical assessment of MDE in industry , 2011, 2011 33rd International Conference on Software Engineering (ICSE).

[24]  Ariadi Nugroho,et al.  Level of detail in UML models and its impact on model comprehension: A controlled experiment , 2009, Inf. Softw. Technol..

[25]  June M. Verner,et al.  Why did your project fail? , 2009, Commun. ACM.

[26]  David A. Carrington,et al.  UML Class Diagram Syntax: An Empirical Study of Comprehension , 2001, InVis.au.

[27]  Richard J. Lipton,et al.  Hints on Test Data Selection: Help for the Practicing Programmer , 1978, Computer.

[28]  Marco Torchiano,et al.  On the effectiveness of the UML object diagrams: A replicated experiment , 2011 .

[29]  Jon Whittle What do 449 MDE Practitioners Think About MDE? , 2011, EESSMod.

[30]  M. Gick,et al.  Do contrasting examples facilitate schema acquisition and analogical transfer , 1992 .

[31]  Michal Antkiewicz,et al.  Example-Driven Modeling: Model = Abstractions + Examples , 2013, 2013 35th International Conference on Software Engineering (ICSE).

[32]  T. Gog,et al.  Effects of worked examples, example-problem, and problem-example pairs on novices learning , 2011 .

[33]  Paul J. Feltovich,et al.  Categorization and Representation of Physics Problems by Experts and Novices , 1981, Cogn. Sci..

[34]  A. Jefferson Offutt,et al.  Generating Tests from UML Specifications , 1999, UML.

[35]  Anneke Kleppe,et al.  The Object Constraint Language: Getting Your Models Ready for MDA , 2003 .

[36]  Robert L. Goldstone,et al.  The Transfer of Scientific Principles Using Concrete and Idealized Simulations , 2005, Journal of the Learning Sciences.

[37]  Silke Schworm,et al.  Learning by Solved Example Problems: Instructional Explanations Reduce Self-Explanation Activity , 2002 .

[38]  Marian Petre,et al.  UML in practice , 2013, 2013 35th International Conference on Software Engineering (ICSE).

[39]  Kacper Bak Modeling and Analysis of Software Product Line Variability in Clafer , 2013 .

[40]  Ryszard S. Michalski,et al.  A theory and methodology of inductive learning , 1993 .

[41]  Claes Wohlin,et al.  Experimentation in software engineering: an introduction , 2000 .

[42]  David S. Janzen,et al.  Test-driven development concepts, taxonomy, and future direction , 2005, Computer.

[43]  Krzysztof Czarnecki,et al.  Feature and Meta-Models in Clafer: Mixed, Specialized, and Coupled , 2010, SLE.

[44]  Michal Antkiewicz,et al.  Clafer: unifying class and feature modeling , 2014, Software & Systems Modeling.