Spatial gradient consistency for unsupervised learning of hyperspectral demosaicking: application to surgical imaging

Peichao Li, Muhammad Asad, Conor C. Horgan, Oscar MacCormac, Jonathan Shapey, Tom Vercauteren

TL;DR

This paper introduces a novel unsupervised deep learning approach for hyperspectral image demosaicking, crucial for real-time surgical imaging. By leveraging spatial gradient consistency across spectral bands, the method achieves comparable results to supervised methods without requiring ground-truth data, making it more practical for intraoperative applications.

What Problem Does This Paper Address?

Hyperspectral Imaging (HSI) offers rich spectral information that can significantly enhance medical decision-making, particularly in surgery, by providing insights beyond what the human eye can see (e.g., tissue perfusion, oxygenation). Snapshot mosaic sensors are promising for intraoperative HSI due to their speed and compact size, but they produce mosaicked images that require a "demosaicking" algorithm to reconstruct the full spatial and spectral information. The major hurdle for current state-of-the-art demosaicking methods is their reliance on paired snapshot and high-resolution hyperspectral images for training. Acquiring such paired data in real-time surgical settings is practically impossible. This paper tackles this challenge by developing a fully unsupervised demosaicking algorithm that only needs exemplar snapshot images for training.

Methods

The core of the proposed method is a deep neural network trained in an unsupervised manner to perform hyperspectral demosaicking. The problem is framed as an ill-posed linear inverse problem, where the goal is to recover a full hyperspectral cube ($I$) from a snapshot mosaic image ($I^s$).

The novelty lies in the spatial gradient consistency regularisation term. The authors observe that spectral bands of natural scenes and biological tissues are often correlated and exhibit smooth spectral characteristics. They propose that the spatial gradients of individual spectral bands in the reconstructed hyperspectral image should also be correlated. This correlation is promoted by a novel regularisation term that encourages similarity between the spatial gradients of different spectral bands.

This new term is combined with traditional regularisation techniques like Tikhonov regularization (using a Laplacian matrix to avoid excessive smoothing) and Total Variation (to preserve edges). The overall unsupervised loss function for training the deep neural network is a combination of a data fidelity term (ensuring the reconstructed image is consistent with the input snapshot) and these regularisation terms. An "overriding operator" is also used to force the network's output to match the input snapshot pixels, effectively making the data fidelity term zero and focusing the learning on the regularisation terms.

Datasets

The proposed algorithm was evaluated on three datasets:

  • HELICoiD: A publicly available in-vivo hyperspectral human brain image dataset acquired during neurosurgical operations. Synthetic snapshot images and corresponding ground-truth hypercubes were generated using sensor information.
  • ARAD_1K: A dataset from the NTIRE 2022 Spectral Demosaicking Challenge, containing hyperspectral images of natural scenes. Simulated snapshot images and ground truths were used.
  • NeuroHSI: A dataset from an ongoing study on intra-operative capabilities of snapshot mosaic cameras for differentiating pathological and healthy brain tissue. This dataset lacks ground-truth high-resolution hypercubes, making it ideal for evaluating unsupervised methods. For supervised training on this dataset, results from the HELICoiD-trained model were used.

Key Insights and Ideas

  • Unsupervised learning is feasible and effective for hyperspectral demosaicking: The paper demonstrates that it's possible to achieve good demosaicking performance without ground-truth data, which is a significant practical advantage for real-world applications like surgery.
  • Spatial gradient consistency is a powerful prior: The novel regularisation term, which leverages the correlation of spatial gradients across spectral bands, proves to be a key component in achieving high-quality unsupervised demosaicking. This insight suggests that exploiting inter-band spatial relationships is crucial.
  • Real-time surgical imaging is within reach: The combination of a suitable network architecture (like Res2-Unet) and the proposed unsupervised method allows for high-quality hyperspectral demosaicking at speeds suitable for real-time intraoperative use.
  • Expert evaluation validates the approach: A user study with neurosurgical experts showed that images processed by the unsupervised method were rated as having similar quality to those from a supervised model, significantly outperforming linear demosaicking.

Key Results

  • Quantitative Performance: On the HELICoiD and ARAD_1K datasets, the unsupervised method achieved performance comparable to supervised methods, particularly with the Res2-Unet architecture. For example, on ARAD_1K, unsupervised EDSR significantly outperformed supervised U-Net. While supervised Res2-Unet generally achieved the highest accuracy, the unsupervised approach narrowed the gap considerably.
  • Qualitative Performance: Visual comparisons (e.g., Figure 3 in the main paper and Figure 2 in the supplementary material) show that the unsupervised method produces sharper and more detailed images compared to linear demosaicking, and is visually similar to supervised results.
  • Speed: The algorithm can achieve real-time performance. For a 512x480 image, inference times for Res2-Unet were around 0.010s on an NVIDIA RTX 3080 Ti.
  • User Study: Neurosurgical experts rated the unsupervised demosaicked images as having similar quality to supervised results, with the unsupervised method receiving 52.5% of votes when directly compared to supervised methods. Linear demosaicking was consistently rated the lowest.

Limitations and Future Work

  • Performance Gap with Supervised Methods: The paper acknowledges that the unsupervised method cannot fully match the performance of state-of-the-art supervised methods when ground truth data is available. This is expected, as supervised methods have direct access to the ideal solution.
  • Domain Gap: When applying models trained on one dataset (e.g., HELICoiD) to another (e.g., NeuroHSI), there can be a domain gap. The authors suggest that transfer learning might be a way to address this in future work, especially for datasets with limited or no ground truth.
  • Future Work: The authors' work naturally leads to further exploration of unsupervised learning for HSI tasks. Investigating more advanced network architectures, exploring different regularisation strategies, and applying the method to a wider range of medical imaging scenarios are potential future directions. The real-time capability also opens doors for direct integration into surgical workflows.

Summary updated

Abstract

Hyperspectral imaging has the potential to improve intraoperative decision making if tissue characterisation is performed in real-time and with high-resolution. Hyperspectral snapshot mosaic sensors offer a promising approach due to their fast acquisition speed and compact size. However, a demosaicking algorithm is required to fully recover the spatial and spectral information of the snapshot images. Most state-of-the-art demosaicking algorithms require ground-truth training data with paired snapshot and high-resolution hyperspectral images, but such imagery pairs with the exact same scene are physically impossible to acquire in intraoperative settings. In this work, we present a fully unsupervised hyperspectral image demosaicking algorithm which only requires exemplar snapshot images for training purposes.
BibTeX
@article{li2023spatial,
  author = {Peichao Li and Muhammad Asad and Conor C. Horgan and Oscar MacCormac and Jonathan Shapey and Tom Vercauteren},
  title = {{Spatial gradient consistency for unsupervised learning of hyperspectral demosaicking: application to surgical imaging}},
  journal = {Int. J. Comput. Assist. Radiol. Surg.},
  year = {2023},
  url = {https://openreview.net/forum?id=mqhtqnxBwm},
}
Figure