Advancing Test Data Selection by Leveraging Decision Tree Structures: An Investigation into Decision Tree Coverage and Mutation Analysis
Over the past decade, there has been a significant surge in interest regarding the application of machine learning (ML) across various tasks. Due to this interest, the adoption of ML-based systems has gone mainstream. It turns out that it is imperative to conduct thorough software testing on these systems to ensure that they behave as expected. However, ML-based systems present unique challenges for software testers who are striving to enhance the quality and reliability of these solutions. To cope with these testing challenges, we propose novel test adequacy criteria centered on decision tree models. Our criteria diverge from the conventional method of manually collecting and labeling data. Instead, our criteria relies on the inherent structure of decision tree models to inform the selection of test inputs. Specifically, we introduce decision tree coverage (DTC) and boundary value analysis (BVA) as approaches to systematically guide the creation of effective test data that exercises key structural elements of a given decision tree model. Additionally, we also propose a mutation based criterion to support the validation of ML-based systems. Essentially, this approach involves applying mutation analysis to the decision tree structure. The resulting mutated trees are then used as a reference for selecting test data that can effectively identify incorrect classifications in ML models. To evaluate these criteria, we carried out an experiment using 16 datasets. We measured the effectiveness of test inputs in terms of the difference in model’s behavior between the test input and the training data. According to the results of the experiment, our criteria can be used to improve the test data selection for ML applications by guiding the generation of diversified test data that negatively impact the prediction performance of models.
Authors
- Sebastião Santos (ORCID: https://orcid.org/0000-0002-2797-7079)
- Simone R. S. Souza (ORCID: https://orcid.org/0000-0001-9007-9821)
- Rafael S. Durelli (ORCID: https://orcid.org/0000-0002-6343-7715)
- Vinícius H. S. Durelli (ORCID: https://orcid.org/0000-0002-5768-1850)
- Márcio Eduardo Delamaro (ORCID: https://orcid.org/0000-0001-7535-5891)
- Beatriz Silveira (ORCID: https://orcid.org/0009-0007-1507-3367)
Institutions
- Universidade Federal de Lavras (BR)
- Universidade Federal de São Carlos (BR)
- Universidade de São Paulo (BR)
Publication Details
- Journal
- Journal of Software Engineering Research and Development
- Published
- 2025-03-24
- DOI
- https://doi.org/10.5753/jserd.2025.4084
- Primary Topic
- Software Testing and Debugging Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- Fundação de Amparo à Pesquisa do Estado de São Paulo
- Coordenação de Aperfeiçoamento de Pessoal de Nível Superior
- Conselho Nacional de Desenvolvimento Científico e Tecnológico