GithubHelp home page GithubHelp logo

object_decoding's Introduction

Generic Object Decoding

利用 fMRI 激活来预测类别模式。

This repository contains the data and demo codes for replicating results in our paper: Horikawa and Kamitani (2017) Generic decoding of seen and imagined objects using hierarchical visual features. Nature Communications 8:15037. The generic object decoding approach enabled decoding of arbitrary object categories including those not used in model training.

数据 (fMRI 数据和视觉特征)

The preprocessed fMRI data for five subjects (training, test_perception, and test_imagery) and visual features (CNN1-8, HMAX1-3, GIST, and SIFT) are available at figshare. The fMRI data were saved as the BrainDecoderToolbox2/bdpy format.

The unpreprocessed fMRI data is available at OpenNeuro.

视觉图片

For copyright reasons, we do not make the visual images used in our experiments publicly available. You can request us to share the stimulus images at https://forms.gle/ujvA34948Xg49jdn9.

Stimulus images used for higher visual area locazlier experiments in this study are available via https://forms.gle/c6HGatLrt7JtTGQk7.

示例程序

Demo programs for Matlab and Python are available in code/matlab and code/python, respectively. See README.md in each directory for the details.

Generic Decoding Demo/Matlab

This is MATLAB code for Generic Decoding Demo.

要求

  • BrainDecoderToolbox2 下载后放置在 matlab\software\matlab_utils\BrainDecoderToolbox2-0.9.17 目录中

  • SPR 安装 1.0 版本的 SPR(位于matlab\software\matlab_utils\SPR_2011_1111),代码和.c文件放在同一目录下,并用mex_compile进行重新编译。 注意:高版本需要在 mex_compile.m 中添加兼容性数组维度,否则出现“请求的数组超过预设的最大数组大小”错误。

mex -v weight_out_delay_time.c '-compatibleArrayDims'

数据组织

相关数据和依赖软件的百度网盘链接 ,提取码:dong

All data should be placed in matlab/data. Data can be obrained from figshare. The data directory should have the following files:

data/ --+-- Subject1.mat (fMRI data, subject 1)
        |
        +-- Subject2.mat (fMRI data, subject 2)
        |
        +-- Subject3.mat (fMRI data, subject 3)
        |
        +-- Subject4.mat (fMRI data, subject 4)
        |
        +-- Subject5.mat (fMRI data, subject 5)
        |
        +-- ImageFeatures.mat (image features extracted with Matconvnet)

Download links:

分析

在Matlab中运行下列脚本。

analysis_FeaturePrediction  # (10个CPU运行2天以上)
analysis_FeaturePredictionAccuracy
analysis_CategoryIdentification
createfigure  # 绘制 特征解码/类别识别 精度图
convert_decodedfeatures # 为深度图像重建 转换 特征预测结果

The all results will be saved in results directory.

To visualize the results, run the following script.

>> createfigure

createfigure.m will create two figures: one shows the results of image feature and category-averaged feature prediction, and the other displays the results of category identification. The figures will be saved in results directory in PDF format (FeaturePredictionAccuracy.pdf and IdentificationAccuracy.pdf).

参考

代码

object_decoding's People

Contributors

nongfugengxia avatar

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.