Artifacts - BDD4ML: A Behavior-Driven Development Framework for Machine Learning Models

Abstract—[Context] Machine Learning (ML) systems presentunique testing challenges due to their non-deterministic natureand lack of formal specifications. [Goal] In this paper, we intro-duce BDD4ML, a framework that adapts Behavior-Driven Devel-opment (BDD) principles for testing of ML models. [Method] Wedesigned BDD4ML to support both classification and regressionmodel testing through natural language clauses in Gherkinsyntax, and implemented it using the Python Behave framework,allowing model expectations to be explicit and executable. Theframework was evaluated through an academic observationalstudy and an industrial focus group discussion, both assessingtechnology acceptance. In the observational study, graduatestudents used the framework to automate tests for an industrialML model. In the focus group, the ML experts responsible fordeveloping the ML model were presented with the BDD4MLsolution and discussed the usage of the framework within realprojects. [Results] In the classroom setting, participants wereable to specify BDD4ML scenarios for successfully testing theindustrial model with minimal mistakes. A majority of thestudents agreed on the framework’s usefulness (84.62%), ease ofuse (76.92%), and expressed intention to adopt it (76.92%). In theindustrial focus group, participants also considered the BDD4MLuseful and easy to use, and showed interest in adopting it. In thediscussions, they highlighted BDD4ML’s value for transparency,decision support, model monitoring, and collaborative require-ment specification. [Conclusion] The results indicate BDD4ML asa promising approach for bringing BDD practices to ML modeltesting. The framework is openly available for use and extension.

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2025-06-02
DOI
https://doi.org/10.5281/zenodo.15507469
Primary Topic
Explainable Artificial Intelligence (XAI)
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Artifacts - BDD4ML: A Behavior-Driven Development Framework for Machine Learning Models

Zenodo (CERN European Organization for Nuclear Research)
Explainable Artificial Intelligence (XAI)
article

Artifacts - BDD4ML: A Behavior-Driven Development Framework for Machine Learning Models

article en

Abstract

Abstract—[Context] Machine Learning (ML) systems presentunique testing challenges due to their non-deterministic natureand lack of formal specifications. [Goal] In this paper, we intro-duce BDD4ML, a framework that adapts Behavior-Driven Devel-opment (BDD) principles for testing of ML models. [Method] Wedesigned BDD4ML to support both classification and regressionmodel testing through natural language clauses in Gherkinsyntax, and implemented it using the Python Behave framework,allowing model expectations to be explicit and executable. Theframework was evaluated through an academic observationalstudy and an industrial focus group discussion, both assessingtechnology acceptance. In the observational study, graduatestudents used the framework to automate tests for an industrialML model. In the focus group, the ML experts responsible fordeveloping the ML model were presented with the BDD4MLsolution and discussed the usage of the framework within realprojects. [Results] In the classroom setting, participants wereable to specify BDD4ML scenarios for successfully testing theindustrial model with minimal mistakes. A majority of thestudents agreed on the framework’s usefulness (84.62%), ease ofuse (76.92%), and expressed intention to adopt it (76.92%). In theindustrial focus group, participants also considered the BDD4MLuseful and easy to use, and showed interest in adopting it. In thediscussions, they highlighted BDD4ML’s value for transparency,decision support, model monitoring, and collaborative require-ment specification. [Conclusion] The results indicate BDD4ML asa promising approach for bringing BDD practices to ML modeltesting. The framework is openly available for use and extension.

Zenodo (CERN European Organization for Nuclear Research)
Openalex Percentile: Top 77%
Explainable Artificial Intelligence (XAI)
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.