# MDF2Former: Multi-Scale Dual-Domain Feature Fusion Transformer for Hyperspectral Image Classification of Bacteria in Murine Wounds

**Authors:** Decheng Wu, Wendan Liu, Rui Li, Xudong Fu, Lin Tao, Yinli Tian, Anqiang Zhang, Zhen Wang, Hao Tang

PMC · DOI: 10.3390/jimaging12020090 · Journal of Imaging · 2026-02-19

## TL;DR

This paper introduces a new AI model for quickly and accurately identifying bacteria in wounds using hyperspectral imaging, which could improve treatment outcomes.

## Contribution

A novel transformer model, MDF2Former, is proposed for hyperspectral image classification of wound bacteria with multi-scale dual-domain feature fusion.

## Key findings

- MDF2Former achieved 91.94% accuracy in classifying wound bacteria using hyperspectral imaging.
- The model outperformed existing methods across multiple evaluation metrics like precision and F1-score.
- The study demonstrates the potential of combining HSI and deep learning for rapid bacterial identification.

## Abstract

Bacterial wound infection poses a major challenge in trauma care and can lead to severe complications such as sepsis and organ failure. Therefore, rapid and accurate identification of the pathogen, along with targeted intervention, is of vital importance for improving treatment outcomes and reducing risks. However, current detection methods are still constrained by procedural complexity and long processing times. In this study, a hyperspectral imaging (HSI) acquisition system for bacterial analysis and a multi-scale dual-domain feature fusion transformer (MDF2Former) were developed for classifying wound bacteria. MDF2Former integrates three modules: a multi-scale feature enhancement and fusion module that generates tokens with multi-scale discriminative representations, a spatial–spectral dual-branch attention module that strengthens joint feature modeling, and a frequency and spatial–spectral domain encoding module that captures global and local interactions among tokens through a hierarchical stacking structure, thereby enabling more efficient feature learning. Extensive experiments on our self-constructed HSI dataset of typical wound bacteria demonstrate that MDF2Former achieved outstanding performance across five metrics: Accuracy (91.94%), Precision (92.26%), Recall (91.94%), F1-score (92.01%), and Kappa coefficient (90.73%), surpassing all comparative models. These results have verified the effectiveness of combining HSI with deep learning for bacterial identification, and have highlighted its potential in assisting in the identification of bacterial species and making personalized treatment decisions for wound infections.

## Full-text entities

- **Diseases:** multiple organ failure (MESH:D009102), burn injuries (MESH:D002056), injury to (MESH:D014947), ViT (MESH:D014786), KP (MESH:D007710), bacterial (MESH:D001424), HSI (MESH:C564543), sepsis (MESH:D018805), deaths (MESH:D003643), infected (MESH:D007239), urinary tract infection (MESH:D014552), EC (MESH:D004927), Wound infection (MESH:D014946)
- **Chemicals:** water (MESH:D014867), FSDE (-)
- **Species:** Kobuvirus bejaponia (species) [taxon 194965], saprophyticus [taxon 147452], Escherichia coli (E. coli, species) [taxon 562], Staphylococcus saprophyticus (species) [taxon 29385], Pseudomonas aeruginosa (species) [taxon 287], Mus musculus (house mouse, species) [taxon 10090], Klebsiella pneumoniae (species) [taxon 573], Staphylococcus sp. S (species) [taxon 573870], Enterobacteriaceae (enterobacteria, family) [taxon 543], Acinetobacter baumannii (species) [taxon 470], Gallus gallus (bantam, species) [taxon 9031], Proteus vulgaris (species) [taxon 585], Bacteria Latreille et al. 1825 (Bacteria stick insect, genus) [taxon 629395], Staphylococcus aureus (species) [taxon 1280], Enterovirus C (no rank) [taxon 138950], Homo sapiens (human, species) [taxon 9606], Staphylococcus epidermidis (species) [taxon 1282]

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/PMC12942589/full.md

## Figures

10 figures with captions in the complete paper: https://tomesphere.com/paper/PMC12942589/full.md

## References

54 references — full list in the complete paper: https://tomesphere.com/paper/PMC12942589/full.md

---
Source: https://tomesphere.com/paper/PMC12942589