A Model-based Approach to Gamify the Learning of Modeling

Valerio Cosentino, Sébastien Gérard, Jordi CabotSCME-iStarT@ER 2017 · OpenReview

Introduction

Mastering conceptual modeling languages such as UML, Entity-Relationship (ER) diagrams, or SQL is a cornerstone of software engineering education. However, the steep learning curve and abstract nature of these tasks often lead to low student engagement and high drop-off rates. While gamification—the integration of game mechanics like points, badges, and levels into non-game contexts—has succeeded in other educational fields, its application to conceptual modeling has been limited. Existing solutions are often hardcoded for specific languages, rely on rigid answer-matching, or lack robust security and privacy features.

This paper presents a generic, model-driven framework designed to gamify the learning process directly within professional modeling environments like Eclipse. By leveraging Model-Driven Engineering (MDE) principles, the framework allows instructors to create extensible and engaging learning scenarios for virtually any modeling language.

Methodology

The core of the proposed approach is a model-based architecture. Rather than hardcoding game logic, the authors use models to define game mechanics, project structures, and user progress.

High-level architecture of the model-based gamification framework showing the workflow for designers, end-users, and analysts.

Key components include:

  • Game Metamodel & DSL: A custom domain-specific language (DSL) enables instructors to define levels, groups, achievements, and rewards (points and badges).
  • OCL-based Evaluation: Instead of matching student work against a static "correct" model, the framework uses Object Constraint Language (OCL) to evaluate the properties of the student's model. This allows for multiple valid solutions as long as they satisfy the defined constraints.
  • Gamification Environment: Implemented as an Eclipse plugin, the system monitors file changes, parses student work into an Abstract Syntax Tree (AST), and provides real-time feedback through notifications and dashboards.
  • Security and Privacy: To maintain competitive integrity, the system employs internal hash signatures and encrypted status models to prevent cheating. Telemetry is strictly opt-in to respect student privacy.

Key Insights

  • Extensibility through MDE: By treating game rules and student projects as models, the engine is language-agnostic. It can be adapted to any language with a compatible parser.
  • Flexible Constraint-Based Evaluation: OCL-based checking is computationally efficient and more flexible than traditional answer-key matching, accommodating diverse problem-solving styles.
  • Integrity by Design: Addressing cheating as a primary concern ensures that the gamified experience remains fair and motivating, a factor often overlooked in educational tools.

Implementation and Results

The framework has been implemented as a suite of open-source Eclipse plugins. To demonstrate its versatility, the authors applied it to two distinct domains: visual modeling with UML (using the Papyrus tool) and textual modeling with SQL.

The gamification interface provides users with real-time notifications for achievements and a comprehensive statistics dashboard.

The implementation successfully integrates gamification elements—such as real-time feedback and progress tracking—directly into the student's workflow, providing a seamless transition between learning and practice.

Limitations and Future Directions

While the framework is architecturally sound, it currently lacks empirical data from user studies to quantify its impact on learning outcomes. Additionally, authoring OCL constraints can be challenging for some instructors.

Future work focuses on:

  • Graphical Rule Definition: Developing a visual, pattern-based language to simplify the creation of game tasks.
  • Predefined Content: Offering out-of-the-box learning paths and exercises.
  • Advanced Analytics: Enhancing monitoring tools to provide instructors with deeper insights into student progress and common hurdles.

Summary updated

BibTeX
@inproceedings{cosentino2017model,
  author = {Valerio Cosentino and Sébastien Gérard and Jordi Cabot},
  title = {{A Model-based Approach to Gamify the Learning of Modeling}},
  booktitle = {SCME-iStarT@ER},
  year = {2017},
  url = {https://openreview.net/forum?id=nROM3vS3O7},
}
Figure