Published February 19, 2020 | Version v1

A brain-inspired architecture for cost-efficient object recognition in shallow neural networks

  • 1. Department of Bio and Brain Engineering, Korea Advanced Institute of Science and Technology, Daejeon 34141, Republic of Korea
  • 2. a Department of Bio and Brain Engineering, Korea Advanced Institute of Science and Technology, Daejeon 34141, Republic of Korea b Program of Brain and Cognitive Engineering, Korea Advanced Institute of Science and Technology, Daejeon 34141, Republic of Korea

Description

Demo codes for "A brain-inspired architecture for cost-efficient object recognition in shallow neural networks"

1. System requirements
- MATLAB (2019a or 2019b is recommended.)

- Installation of Deep Learning Toolbox

- Uploaded codes were tested using MATLAB 2019a and 2019b.

- No non-standard hardware is required to run the codes.


2. Installation guide
- Download "LRC_code.zip" and unzip the file.

- Download "DATASET_ori.zip","pretrainedNet.zip" and unzip on same file.

- Choose the proper subfolder of 'fun_modifed_toolbox' which is matched to your MATLAB version and
  Move each file to the proper directory
  (see the comment in line 4 of each file for proper directory  e.g. 'dir = C:\Program Files\MATLAB\...')
 

3. Instructions for use
- By running "Main.m" and selecting code option and figure option (see line 35 - 41 on the Main.m)
  code options :
   i) flg_ShowRes : Show the result figure of demo code using the pretrained network (in pretrainedNet.zip)
   ii) flg_Demo : Run the demo code using a randomly initialized network
  figure options : flg1 - Result 1 / flg2 - Result 2 / flg3 - Result 3 

 

cf. Modified MNIST datasets

To separately examine the contribution of high and low-frequency information contained in sample images, we designed three types of modified MNIST datasets. Details are as follows:

Type 1: shape. The “shape” dataset was designed by arranging a hand-written digit of 8 x 8 pixels in the center of a 28 x 28 pixels image. The dataset consists of eight categories depending on the number in the center (1 to 8). For this dataset, only local information (shape) of the digits is required for classification.


Type 2: position. The “position” dataset was made by the following procedure. First, two digits of 8 x 8 pixels were randomly chosen. Second, these two digits were allocated in a 28 x 28 image, with one of the following position alignments: horizontal (top, middle, bottom), vertical (left, middle, right), or diagonal (45°, 135°). This dataset also consists of eight categories depending on the position only where the digits are located. Note that the shape of each number is irrelevant for classification.


Type 3: shape-position. The “shape-position” dataset was made by the following procedure. First, a 28 x 28 pixel area was divided into four 14 x 14 areas. Second, two diagonally aligned areas were selected (either 45° or 135°). Third, one of two digits, either “7” or “9”, composed of 8 x 8 pixels was inserted into each selected area. This dataset consists of eight categories depending on both the shape and position of the digits. The reason we chose “7” and “9” among ten numbers is to adjust the difficulty of the task to be similar to that of the previous tasks. Note that this dataset requires both local information (shape) and global information (position) of the digits for classification. 

Files

DATASET_ori.zip

Files (1.9 GB)

Name Size
md5:eae262ecef23b7c165e81d664f19fa4c
159.9 MB Preview Download
md5:d2e73a0f691314bb6c94a62c53cd511d
103.3 kB Preview Download
md5:17fc8449d8eb153c42fe4cd779e126eb
78.8 MB Preview Download
md5:07372445f295a3af9b7db47db8a0da38
1.7 GB Preview Download