Abstract
In clinical settings, the rapid retrieval of similar medical cases from massive databases is essential for diagnostic support. However, Content-Based Image Retrieval (CBIR) faces significant challenges regarding scalability and the "semantic gap" between raw pixels and expert diagnoses. This paper introduces Deep Residual Hashing (DRH), an end-to-end framework that leverages residual learning (ResNet) to generate compact, discriminative binary fingerprints for medical images. Evaluated on the Indiana University Chest X-ray (CXR) dataset, DRH demonstrates state-of-the-art performance, particularly in managing complex co-morbidities, and significantly outperforms traditional and shallow deep hashing baselines.
1. Introduction
The exponential growth of medical imaging data has created a critical need for efficient retrieval systems. When a radiologist seeks to compare a current case with historical data, exhaustive pixel-by-pixel comparisons are computationally prohibitive. Hashing addresses this by compressing high-dimensional image vectors into short binary codes (e.g., 64 bits). Ideally, semantically similar images are mapped to nearby points in Hamming space.
Traditional hashing methods often rely on a sub-optimal two-stage process: extracting hand-crafted features followed by independent binarization. Furthermore, while deep learning has advanced feature extraction, very deep networks often suffer from degradation, where increased depth leads to higher training error. DRH overcomes these hurdles by integrating feature learning and hashing into a single, deep residual architecture.
2. Methodology
2.1 Architecture
DRH utilizes a ResNet backbone (specifically ResNet-18 and ResNet-34). The inclusion of residual shortcut connections allows gradients to flow through the network more effectively, enabling the model to benefit from increased depth without the typical degradation seen in "plain" deep networks.
2.2 Composite Loss Function
To ensure the binary codes are both compact and semantically meaningful, the authors optimize a composite loss function $J$:
- Supervised Retrieval Loss ($J_S$): Ensures images with identical medical labels are clustered together in the embedding space.
- Quantization Loss ($J_Q$): Minimizes the error introduced when converting continuous neural network outputs into discrete binary values (-1 or 1).
- Bit Balance Loss ($J_B$): Maximizes entropy by ensuring each bit is used effectively across the dataset, preventing redundancy.
- Orthogonality Regularization ($R_O$): Encourages independence between different bits of the hash code.
3. Experimental Results
The model was evaluated using the Indiana University CXR dataset, comprising 2,599 frontal view images labeled with nine common cardiopulmonary patterns. This study is notable for its explicit focus on co-morbidities—cases where a single image contains multiple disease signatures.
3.1 Quantitative Performance
Performance was measured using Mean Average Precision (MAP). The DRH-34 model achieved a MAP of 76.72% at 64 bits, representing a substantial improvement over traditional methods like ITQ (26.23%) and deep baselines like VGGF-KSH (52.61%). Notably, the end-to-end DRH approach showed a 14.2% improvement over two-stage deep learning methods, confirming the value of joint optimization.
3.2 Visual Analysis
Visualizing the learned Hamming space via t-SNE reveals the impact of the residual hashing framework. While deep baselines like VGGF-KSH show some ability to group similar cases, they still exhibit significant overlap and "noise" in the embedding space.
In contrast, the DRH framework produces much tighter and more distinct clusters. This separation indicates that the model has successfully bridged the semantic gap, mapping complex medical patterns into highly discriminative binary codes.
4. Conclusion
Deep Residual Hashing provides a scalable and accurate solution for medical image retrieval. By combining the strengths of residual learning with a specialized suite of hashing losses, DRH achieves high precision with compact codes—allowing a 32-bit DRH-34 code to match the performance of 64-bit codes from shallower models. Future work will explore the integration of lateral anatomical views and methods to improve the clinical interpretability of the learned hash bits.
Summary updated