当前位置:网站首页>Brain and cognitive neuroscience matlab psychoolbox cognitive science experimental design - experimental design 4
Brain and cognitive neuroscience matlab psychoolbox cognitive science experimental design - experimental design 4
2022-07-02 05:56:00 【I don't know who】
Matlab Psytoolbox( Brain and cognitive neuroscience )
Examples of optical illusion
Experimental design 1
Experimental design II
Experimental design 3
Experiment design IV
List of articles
Preface
Brain and cognitive neuroscience Matlab Cognitive science significance test ( Attention prediction )
1. subject
function MIT/Tuebingen Saliency Benchmark( Website :https://saliency.tuebingen.ai/) The code on , Find your own pictures , Show run results , Know about significance detection
2. Screenshot
After entering the website , Click on results, There are many models to choose from 
I chose RARE2012 and Context-Aware Saliency Two models , As a comparison of attention prediction . Click on the name , Go to the link , The two interfaces are
RARE2012, Click on the red area below to download the thesis and source code 
Context-Aware Saliency, The interface also has the following links to papers and download source code , Click to 
The original picture when I execute the code is these six 
The running results are respectively
RARE2012

Context-Aware Saliency


Both are matlab function ,RARE2020 The execution time is approximately 10s within , The result is rough , and Context-Aware Saliency The execution time varies from tens of seconds , The predicted area is more in line with human perception .
3. Evaluate the results
Because the webpage provides python There are many evaluation codes bug, I don't recommend using that evaluation code , You can go to github Find your own evaluation code . Or directly use the existing evaluation data .
The meanings of different indicators are explained in detail below :
AUC: This is a ROC A version of the area under the curve . Saliency mapping is used as a binary classifier to distinguish positive samples and negative samples under different thresholds .
sAUC:Shuffled AUC Is under the area ROC A version of curve measurement . Saliency mapping is used as a binary classifier to distinguish positive samples and negative samples under different thresholds .
NSS:The normalized scanpath saliency, Measure the normalized significance diagram ( Zero mean , Unit variance ) Average significance value of fixed position .
CC:The correlation coefficient, Is the linear correlation coefficient between the model significance diagram and the empirical significance diagram , The saliency map is obtained by convolution of gaze position and Gaussian kernel .
KLDiv:Kullback-Leibler divergence, Normalize the model significance diagram and empirical significance diagram , Divide the sum by the density , Then calculate the Kullback-Leibler The divergence .
SIM:Similarity, This similarity measure is also called histogram intersection , When considered as a distribution , It measures the similarity between two different saliency graphs . Its calculation method is , Firstly, the significance mapping and empirical significance mapping of the model are normalized , Divide it by the sum , Then add the pixel level minimum values of the two distributions .
RARE2012
Context-Aware Saliency
4. Code changes
Because the source code cannot execute multiple pictures at one time , I make some modifications , Make it possible to display the results of six pictures at one time
( Pay attention to modifying the picture name )
RARE2012 Of example.m Executable files
I=cell(6);
R=cell(6);
I{
1} = im2double(imread('images/1.jpeg'));
I{
2} = im2double(imread('images/2.jpeg'));
I{
3} = im2double(imread('images/3.jpeg'));
I{
4} = im2double(imread('images/4.jpeg'));
I{
5} = im2double(imread('images/5.jpeg'));
I{
6} = im2double(imread('images/6.jpeg'));
R{
1} = Rare2007(I{
1});
R{
2} = Rare2007(I{
2});
R{
3} = Rare2007(I{
3});
R{
4} = Rare2007(I{
4});
R{
5} = Rare2007(I{
5});
R{
6} = Rare2007(I{
6});
N = length(R);
for i=1:N
figure(i); clf;
subplot(1,2,1); imshow(I{
i}); title('Initial image')
subplot(1,2,2); imshow(R{
i}); title('Raw saliency map')
end
Context-Aware Saliency Of run_saliency.m Executable files
%% A script for running saliency computation
clear all;
close all;
%% load parameters and images
file_names{
1} = '1.jpeg';
file_names{
2} = '2.jpeg';
file_names{
3} = '3.jpeg';
file_names{
4} = '4.jpeg';
file_names{
5} = '5.jpeg';
file_names{
6} = '6.jpeg';
MOV = saliency(file_names);
%% display results
N = length(MOV);
for i=1:N
figure(i); clf;
subplot(1,2,1); imshow(MOV{
i}.Irgb); title('Input','fontsize',16);
subplot(1,2,2); imshow(MOV{
i}.SaliencyMap); title('Saliency map','fontsize',16);
end
summary
Through the comparison of method 2 and method 1 , We can visually feel that the model of method 2 is better than method 1 , The images displayed after running the code of methods 1 and 2 have edge detection algorithms , Method 1 starts with the outline of things , Emphasize the main part , But there are too many white parts , Unable to focus on which part . Relatively speaking, the focus area can be clearly seen in the image after executing the code of method 2 , Some are ignored , Focus on the whole , Prevent the main part from local interference , Prevent important areas from being distorted , The marked area is closer to the attention area . Of course , Method 2 also takes longer to execute the code .
Method 2 running time : Average time for four of the six pictures 30s about , Only figure 2 and figure 3 are exceptions , After observation and analysis , Figure 2 and figure 3 are animated pictures , colorful , Too much halo , Personally, I think these aspects lead to a long code execution time , Figure 2 40-50s, Figure 3 time consuming 75s about .
Method 1 running time :10s The running results of six pictures are displayed in .
Thank you very much for watching , The content has been uploaded completely , In addition, my home page also has python Artificial intelligence , SCM and other articles , Welcome to
边栏推荐
- Conglin environmental protection rushes to the scientific and Technological Innovation Board: it plans to raise 2billion yuan, with an annual profit of more than 200million yuan
- Redis key value database [primary]
- Cambrian was reduced by Paleozoic venture capital and Zhike shengxun: a total of more than 700million cash
- Nacos 启动报错 Error creating bean with name ‘instanceOperatorClientImpl‘ defined in URL
- [golang syntax] be careful with the copy of slices
- Typora installation (no need to enter serial number)
- [whether PHP has soap extensions installed] a common problem for PHP to implement soap proxy: how to handle class' SoapClient 'not found in PHP
- [personal test] copy and paste code between VirtualBox virtual machine and local
- PHP inner class name is the same as the inner class method name
- Test case
猜你喜欢

Spark概述

3D printer G code command: complete list and tutorial

15 C language advanced dynamic memory management

Summary of MySQL constraints

Vscode paste image plugin saves image path settings
![[PHP是否安装了 SOAP 扩]对于php实现soap代理的一个常见问题:Class ‘SoapClient‘ not found in PHP的处理方法](/img/25/73f11ab2711ed2cc9f20bc7f9116b6.png)
[PHP是否安装了 SOAP 扩]对于php实现soap代理的一个常见问题:Class ‘SoapClient‘ not found in PHP的处理方法

死磕大屏UI,FineReport开发日记

Test case

深度学习分类网络--Network in Network

keepalived安装使用与快速入门
随机推荐
Zzuli:1068 binary number
ES6的详细注解
The Hong Kong Stock Exchange learned from US stocks and pushed spac: the follow-up of many PE companies could not hide the embarrassment of the world's worst stock market
Eco express micro engine system has supported one click deployment to cloud hosting
【C语言】简单实现扫雷游戏
死磕大屏UI,FineReport开发日记
外部中断无法进入,删代码再还原就好......记录这个想不到的bug
Typora installation (no need to enter serial number)
php读文件(读取文件内含有某字符串的指定行)
Stc8h8k series assembly and C51 actual combat - keys allow key counting (using falling edge interrupt control)
JWT工具类
Zzuli:1064 encrypted characters
[leetcode] day92 container with the most water
MUI底部导航的样式修改
Balsamiq wireframes free installation
软件测试答疑篇
Software testing - concept
Zzuli:1066 character classification statistics
servlet的web.xml配置详解(3.0)
[Chongqing Guangdong education] selected reading reference materials of British and American literature of Nanyang Normal University