Kereső
Bejelentkezés
Kapcsolat
|
|
Applying Tree-Based Convolutional Neural Networks to classify design patterns |
| Tartalom: | https://real.mtak.hu/227753/ |
|---|---|
| Archívum: | REAL |
| Gyűjtemény: |
Status = Published
Subject = Q Science / természettudomány: QA Mathematics / matematika: QA75 Electronic computers. Computer science / számítástechnika, számítógéptudomány Type = Book Section Subject = Q Science / természettudomány: QA Mathematics / matematika: QA76.76 Software Design and Development / Szoftvertervezés és -fejlesztés |
| Cím: |
Applying Tree-Based Convolutional Neural Networks to classify design patterns
|
| Létrehozó: |
Kusper, Gábor
Hidi, Erik Zoltán
Kusper, Krisztián
Yang, Zijian Győző
Márien, Szabolcs
|
| Kiadó: |
Eszterházy Károly Katolikus Egyetem Líceum Kiadó
|
| Dátum: |
2025
|
| Téma: |
QA75 Electronic computers. Computer science / számítástechnika, számítógéptudomány
QA76.76 Software Design and Development / Szoftvertervezés és -fejlesztés
|
| Tartalmi leírás: |
Automatic detection and classification of design patterns are an increasingly relevant task in modern software engineering, as it directly contributes to improving code quality, readability, and maintainability. In this paper, we propose the application of a modified Tree-Based Convolutional Neural Network (TBCNN) architecture for the recognition of GoF design patterns in Java source code. The approach leverages Abstract Syntax Trees (ASTs) as structural representations of programs, where nodes are encoded by a pre-trained embedding model that captures semantic similarities between language keywords. The resulting vectorized ASTs are processed by the TBCNN, enabling the model to learn both structural and semantic features characteristic of design patterns. For training and evaluation, we collected a dataset of Java implementations of design patterns from GitHub repositories, resulting in approximately 500–600 samples per pattern. Experimental results demonstrate high classification accuracy, with average precision, recall, and F1-scores exceeding 98% across eight design patterns. These findings confirm the viability of tree-based deep learning methods for pattern recognition in source code. However, the model shows limitations when applied to real-world production code, likely due to the restricted representativeness of the training data, which consists mainly of educational implementations.
|
| Nyelv: |
angol
|
| Típus: |
Book Section
PeerReviewed
info:eu-repo/semantics/bookPart
|
| Formátum: |
text
|
| Azonosító: |
Kusper, Gábor and Hidi, Erik Zoltán and Kusper, Krisztián and Yang, Zijian Győző and Márien, Szabolcs (2025) Applying Tree-Based Convolutional Neural Networks to classify design patterns. In: Proceedings of the International Conference on Formal Methods and Foundations of Artificial Intelligence. Eszterházy Károly Katolikus Egyetem Líceum Kiadó, Eger, pp. 140-147. ISBN 9789634963035
|
| Kapcsolat: |
doi:10.17048/fmfai.2025.140
|