HieroBact: clinically coherent hierarchical bacterial classification from Gram-stained images
Abstract
Gram-stained microscopy provides rapid preliminary evidence for clinical microbiology, but most deep learning systems still classify bacterial species as a flat label set and therefore ignore the Gram-reaction and morphology hierarchy that guides early antimicrobial decisions. This paper presents HieroBact, a hierarchical multi-task learning (MTL) framework that jointly predicts Gram reaction, cellular morphology, and species identity using DIBaS-Tax annotations, an image-only feature-fusion backbone, and a hierarchically conditioned loss (HC-Loss) that reduces species-level supervision when coarse-level confidence is unreliable. Under 5-fold cross validation on DIBaS-Tax, HieroBact achieves 99.1% Gram-level, 97.8% morphology-level, and 97.2% species-level accuracy, while reducing clinically unsafe Gram-level misclassifications from 28.8% to 5.7% compared with a strong flat baseline. The results show that explicitly modelling bacterial taxonomy improves not only recognition accuracy but also the clinical coherence and interpretability of model errors, making HieroBact a practical step toward safer diagnostic-support systems for preliminary laboratory decision making and subsequent confirmation by trained clinical microbiologists.
Keywords
bacterial image classification; gram-stained microscopy; hierarchical multi-task learning; hierarchically conditioned loss; taxonomic coherence;
Full Text:
PDFDOI: http://doi.org/10.12928/telkomnika.v24i6.28022
Refbacks
- There are currently no refbacks.

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.