A Machine Learning Approach for Hierarchical Classification of Software Requirements
Preprint
Abstract
Context: Classification of software requirements into different categories is a critically important task in requirements engineering (RE). Developing machine learning (ML) approaches for requirements classification has attracted great interest in the RE community since the 2000s. Objective: This paper aims to address two related problems that have been challenging real-world applications of ML approaches: the problems of class imbalance and high dimensionality with low sample size data (HDLSS). These problems can greatly degrade the classification performance of ML methods. Method: The paper proposes HC4RC, a novel ML approach for multiclass classification of requirements. HC4RC solves the aforementioned problems through semantic-role-based feature selection, dataset decomposition and hierarchical classification. We experimentally compare the effectiveness of HC4RC with three closely related approaches - two of which are based on a traditional statistical classification model whereas one uses an advanced deep learning model. Results: Our experiment shows: 1) The class imbalance and HDLSS problems present a challenge to both traditional and advanced ML approaches. 2) The HC4RC approach is simple to use and can effectively address the class imbalance and HDLSS problems compared to similar approaches. Conclusion: This paper makes an important practical contribution to addressing the class imbalance and HDLSS problems in multiclass classification of software requirements.Keywords
All Related Versions
This publication has 38 references indexed in Scilit:
- Empirical evaluation of tools for hairy requirements engineering tasksEmpirical Software Engineering, 2021
- Machine Learning: Algorithms, Real-World Applications and Research DirectionsSN Computer Science, 2021
- Automated demarcation of requirements in textual specifications: a machine learning-based approachEmpirical Software Engineering, 2020
- Multiclass imbalanced learning with one-versus-one decomposition and spectral clusteringExpert Systems with Applications, 2020
- Fake News Detection Using a Blend of Neural Networks: An Application of Deep LearningSN Computer Science, 2020
- Cost-sensitive hierarchical classification for imbalance classesApplied Intelligence, 2020
- A review of machine learning algorithms for identification and classification of non-functional requirementsExpert Systems with Applications: X, 2019
- Feature selection for text classification: A reviewMultimedia Tools and Applications, 2018
- On user rationale in software engineeringRequirements Engineering, 2018
- Hellinger distance decision trees are robust and skew-insensitiveData Mining and Knowledge Discovery, 2011