Automated detection of inter-language design smells in multi-language deep learning frameworks

被引:0
|
作者
Li, Zengyang [1 ,2 ]
Zhang, Xiaoyong [1 ,2 ]
Wang, Wenshuo [1 ,2 ]
Liang, Peng [3 ]
Mo, Ran [1 ,2 ]
Tan, Jie [4 ]
Liu, Hui [5 ]
机构
[1] Cent China Normal Univ, Sch Comp Sci, Wuhan, Peoples R China
[2] Cent China Normal Univ, Hubei Prov Key Lab Artificial Intelligence & Smart, Wuhan, Peoples R China
[3] Wuhan Univ, Sch Comp Sci, Wuhan, Peoples R China
[4] Intelligent Game & Decis Lab, Beijing, Peoples R China
[5] Huazhong Univ Sci & Technol, Sch Artificial Intelligence & Automation, Wuhan, Peoples R China
关键词
Inter-language design smell; Deep learning framework; Design smell detection; Multi-language software system;
D O I
10.1016/j.infsof.2024.107656
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Context: Nowadays, most deep learning frameworks (DLFs) use multilingual programming of Python and C/C++, facilitating the flexibility and performance of the DLF. However, inappropriate inter-language interaction may introduce design smells involving multiple programming languages (PLs), i.e., Inter-Language Design Smells (ILDS). Despite the negative impact of ILDS on multi-language DLFs, there is a lack of an automated approach for detecting ILDS in multi-language DLFs and a comprehensive understanding on ILDS in such DLFs. Objective: This work aims to automatically detect ILDS in multi-language DLFs written in the combination of Python and C/C++, and to obtain a comprehensive understanding on such ILDS in DLFs. Methods: We first developed an approach to automatically detecting ILDS in the multi-language DLFs written in the combination of Python and C/C++, including a number of ILDS and their detection rules defined based on inter-language communication mechanisms and code analysis. Then, we developed the CPSMELL tool that implements detection rules for automatically detecting such ILDS, and manually validated the accuracy of the tool. Finally, we performed an empirical study to evaluate the ILDS in multi-language DLFs. Results: We proposed seven ILDS and achieved an accuracy of 98.17% in the manual validation of CPSMELL in 5 popular multi-language DLFs. The study results revealed that among the 5 DLFs, TensorFlow, PyTorch, and PaddlePaddle exhibit relatively high prevalence of ILDS; each smelly file contains around 5 ILDS instances on average, with ILDS Long Lambda Function For Inter-language Binding and Unused Native Entity being relatively prominent; throughout the evolution process of the 5 DLFs, some ILDS were resolved to a certain extent, but the overall count of ILDS instances shows an upward trend. Conclusions: The automated detection of the proposed ILDS achieved a high accuracy, and the empirical study provides a comprehensive understanding on ILDS in the multi-language DLFs.
引用
收藏
页数:14
相关论文
共 50 条
  • [41] Detection of Sentiment Polarity of Unstructured Multi-Language Text from Social Media
    Ahmed, Saad
    Hina, Saman
    Asif, Raheela
    INTERNATIONAL JOURNAL OF ADVANCED COMPUTER SCIENCE AND APPLICATIONS, 2018, 9 (07) : 199 - 203
  • [42] MULTI-CLASS AUTOMATED SPEECH LANGUAGE RECOGNITION USING NATURAL LANGUAGE PROCESSING WITH OPTIMAL DEEP LEARNING MODEL
    Al-anazi, Reema g.
    Alqahtani, Hamed
    Alzaidi, Muhammad swaileh a.
    Alanazi, Meshari h.
    AL Sultan, Hanan
    Alrowaily, Amal f.
    Aljabri, Jawhara
    Alqudah, Assal
    FRACTALS-COMPLEX GEOMETRY PATTERNS AND SCALING IN NATURE AND SOCIETY, 2025,
  • [43] Convolutional Feature Fusion for Multi-Language Text Detection in Natural Scene Images
    Chandio, Asghar Ali
    Pickering, Mark
    2019 2ND INTERNATIONAL CONFERENCE ON COMPUTING, MATHEMATICS AND ENGINEERING TECHNOLOGIES (ICOMET), 2019,
  • [44] Multi-language transfer learning for low-resource legal case summarization
    Moro, Gianluca
    Piscaglia, Nicola
    Ragazzi, Luca
    Italiani, Paolo
    ARTIFICIAL INTELLIGENCE AND LAW, 2024, 32 (04) : 1111 - 1139
  • [45] Design of Instant Messaging System of Multi-language E-commerce Platform
    Yang, Heng
    Chen, Xinyi
    Li, Jiajia
    Cao, Yaru
    2017 2ND INTERNATIONAL SEMINAR ON ADVANCES IN MATERIALS SCIENCE AND ENGINEERING, 2017, 231
  • [46] Multi-national and Multi-language License Plate Detection using Convolutional Neural Networks
    Salemdeeb, Mohammed
    Erturk, Sarp
    ENGINEERING TECHNOLOGY & APPLIED SCIENCE RESEARCH, 2020, 10 (04) : 5979 - 5985
  • [47] Last Diff Analyzer: Multi-language Automated Approver for Behavior-Preserving Code Revisions
    Wang, Yuxin
    Welc, Adam
    Clapp, Lazaro
    Chen, Lingchao
    PROCEEDINGS OF THE 31ST ACM JOINT MEETING EUROPEAN SOFTWARE ENGINEERING CONFERENCE AND SYMPOSIUM ON THE FOUNDATIONS OF SOFTWARE ENGINEERING, ESEC/FSE 2023, 2023, : 1693 - 1704
  • [48] An Efficient New Multi-Language Clone Detection Approach from Large Source Code
    Rehman, Saif Ur
    Khan, Kamran
    Fong, Simon
    Biuk-Aghai, Robert
    PROCEEDINGS 2012 IEEE INTERNATIONAL CONFERENCE ON SYSTEMS, MAN, AND CYBERNETICS (SMC), 2012, : 937 - 940
  • [49] Further study on the design of multi-language web CBIR searching engine based on MAS
    Tang, ShiXi
    Wang, WeiLan
    Liu, HuaMing
    Xie, Hui
    ZhuoGa, YangJing
    2006 1ST INTERNATIONAL SYMPOSIUM ON PERVASIVE COMPUTING AND APPLICATIONS, PROCEEDINGS, 2006, : 658 - +
  • [50] Automated sign language detection and classification using reptile search algorithm with hybrid deep learning
    Alsolai, Hadeel
    Alsolai, Leen
    Al-Wesabi, Fahd N.
    Othman, Mahmoud
    Rizwanullah, Mohammed
    Abdelmageed, Amgad Atta
    HELIYON, 2024, 10 (01)