loading
Papers Papers/2022 Papers Papers/2022

Research.Publish.Connect.

Paper

Authors: Abir Nacef 1 ; Sahbi Bahroun 2 ; Adel Khalfallah 1 and Samir Ben Ahmed 1

Affiliations: 1 Faculty of Mathematical, Physical and Natural Sciences of Tunis (FST), Computer Laboratory for Industrial Systems, Tunis El Manar University, Tunisia ; 2 Higher Institute of Computer Science (ISI), Limtic Laboratory, Tunis El Manar University, Tunisia

Keyword(s): Design Patterns, Singleton Variant, RNN-LSTM Classifier, Machine Learning, SD Classifier.

Abstract: Design patterns codify standard solutions to common problems in software design and architecture. Given their importance in improving software quality and facilitating code reuse, many types of research are proposed on their automatic detection. In this paper, we focus on singleton pattern recovery by proposing a method that can identify orthodox implementations and non-standard variants. The recovery process is based on specific data created using a set of relevant features. These features are specific information defining each variant which is extracted from the Java program by syntactical and semantic analysis. We are based on the singleton analysis and different proposed features in ou previous work (Nacef et al., 2022) to create structured data. This data contains a combination of feature values defining each singleton variant to train a supervised Machine Learning (ML) algorithm. The goal is not limited to detecting the singleton pattern but also the specification of the implem ented variant as so as the incoherent structure that inhib the pattern intent. We use different ML algorithms to create the Singleton Detector (SD) and compare their performance. The empirical results demonstrate that our method based on features and supervised ML, can identify any singleton implementation with the specific variant’s name achieving 99% of precision, and recall. We have compared the proposed approach to similar studies namely DPDf and GEML. The results show that the SD outperforms the state-of-the-art approaches by more than 20% on evaluated data constructed from different repositories; PMART, DPB and DPDf corpus in terms of precision. (More)

CC BY-NC-ND 4.0

Sign In Guest: Register as new SciTePress user now for free.

Sign In SciTePress user: please login.

PDF ImageMy Papers

You are not signed in, therefore limits apply to your IP address 3.143.218.11

In the current month:
Recent papers: 100 available of 100 total
2+ years older papers: 200 available of 200 total

Paper citation in several formats:
Nacef, A.; Bahroun, S.; Khalfallah, A. and Ben Ahmed, S. (2023). Features and Supervised Machine Learning Based Method for Singleton Design Pattern Variants Detection. In Proceedings of the 18th International Conference on Evaluation of Novel Approaches to Software Engineering - ENASE; ISBN 978-989-758-647-7; ISSN 2184-4895, SciTePress, pages 226-237. DOI: 10.5220/0011992100003464

@conference{enase23,
author={Abir Nacef. and Sahbi Bahroun. and Adel Khalfallah. and Samir {Ben Ahmed}.},
title={Features and Supervised Machine Learning Based Method for Singleton Design Pattern Variants Detection},
booktitle={Proceedings of the 18th International Conference on Evaluation of Novel Approaches to Software Engineering - ENASE},
year={2023},
pages={226-237},
publisher={SciTePress},
organization={INSTICC},
doi={10.5220/0011992100003464},
isbn={978-989-758-647-7},
issn={2184-4895},
}

TY - CONF

JO - Proceedings of the 18th International Conference on Evaluation of Novel Approaches to Software Engineering - ENASE
TI - Features and Supervised Machine Learning Based Method for Singleton Design Pattern Variants Detection
SN - 978-989-758-647-7
IS - 2184-4895
AU - Nacef, A.
AU - Bahroun, S.
AU - Khalfallah, A.
AU - Ben Ahmed, S.
PY - 2023
SP - 226
EP - 237
DO - 10.5220/0011992100003464
PB - SciTePress