Giter VIP home page Giter VIP logo

3dcae-hyperspectral-classification's Introduction

Unsupervised Spatial-Spectral Feature Learning by 3-Dimensional Convolutional Autoencoder for Hyperspectral Classification

By Shaohui Mei, Jingyu Ji, Yunhao Geng, Zhi Zhang, Xu Li, Qian Du.

Proposed Framework
Proposed Framework


Introduction

Feature learning technologies using deep neural networks (DNN) have shown superior performance over traditional hand-crafted feature extraction algorithms. However, a large amount of training samples are generally required for DNN to learn effective features, which is difficult to be obtained in hyperspectral images. Therefore, in this paper, an unsupervised spatial-spectral feature learning strategy is proposed for hyperpectral images using 3-Dimensional Convolutional AutoEncoder (3D-CAE). The proposed 3D-CAE consists of 3D or elementwise operations only, such as 3D convolution, 3D pooling, and 3D batch normalization, to maximally explore spatial-spectral structure information for feature extraction. A companion 3D convolutional Decoder network is also designed for reconstruction the input patterns, by which all the parameters involved in the network can be trained without labeled training samples. Experimental results on several benchmark hyperspectral datasets have demonstrated that our proposed 3D-CAE are very effective in extracting spatial-spectral features and outperform not only traditional unsupervised feature extraction algorithms, but also many supervised feature extraction algorithms in classification application.


Citing our work

Please cite our work in your publications if it helps your research:

later it will be released.

Installation

  1. Please follow keras instruction to install all necessary packages and build it.
pip install keras
 - Note: We currently only support Python 3.
  1. Install other python packages.
pip install h5py sklearn

Preprocess

In our paper, amount of spatial information about hyperspectral image was explored. In our code, 5x5 spatial size was used to compare.

run script as follow :

cd preprocess
python3 ./preprocess/pre_process_by_yield.py

Then you can find the file named "./hyperspectral_datas/indian_pines/data/indian_5d_patch_5.h5".


Traineval

  • To train or evaluate CNN using the train script simply specify the parameters listed in train.py as a flag or manually change them.
python train.py
  • Training Parameter Options:
parser = argparse.ArgumentParser(description="train 3DCAE net",
                                formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser.add_argument('--mode', type=str, default='train',
                    help='train, test.')
parser.add_argument('--epoch', type=int, default=200,
                    help='1000 is ok')
args = parser.parse_args()

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.