
An Ontology-Enabled Approach for the Detection of Software Design Smells
Author(s) -
Sabiyyah Sabir,
Ghulam Rasool,
Tariq Umer,
Naoufel Kraiem,
Yunyoung Nam
Publication year - 2025
Publication title -
ieee access
Language(s) - English
Resource type - Magazines
SCImago Journal Rank - 0.587
H-Index - 127
eISSN - 2169-3536
DOI - 10.1109/access.2025.3590267
Subject(s) - aerospace , bioengineering , communication, networking and broadcast technologies , components, circuits, devices and systems , computing and processing , engineered materials, dielectrics and plasmas , engineering profession , fields, waves and electromagnetics , general topics for engineers , geoscience , nuclear engineering , photonics and electrooptics , power, energy and industry applications , robotics and control systems , signal processing and analysis , transportation
Software evolution and bad smells have been widely studied over past two decades, occurring at architecture, design, implementation, and requirement levels. Design smells, which result from poor software design or violations of best programming practices, often seep into the implementation stage, causing hindrances for writing cleaner and maintainable code. Detecting design smells at design stage significantly reduces their proliferation to implementation stage. This paper introduces an innovative Ontology based Detection of Design Smell (ODDS) approach for detecting software design smells at the design level. We analyzed 4,820 classes and 27,563 methods across various Java projects, proposing new design-level metrics and axioms tailored for identifying 10 design smells. Our approach also identified that some design smells serve as precursors to the occurrence of other design smells. Unlike existing approaches that rely on source code metrics for detecting architectural and design smells, our method emphasizes using metrics, corresponding to the specific level of granularity—architectural, design, and code. Our methodology facilitates research community by early detection during the design phase, ensures design consistency by supporting automated reasoning, and reducing propagation of design smells in to implementation phase. This highlights the importance of clear and understandable designs to facilitate refactoring and minimize design smells. The efficacy of our approach is validated through its application to open-source software projects, giving precision and recall of 0.92, 0.91 and demonstrating significant potential in enhancing the detection and management of design smells.
Accelerating Research
Robert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom
Address
John Eccles HouseRobert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom