[Paper Review] An Open-source Tool for Hyperspectral Image Augmentation in Tensorflow
This paper introduces an open-source, TensorFlow-compatible image augmentation tool for hyperspectral satellite images, extending Keras/TensorFlow's native capabilities beyond four channels. It supports 13 spectral bands and enables techniques like flipping, rotation, zooming, shearing, and speckle noise—boosting test accuracy to 93.43% with flipping and 91.25% with speckle noise, outperforming baseline models without augmentation.
Satellite imagery allows a plethora of applications ranging from weather forecasting to land surveying. The rapid development of computer vision systems could open new horizons to the utilization of satellite data due to the abundance of large volumes of data. However, current state-of-the-art computer vision systems mainly cater to applications that mainly involve natural images. While useful, those images exhibit a different distribution from satellite images in addition to having more spectral channels. This allows the use of pretrained deep learning models only in a subset of spectral channels that are equivalent to natural images thus discarding valuable information from other spectral channels. This calls for research effort to optimize deep learning models for satellite imagery to enable the assessment of their utility in the domain of remote sensing. Tensorflow tool allows for rapid prototyping and testing of deep learning models, however, its built-in image generator is designed to handle a maximum of four spectral channels. This manuscript introduces an open-source tool that allows the implementation of image augmentation for hyperspectral images in Tensorflow. Given how accessible and easy-to-use Tensorflow is, this tool would provide many researchers with the means to implement, test, and deploy deep learning models for remote sensing applications.
Motivation & Objective
- Address the lack of open-source, TensorFlow-native tools for augmenting hyperspectral satellite images with more than four spectral channels.
- Enable researchers to apply standard deep learning data augmentation techniques to hyperspectral remote sensing data using a widely adopted framework like TensorFlow.
- Improve generalization and performance of deep neural networks on hyperspectral satellite image classification by introducing noise models and geometric transformations specific to satellite imagery.
- Facilitate broader access to deep learning for remote sensing by providing an easy-to-use, MIT-licensed tool compatible with open-access satellite data like EuroSAT.
Proposed method
- Developed a custom image generator in Python using the scikit-image toolbox to extend TensorFlow's Keras ImageDataGenerator for hyperspectral images with up to 13 channels.
- Implemented standard augmentation techniques: horizontal/vertical flipping, rotation (up to 90°), zooming (up to 1.5×), translation (up to 25% of image size), shearing (up to 5%), and speckle (multiplicative) noise with variance 0.010.
- Designed the tool to extract image crops directly from JPEG 2000 satellite images using shapefile coordinates, preserving spatial context during training.
- Used VGG19 as a base CNN architecture, modified to accept 13-channel inputs and restructured fully connected layers to 2048×2048, 2048×1024, and 1024×10 for 10-class classification.
- Applied data augmentation during training via real-time cropping and transformation, with edge pixels repeated to maintain image size after translation or shearing.
- Trained models for 10 epochs with 500 batches per epoch (128 images each), using Adam optimizer (initial LR=0.001) and categorical cross-entropy loss.
Experimental results
Research questions
- RQ1Can standard image augmentation techniques used in natural image deep learning be effectively transferred to hyperspectral satellite imagery?
- RQ2How does the inclusion of speckle noise—common in satellite data—impact model generalization and performance in hyperspectral image classification?
- RQ3To what extent does data augmentation improve test accuracy and reduce overfitting in deep neural networks trained on limited hyperspectral datasets?
- RQ4Can a TensorFlow-compatible, open-source tool bridge the gap between deep learning frameworks and remote sensing applications for hyperspectral images?
Key findings
- Horizontal and vertical flipping increased test accuracy to 93.43%, significantly outperforming the no-augmentation baseline of 87.66%.
- Shearing with a 5% range achieved the highest test accuracy of 90.93%, indicating strong generalization benefits for geometric distortions.
- Speckle noise augmentation with variance 0.010 improved test accuracy to 91.25%, demonstrating its value in simulating real satellite noise.
- Zooming augmentation resulted in a slight drop in test accuracy (88.59%) compared to baseline, possibly due to image distortion or padding effects.
- Translation augmentation reduced performance to 70.00% test accuracy, likely due to destructive edge padding when images are shifted.
- The model with no augmentation achieved 87.66% test accuracy, but with 21 million trainable parameters and 21,000 training samples, overfitting risk was high—highlighting the need for augmentation.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.