Predicting Software Cohesion Metrics with Machine Learning Techniques

Author:

Haner Kırğıl Elif Nur1ORCID,Erçelebi Ayyıldız Tülin1ORCID

Affiliation:

1. Computer Engineering, Baskent University, Ankara 06790, Turkey

Abstract

The cohesion value is one of the important factors used to evaluate software maintainability. However, measuring the cohesion value is a relatively difficult issue when tracing the source code manually. Although there are many static code analysis tools, not every tool measures every metric. The user should apply different tools for different metrics. In this study, besides the use of these tools, we predicted the cohesion values (LCOM2, TCC, LCC, and LSCC) with machine learning techniques (KNN, REPTree, multi-layer perceptron, linear regression (LR), support vector machine, and random forest (RF)) to solve them alternatively. We created two datasets utilizing two different open-source software projects. According to the obtained results, for the LCOM2 and TCC metrics, the KNN algorithm provided the best results, and for LCC and LSCC metrics, the REPTree algorithm was the best. However, out of all the metrics, RF, REPTree, and KNN had close performances with each other, and therefore any of the RF, REPTree, and KNN techniques can be used for software cohesion metric prediction.

Publisher

MDPI AG

Subject

Fluid Flow and Transfer Processes,Computer Science Applications,Process Chemistry and Technology,General Engineering,Instrumentation,General Materials Science

Reference33 articles.

1. Review of Literature on Software Quality;Obisat;World Comput. Sci. Inf. Technol. J.,2018

2. Tiwari, S., and Rathore, S.S. (2018, January 9–11). Coupling and Cohesion Metrics for Object-Oriented Software: A Systematic Mapping Study. Proceedings of the 11th Innovations in Software Engineering Conference, Hyderabad, India.

3. Assessment of Optimum Refactoring Sequence to Improve the Software Quality of Object-Oriented Software;Tarwani;J. Inf. Optimiz. Sci.,2020

4. Agile Methodologies in Software Maintenance: A Systematic Review;Tarwani;Inform.-J. Comput. Inform.,2016

5. Dallal, J.A. (2011, January 20–22). Improving Object-Oriented Lack-of Cohesion Metric by Excluding Special Methods. Proceedings of the 10th WSEAS International Conference on Software Engineering Parallel and Distributed Systems, Cambridge, UK.

Cited by 4 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3