Automated detection of class diagram smells using self-supervised learning

被引:1
|
作者
Alazba, Amal [1 ,2 ]
Aljamaan, Hamoud [1 ,3 ]
Alshayeb, Mohammad [1 ,4 ]
机构
[1] King Fahd Univ Petr & Minerals, Informat & Comp Sci Dept, Dhahran 31261, Saudi Arabia
[2] King Saud Univ, Dept Informat Syst, Riyadh 11362, Saudi Arabia
[3] Interdisciplinary Res Ctr Finance & Digital Econ, Dhahran 31261, Saudi Arabia
[4] Interdisciplinary Res Ctr Intelligent Secure Syst, Dhahran 31261, Saudi Arabia
关键词
Self-supervised learning; Deep learning; UML class diagram; Bad smell detection; UML; COMPLEXITY; SECURITY;
D O I
10.1007/s10515-024-00429-w
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Design smells are symptoms of poorly designed solutions that may result in several maintenance issues. While various approaches, including traditional machine learning methods, have been proposed and shown to be effective in detecting design smells, they require extensive manually labeled data, which is expensive and challenging to scale. To leverage the vast amount of data that is now accessible, unsupervised semantic feature learning, or learning without requiring manual annotation labor, is essential. The goal of this paper is to propose a design smell detection method that is based on self-supervised learning. We propose Model Representation with Transformers (MoRT) to learn the UML class diagram features by training Transformers to recognize masked keywords. We empirically show how effective the defined proxy task is at learning semantic and structural properties. We thoroughly assess MoRT using four model smells: the Blob, Functional Decomposition, Spaghetti Code, and Swiss Army Knife. Furthermore, we compare our findings with supervised learning and feature-based methods. Finally, we ran a cross-project experiment to assess the generalizability of our approach. Results show that MoRT is highly effective in detecting design smells.
引用
收藏
页数:33
相关论文
共 50 条
  • [1] Automated detection of class diagram smells using self-supervised learning
    Amal Alazba
    Hamoud Aljamaan
    Mohammad Alshayeb
    Automated Software Engineering, 2024, 31
  • [2] Self-supervised learning for outlier detection
    Diers, Jan
    Pigorsch, Christian
    STAT, 2021, 10 (01):
  • [3] Hyperspectral target detection using self-supervised background learning
    Ali, Muhammad Khizer
    Amin, Benish
    Maud, Abdur Rahman
    Bhatti, Farrukh Aziz
    Sukhia, Komal Nain
    Khurshid, Khurram
    ADVANCES IN SPACE RESEARCH, 2024, 74 (02) : 628 - 646
  • [4] Wrist fracture detection using self-supervised learning methodology
    Thorat, Sachin Ramdas
    Jha, Davendranath G.
    Sharma, Ashish K.
    Katkar, Dhanraj, V
    JOURNAL OF MUSCULOSKELETAL SURGERY AND RESEARCH, 2024, 8 (02) : 133 - 141
  • [5] SELF-SUPERVISED LEARNING FOR ANOMALOUS SOUND DETECTION
    Wilkinghoff, Kevin
    2024 IEEE INTERNATIONAL CONFERENCE ON ACOUSTICS, SPEECH AND SIGNAL PROCESSING, ICASSP 2024, 2024, : 276 - 280
  • [6] Anomaly Detection on Electroencephalography with Self-supervised Learning
    Xu, Junjie
    Zheng, Yaojia
    Mao, Yifan
    Wang, Ruixuan
    Zheng, Wei-Shi
    2020 IEEE INTERNATIONAL CONFERENCE ON BIOINFORMATICS AND BIOMEDICINE, 2020, : 363 - 368
  • [7] Self-Supervised Learning by Estimating Twin Class Distribution
    Wang, Feng
    Kong, Tao
    Zhang, Rufeng
    Liu, Huaping
    Li, Hang
    IEEE TRANSACTIONS ON IMAGE PROCESSING, 2023, 32 : 2228 - 2236
  • [8] Self-supervised learning of class embeddings from video
    Wiles, Olivia
    Koepke, A. Sophia
    Zisserman, Andrew
    2019 IEEE/CVF INTERNATIONAL CONFERENCE ON COMPUTER VISION WORKSHOPS (ICCVW), 2019, : 3019 - 3027
  • [9] Plant Disease Detection Using Self-Supervised Learning: A Systematic Review
    Mamun, Abdullah Al
    Ahmedt-Aristizabal, David
    Zhang, Miaohua
    Ismail Hossen, Md
    Hayder, Zeeshan
    Awrangjeb, Mohammad
    IEEE ACCESS, 2024, 12 : 171926 - 171943
  • [10] Alignment-Guided Self-Supervised Learning for Diagram Question Answering
    Wang, Shaowei
    Zhang, Lingling
    Wu, Wenjun
    Qin, Tao
    Zhang, Xinyu
    Liu, Jun
    IEEE TRANSACTIONS ON MULTIMEDIA, 2025, 27 : 2141 - 2154