An automated approach for requirement classification using machine learning

被引:0
作者
Hashmi, Amber Sarwar [1 ]
Kiani, Azaz Ahmed [2 ]
Tariq, Junaid [2 ]
Rauf, Huma [1 ]
Hafeez, Yaser [3 ]
Ahmed, Fahad Burhan [3 ]
机构
[1] Rawalpindi Women Univ, Rawalpindi, Pakistan
[2] NUML, Rawalpindi, Pakistan
[3] Pir Mehr Ali Shah Arid Agr Univ, Rawalpindi, Pakistan
关键词
Requirement engineering; Requirement classification; Contextual factors; Machine learning;
D O I
10.1007/s11334-025-00613-5
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
In today's dynamic and fast-paced software development landscape, the accurate classification of requirements, particularly distinguishing between functional requirements (FR) and non-functional requirements (NFR), remains a significant challenge. Misclassification often leads to architectural mismatches, increased rework, and delays. Existing machine learning (ML)-based methods often overlook contextual elements, like stakeholder knowledge, organizational structures, and environmental limitations, which may result in incorrect classifications that need rework on large-scale projects. To address this, we propose a context-aware approach that incorporates contextual factor mapping into the classification and feature selection process. We test two text vectorization methods, Bag of Words (BoW) and Chi-Squared (CHI2), and three classifiers, Logistic Regression (LR), Multinomial Na & iuml;ve Bayes (MNB), and Support Vector Machines (SVM), using the PROMISE_exp dataset. BoW + MNB leads with F1 = 0.73 in an 11-class NFR job, earns an F1 score of 0.92 in binary FR/NFR classification, and both SVM-CHI2 and LR-CHI2 produce F1 = 0.77 in the combined 12-class scenario. These findings demonstrate that adding contextual information significantly improves classification accuracy by lowering misclassification rates and offering practical recommendations to cut down on manual labor and rework. Consequently, our study lays a solid basis for further research on context-aware requirements engineering.
引用
收藏
页数:11
相关论文
共 32 条
[1]   What Works Better? A Study of Classifying Requirements [J].
Abad, Zahra Shakeri Hossein ;
Karras, Oliver ;
Ghazi, Parisa ;
Glinz, Martin ;
Ruhe, Guenther ;
Schneider, Kurt .
2017 IEEE 25TH INTERNATIONAL REQUIREMENTS ENGINEERING CONFERENCE (RE), 2017, :496-501
[2]  
Abubakar HD., 2022, SLU J SCI TECHNOL, V4, P27, DOI [10.56471/slujst.v4i.266, DOI 10.56471/SLUJST.V4I.266]
[3]   Reasoning with contextual requirements: Detecting inconsistency and conflicts [J].
Ali, Raian ;
Dalpiaz, Fabiano ;
Giorgini, Paolo .
INFORMATION AND SOFTWARE TECHNOLOGY, 2013, 55 (01) :35-57
[4]   Deep Learning-Based Resolution Prediction of Software Enhancement Reports [J].
Arshad, Muhammad Ali ;
Huang, Zhiqiu ;
Riaz, Adnan ;
Hussain, Yasir .
2021 IEEE 11TH ANNUAL COMPUTING AND COMMUNICATION WORKSHOP AND CONFERENCE (CCWC), 2021, :492-499
[5]   Exploratory testing: Do contextual factors influence software fault identification? [J].
Asplund, Fredrik .
INFORMATION AND SOFTWARE TECHNOLOGY, 2019, 107 :101-111
[6]  
Binkhonain M., 2019, Expert Syst. Appl. X, V1, P100001, DOI DOI 10.1016/J.ESWAX.2019.100001
[7]  
Botangen KA, 2018, P AUSTR COMP SCI WE, P1
[8]   The situational factors that affect the software development process: Towards a comprehensive reference framework [J].
Clarke, Paul ;
O'Connor, Rory V. .
INFORMATION AND SOFTWARE TECHNOLOGY, 2012, 54 (05) :433-447
[9]  
Feurer Matthias, 2022, JOURNAL OF MACHINE LEARNING RESEARCH, V23
[10]   The Influence of Human Aspects on Requirements Engineering-related Activities: Software Practitioners' Perspective [J].
Hidellaarachchi, Dulaji ;
Grundy, John ;
Hoda, Rashina ;
Mueller, Ingo .
ACM TRANSACTIONS ON SOFTWARE ENGINEERING AND METHODOLOGY, 2023, 32 (05)