Semi-automated Software Requirements Categorisation using Machine Learning Algorithms
Open Access
- 12 December 2023
- journal article
- research article
- Published by Faculty of Electrical Engineering, Computer Science and Information Technology Osijek in International journal of electrical and computer engineering systems
- Vol. 14 (10) , 1107-1114
Abstract
Requirement engineering is a mandatory phase of the Software development life cycle (SDLC) that includes defining and documenting system requirements in the Software Requirements Specification (SRS). As the complexity increases, it becomes difficult to categorise the requirements into functional and non-functional requirements. Presently, the dearth of automated techniques necessitates reliance on labour-intensive and time-consuming manual methods for this purpose. This research endeavours to address this gap by investigating and contrasting two prominent feature extraction techniques and their efficacy in automating the classification of requirements. Natural language processing methods are used in the text pre-processing phase, followed by the Term Frequency – Inverse Document Frequency (TF-IDF) and Word2Vec for feature extraction for further understanding. These features are used as input to the Machine Learning algorithms. This study compares existing machine learning algorithms and discusses their correctness in categorising the software requirements. In our study, we have assessed the algorithms Decision Tree (DT), Random Forest (RF), Logistic Regression (LR), Neural Network (NN), K-Nearest Neighbour (KNN) and Support Vector Machine (SVM) on the precision and accuracy parameters. The results obtained in this study showed that the TF-IDF feature selection algorithm performed better in categorising requirements than the Word2Vec algorithm, with an accuracy of 91.20% for the Support Vector Machine (SVM) and Random Forest algorithm as compared to 87.36% for the SVM algorithm. A 3.84% difference is seen between the two when applied to the publicly available PURE dataset. We believe these results will aid developers in building products that aid in requirement engineering.Keywords
This publication has 6 references indexed in Scilit:
- FNReq-Net: A hybrid computational framework for functional and non-functional requirements classificationJournal of King Saud University Computer and Information Sciences, 2023
- Supporting Classification of Software Requirements system Using Intelligent Technologies AlgorithmsTechnium: Romanian Journal of Applied Sciences and Technology, 2021
- Software Requirements Classification Using Machine Learning AlgorithmsEntropy, 2020
- A review of machine learning algorithms for identification and classification of non-functional requirementsExpert Systems with Applications: X, 2019
- Identification of non-functional requirements in textual specifications: A semi-supervised learning approachInformation and Software Technology, 2010
- A Review of Machine Learning Algorithms for Text-Documents ClassificationJournal of Advances in Information Technology, 2010