Research indexJournal article
Data-Driven Initialization in Topic Modeling for Enhanced Software Requirements Specification Interpretation
Olusanya, Arogundade, Aborisade and 2 others
Cureus Journal of Computer Science.22 Apr 2026Open access
NobleIDark:/48914/w1/20261105/BF3E741EDOI10.7759/s44389-025-00054-y
Data-Driven Initialization in Topic Modeling for Enhanced Software Requirements Specification Interpretation
Olusanya, Arogundade, Aborisade and 2 others · Cureus Journal of Computer Science. · 2026
NobleIDark:/48914/w1/20261105/BF3E741EDOI10.7759/s44389-025-00054-y
Abstract
Software requirements specification (SRS) interpretation is a crucial aspect of software engineering, as it influences the accuracy of requirement analysis, validation, and verification. Traditional topic modeling techniques such as Latent Dirichlet Allocation (LDA) and Correlated Topic Modeling (CTM) often struggle with semantic coherence due to their reliance on probabilistic word distributions without considering contextual relationships. This study introduces Hierarchical Clustering-based Latent Dirichlet Allocation (HCI_LDA), an improved LDA-based model incorporating hierarchical clustering-based initialization, to enhance semantic coherence. The study evaluates HCI_LDA alongside five other SRS interpreters, including CTM, ChatGPT, and human experts, across three SRS datasets of varying sizes: SRS4.0 (2305 words), EXINFM (978 words), and NASA (492 words). Experimental results show that document size influences cosine similarity scores, with HCI-LDA achieving its highest score of 0.52 on the largest document (SRS4.0), compared to 0.10 for EXINFM and 0.32 for NASA. Comparative analysis of HCI-LDA against other LDA-based models shows an average mean improvement score (MIS) of 136.67% over CTM across all datasets, indicating higher semantic alignment with the original SRS documents. A comparison of human experts (H1, H2) and ChatGPT shows variation in similarity scores across datasets, with ChatGPT achieving higher scores in NASA (0.55 vs. 0.43 and 0.33) but lower scores in SRS4.0 and EXINFM. Additionally, comparison with traditional LDA shows substantial increases in similarity scores (MIS: 403.33%), reflecting improved representational correspondence, validating the benefits of clustering-based topic modeling in requirement engineering. These findings emphasize the importance of semantic-aware techniques for software requirement analysis, highlighting the potential for AI-assisted SRS interpretation in software validation and verification. The study has implications for empirical software engineering, industry, and practice, as it demonstrates how clustering-based topic modeling can improve semantic alignment in SRS representations and suggests the potential of such approaches for supporting structured requirements analysis.