MRI
MRI India Journals Vol. 14 No. 1 (2025)

Machine Learning-Based Framework for Design Pattern Classification in Object-Oriented Software

Authors

  • Y. Rokesh Associate  Professor ,Department of Computer Science & Engineering ,Chalapathi Institute of Engineering and Technology, LAM, Guntur, AP, India
  • Challa Pravallika Department of Computer Science and Engineering,Chalapathi Institute of Engineering and Technology, LAM, Guntur, AP, India
  • Jampani Ashok Kumar Department of Computer Science and Engineering,Chalapathi Institute of Engineering and Technology, LAM, Guntur, AP, India
  • Ankam David Emmanuel Paul Department of Computer Science and Engineering,Chalapathi Institute of Engineering and Technology, LAM, Guntur, AP, India
  • Kakani Sai Krishna Department of Computer Science and Engineering,Chalapathi Institute of Engineering and Technology, LAM, Guntur, AP, India

DOI:

https://doi.org/10.65521/ijacect.v14i1.166

Keywords:

REST API Ontology Ranking Random Forest Source Code Analysis Machine Learning Design Patterns

Abstract

Design patterns serve as reusable solutions to common software development challenges, enabling better organization, maintainability, and scalability of code. Despite their advantages, selecting the right design pattern during development can be a complex and subjective task, particularly for beginner programmers. This paper introduces an intelligent approach that utilizes machine learning to automatically recommend appropriate design patterns based on the structural characteristics of Java source code.The proposed framework begins by analyzing Java files to extract key structural features, which are then encoded into numerical vectors. These vectors capture the essential aspects of the code design and are used as input to machine learning algorithms such as Support Vector Machine (SVM), Decision Tree, and Random Forest. Additionally, an ontology-based similarity ranking method is employed to enhance the precision of predictions by measuring the closeness between the input code and existing pattern examples in the dataset.To make the solution user-friendly and accessible, the model is deployed as a RESTful API. Users can submit their source code through a web interface and receive instant feedback on the most likely design pattern classification, along with model confidence levels. Experimental evaluations indicate that the Random Forest model consistently delivers high accuracy in predicting one of the 13 predefined design patterns, outperforming the other classifiers tested.This system not only supports developers in making more informed design decisions but also contributes to the automation of software architecture practices. The integration of machine learning with software engineering principles creates a valuable resource for both academic research and industry application.

Downloads

Published

2025-04-14

How to Cite

Rokesh , Y., Pravallika, C., Kumar, J. A., Paul , A. D. E., & Krishna , K. S. (2025). Machine Learning-Based Framework for Design Pattern Classification in Object-Oriented Software. International Journal on Advanced Computer Engineering and Communication Technology, 14(1), 9–16. https://doi.org/10.65521/ijacect.v14i1.166

Issue

Section

Articles

Similar Articles

<< < 24 25 26 27 28 29 30 31 32 33 > >> 

You may also start an advanced similarity search for this article.