DocumentCode
3115176
Title
A Bayesian Approach for the Detection of Code and Design Smells
Author
Khomh, Foutse ; Vaucher, Stéphane ; Gueheneuc, Yann-Gael ; Sahraoui, Houari
Author_Institution
DGIGL, Ecole Polytech. de Montreal, Montreal, QC, Canada
fYear
2009
fDate
24-25 Aug. 2009
Firstpage
305
Lastpage
314
Abstract
The presence of code and design smells can have a severe impact on the quality of a program. Consequently, their detection and correction have drawn the attention of both researchers and practitioners who have proposed various approaches to detect code and design smells in programs. However, none of these approaches handle the inherent uncertainty of the detection process. We propose a Bayesian approach to manage this uncertainty. First, we present a systematic process to convert existing state-of-the-art detection rules into a probabilistic model. We illustrate this process by generating a model to detect occurrences of the Blob antipattern. Second, we present results of the validation of the model: we built this model on two open-source programs, GanttProject v1.10.2 and Xerces v2.7.0, and measured its accuracy. Third, we compare our model with another approach to show that it returns the same candidate classes while ordering them to minimise the quality analysts´ effort. Finally, we show that when past detection results are available, our model can be calibrated using machine learning techniques to offer an improved, context-specific detection.
Keywords
belief networks; software quality; uncertainty handling; Bayesian approach; Blob antipattern; GanttProject v1.10.2; Xerces v2.7.0; code smell detection; context specific detection; design smell detection; detection rules; machine learning technique; open source program; probabilistic model; program quality; quality analysts effort; uncertainty handling; Bayesian methods; Context modeling; Electronic mail; Impedance; Machine learning; Open source software; Quality assessment; Software quality; Software systems; Uncertainty; bayesian belief networks; code smells; design smells; software quality;
fLanguage
English
Publisher
ieee
Conference_Titel
Quality Software, 2009. QSIC '09. 9th International Conference on
Conference_Location
Jeju
ISSN
1550-6002
Print_ISBN
978-1-4244-5912-4
Type
conf
DOI
10.1109/QSIC.2009.47
Filename
5381430
Link To Document