arrow
Return

Design Pattern Prediction From Source Code Using LLM-Based Feature Engineering and SVM Classification

delete2026-01-01
delete0
delete
OA
AI
K
Komolov, Sirojiddin
M
Mazzara, Manuel
B
Bajwa, Imran Sarwar *
DOI:10.1049/sfw2/7163249delete
deleteOriginal
deleteShare
deleteSave
View PDF
Abstract

Abstract

En 中文
Typical source code (SC) metrics are useful in identifying and predicting the used design patterns in typical Java and Kotlin projects. However, typical SC metrics-based prediction tends to be less accurate. This research presents a novel idea of detecting various design patterns in a code with the help of large language model (LLM)-based features extraction, instead of using conventional SC metrics typically used in the existing approaches. This research aims to identify and extract using architectural design patterns with the help of various LLM-based feature extraction and supervised machine learning (ML) algorithms. In the proposed approach, LLM-based various 24 design pattern features are extracted instead of the start-of-the-art metrics used for prediction of the design pattern of a particular SC of project. This paper mainly contributes to intelligent and automated software design and development in terms of artificial intelligence (AI)-based detection of design patterns for the purpose of reengineering. In addition to this, this research also aims to investigate the role of design patterns features in automated detection of architectural design patterns and study the association in architectural design patterns and its respective and peculiar features. A Python-based implementation of support vector machine (SVM) algorithm was made. The overall accuracy of SVM-based binary classification was 97.30% that guides the performance of the proposed approach.
Keywords:
design pattern features
design patterns
large language models
SVM
AI Summary

AI Summary

Key information extracted from the uploaded paper, including a brief overview, abstract, background, key highlights, visual analysis, and future outlook.

Journal

I
IET Software
IF:
1.3
Papers:
21
Citations:
654

Organization

I
Innopolis University
Scholars:
299
Papers: 242
Citations: 139
I
Islamia University of Bahawalpur
Scholars:
4.5K
Papers: 3.6K
Citations: 5.3K