Self-Elicitation of Requirements with Automated GUI Prototyping

Kristian Kolthoff, Christian Bartelt, Simone Paolo Ponzetto, Kurt Schneider · DOI

Introduction

Requirements Elicitation (RE) remains one of the most challenging phases of software development. Non-technical stakeholders often struggle to articulate their needs in the abstract, frequently falling victim to the "I'll know it when I see it" syndrome. Traditionally, this gap is bridged by human requirements analysts who create manual GUI prototypes to validate user ideas. However, this process is resource-intensive, slow, and prone to communication bottlenecks.

Presented at the 39th IEEE/ACM International Conference on Automated Software Engineering (ASE '24), SERGUI (Self-Elicitation of Requirements with GUI) introduces a paradigm shift: Self-Elicitation of Requirements (SER). By leveraging large-scale GUI retrieval and Large Language Models (LLMs), SERGUI allows users to interactively build and refine GUI prototypes through natural language dialogue, effectively acting as an automated requirements consultant.

The SERGUI Framework

SERGUI is designed to provide users with immediate visual stimuli to catalyze the elicitation process. The system is built upon four primary technical pillars:

  1. Dialogue-Based Interaction Model: Users interact with a conversational agent using Natural Language Requirements (NLR). Instead of static forms, the system responds with relevant GUI screens or specific UI components that match the user's description.
  2. NL-Based GUI Ranking: To ensure high-quality retrieval, SERGUI employs an ensemble model. It utilizes SentenceBERT to map user text to raw GUI metadata (such as resource IDs) and incorporates the Screen2Words (S2W) dataset. This combination allows the system to bridge the "semantic gap" between technical code labels and high-level human descriptions.
  3. NL-Based Feature Ranking: Beyond full-screen retrieval, the system can isolate specific "aspect-GUIs." This allows users to drill down into individual features—such as a specific search bar or a product carousel—to refine their prototype layout with granular precision.
  4. LLM-Based Proactive Recommendation: Utilizing GPT-4, SERGUI goes beyond reactive search. It analyzes the current prototyping context to suggest "latent" requirements—features the user might have overlooked. For instance, if a user is building a shopping interface, the system might proactively suggest a "wishlist" or "order tracking" component, then retrieve real-world examples from its database to visualize the suggestion.

Data and Implementation

The system's intelligence is grounded in a massive repository of mobile interface data. The primary source is the Rico Dataset, which contains over 66,000 UI screenshots and hierarchies from Android applications. To improve the quality of this data, the authors implemented a custom Convolutional Neural Network (CNN) to filter out "noisy" screens, such as those containing advertisements or open system menus, resulting in a refined set of approximately 48,000 GUIs.

Furthermore, the integration of the Screen2Words dataset provides manually crafted natural language summaries for these screens, ensuring that the retrieval engine understands the functional intent of a screen rather than just its technical structure.

Evaluation and Key Results

The effectiveness of SERGUI was evaluated through a preliminary study involving 12 participants who generated 72 distinct GUI prototypes. The results indicate a high level of accuracy and user satisfaction:

  • Retrieval Precision: The system achieved a Mean Average Precision (MAP) of 0.741, indicating that roughly 75% of the suggested features were relevant to the users' goals.
  • Ranking Accuracy: A Mean Reciprocal Rank (MRR) of 0.816 suggests that the most relevant UI components consistently appeared at the top of the recommendation list.
  • Reranking Utility: In 68% of cases, users successfully identified a more suitable GUI after the system performed feature-based reranking. On average, this reranking improved the position of relevant screens by 61 spots in the search results.

Discussion and Future Work

SERGUI demonstrates that visual stimuli are powerful drivers for requirement discovery. By providing a "proactive" rather than purely "reactive" assistant, the tool helps users uncover requirements they might not have initially considered.

However, the authors note several areas for growth. Currently, the system is optimized for the Android ecosystem due to its reliance on the Rico dataset; expanding this to web and desktop platforms is a logical next step. Additionally, while the current output consists of low-fidelity collections of screens, future iterations could focus on generating interactive, high-fidelity prototypes that are closer to production-ready specifications. Finally, larger-scale user studies will be necessary to determine how effectively these self-elicited prototypes translate into final software products.

Summary updated

BibTeX
@inproceedings{kolthoff2024self,
  author = {Kristian Kolthoff and Christian Bartelt and Simone Paolo Ponzetto and Kurt Schneider},
  title = {{Self-Elicitation of Requirements with Automated GUI Prototyping}},
  booktitle = {ASE},
  year = {2024},
  doi = {10.1145/3691620.3695350},
}
Figure