Leveraging Semantic Coupling Through Class Name Embeddings for Software Change Prediction

Metrics measuring coupling between code components have been effectively used to predict change-prone software classes. The majority of these coupling metrics are based on the structural aspects of code components. Although semantic coupling has been studied and found to be useful in analyzing object-oriented systems, its incorporation into change prediction models has not been explored. In this study, we propose new semantic coupling metrics calculated over class names’ embeddings and incorporate them into the prediction of change-prone classes. With the proposed metric, we aim to capture the conceptual relatedness of classes over their textual similarities of class names. Our experiment results on open-source software show that adding the semantic coupling metrics into change predictors improves the probability of detection rates up to 15% compared to the baseline predictor that uses size and complexity metrics. Moreover, the semantic coupling metrics lead to similar or superior change prediction performance compared to structural coupling metrics, and their combination is better than using solely semantic or structural coupling. The proposed semantic coupling metrics could be an alternative to structural coupling metrics for measuring relationships between software classes or they could be used to complement structural metrics in change prediction tasks. Future work is needed to understand complementary aspects of these metrics.

Authors

Institutions

Publication Details

Published
2024-10-25
DOI
https://doi.org/10.1109/icamac62387.2024.10829158
Primary Topic
Software Engineering Research
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Leveraging Semantic Coupling Through Class Name Embeddings for Software Change Prediction

Beyza Eken, Nur Banu Oğur
Software Engineering Research
article

Leveraging Semantic Coupling Through Class Name Embeddings for Software Change Prediction

Beyza Eken, Nur Banu Oğur
article en

Abstract

Metrics measuring coupling between code components have been effectively used to predict change-prone software classes. The majority of these coupling metrics are based on the structural aspects of code components. Although semantic coupling has been studied and found to be useful in analyzing object-oriented systems, its incorporation into change prediction models has not been explored. In this study, we propose new semantic coupling metrics calculated over class names’ embeddings and incorporate them into the prediction of change-prone classes. With the proposed metric, we aim to capture the conceptual relatedness of classes over their textual similarities of class names. Our experiment results on open-source software show that adding the semantic coupling metrics into change predictors improves the probability of detection rates up to 15% compared to the baseline predictor that uses size and complexity metrics. Moreover, the semantic coupling metrics lead to similar or superior change prediction performance compared to structural coupling metrics, and their combination is better than using solely semantic or structural coupling. The proposed semantic coupling metrics could be an alternative to structural coupling metrics for measuring relationships between software classes or they could be used to complement structural metrics in change prediction tasks. Future work is needed to understand complementary aspects of these metrics.

Sakarya University (TR)
Openalex Percentile: Top 60%
Software Engineering Research
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.