{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,9,19]],"date-time":"2026-09-19T17:00:51Z","timestamp":1789837251711,"version":"4.0.1"},"reference-count":54,"publisher":"MDPI AG","issue":"10","license":[{"start":{"date-parts":[[2022,10,12]],"date-time":"2022-10-12T00:00:00Z","timestamp":1665532800000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Computers"],"abstract":"<jats:p>Software architecture plays an important role in software development, especially in software quality and maintenance. Understanding the impact of certain architectural patterns on software quality and verification of software requirements has become increasingly difficult with the increasing complexity of codebases in recent years. Researchers over the years have proposed automated approaches based on machine learning. However, there is a lack of benchmark datasets and more accurate machine learning (ML) approaches. This paper presents an ML-based approach for software architecture detection, namely, MVP (Model\u2013View\u2013Presenter) and MVVM (Model\u2013View\u2013ViewModel). Firstly, we present a labeled dataset that consists of 5973 data points retrieved from GitHub. Nine ML methods are applied for detection of software architecture from source code metrics. Using precision, recall, accuracy, and F1 score, the outstanding ML model performance is 83%, 83%, 83%, and 83%, respectively. The ML model\u2019s performance is validated using k-fold validation (k = 5). Our approach outperforms when compared with the state-of-the-art.<\/jats:p>","DOI":"10.3390\/computers11100151","type":"journal-article","created":{"date-parts":[[2022,10,12]],"date-time":"2022-10-12T20:53:29Z","timestamp":1665608009000},"page":"151","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":14,"title":["Towards Predicting Architectural Design Patterns: A Machine Learning Approach"],"prefix":"10.3390","volume":"11","author":[{"ORCID":"https:\/\/orcid.org\/0000-0002-7260-6613","authenticated-orcid":false,"given":"Sirojiddin","family":"Komolov","sequence":"first","affiliation":[{"name":"Institute of Software Development and Engineering, Innopolis University, 420500 Innopolis, Russia"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-4578-5011","authenticated-orcid":false,"given":"Gcinizwe","family":"Dlamini","sequence":"additional","affiliation":[{"name":"Institute of Software Development and Engineering, Innopolis University, 420500 Innopolis, Russia"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Swati","family":"Megha","sequence":"additional","affiliation":[{"name":"Institute of Software Development and Engineering, Innopolis University, 420500 Innopolis, Russia"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-3860-4948","authenticated-orcid":false,"given":"Manuel","family":"Mazzara","sequence":"additional","affiliation":[{"name":"Institute of Software Development and Engineering, Innopolis University, 420500 Innopolis, Russia"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"1968","published-online":{"date-parts":[[2022,10,12]]},"reference":[{"key":"ref_1","unstructured":"Garlan, D., Bass, L., Stafford, J., Nord, R., Ivers, J., and Little, R. (2003, January 3\u201310). Documenting software architectures: Views and beyond. Proceedings of the 25th International Conference on Software Engineering, Portland, OR, USA."},{"key":"ref_2","unstructured":"Bosch, J., and Molin, P. (1999, January 7\u201312). Software architecture design: Evaluation and transformation. Proceedings of the IEEE Conference and Workshop on Engineering of Computer-Based Systems, Nashville, TN, USA."},{"key":"ref_3","unstructured":"Buschmann, F., Henney, K., and Schmidt, D.C. (2007). Pattern-Oriented Software Architecture, on Patterns and Pattern Languages, John Wiley & Sons."},{"key":"ref_4","doi-asserted-by":"crossref","unstructured":"Shaw, M., and Garlan, D. (1994). Characteristics of Higher Level Languages for Software Architecture, Software Engineering Institute, Carnegie Mellon University. Technical Report CMU\/SEI-94-TR-023.","DOI":"10.21236\/ADA292215"},{"key":"ref_5","unstructured":"Fairbanks, G. (2010). Just Enough Software Architecture: A Risk-Driven Approach, Marshall & Brainerd."},{"key":"ref_6","doi-asserted-by":"crossref","first-page":"75","DOI":"10.1007\/s10515-007-0020-6","article-title":"Continuous and automated evolution of architecture-to-implementation traceability links","volume":"15","author":"Murta","year":"2008","journal-title":"Autom. Softw. Eng."},{"key":"ref_7","doi-asserted-by":"crossref","first-page":"106705","DOI":"10.1016\/j.infsof.2021.106705","article-title":"Relationships between software architecture and source code in practice: An exploratory survey and interview","volume":"141","author":"Tian","year":"2022","journal-title":"Inf. Softw. Technol."},{"key":"ref_8","doi-asserted-by":"crossref","unstructured":"Sahlabadi, M., Muniyandi, R.C., Shukur, Z., and Qamar, F. (2022). Lightweight Software Architecture Evaluation for Industry: A Comprehensive Review. Sensors, 22.","DOI":"10.3390\/s22031252"},{"key":"ref_9","doi-asserted-by":"crossref","first-page":"329","DOI":"10.1007\/s11219-005-4250-1","article-title":"A basis for analyzing software architecture analysis methods","volume":"13","author":"Kazman","year":"2005","journal-title":"Softw. Qual. J."},{"key":"ref_10","doi-asserted-by":"crossref","unstructured":"Meinke, K., and Bennaceur, A. (June, January 27). Machine Learning for Software Engineering: Models, Methods, and Applications. Proceedings of the 2018 IEEE\/ACM 40th International Conference on Software Engineering: Companion (ICSE-Companion), Gothenburg, Sweden.","DOI":"10.1145\/3183440.3183461"},{"key":"ref_11","doi-asserted-by":"crossref","first-page":"87","DOI":"10.1023\/A:1023760326768","article-title":"Machine learning and software engineering","volume":"11","author":"Zhang","year":"2003","journal-title":"Softw. Qual. J."},{"key":"ref_12","unstructured":"Bass, L., Clements, P., and Kazman, R. (2003). Software Architecture in Practice, Addison-Wesley Professional."},{"key":"ref_13","doi-asserted-by":"crossref","unstructured":"Garlan, D. (2000, January 4\u201311). Software architecture: A roadmap. Proceedings of the Conference on the Future of Software Engineering, Limerick, Ireland.","DOI":"10.1145\/336512.336537"},{"key":"ref_14","unstructured":"Documentation (2022, March 24). Android Development. Available online: https:\/\/developer.android.com\/docs."},{"key":"ref_15","unstructured":"(2022, September 16). Google I\/O 2019: Empowering Developers to Build the Best Experiences on Android + Play. Available online: https:\/\/android-developers.googleblog.com\/2019\/05\/google-io-2019-empowering-developers-to-build-experiences-on-Android-Play.html."},{"key":"ref_16","first-page":"23","article-title":"Simulation of Built-in PHP Features for Precise Static Code Analysis","volume":"14","author":"Dahse","year":"2014","journal-title":"NDSS"},{"key":"ref_17","doi-asserted-by":"crossref","first-page":"76","DOI":"10.1049\/iet-sen.2014.0017","article-title":"Measuring stability of object-oriented software architectures","volume":"9","author":"Ebad","year":"2015","journal-title":"IET Softw."},{"key":"ref_18","doi-asserted-by":"crossref","unstructured":"Chekhaba, C., Rebatchi, H., ElBoussaidi, G., Moha, N., and Kpodjedo, S. (2021, January 22\u201326). Coach: Classification-Based Architectural Patterns Detection in Android Apps. Proceedings of the 36th Annual ACM Symposium on Applied Computing, Online.","DOI":"10.1145\/3412841.3442018"},{"key":"ref_19","doi-asserted-by":"crossref","unstructured":"Daoudi, A., ElBoussaidi, G., Moha, N., and Kpodjedo, S. (2019, January 8\u201312). An Exploratory Study of MVC-Based Architectural Patterns in Android Apps. Proceedings of the SAC \u201919: The 34th ACM\/SIGAPP Symposium on Applied Computing, Limassol, Cyprus.","DOI":"10.1145\/3297280.3297447"},{"key":"ref_20","doi-asserted-by":"crossref","unstructured":"Dobrean, D., and Diosan, L. (2021, January 26\u201327). A Hybrid Approach to MVC Architectural Layers Analysis. Proceedings of the ENASE, Online.","DOI":"10.5220\/0010326700360046"},{"key":"ref_21","unstructured":"github (2020). GitHub, GitHub."},{"key":"ref_22","unstructured":"Humeniuk, V. (2022, August 29). Android Architecture Comparison: MVP vs. VIPER. Available online: http:\/\/www.diva-portal.org\/smash\/record.jsf?pid=diva2%3A1291671&dswid=-8436."},{"key":"ref_23","unstructured":"Potel, M. (1996). MVP: Model-View-Presenter the Taligent Programming Model for C++ and Java, Taligent Inc."},{"key":"ref_24","unstructured":"Gossman, J. (2022, August 29). Introduction to Model\/View\/ViewModel Pattern for Building WPF apps. Available online: https:\/\/learn.microsoft.com\/en-us\/archive\/blogs\/johngossman\/introduction-to-modelviewviewmodel-pattern-for-building-wpf-apps."},{"key":"ref_25","unstructured":"Gamma, E. (1995). Design Patterns: Elements of Reusable Object-Oriented Software, Pearson Education."},{"key":"ref_26","unstructured":"Uchiyama, S., Washizaki, H., Fukazawa, Y., and Kubo, A. (2011, January 1\u20134). Design pattern detection using software metrics and machine learning. Proceedings of the First international Workshop on Model-Driven Software Migration (MDSM 2011), Oldenburg, Germany."},{"key":"ref_27","doi-asserted-by":"crossref","first-page":"102","DOI":"10.1016\/j.jss.2015.01.037","article-title":"On applying machine learning techniques for design pattern detection","volume":"103","author":"Zanoni","year":"2015","journal-title":"J. Syst. Softw."},{"key":"ref_28","unstructured":"Thaller, H. (2016). Towards Deep Learning Driven Design Pattern Detection\/submitted by Hannes Thaller. [Ph.D. Thesis, Universit\u00e4t Linz]."},{"key":"ref_29","doi-asserted-by":"crossref","first-page":"111179","DOI":"10.1016\/j.jss.2021.111179","article-title":"Feature-based software design pattern detection","volume":"185","author":"Nazar","year":"2022","journal-title":"J. Syst. Softw."},{"key":"ref_30","unstructured":"Mikolov, T., Chen, K., Corrado, G., and Dean, J. (2013). Efficient estimation of word representations in vector space. arXiv."},{"key":"ref_31","unstructured":"(2022, March 24). Github Rest Api. Available online: https:\/\/docs.github.com\/en\/rest."},{"key":"ref_32","unstructured":"Aniche, M. (2022, August 29). Java Code Metrics Calculator (CK). Available online: https:\/\/github.com\/mauricioaniche\/ck\/."},{"key":"ref_33","doi-asserted-by":"crossref","first-page":"23","DOI":"10.1186\/s40537-015-0029-9","article-title":"Survey of review spam detection using machine learning techniques","volume":"2","author":"Crawford","year":"2015","journal-title":"J. Big Data"},{"key":"ref_34","doi-asserted-by":"crossref","unstructured":"Jacob, S.S., and Vijayakumar, R. (2021). Sentimental analysis over twitter data using clustering based machine learning algorithm. J. Ambient. Intell. Humaniz. Comput.","DOI":"10.1007\/s12652-020-02771-9"},{"key":"ref_35","unstructured":"Hastie, T., Tibshirani, R., and Friedman, J. (2009). The Elements of Statistical Learning: Data Mining, Inference, and Prediction, Springer Science & Business Media."},{"key":"ref_36","unstructured":"Rish, I. (2001, January 4\u201310). An empirical study of the naive Bayes classifier. Proceedings of the IJCAI 2001 Workshop on Empirical Methods in Artificial Intelligence, Seattle, WA, USA."},{"key":"ref_37","doi-asserted-by":"crossref","first-page":"273","DOI":"10.1007\/BF00994018","article-title":"Support-vector networks","volume":"20","author":"Cortes","year":"1995","journal-title":"Mach. Learn."},{"key":"ref_38","unstructured":"Dorogush, A.V., Ershov, V., and Gulin, A. (2018). CatBoost: Gradient boosting with categorical features support. arXiv."},{"key":"ref_39","unstructured":"Nori, H., Jenkins, S., Koch, P., and Caruana, R. (2019). InterpretML: A Unified Framework for Machine Learning Interpretability. arXiv."},{"key":"ref_40","doi-asserted-by":"crossref","unstructured":"Mag\u00e1n-Carri\u00f3n, R., Urda, D., D\u00edaz-Cano, I., and Dorronsoro, B. (2020). Towards a reliable comparison and evaluation of network intrusion detection systems based on machine learning approaches. Appl. Sci., 10.","DOI":"10.3390\/app10051775"},{"key":"ref_41","first-page":"2825","article-title":"Scikit-learn: Machine learning in Python","volume":"12","author":"Pedregosa","year":"2011","journal-title":"J. Mach. Learn. Res."},{"key":"ref_42","doi-asserted-by":"crossref","unstructured":"He, H., and Ma, Y. (2013). Imbalanced Learning: Foundations, Algorithms, and Applications, John Wiley & Sons.","DOI":"10.1002\/9781118646106"},{"key":"ref_43","doi-asserted-by":"crossref","first-page":"40","DOI":"10.1145\/141874.141884","article-title":"Foundations for the Study of Software Architecture","volume":"17","author":"Perry","year":"1992","journal-title":"SIGSOFT Softw. Eng. Notes"},{"key":"ref_44","doi-asserted-by":"crossref","unstructured":"Medvidovic, N., and Taylor, R.N. (2010, January 1\u20138). Software architecture: Foundations, theory, and practice. Proceedings of the 2010 ACM\/IEEE 32nd International Conference on Software Engineering, Cape Town, South Africa.","DOI":"10.1145\/1810295.1810435"},{"key":"ref_45","doi-asserted-by":"crossref","first-page":"241","DOI":"10.1007\/s11219-018-9404-z","article-title":"Exploring the suitability of source code metrics for indicating architectural inconsistencies","volume":"27","author":"Lenhard","year":"2019","journal-title":"Softw. Qual. J."},{"key":"ref_46","doi-asserted-by":"crossref","first-page":"141","DOI":"10.1016\/j.infsof.2017.11.015","article-title":"Technical debt and agile software development practices and processes: An industry practitioner survey","volume":"96","author":"Holvitie","year":"2018","journal-title":"Inf. Softw. Technol."},{"key":"ref_47","doi-asserted-by":"crossref","unstructured":"Shaukat, K., Luo, S., Chen, S., and Liu, D. (2020, January 20\u201321). Cyber threat detection using machine learning techniques: A performance evaluation perspective. Proceedings of the 2020 International Conference on Cyber Warfare and Security (ICCWS), Online.","DOI":"10.1109\/ICCWS48432.2020.9292388"},{"key":"ref_48","doi-asserted-by":"crossref","unstructured":"Ahmad, M.A., Eckert, C., and Teredesai, A. (September, January 29). Interpretable machine learning in healthcare. Proceedings of the 2018 ACM International Conference on Bioinformatics, Computational Biology, and Health Informatics, Washington, DC, USA.","DOI":"10.1145\/3233547.3233667"},{"key":"ref_49","doi-asserted-by":"crossref","unstructured":"Nayak, S.R., Nayak, J., Sinha, U., Arora, V., Ghosh, U., and Satapathy, S.C. (2021). An automated lightweight deep neural network for diagnosis of COVID-19 from chest X-ray images. Arab. J. Sci. Eng.","DOI":"10.1007\/s13369-021-05956-2"},{"key":"ref_50","doi-asserted-by":"crossref","unstructured":"Patron, G., Leon, D., Lopez, E., and Hernandez, G. (2020, January 7\u201310). An Interpretable Automated Machine Learning Credit Risk Model. Proceedings of the Workshop on Engineering Applications, Bogota, Colombia.","DOI":"10.1007\/978-3-030-61834-6_2"},{"key":"ref_51","doi-asserted-by":"crossref","first-page":"321","DOI":"10.1613\/jair.953","article-title":"SMOTE: Synthetic minority over-sampling technique","volume":"16","author":"Chawla","year":"2002","journal-title":"J. Artif. Intell. Res."},{"key":"ref_52","doi-asserted-by":"crossref","first-page":"464","DOI":"10.1016\/j.eswa.2017.09.030","article-title":"Effective data generation for imbalanced learning using conditional generative adversarial networks","volume":"91","author":"Douzas","year":"2018","journal-title":"Expert Syst. Appl."},{"key":"ref_53","doi-asserted-by":"crossref","first-page":"13635","DOI":"10.1007\/s00521-021-05993-w","article-title":"DGM: A data generative model to improve minority class presence in anomaly detection domain","volume":"33","author":"Dlamini","year":"2021","journal-title":"Neural Comput. Appl."},{"key":"ref_54","doi-asserted-by":"crossref","unstructured":"Gamma, E., Helm, R., Johnson, R., and Vlissides, J. (1993, January 26\u201320). Design patterns: Abstraction and reuse of object-oriented design. Proceedings of the European Conference on Object-Oriented Programming, Kaiserslautern, Germany.","DOI":"10.1007\/3-540-47910-4_21"}],"container-title":["Computers"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/2073-431X\/11\/10\/151\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,11]],"date-time":"2025-10-11T00:52:35Z","timestamp":1760143955000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/2073-431X\/11\/10\/151"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2022,10,12]]},"references-count":54,"journal-issue":{"issue":"10","published-online":{"date-parts":[[2022,10]]}},"alternative-id":["computers11100151"],"URL":"https:\/\/doi.org\/10.3390\/computers11100151","relation":{},"ISSN":["2073-431X"],"issn-type":[{"value":"2073-431X","type":"electronic"}],"subject":[],"published":{"date-parts":[[2022,10,12]]}}}