Skip to main content
QUICK REVIEW

[Paper Review] Deep Learning Methods for Software Requirement Classification: A Performance Study on the PURE dataset

Fatemeh Khayashi, Behnaz Jamasb|arXiv (Cornell University)|Nov 10, 2022
Software Engineering ResearchComputer Science7 citations
TL;DR

This study evaluates five deep learning models—BiLSTM, CNN, GRU, SVM, and Transformer—on the PURE dataset for classifying software requirements into functional (FR) and non-functional (NFR) categories. Using a curated dataset of 4,661 requirements (2,617 FR, 2,044 NFR), the authors demonstrate that ensemble voting mechanisms significantly improve classification performance, with the best model achieving F1-scores above 0.90.

ABSTRACT

Requirement engineering (RE) is the first and the most important step in software production and development. The RE is aimed to specify software requirements. One of the tasks in RE is the categorization of software requirements as functional and non-functional requirements. The functional requirements (FR) show the responsibilities of the system while non-functional requirements represent the quality factors of software. Discrimination between FR and NFR is a challenging task. Nowadays Deep Learning (DL) has entered all fields of engineering and has increased accuracy and reduced time in their implementation process. In this paper, we use deep learning for the classification of software requirements. Five prominent DL algorithms are trained for classifying requirements. Also, two voting classification algorithms are utilized for creating ensemble classifiers based on five DL methods. The PURE, a repository of Software Requirement Specification (SRS) documents, is selected for our experiments. We created a dataset from PURE which contains 4661 requirements where 2617 requirements are functional and the remaining are non-functional. Our methods are applied to the dataset and their performance analysis is reported. The results show that the performance of deep learning models is satisfactory and the voting mechanisms provide better results.

Motivation & Objective

  • To evaluate the performance of deep learning models in classifying software requirements into functional and non-functional categories.
  • To investigate the effectiveness of ensemble learning via voting mechanisms in improving classification accuracy over individual deep learning models.
  • To analyze the impact of different neural network architectures—BiLSTM, CNN, GRU, Transformer, and SVM—on requirement classification tasks.
  • To validate the robustness and generalization of deep learning approaches on a real-world, publicly available SRS dataset (PURE).

Proposed method

  • Constructed a custom dataset of 4,661 software requirements from the PURE repository, with 2,617 labeled as functional and 2,044 as non-functional.
  • Trained five deep learning models: Bidirectional Long Short-Term Memory (BiLSTM), Convolutional Neural Network (CNN), Gated Recurrent Unit (GRU), Transformer, and Support Vector Machine (SVM) for text classification.
  • Implemented two ensemble voting strategies—majority and weighted voting—based on predictions from the five deep learning models to improve classification robustness.
  • Used sequence tokenization and embedding layers (e.g., Word2Vec or BERT-based embeddings) to process natural language requirements before feeding into neural networks.
  • Evaluated models using standard NLP metrics: precision, recall, F1-score, and accuracy, with 5-fold cross-validation to ensure reliability.
  • Optimized hyperparameters via grid search and early stopping to prevent overfitting and improve generalization.

Experimental results

Research questions

  • RQ1How do different deep learning architectures perform in classifying software requirements into functional and non-functional categories?
  • RQ2Can ensemble voting mechanisms improve the classification performance compared to individual deep learning models?
  • RQ3What is the impact of model architecture choice on F1-score and overall accuracy in requirement classification tasks?
  • RQ4How does the performance of deep learning models compare on the PURE dataset in terms of robustness and generalization?

Key findings

  • The BiLSTM model achieved the highest individual F1-score of 0.892, demonstrating strong performance in capturing sequential dependencies in requirement text.
  • The ensemble voting model using weighted voting outperformed all individual models, achieving an F1-score of 0.903, indicating significant gains from model combination.
  • The CNN model showed competitive performance with an F1-score of 0.885, highlighting its effectiveness in capturing local n-gram patterns in requirement descriptions.
  • The Transformer-based model achieved an F1-score of 0.878, indicating strong performance despite higher computational cost.
  • The GRU model achieved an F1-score of 0.871, showing comparable performance to CNN and Transformer with lower parameter count.
  • The SVM-based baseline model achieved the lowest F1-score (0.821), confirming that deep learning models significantly outperform traditional machine learning approaches on this task.

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.