Deep semantic-Based Feature Envy Identification

被引:14
|
作者
Guo, Xueliang [1 ]
Shi, Chongyang [1 ]
Jiang, He [1 ]
机构
[1] Beijing Inst Technol, Sch Comp Sci, Beijing, Peoples R China
关键词
Code Smell; Deep Learning; Software Refactoring; Feature Envy; Deep Semantic; CODE-SMELLS;
D O I
10.1145/3361242.3361257
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Code smells regularly cause potential software quality problems in software development. Thus, code smell detection has attracted the attention of many researchers. A number of approaches have been suggested in order to improve the accuracy of code smell detection. Most of these approaches rely solely on structural information (code metrics) extracted from source code and heuristic rules designed by people. In this paper, We propose a method-representation based model to represent the methods in textual code, which can effectively reflect the semantic relationships embedded in textual code. We also propose a deep learning based approach that combines method-representation and a CNN model to detect feature envy. The proposed approach can automatically extract semantic and features from textual code and code metrics, and can also automatically build complex mapping between these features and predictions. Evaluation results on open-source projects demonstrate that our proposed approach achieves better performance than the state-of-the-art in detecting feature envy. CCS CONCEPTS Computer systems organization -> Embedded systems; Redundancy; Robotics; Networks -> Network reliability;
引用
收藏
页数:6
相关论文
共 50 条
  • [1] Discriminative Deep Feature Learning for Semantic-Based Image Retrieval
    Song, Kaikai
    Li, Feng
    Long, Fei
    Wang, Junping
    Ling, Qiang
    [J]. IEEE ACCESS, 2018, 6 : 44268 - 44280
  • [2] Deep Learning Based Feature Envy Detection
    Liu, Hui
    Xu, Zhifeng
    Zou, Yanzhen
    [J]. PROCEEDINGS OF THE 2018 33RD IEEE/ACM INTERNATIONAL CONFERENCE ON AUTOMTED SOFTWARE ENGINEERING (ASE' 18), 2018, : 385 - 396
  • [3] Research on the Modeling of Semantic-Based Web Resources Feature
    Chen, Ji-Xi
    Xu, Qi
    Gu, Xin-Jian
    Qi, Guo-Ning
    Zhan, Hong-Fei
    [J]. 2008 IFIP INTERNATIONAL CONFERENCE ON NETWORK AND PARALLEL COMPUTING, PROCEEDINGS, 2008, : 499 - 503
  • [4] Unsupervised Semantic-Based Aggregation of Deep Convolutional Features
    Xu, Jian
    Wang, Chunheng
    Qi, Chengzuo
    Shi, Cunzhao
    Xiao, Baihua
    [J]. IEEE TRANSACTIONS ON IMAGE PROCESSING, 2019, 28 (02) : 601 - 611
  • [5] A new semantic-based feature selection method for spam filtering
    Mendez, Jose R.
    Cotos-Yanez, Tomas R.
    Ruano-Ordas, David
    [J]. APPLIED SOFT COMPUTING, 2019, 76 : 89 - 104
  • [6] An enhanced algorithm for semantic-based feature reduction in spam filtering
    Novo-Lourés, María
    Pavón, Reyes
    Laza, Rosalía
    Méndez, José R.
    Ruano-Ordás, David
    [J]. PeerJ Computer Science, 2024, 10
  • [7] An enhanced algorithm for semantic-based feature reduction in spam filtering
    Novo-Loures, Maria
    Pavon, Reyes
    Laza, Rosalia
    Mendez, Jose R.
    Ruano-Ordas, David
    [J]. PEERJ COMPUTER SCIENCE, 2024, 10
  • [8] Facial feature model fitting in semantic-based scene analysis
    Antoszczyszyn, PM
    Hannah, JM
    Grant, PM
    [J]. ELECTRONICS LETTERS, 1997, 33 (10) : 855 - 857
  • [9] Semantic-Based Mappings
    Mecca, Giansalvatore
    Rull, Guillem
    Santoro, Donatello
    Teniente, Ernest
    [J]. CONCEPTUAL MODELING, ER 2013, 2013, 8217 : 255 - +
  • [10] Semantic-Based Feature Reduction Approach for E-mail Classification
    Bahgat, Eman M.
    Moawad, Ibrahim F.
    [J]. PROCEEDINGS OF THE INTERNATIONAL CONFERENCE ON ADVANCED INTELLIGENT SYSTEMS AND INFORMATICS 2016, 2017, 533 : 53 - 63