Skip to main content
QUICK REVIEW

[Paper Review] Automatically detecting the conflicts between software requirements based on finer semantic analysis

Weize Guo, Li Zhang|arXiv (Cornell University)|Mar 3, 2021
Software Engineering ResearchComputer Science36 references10 citations
TL;DR

This paper proposes FSARC, a novel approach for automatically detecting conflicts in natural language functional requirements by analyzing their finer semantic structures. Using a semantic meta-model and NLP techniques like POS and dependency parsing, FSARC identifies seven conflict types with 100% recall and 83.88% average precision on real-world datasets, offering a practical solution for early requirement validation without relying on formal templates or external artifacts.

ABSTRACT

Context: Conflicts between software requirements bring uncertainties to product development. Some great approaches have been proposed to identify these conflicts. However, they usually require the software requirements represented with specific templates and/or depend on other external source which is often uneasy to build for lots of projects in practice. Objective: We aim to propose an approach Finer Semantic Analysis-based Requirements Conflict Detector (FSARC) to automatically detecting the conflicts between the given natural language functional requirements by analyzing their finer semantic compositions. Method: We build a harmonized semantic meta-model of functional requirements with the form of eight-tuple. Then we propose algorithms to automatically analyze the linguistic features of requirements and to annotate the semantic elements for their semantic model construction. And we define seven types of conflicts as long as their heuristic detecting rules on the ground of their text pattern and semantical dependency. Finally, we design and implement the algorithm for conflicts detection. Results: The experiment with four requirement datasets illustrates that the recall of FSARC is nearly 100% and the average precision is 83.88% on conflicts detection. Conclusion: We provide a useful tool for detecting the conflicts between natural language functional requirements to improve the quality of the final requirements set. Besides, our approach is capable of transforming the natural language functional requirements into eight semantic tuples, which is useful not only the detection of the conflicts between requirements but also some other tasks such as constructing the association between requirements and so on.

Motivation & Objective

  • To address the challenge of detecting conflicts in natural language functional requirements, which are prevalent in industry but often overlooked by existing tools.
  • To eliminate dependency on formal templates or external artifacts like code or performance constraints, which are typically unavailable early in development.
  • To develop an automated, scalable method for identifying conflicts directly from raw natural language requirements.
  • To provide a harmonized semantic meta-model that captures functional requirements' core elements for improved analysis and reuse.
  • To enable practical conflict detection in real-world projects by focusing on common, real-world requirement formats such as 'shall'-style statements.

Proposed method

  • Constructing a harmonized eight-tuple semantic meta-model to represent functional requirements' finer semantic components.
  • Applying part-of-speech (POS) tagging and semantic dependency parsing (SDP) to extract linguistic features from natural language requirements.
  • Designing heuristic rules to automatically label semantic elements (e.g., subject, action, object) based on NLP outputs.
  • Defining seven distinct conflict types based on text patterns and semantic dependencies, such as resource contention and input-output interlock.
  • Implementing a conflict detection algorithm that checks for rule-based matches across annotated semantic tuples.
  • Validating the approach using five open requirement datasets from diverse domains, including UAV, WorldVista, Telecom Management, and Solar Power Supply.

Experimental results

Research questions

  • RQ1Can a fine-grained semantic meta-model accurately represent the core components of natural language functional requirements?
  • RQ2How effectively can NLP techniques like POS and SDP identify and label semantic elements in real-world requirement texts?
  • RQ3Can predefined heuristic rules detect seven types of conflicts with high recall and precision in diverse requirement sets?
  • RQ4To what extent is the approach generalizable across different domains and requirement formats without requiring formal templates?
  • RQ5How does the performance of the conflict detection algorithm compare to manual labeling in terms of precision and recall?

Key findings

  • The semantic element labeling algorithm achieved an average accuracy of 94.93% across three open requirement datasets, demonstrating strong performance in semantic annotation.
  • The conflict detection algorithm achieved 100.00% recall and 83.88% average precision on four diverse requirement datasets, indicating near-complete detection of known conflicts.
  • Only one false positive was detected in the evaluation, which stemmed from an incorrect entity recognition and could be corrected with improved parsing.
  • The approach demonstrated high generalizability across different domains, including aerospace, telecommunications, and energy systems, with consistent performance.
  • Manual labeling was validated through dual-review by two authors, reducing subjectivity and enhancing reliability of the ground truth.
  • The method outperformed existing approaches by not requiring external artifacts like executable code or performance constraints, making it suitable for early-phase requirement validation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.