An Empirical Study on Predictability of Software Code Smell Using Deep Learning Models

08/08/2021
by   Himanshu Gupta, et al.
0

Code Smell, similar to a bad smell, is a surface indication of something tainted but in terms of software writing practices. This metric is an indication of a deeper problem lies within the code and is associated with an issue which is prominent to experienced software developers with acceptable coding practices. Recent studies have often observed that codes having code smells are often prone to a higher probability of change in the software development cycle. In this paper, we developed code smell prediction models with the help of features extracted from source code to predict eight types of code smell. Our work also presents the application of data sampling techniques to handle class imbalance problem and feature selection techniques to find relevant feature sets. Previous studies had made use of techniques such as Naive - Bayes and Random forest but had not explored deep learning methods to predict code smell. A total of 576 distinct Deep Learning models were trained using the features and datasets mentioned above. The study concluded that the deep learning models which used data from Synthetic Minority Oversampling Technique gave better results in terms of accuracy, AUC with the accuracy of some models improving from 88.47 to 96.84.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
07/28/2020

A Survey of Software Code Review Practices in Brazil

Context: Software code review aims to early find code anomalies and to p...
research
12/21/2017

A Comparative Study of Different Source Code Metrics and Machine Learning Algorithms for Predicting Change Proneness of Object Oriented Systems

Change-prone classes or modules are defined as software components in th...
research
08/08/2021

Empirical Analysis on Effectiveness of NLP Methods for Predicting Code Smell

A code smell is a surface indicator of an inherent problem in the system...
research
09/09/2020

Multimodal Deep Learning for Flaw Detection in Software Programs

We explore the use of multiple deep learning models for detecting flaws ...
research
04/05/2019

On the Feasibility of Transfer-learning Code Smells using Deep Learning

Context: A substantial amount of work has been done to detect smells in ...
research
06/22/2022

Exploring the Impact of Code Style in Identifying Good Programmers

Code style reflects the choice of textual representation of source code....
research
04/02/2020

Software Defect Prediction Based On Deep Learning Models: Performance Study

In recent years, defect prediction, one of the major software engineerin...

Please sign up or login with your details

Forgot password? Click here to reset