What Characterizes Pairwise Modular Smells?

IF 6 1区 计算机科学 Q1 COMPUTER SCIENCE, SOFTWARE ENGINEERING
IEEE Transactions on Software Engineering Pub Date : 2026-09-01 Epub Date: 2026-06-16 DOI:10.1109/TSE.2026.3704291
Chenxing Zhong;Daniel Feitosa;Paris Avgeriou;Huang Huang;Wei Song;He Zhang
{"title":"What Characterizes Pairwise Modular Smells?","authors":"Chenxing Zhong;Daniel Feitosa;Paris Avgeriou;Huang Huang;Wei Song;He Zhang","doi":"10.1109/TSE.2026.3704291","DOIUrl":null,"url":null,"abstract":"Enhancing the modular structure of existing systems has attracted substantial research interest, primarily through (1) software modularization and (2) identifying design issues (<i>e</i>.<i>g</i>., smells) as refactoring opportunities; however, both approaches often prove impractical to guide effective improvement. Inspired by both aforementioned approaches, our previous study introduced a novel and practical architectural smell – called <i>Pairwise Modular Smell</i> (or <i>PairSmell</i>) – for identifying flawed architectural decisions that necessitate further examination. <i>PairSmell</i> is defined as the deviations between the actual modular relation (MR) and the ‘apt MR’– an MR agreed on by multiple modularization tools (as raters). Although <i>PairSmell</i> has shown its relevance, the reliance on external modularization tools makes it a relatively obscure concept within the community, which in turn may threaten its validity to be used in inspecting software module structure. The objective of this study is to explain <i>PairSmell</i> from the perspective of pair characteristics. To this end, we first conduct a rapid review to collect and synthesize 19 pair characteristics that have been used in the literature to represent relationships between two entities. The collected characteristics are then used to train machine learning models for predicting two forms of <i>PairSmell</i> – inapt separated pairs <inline-formula><tex-math>$\\boldsymbol{InSep}$</tex-math></inline-formula> and inapt collocated pairs <inline-formula><tex-math>$\\boldsymbol{InCol}$</tex-math></inline-formula>, based on a curated dataset of over 6,135,000 pairs of entities derived from 11 open-source Java projects. The trained models achieve up to a 58.6% improvement in ROC-AUC over the baselines. The interpretation of the models reveals that the most influential features for <inline-formula><tex-math>$\\boldsymbol{InSep}$</tex-math></inline-formula> are out-going dependencies, terms shared with others, and declared fields; while those for <inline-formula><tex-math>$\\boldsymbol{InCol}$</tex-math></inline-formula> include semantic similarity based on tf-idf, terms shared between the pair, terms shared with others, and in-going dependencies. We complement the work with a series of practical examples to illustrate how the influential pair characteristics impact the occurrence of <i>PairSmell</i>. Among our findings, a high number of out-going dependencies of a separated pair may raise questions about the separation, while a low level of shared terms may not justify collocating the two entities.","PeriodicalId":13324,"journal":{"name":"IEEE Transactions on Software Engineering","volume":"52 9","pages":"2838-2854"},"PeriodicalIF":6.0000,"publicationDate":"2026-09-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"IEEE Transactions on Software Engineering","FirstCategoryId":"94","ListUrlMain":"https://ieeexplore.ieee.org/document/11568190/","RegionNum":1,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"2026/6/16 0:00:00","PubModel":"Epub","JCR":"Q1","JCRName":"COMPUTER SCIENCE, SOFTWARE ENGINEERING","Score":null,"Total":0}
引用次数: 0

Abstract

Enhancing the modular structure of existing systems has attracted substantial research interest, primarily through (1) software modularization and (2) identifying design issues (e.g., smells) as refactoring opportunities; however, both approaches often prove impractical to guide effective improvement. Inspired by both aforementioned approaches, our previous study introduced a novel and practical architectural smell – called Pairwise Modular Smell (or PairSmell) – for identifying flawed architectural decisions that necessitate further examination. PairSmell is defined as the deviations between the actual modular relation (MR) and the ‘apt MR’– an MR agreed on by multiple modularization tools (as raters). Although PairSmell has shown its relevance, the reliance on external modularization tools makes it a relatively obscure concept within the community, which in turn may threaten its validity to be used in inspecting software module structure. The objective of this study is to explain PairSmell from the perspective of pair characteristics. To this end, we first conduct a rapid review to collect and synthesize 19 pair characteristics that have been used in the literature to represent relationships between two entities. The collected characteristics are then used to train machine learning models for predicting two forms of PairSmell – inapt separated pairs $\boldsymbol{InSep}$ and inapt collocated pairs $\boldsymbol{InCol}$, based on a curated dataset of over 6,135,000 pairs of entities derived from 11 open-source Java projects. The trained models achieve up to a 58.6% improvement in ROC-AUC over the baselines. The interpretation of the models reveals that the most influential features for $\boldsymbol{InSep}$ are out-going dependencies, terms shared with others, and declared fields; while those for $\boldsymbol{InCol}$ include semantic similarity based on tf-idf, terms shared between the pair, terms shared with others, and in-going dependencies. We complement the work with a series of practical examples to illustrate how the influential pair characteristics impact the occurrence of PairSmell. Among our findings, a high number of out-going dependencies of a separated pair may raise questions about the separation, while a low level of shared terms may not justify collocating the two entities.
配对模气味的特征是什么?
增强现有系统的模块化结构吸引了大量的研究兴趣,主要是通过(1)软件模块化和(2)识别设计问题(例如,气味)作为重构机会;然而,这两种方法往往被证明是不切实际的,无法指导有效的改进。受上述两种方法的启发,我们之前的研究引入了一种新颖实用的架构气味——称为成对模块化气味(Pairwise Modular smell,或PairSmell)——用于识别需要进一步检查的有缺陷的架构决策。PairSmell被定义为实际模块化关系(MR)与“apt MR”之间的偏差,“apt MR”是由多个模块化工具(作为评级者)商定的MR。尽管PairSmell已经显示了它的相关性,但是对外部模块化工具的依赖使它在社区中成为一个相对模糊的概念,这反过来又可能威胁到它在检查软件模块结构时的有效性。本研究的目的是从配对特征的角度来解释PairSmell。为此,我们首先进行了快速回顾,收集并综合了文献中用于表示两个实体之间关系的19对特征。然后,收集到的特征用于训练机器学习模型,以预测两种形式的PairSmell——不恰当的分离对$\boldsymbol{InSep}$和不恰当的并置对$\boldsymbol{InSep}$,基于来自11个开源Java项目的超过6,135,000对实体的精选数据集。经过训练的模型在ROC-AUC上比基线提高了58.6%。对模型的解释表明,$\boldsymbol{InSep}$最具影响力的特征是外向依赖关系、与其他人共享的术语和声明的字段;而$\boldsymbol{InCol}$则包括基于tf-idf的语义相似度,对之间共享的术语,与其他术语共享的术语以及内部依赖关系。我们用一系列实际的例子来说明有影响的配对特征如何影响成对气味的发生。在我们的研究结果中,大量的分离对的外部依赖关系可能会引发有关分离的问题,而低水平的共享条款可能无法证明将两个实体组合在一起是合理的。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
IEEE Transactions on Software Engineering
IEEE Transactions on Software Engineering 工程技术-工程:电子与电气
CiteScore
9.70
自引率
10.80%
发文量
724
审稿时长
6 months
期刊介绍: IEEE Transactions on Software Engineering seeks contributions comprising well-defined theoretical results and empirical studies with potential impacts on software construction, analysis, or management. The scope of this Transactions extends from fundamental mechanisms to the development of principles and their application in specific environments. Specific topic areas include: a) Development and maintenance methods and models: Techniques and principles for specifying, designing, and implementing software systems, encompassing notations and process models. b) Assessment methods: Software tests, validation, reliability models, test and diagnosis procedures, software redundancy, design for error control, and measurements and evaluation of process and product aspects. c) Software project management: Productivity factors, cost models, schedule and organizational issues, and standards. d) Tools and environments: Specific tools, integrated tool environments, associated architectures, databases, and parallel and distributed processing issues. e) System issues: Hardware-software trade-offs. f) State-of-the-art surveys: Syntheses and comprehensive reviews of the historical development within specific areas of interest.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书