A Multi-Feature Fusion Approach for Design Pattern Detection Based on Graph Neural Networks

Design patterns are powerful tools that provide standardized solutions to common problems in the software design process. Detecting design patterns in software systems can greatly facilitate software maintenance and code understanding, but manual detection is a complex and challenging task. In recent years, with the development of deep learning techniques, researchers have proposed automatic design pattern detection methods that utilize code features and machine learning classifiers. However, these approaches typically focus on either code semantic features or structural features, lacking the integration of both. To address this issue, in this paper, we propose a novel design pattern detection method with multi-feature fusion, DPDMF<sup xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">2</sup>, which effectively fuses code semantic features and software network structural features for design pattern detection. Specifically, we first represent software as a CSN (Class-level Software Network) to capture its topology, including classes, their relationships, and the types of these relationships. Concurrently, we utilize code representation learning techniques to obtain semantic features of the code, which are then used as node attribute features within the network. Finally, we utilize graph neural networks (GNNs) to fuse these two types of features, generating a vector representation that encapsulates both semantic and structural information for design pattern detection task. Experimental results on public datasets show that DPDMF<sup xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">2</sup> achieves 81.7% precision and 82.1% recall, validating the overall effectiveness of our method.

Authors

Institutions

Publication Details

Published
2025-05-05
DOI
https://doi.org/10.1109/cscwd64889.2025.11033498
Primary Topic
Manufacturing Process and Optimization
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A Multi-Feature Fusion Approach for Design Pattern Detection Based on Graph Neural Networks

Tao Jia, Nan Li, Xiaomeng Wang, Junxiang Zhang et al.
Manufacturing Process and Optimization
article

A Multi-Feature Fusion Approach for Design Pattern Detection Based on Graph Neural Networks

Tao Jia, Nan Li, Xiaomeng Wang, Junxiang Zhang, Nong Zou
article en

Abstract

Design patterns are powerful tools that provide standardized solutions to common problems in the software design process. Detecting design patterns in software systems can greatly facilitate software maintenance and code understanding, but manual detection is a complex and challenging task. In recent years, with the development of deep learning techniques, researchers have proposed automatic design pattern detection methods that utilize code features and machine learning classifiers. However, these approaches typically focus on either code semantic features or structural features, lacking the integration of both. To address this issue, in this paper, we propose a novel design pattern detection method with multi-feature fusion, DPDMF<sup xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">2</sup>, which effectively fuses code semantic features and software network structural features for design pattern detection. Specifically, we first represent software as a CSN (Class-level Software Network) to capture its topology, including classes, their relationships, and the types of these relationships. Concurrently, we utilize code representation learning techniques to obtain semantic features of the code, which are then used as node attribute features within the network. Finally, we utilize graph neural networks (GNNs) to fuse these two types of features, generating a vector representation that encapsulates both semantic and structural information for design pattern detection task. Experimental results on public datasets show that DPDMF<sup xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">2</sup> achieves 81.7% precision and 82.1% recall, validating the overall effectiveness of our method.

Southwest University (CN)
Openalex Percentile: Top 80%
Manufacturing Process and Optimization
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

A Multi-Feature Fusion Approach for Design Pattern Detection Based on Graph Neural Networks — Tao Jia, Nan Li, et al. · (2025) | TGRS Research Map | TGRS