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 条
  • [21] Intrusion Detection with Mouse Movements and Self-Supervised Learning
    Yildirim, Metehan
    Anarim, Emin
    2020 28TH SIGNAL PROCESSING AND COMMUNICATIONS APPLICATIONS CONFERENCE (SIU), 2020,
  • [22] Self-Supervised Equivariant Learning for Oriented Keypoint Detection
    Lee, Jongmin
    Kim, Byungjin
    Cho, Minsu
    2022 IEEE/CVF CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION (CVPR 2022), 2022, : 4837 - 4847
  • [23] CutPaste: Self-Supervised Learning for Anomaly Detection and Localization
    Li, Chun-Liang
    Sohn, Kihyuk
    Yoon, Jinsung
    Pfister, Tomas
    2021 IEEE/CVF CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION, CVPR 2021, 2021, : 9659 - 9669
  • [24] Detection of Blob and Feature Envy Smells in a Class Diagram using Class's Features
    Priyambadha, Bayu
    Katayama, Tetsuro
    Kita, Yoshihiro
    Yamaba, Hisaaki
    Aburada, Kentaro
    Okazaki, Naonobu
    JOURNAL OF ROBOTICS NETWORKING AND ARTIFICIAL LIFE, 2022, 9 (01): : 43 - 48
  • [25] Road Condition Anomaly Detection using Self-Supervised Learning from Audio
    Gim, U-Ju
    2023 IEEE 26TH INTERNATIONAL CONFERENCE ON INTELLIGENT TRANSPORTATION SYSTEMS, ITSC, 2023, : 675 - 680
  • [26] A Self-Supervised Learning Approach to Road Anomaly Detection Using Masked Autoencoders
    Dutta, Proma
    Podder, Kanchon Kanti
    Zhang, Jian
    Hecht, Christian
    Swarna, Surya
    Bhavsar, Parth
    INTERNATIONAL CONFERENCE ON TRANSPORTATION AND DEVELOPMENT 2024: PAVEMENTS AND INFRASTRUCTURE SYSTEMS, ICTD 2024, 2024, : 536 - 547
  • [27] Anomaly Detection on the Rail Lines Using Semantic Segmentation and Self-supervised Learning
    Jahan, Kanwal
    Umesh, Jeethesh Pai
    Roth, Michael
    2021 IEEE SYMPOSIUM SERIES ON COMPUTATIONAL INTELLIGENCE (IEEE SSCI 2021), 2021,
  • [28] Self-Supervised Learning in Medical Imaging: Anomaly Detection in MRI Using Autoencoders
    Wismueller, Axel
    Vosoughi, M. Ali
    REAL-TIME IMAGE PROCESSING AND DEEP LEARNING 2022, 2022, 12102
  • [29] Gated Self-supervised Learning for Improving Supervised Learning
    Fuadi, Erland Hillman
    Ruslim, Aristo Renaldo
    Wardhana, Putu Wahyu Kusuma
    Yudistira, Novanto
    2024 IEEE CONFERENCE ON ARTIFICIAL INTELLIGENCE, CAI 2024, 2024, : 611 - 615
  • [30] Self-Supervised Dialogue Learning
    Wu, Jiawei
    Wang, Xin
    Wang, William Yang
    57TH ANNUAL MEETING OF THE ASSOCIATION FOR COMPUTATIONAL LINGUISTICS (ACL 2019), 2019, : 3857 - 3867