From Inductive to Deductive: LLMs-Based Qualitative Data Analysis in Requirements Engineering

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Shah, Syed Tauhid Ullah, Hussein, Mohamad, Barcomb, Ann, Moshirpour, Mohammad
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866910920503984128
author Shah, Syed Tauhid Ullah
Hussein, Mohamad
Barcomb, Ann
Moshirpour, Mohammad
author_facet Shah, Syed Tauhid Ullah
Hussein, Mohamad
Barcomb, Ann
Moshirpour, Mohammad
contents Requirements Engineering (RE) is essential for developing complex and regulated software projects. Given the challenges in transforming stakeholder inputs into consistent software designs, Qualitative Data Analysis (QDA) provides a systematic approach to handling free-form data. However, traditional QDA methods are time-consuming and heavily reliant on manual effort. In this paper, we explore the use of Large Language Models (LLMs), including GPT-4, Mistral, and LLaMA-2, to improve QDA tasks in RE. Our study evaluates LLMs' performance in inductive (zero-shot) and deductive (one-shot, few-shot) annotation tasks, revealing that GPT-4 achieves substantial agreement with human analysts in deductive settings, with Cohen's Kappa scores exceeding 0.7, while zero-shot performance remains limited. Detailed, context-rich prompts significantly improve annotation accuracy and consistency, particularly in deductive scenarios, and GPT-4 demonstrates high reliability across repeated runs. These findings highlight the potential of LLMs to support QDA in RE by reducing manual effort while maintaining annotation quality. The structured labels automatically provide traceability of requirements and can be directly utilized as classes in domain models, facilitating systematic software design.
format Preprint
id arxiv_https___arxiv_org_abs_2504_19384
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle From Inductive to Deductive: LLMs-Based Qualitative Data Analysis in Requirements Engineering
Shah, Syed Tauhid Ullah
Hussein, Mohamad
Barcomb, Ann
Moshirpour, Mohammad
Software Engineering
Artificial Intelligence
Requirements Engineering (RE) is essential for developing complex and regulated software projects. Given the challenges in transforming stakeholder inputs into consistent software designs, Qualitative Data Analysis (QDA) provides a systematic approach to handling free-form data. However, traditional QDA methods are time-consuming and heavily reliant on manual effort. In this paper, we explore the use of Large Language Models (LLMs), including GPT-4, Mistral, and LLaMA-2, to improve QDA tasks in RE. Our study evaluates LLMs' performance in inductive (zero-shot) and deductive (one-shot, few-shot) annotation tasks, revealing that GPT-4 achieves substantial agreement with human analysts in deductive settings, with Cohen's Kappa scores exceeding 0.7, while zero-shot performance remains limited. Detailed, context-rich prompts significantly improve annotation accuracy and consistency, particularly in deductive scenarios, and GPT-4 demonstrates high reliability across repeated runs. These findings highlight the potential of LLMs to support QDA in RE by reducing manual effort while maintaining annotation quality. The structured labels automatically provide traceability of requirements and can be directly utilized as classes in domain models, facilitating systematic software design.
title From Inductive to Deductive: LLMs-Based Qualitative Data Analysis in Requirements Engineering
topic Software Engineering
Artificial Intelligence
url https://arxiv.org/abs/2504.19384