Hybrid Explainable Artificial Intelligence Framework for Sensor‐Based Detection of Metritis‐Causing Bacteria Using Volatile Organic Compounds Sensor Signals
Open Access
- 22 November 2026
- journal article
- research article
- Published by Wiley in Veterinary Medicine and Science
- Vol. 12 (6) , e71351
Abstract
Objective: Sensor‐based bacterial detection may offer future practical value for the management of metritis. The aim of this study is to classify seven bacterial targets frequently detected in the uterus: Fusobacterium necrophorum ( F. necrophorum ), Trueperella pyogenes ( T. pyogenes ), Escherichia coli ( E. coli ), Staphylococcus aureus ( S . aureus ), Coagulase‐Negative Staphylococci (CNS), Bacillus spp. and Clostridium spp. Methods: This study's original contribution is its development of a hybrid explainable artificial intelligence (XAI) framework for sensor‐based classification of seven bacterial targets using bacterium‐specific binary models under the present study conditions, combined with post hoc XAI and rule‐based explanation methods. Methodologically, we systematically addressed class imbalance and multicollinearity and conducted comprehensive comparisons among tree‐based methods. Global insights obtained from Shapley Additive exPlanations (SHAP), partial dependence plot (PDP) and accumulated local effects (ALE) were converted into rules applicable to experts. The reliability of the underlying XAI explanations was quantitatively assessed using fidelity and faithfulness metrics before the selected contribution profiles were summarized in user‐readable attribution‐based statements. Results: Accordingly, the XAI analyses identified O 2 , humidity, MQ135 (air quality) and NO 2 as high‐contribution features for the prediction of E. coli . For T. pyogenes , O 2 , CO 2 , temperature and MQ135 were identified as high‐contribution features, whereas mixed gases (T2602) and wide‐spectrum volatile organic compounds (VOCs) (T2620) were identified as low‐contribution features. For F. necrophorum , CO 2 , NO 2 , O 2 and temperature were identified as high‐contribution features. These expressions refer to the relative contributions of the features to the model predictions and not to high or low physiological gas concentrations. Performance was evaluated using standard metrics, such as repeated validation and ROC–AUC, while maintaining training‐test consistency. Conclusion: The proposed approach combines predictive discrimination with transparent, interpretable explanations and provides a proof‐of‐concept framework for sensor‐based bacterial classification that warrants further clinical and field validation.Keywords
This publication has 35 references indexed in Scilit:
- fiXAIt: A novel feature importance-based XAI tool for enhanced explainability, self-consistency, and computational efficiencyApplied Soft Computing, 2025
- Identification of Maternal Health Risk From Optimal Features Using Explainable Machine LearningEngineering Reports, 2025
- Explainability enhanced liver disease diagnosis technique using tree selection and stacking ensemble-based random forest modelInformatics and Health, 2025
- Interpretable Artificial Intelligence for Analysing Changes in Gases in the Uterine Environment of Cows According to Physiological Structures in the OvaryVeterinary Medicine and Science, 2025
- Machine Learning Evaluation of Imbalanced Health Data: A Comparative Analysis of Balanced Accuracy, MCC, and F1 Score2024
- Assessing fidelity in XAI post-hoc techniques: A comparative study with ground truth explanations datasetsArtificial Intelligence, 2024
- Predicting the generalization gap in neural networks using topological data analysisNeurocomputing, 2024
- Metrisor: A novel diagnostic method for metritis detection in cattle based on machine learning and sensorsTheriogenology, 2024
- Do all roads lead to Rome? Studying distance measures in the context of machine learningPattern Recognition, 2023
- Evaluating XAI: A comparison of rule-based and example-based explanationsArtificial Intelligence, 2021