Fusion of deep convolutional and LSTM recurrent neural networks for automated detection of code smells

被引:2
|
作者
Ho, Anh [1 ]
Bui, Anh M. T. [1 ]
Nguyen, Phuong T. [2 ]
Di Salle, Amleto [3 ]
机构
[1] Hanoi Univ Sci & Technol, Hanoi, Vietnam
[2] Univ Aquila, I-67100 Laquila, Italy
[3] Univ Europea Roma, I-00163 Rome, Italy
关键词
SOFTWARE;
D O I
10.1145/3593434.3593476
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Code smells is the term used to signal certain patterns or structures in software code that may contain a potential design or architecture problem, leading to maintainability or other software quality issues. Detecting code smells early in the software development process helps prevent these problems and improve the overall software quality. Existing research concentrates on the process of collecting and handling dataset, then exploring the potential of utilizing deep learning models to detect smells, while ignoring extensive feature engineering. Though these approaches obtained promising results, the following issues need to be tackled: (i) extracting both structural and semantic features from the software units; (ii) mitigating the effects of imbalanced data distribution on the performance. In this paper, we propose DeepSmells as a novel approach to code smells detection. To learn the complex hierarchical representations of the code fragment, we apply a deep convolutional neural network (CNN). Then, in order to improve the quality of the context encoding and preserve semantic information, long short-term memory networks (LSTM) is placed immediately after the CNN. The final classification is conducted by deep neural networks with weighted loss function to reduce the impact of skewed data distribution. We performed an empirical study using the existing code smell benchmark datasets to assess the performance of our proposed approach, and compare it with state-of-the-art baselines. The results demonstrate the effectiveness of our proposed method for all kinds of code smells with outperformed evaluation metrics in terms of F1 score and MCC.
引用
收藏
页码:229 / 234
页数:6
相关论文
共 50 条
  • [1] Deep Convolutional and LSTM Recurrent Neural Networks for Multimodal Wearable Activity Recognition
    Ordonez, Francisco Javier
    Roggen, Daniel
    [J]. SENSORS, 2016, 16 (01)
  • [2] AUTOMATED VESICLE FUSION DETECTION USING CONVOLUTIONAL NEURAL NETWORKS
    Li, Haohan
    Yin, Zhaozheng
    Xu, Yingke
    [J]. 2017 IEEE 14TH INTERNATIONAL SYMPOSIUM ON BIOMEDICAL IMAGING (ISBI 2017), 2017, : 183 - 187
  • [3] Deep Convolutional Bidirectional LSTM Recurrent Neural Network for Epileptic Seizure Detection
    Abdelhameed, Ahmed M.
    Daoud, Hisham G.
    Bayoumi, Magdy
    [J]. 2018 16TH IEEE INTERNATIONAL NEW CIRCUITS AND SYSTEMS CONFERENCE (NEWCAS), 2018, : 139 - 143
  • [4] Deep Convolutional Neural Networks for Automated Road Damage Detection
    Rakshitha, R.
    Srinath, S.
    Kumar, N. Vinay
    Rashmi, S.
    Poornima, B.V.
    [J]. Smart Innovation, Systems and Technologies, 2024, 405 SIST : 155 - 165
  • [5] Fusion of Deep Convolutional Neural Networks
    Suchy, Robert
    Ezekiel, Soundararajan
    Cornacchia, Maria
    [J]. 2017 IEEE APPLIED IMAGERY PATTERN RECOGNITION WORKSHOP (AIPR), 2017,
  • [6] Source code defect detection using deep convolutional neural networks
    Wang, Xiaomeng
    Guan, Zhibin
    Xin, Wei
    Wang, Jiajie
    [J]. Qinghua Daxue Xuebao/Journal of Tsinghua University, 2021, 61 (11): : 1267 - 1272
  • [7] Automated Road Crack Detection Using Deep Convolutional Neural Networks
    Mandal, Vishal
    Uong, Lan
    Adu-Gyamfi, Yaw
    [J]. 2018 IEEE INTERNATIONAL CONFERENCE ON BIG DATA (BIG DATA), 2018, : 5212 - 5215
  • [8] AUTOMATED DETECTION OF BOWEL PREPARATION ADEQUACY WITH DEEP CONVOLUTIONAL NEURAL NETWORKS
    Low, Daniel J.
    Hong, Zhuoqiao
    Mukherjee, Anjishnu
    Jugnundan, Sechiv
    Grover, Samir C.
    [J]. GASTROENTEROLOGY, 2021, 160 (06) : S376 - S376
  • [9] Automated detection of IVC filters on radiographs with deep convolutional neural networks
    Mongan, John
    Kohli, Marc D.
    Houshyar, Roozbeh
    Chang, Peter D.
    Glavis-Bloom, Justin
    Taylor, Andrew G.
    [J]. ABDOMINAL RADIOLOGY, 2023, 48 (02) : 758 - 764
  • [10] Automated detection of IVC filters on radiographs with deep convolutional neural networks
    John Mongan
    Marc D. Kohli
    Roozbeh Houshyar
    Peter D. Chang
    Justin Glavis-Bloom
    Andrew G. Taylor
    [J]. Abdominal Radiology, 2023, 48 : 758 - 764