Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Evaluating Generative AI as a Support for the Detection of Practically Relevant Requirements Smells: An Empirical Evaluation Using GPT-5.4 and Claude Sonnet 4.5
Blekinge Institute of Technology, Faculty of Computing, Department of Software Engineering.
Blekinge Institute of Technology, Faculty of Computing, Department of Software Engineering.
2026 (English)Independent thesis Advanced level (degree of Master (Two Years)), 20 credits / 30 HE creditsStudent thesis
Abstract [en]

Background: Natural-language requirements are accessible to technical and non-technical stakeholders, but they are susceptible to quality problems, termed requirements smells, that contribute to misunderstanding and rework. Rule-based and natural-language-processing detectors handle lexical and syntactic problems well, but less well when a problem depends on context or relationships between requirements. Large language models can read a requirement in context and explain a classification, but that capability needs empirical evaluation.

Objectives: This thesis evaluates how accurately Generative AI detects ambiguity and inconsistency, and whether its explanations are useful to a requirements analyst.

Methods: Following Design Science Research, the ReqSmell prototype classified requirements with GPT-5.4 and Claude Sonnet 4.5 under identical prompts. The prompts contained the operational definition and illustrative worked examples, and no labelled instances from the evaluation set. Ambiguity was evaluated on 80 requirements from the public FR-NFR dataset, and inconsistency on 371 candidate pairs. We compared classifications with human-reviewed reference labels using precision, recall, and F1-score. Twelve generated explanations were examined descriptively.

Results: Both models favoured recall for ambiguity. GPT-5.4 reached precision 0.377, recall 0.839, and F1 0.520. Claude Sonnet 4.5 reached precision 0.380, re-call 0.613, and F1 0.469. Both flagged more requirements than the reference labels supported. Of the 371 pairs, of which 35 were reference-positive, GPT-5.4 flagged 25 pairs, all supported: precision 1.00, recall 0.714, F1 0.833. Claude Sonnet 4.5 flagged 39 pairs, of which 35 were supported: precision 0.897, recall 1.000, F1 0.946. Claude detected every reference-positive pair. GPT-5.4 missed ten, and Claude produced four false positives. There were no shared misses. The sampled explanations generally identified the wording responsible for a detection.

Conclusions: Detection depended on smell type and model. High precision did not give complete coverage, and complete recall against these labels did not mean that every positive pair was a logical contradiction under the study definition. The findings support Generative AI as a screening aid for analyst review, not as a replacement for it. No rule-based detector was run on the same data, so comparison with rule-based approaches remains contextual.

Place, publisher, year, edition, pages
2026. , p. 84
Keywords [en]
Requirements smells, generative AI, large language models, ambiguity, inconsistency, requirements quality
National Category
Software Engineering
Identifiers
URN: urn:nbn:se:bth-30678OAI: oai:DiVA.org:bth-30678DiVA, id: diva2:2114254
Subject / course
PA2534 Master's Thesis (120 credits) in Software Engineering
Educational program
PAASW Master's Programme in Software Engineering 120,0 hp
Supervisors
Examiners
Available from: 2026-11-02 Created: 2026-10-31 Last updated: 2026-11-02Bibliographically approved

Open Access in DiVA

fulltext(13956 kB)0 downloads
File information
File name FULLTEXT01.pdfFile size 13956 kBChecksum SHA-512
b395126ff949beaf394e7dde772722acbbb23c74a59a3f122377eb1e8e918fc2b06b2f6ec7cd0f0c8d0437bbe5ba232d41198b4c164ff42761af14ddb32a0e89
Type fulltextMimetype application/pdf

By organisation
Department of Software Engineering
Software Engineering

Search outside of DiVA

GoogleGoogle Scholar
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 6 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf