Understanding software architecture is essential for maintenance and evolution. However, architectural decisions are often undocumented or outdated, forcing developers to infer architectural structures directly from source code. This task is challenging due to inconsistent naming, variable code quality, architectural erosion, hybrid styles, and the lack of systematic identification methods. In this work, we propose an automated pipeline to infer architectural patterns directly from Kotlin source code. The approach combines static code analysis, heuristic identification of class responsibilities, and dependency graph construction to capture both the roles of individual components and the structural relationships between them. Based on this representation, the pipeline is able to identify architectural patterns such as MVVM, MVP, MVC, MVI, and VIPER. To evaluate the effectiveness of the proposed approach, we conducted an empirical study using a dataset of Kotlin repositories collected from GitHub. The evaluation was performed on a statistically representative sample, comparing the inferred architectures with those explicitly declared by the repository authors. The results show that the pipeline achieves an accuracy of 69.8%, significantly outperforming benchmark strategies such as random and majority class classifiers. These results indicate that combining responsibility analysis with dependency-based structural representations provides a robust and scalable solution for inferring architectural patterns. The proposed approach can aid in software maintenance, architectural analysis, and large-scale empirical studies in modern software ecosystems.


翻译:暂无翻译

0
下载
关闭预览

相关内容

代码(Code)是专知网的一个重要知识资料文档板块,旨在整理收录论文源代码、复现代码,经典工程代码等,便于用户查阅下载使用。
《软件定义网络元素与机器代码的形式化验证》
专知会员服务
14+阅读 · 2025年11月18日
图表示学习Graph Embedding综述
图与推荐
10+阅读 · 2020年3月23日
利用动态深度学习预测金融时间序列基于Python
量化投资与机器学习
18+阅读 · 2018年10月30日
disentangled-representation-papers
CreateAMind
26+阅读 · 2018年9月12日
ResNet, AlexNet, VGG, Inception:各种卷积网络架构的理解
全球人工智能
20+阅读 · 2017年12月17日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
2+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
5+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
1+阅读 · 2014年12月31日
国家自然科学基金
2+阅读 · 2014年12月31日
国家自然科学基金
3+阅读 · 2014年12月31日
VIP会员
最新内容
《评估人机编队性能的标准指标》
专知会员服务
10+阅读 · 11月30日
《美陆军装甲排的自动化任务分配模型》59页
专知会员服务
9+阅读 · 11月30日
乌克兰海陆空无人力量
专知会员服务
5+阅读 · 11月30日
超越技术:美战争部的AI变革管理
专知会员服务
9+阅读 · 11月27日
北约400亿美元反无人机能力投资建设
专知会员服务
8+阅读 · 11月25日
反小型无人机系统方案评估(27页)
专知会员服务
16+阅读 · 11月25日
相关VIP内容
《软件定义网络元素与机器代码的形式化验证》
专知会员服务
14+阅读 · 2025年11月18日
相关基金
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
2+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
5+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
1+阅读 · 2014年12月31日
国家自然科学基金
2+阅读 · 2014年12月31日
国家自然科学基金
3+阅读 · 2014年12月31日
Top
微信扫码咨询专知VIP会员