Hybrid validation of use cases: rule-based analysis, semantic NLP, and ontological grounding of LLM

Alina Karpova, Liliya Eranosyan

Abstract


Use case validation plays an important role in software development. One of the main tasks of system analysts is to prevent errors in use cases before they lead to a dramatic increase in the cost of fixes. However, manual validation often suffers from incompleteness, ambiguity, logical contradictions, subjectivity of assessments, inconsistency of the process, and high time costs. According to a survey of system analysts (N=6), the average time for manual validation of a single use case is 50 minutes, and the proportion of defects caused by poor requirements reaches 38%. This paper presents a hybrid approach to automated use case validation that combines rule-based analysis (25 formal rules based on INCOSE and ISO/IEC 29148), semantic analysis using the Sentence-BERT model (similarity thresholds: 0.85 for duplicate detection, 0.40 for goal relevance), and ontological grounding of LLMs. A colored use case ontology (6 classes, 10 properties, 12 axioms) serves as a formal grounding mechanism for LLMs, ensuring traceability and determinism. The developed software module supports three input methods (structured form, JSON, file upload) and exports structured reports. Verification on 28 test cases confirmed 100% correctness, while validation on a real-world scenario demonstrated 100% defect detection. The implementation reduces validation time per use case from 50 minutes to 30 seconds and decreases requirements-related defects from 38% to 10%.


Full Text:

PDF (Russian)

References


Boehm B., Basili V. Software Defect Reduction Top 10 List // IEEE Computer. 2001. Vol. 34, No. 1. P. 135–137.

Pohl K. Requirements Engineering: Fundamentals, Principles, and Techniques. Springer, 2010. 813 p.

Cockburn A. Writing Effective Use Cases. Addison-Wesley, 2001. 304 p.

ISO/IEC/IEEE 29148:2018. Systems and software engineering — Life cycle processes — Requirements engineering.

Reimers N., Gurevych I. Sentence‑BERT: Sentence Embeddings using Siamese BERT‑Networks // Proceedings of EMNLP‑2019. 2019. P. 3982–3992.

Sinha A., et al. Text2Test: Automated Inspection of Natural Language Use Cases // International Conference on Software Testing, Verification and Validation (ICST). 2009. P. 1–10.

Evaluating LLMs for automated requirement and test case generation in railway signaling systems [Electronic resource]. URL: https://repository.utm.md/handle/5014/35278

Natural Language Processing (NLP) [Electronic resource] // Vitebsk State Technological University. URL: https://it.vstu.by/courses/information_systems/Development_and_optimization_of_intellectual_information_systems/practice/natural_language_processing/

Khoroshevsky V.F. Designing software systems under ontology management: models, methods, implementations // Design Ontology. 2019. Vol. 9, No. 4 (34). P. 278–298.

INCOSE. Guide to Writing Requirements. International Council on Systems Engineering, 2022. 115 p.

Automatic use case identification in large requirements specifications [Electronic resource] // Friedrich-Alexander-Universität Erlangen-Nürnberg. 2025. URL: https://www.mfk.tf.fau.eu/2025/07/22/automatic-use-case-identification-in-large-requirements-specifications/


Refbacks

  • There are currently no refbacks.


Abava  Кибербезопасность Monetec 2026 СНЭ

ISSN: 2307-8162