Content area

Abstract

Software maintenance is one of the most expensive phases in software development, especially when complex source code is the only available artifact. Clustering software modules and generating a structured architectural model can significantly reduce the effort and cost of maintenance. This study aims to achieve high-quality modularization by maximizing intra-cluster cohesion, minimizing inter-cluster coupling, and optimizing overall modular quality. Since finding optimal clustering is an NP-complete problem, many existing methods suffer from poor modular structures, instability, and inconsistent results. To overcome these limitations, this paper proposes a module clustering method using a discrete bedbug optimizer. In software architecture, symmetry refers to the balanced and structured arrangement of modules. In the proposed method, module clustering aims to identify and group related modules based on structural and behavioral similarities, reflecting symmetrical properties in the source code. Conversely, asymmetries, such as modules with irregular dependencies, can indicate architectural flaws. The method was evaluated on ten widely used real-world software datasets. The experimental results show that the proposed algorithm consistently delivers superior modularization quality, with an average score of 2.806 and a well-balanced trade-off between cohesion and coupling. Overall, this research presents an effective solution for software module clustering and provides better architecture recovery and more maintainable systems.

Details

1009240
Business indexing term
Title
Generating Software Architectural Model from Source Code Using Module Clustering
Author
Arasteh Bahman 1 ; Sefati Seyed Salar 2   VIAFID ORCID Logo  ; Kusetogullari Huseyin 3   VIAFID ORCID Logo  ; Kiani Farzad 4   VIAFID ORCID Logo 

 Department of Software Engineering, Faculty of Engineering and Natural Science, Istinye University, Istanbul 34396, Türkiye; [email protected], Department of Computer Science, Khazar University, Baku 1096, Azerbaijan, Applied Science Research Center, Applied Science Private University, Amman 11931, Jordan 
 Department of Software Engineering, Faculty of Engineering and Natural Science, Istinye University, Istanbul 34396, Türkiye; [email protected], Faculty of Electronics, Telecommunications and Information Technology, University Politehnica of Bucharest, 060042 București, Romania 
 Department of Computer Science, Blekinge Institute of Technology, 371 79 Karlskrona, Sweden; [email protected] 
 Data Science Application and Research Center (VEBIM), Fatih Sultan Mehmet Vakif University, Istanbul 34445, Türkiye; [email protected] 
Publication title
Symmetry; Basel
Volume
17
Issue
9
First page
1523
Number of pages
25
Publication year
2025
Publication date
2025
Publisher
MDPI AG
Place of publication
Basel
Country of publication
Switzerland
Publication subject
e-ISSN
20738994
Source type
Scholarly Journal
Language of publication
English
Document type
Journal Article
Publication history
 
 
Online publication date
2025-09-12
Milestone dates
2025-08-04 (Received); 2025-09-08 (Accepted)
Publication history
 
 
   First posting date
12 Sep 2025
ProQuest document ID
3254653797
Document URL
https://www.proquest.com/scholarly-journals/generating-software-architectural-model-source/docview/3254653797/se-2?accountid=208611
Copyright
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/). Notwithstanding the ProQuest Terms and Conditions, you may use this content in accordance with the terms of the License.
Last updated
2025-09-26
Database
ProQuest One Academic