Abstract
Infrastructure-as-Code (IaC) is increasingly adopted. However, little is known about how to best maintain and evolve it. Previous studies focused on defining Machine-Learning models to predict defect-prone blueprints using supervised binary classification. This class of techniques uses both defective and non-defective instances in the training phase. Furthermore, the high imbalance between defective and non-defective samples makes the training more difficult and leads to unreliable classifiers. In this work, we tackle the defect-prediction problem from a different perspective using novelty detection and evaluate the performance of three techniques, namely OneClassSVM, LocalOutlierFactor, and IsolationForest, and compare their performance with a baseline RandomForest binary classifier. Such models are trained using only non-defective samples: defective data points are treated as novelty because the number of defective samples is too little compared to defective ones. We conduct an empirical study on an extremely-imbalanced dataset consisting of 85 real-world Ansible projects containing only small amounts of defective instances. We found that novelty detection techniques can recognize defects with a high level of precision and recall, an AUC-PR up to 0.86, and an MCC up to 0.31. We deem our results can influence the current trends in defect detection and put forward a new research path toward dealing with this problem.
| Original language | English |
|---|---|
| Title of host publication | MaLTeSQuE 2020 - Proceedings of the 4th ACM SIGSOFT International Workshop on Machine-Learning Techniques for Software-Quality Evaluation, Co-located with ESEC/FSE 2020 |
| Editors | Foutse Khomh, Pasquale Salza, Gemma Catolino |
| Publisher | Association for Computing Machinery, Inc. |
| Pages | 31-36 |
| Number of pages | 6 |
| ISBN (Electronic) | 9781450381246 |
| DOIs | |
| Publication status | Published - 13 Nov 2020 |
| Event | 4th ACM SIGSOFT International Workshop on Machine-Learning Techniques for Software-Quality Evaluation, MaLTeSQuE 2020, co-located with the ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering, ESEC/FSE 2020 - Virtual, Online, United States Duration: 13 Nov 2020 → … |
Conference
| Conference | 4th ACM SIGSOFT International Workshop on Machine-Learning Techniques for Software-Quality Evaluation, MaLTeSQuE 2020, co-located with the ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering, ESEC/FSE 2020 |
|---|---|
| Country/Territory | United States |
| City | Virtual, Online |
| Period | 13/11/20 → … |
Funding
This work is supported by the European Commission grant no. 825040 (RADON H2020).
| Funders | Funder number |
|---|---|
| European Union's Horizon 2020 - Research and Innovation Framework Programme | 825040 |
| European Commission | RADON H2020 |
Keywords
- Defect Prediction
- Infrastructure-as-Code
- Novelty Detection
Fingerprint
Dive into the research topics of 'Singling the odd ones out: A novelty detection approach to find defects in infrastructure-as-code'. Together they form a unique fingerprint.Cite this
- APA
- Author
- BIBTEX
- Harvard
- Standard
- RIS
- Vancouver