返回
Crowdsmelling: A preliminary study on using collective knowledge in code smells detection
DOI:10.1007/s10664-021-10110-5.png)
摘要
En 中文
Code smells are seen as major source of technical debt and, as such, should be detected and removed. However, researchers argue that the subjectiveness of the code smells detection process is a major hindrance to mitigate the problem of smells-infected code. This paper presents the results of a validation experiment for the Crowdsmelling approach proposed earlier. The latter is based on supervised machine learning techniques, where the wisdom of the crowd (of software developers) is used to collectively calibrate code smells detection algorithms, thereby lessening the subjectivity issue. In the context of three consecutive years of a Software Engineering course, a total crowd of around a hundred teams, with an average of three members each, classified the presence of 3 code smells (Long Method, God Class, and Feature Envy) in Java source code. These classifications were the basis of the oracles used for training six machine learning algorithms. Over one hundred models were generated and evaluated to determine which machine learning algorithms had the best performance in detecting each of the aforementioned code smells. Good performances were obtained for God Class detection (ROC= 0.896 for Naive Bayes) and Long Method detection (ROC= 0.870 for AdaBoostM1), but much lower for Feature Envy (ROC= 0.570 for Random Forrest). The results suggest that Crowdsmelling is a feasible approach for the detection of code smells. Further validation experiments based on dynamic learning are required to a comprehensive coverage of code smells to increase external validity.
Keyword:
Crowdsmelling
Code smells
Code smells detection
Software quality
Software maintenance
Collective knowledge
Machine learning algorithms
期刊
IF:
3.6
论文数:
2.0K
被引数:
5.3K
机构
引用论文
Analysis of genetic variability in various tissue culture-derived lemon plant populations using RAPD and flow cytometry
Euphytica
IF0
Recombination between an expressed immunoglobulin heavy-chain gene and a germline variable gene segment in a Ly 1+ B-cell lymphoma
Nature
IF0
Crowd computing: using competitive dynamics to develop and refine highly predictive models
DRUG DISCOVERY TODAY
IF7.5
Combined Use of Sentinel-1 SAR and Landsat Sensors Products for Residual Soil Moisture Retrieval over Agricultural Fields in the Upper Blue Nile Basin, Ethiopia结合使用Sentinel-1 SAR和Landsat传感器产品,在埃塞俄比亚青尼罗河上游流域的农田上进行残留土壤水分检索
Sensors
IF0

