hybridsn_hsi
A 3D-then-2D convolutional network that classifies hyperspectral image patches by land cover.
Image classification · 21 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Image classification
- Parameters
- 5.1M
- Operations
- 21
- Framework
- PyTorch
- Recurrent
- No
- Published
- IEEE Geoscience and Remote Sensing Letters (arXiv 2019)
- Cited by
- 1,903 (as of 18 October 2026)
- Authors
- Swalpa Kumar Roy, Gopal Krishna, Shiv Ram Dubey, Bidyut B. Chaudhuri
- License
- MIT
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m11917
- Graph hash
- 45d1a03d458e6f50574b5fdecf7f621315357eda1ed63404c6497e48b2a2479f
- Skeleton hash
- 8329defb15c06ec4a6bd23b82e537cfba3faa540e011fa01b660d8f31f8ed60f
- Architecture hash
- 19b1891dc6a7b1861fe36eaf999f5949a692bec6f9272b048f7224eea3638858
- Diagram SHA-256
- 285981c49c1c5c9b6efb4d0b4f4d2f6c459c2872af486052abca2ee9c39ea9d8
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
HybridSN is a Hybrid Spectral Convolutional Neural Network built for hyperspectral image (HSI) classification. Hyperspectral image classification is widely used for the analysis of remotely sensed images, and such imagery includes varying bands of images. The idea is simple: a spectral-spatial 3D-CNN runs first and a spatial 2D-CNN follows. The 3D convolutions learn a joint spatial-spectral representation from the stack of bands, and the 2D convolution on top learns a more abstract spatial representation. Mixing the two also reduces model complexity compared with a 3D-CNN alone.
The motivation is that a 2D-CNN alone cannot extract good discriminating feature maps from the spectral dimensions. A deep 3D-CNN, on the other hand, is more computationally complex and seems to perform worse for classes having similar textures over many spectral bands. Before the network sees anything, principal component analysis is applied along the spectral bands to remove spectral redundancy. The reduced cube is then cut into small overlapping 3D patches, each labelled by its centre pixel. For Indian Pines the input patch is 25 × 25 × 30, and for the University of Pavia it is 25 × 25 × 15.
Table I lists the stack as three Conv3D layers, a Reshape, one Conv2D, a Flatten and three Dense layers with Dropout between them. The shapes run from (25, 25, 30, 1) to (19, 19, 18, 32) after the 3D convolutions, reshape to (19, 19, 576), and the 2D convolution gives (17, 17, 64). The last dense layer has 16 nodes, the same as the number of classes in Indian Pines, which is the configuration the captured member traces. In total the model has 5,122,176 trainable weight parameters for Indian Pines. Training used mini-batches of size 256 for 100 epochs. There was no batch normalization and no data augmentation. The experiments ran on a laptop with a GTX 1060 GPU.
The 30% and 70% of the data were randomly divided into training and testing groups. Under that split HybridSN outperforms all the compared methods over each dataset while maintaining the minimum standard deviation. On Indian Pines, Table II lists an overall accuracy of 99.75 for HybridSN against 99.19 for SSRN. One quirk the authors note is that the 2D-CNN beats the 3D-CNN on Salinas Scene, which they attribute to increased redundancy among the spectral bands. The official repository lists Tensorflow 1.3 and Keras 2.0 as prerequisites. Its README points to a PyTorch version of HybridSN at github.com/Pancakerr/HybridSN.
Key idea. HybridSN places a spectral-spatial 3D-CNN, which learns joint spatial-spectral features from a stack of bands, under a spatial 2D-CNN that learns more abstract spatial features. This hybrid reduces model complexity compared with a 3D-CNN alone.
- HybridSN
- Hybrid Spectral Net
- HybridSpectralNet
- Hybrid Spectral Convolutional Neural Network
- hyperspectral image classification
- HSI classification
- 3D-2D CNN
- 3D CNN
- remote sensing
- Indian Pines
- Pavia University
- Salinas Scene
- land cover
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{roy2019hybridsnexploring3d2dcnn,
title={HybridSN: Exploring 3D-2D CNN Feature Hierarchy for Hyperspectral Image Classification},
author={Swalpa Kumar Roy and Gopal Krishna and Shiv Ram Dubey and Bidyut B. Chaudhuri},
year={2019},
eprint={1902.06701},
archivePrefix={arXiv},
primaryClass={cs.CV},
doi={https://doi.org/10.1109/LGRS.2019.2918719},
url={https://arxiv.org/abs/1902.06701},
}