TDT: decoding analysis with a single chunk

Hi all - we want to use The Decoding Toolbox (3.999E) to perform a multivariate analysis of an fMRI task in which we’d like to decode condition. Our task has a block design and is completed in a single run. In this single run of the task, participants complete 16 blocks in total, 8 blocks of condition 1 and 8 blocks of condition 2. Each block is 14-18 s long and is separated by fixation on a central cross jittered between 8-12 s in duration. Because we have only 1 run of the task (i.e. 1 chunk), we are not sure about the best way to analyze the data. One option seems to be using a bootstrapping procedure (‘make_design_boot.m’ in TDT). Is this the best way to perform this analysis? Thanks in advance!

Hi Sreda,

Wow, that’s not a lot of data. I’m not sure that this will work unless you are dealing with strong signal or have a lot of participants.

I’d suggest generating a separate regressor for each block and then leave pairs of blocks out that belong to either condition. This means you should ideally set up your design manually (i.e. define filenames, chunks, and labels). make_design_boot.m will turn out to be a little inefficient even though it would get the job done (since it will sample randomly and will probably . If you know a little bit about combinations, then you could figure out all pairs of trials that you could leave out (always leave one of each one out). This should also give you a more accurate estimate of the information content. The accuracies will likely be low but this shouldn’t matter much since the data are just noisy. Only the group-level analysis will probably tell if there is an effect to be found.

Just to clarify, I’ll assume you run conditions 1 and 2 interleaved (i.e. 1 2 1 2 1 2 …). In the first iteration, you could leave out the first two, in the next the second two, in the next the third two, etc. However, you could additionally leave out the first together with the fourth, or together with the sixth, etc. That will give you a lot more possible combinations, I think it might be 36. See below for the relevant indices to be left out assuming interleaved presentation of both conditions.

Another hack you could do is take make_design_boot.m and just generate a lot of iterations and only keep unique columns in the design matrix. Just using make_design_boot.m should not be terribly inefficient since TDT will recognize when training data is the same and will only train a classifier once (i.e. the only overhead exists for repeatedly testing the same pair of left-out trials).

Best,
Martin

1 2
1 4
1 6
1 8
1 10
1 12
1 14
1 16
3 4
3 6

etc.

I have a similar question, however, there are 16 trials per condition and its interleaved.

Going by your suggestion here does this work?
1 2
1 4
1 6
1 8
1 10
1 12
1 14
1 16
1 18
1 20
1 22
1 24
1 26
1 28
1 30
1 32
2 4
2 6
2 8
2 10
2 12
2 14
2 16
2 18
2 20
2 22
2 24
2 26
2 28
2 30
2 32
3 5
3 7
3 9
3 11
3 13
3 15
3 17
3 19
3 21
3 23
3 25
3 27
3 29
3 31
4 5
4 7
4 9
4 11
4 13
4 15
4 17
4 19
4 21
4 23
4 25
4 27
4 29
4 31
5 6
5 8
5 10
5 12
5 14
5 16
5 18
5 20
5 22
5 24
5 26
5 28
5 30
5 32
6 8
6 10
6 12
6 14
6 16
6 18
6 20
6 22
6 24
6 26
6 28
6 30
6 32
7 9
7 11
7 13
7 15
7 17
7 19
7 21
7 23
7 25
7 27
7 29
7 31
8 9
8 11
8 13
8 15
8 17
8 19
8 21
8 23
8 25
8 27
8 29
8 31
9 10
9 12
9 14
9 16
9 18
9 20
9 22
9 24
9 26
9 28
9 30
9 32
10 12
10 14
10 16
10 18
10 20
10 22
10 24
10 26
10 28
10 30
10 32
11 13
11 15
11 17
11 19
11 21
11 23
11 25
11 27
11 29
11 31
12 13
12 15
12 17
12 19
12 21
12 23
12 25
12 27
12 29
12 31
13 14
13 16
13 18
13 20
13 22
13 24
13 26
13 28
13 30
13 32
14 16
14 18
14 20
14 22
14 24
14 26
14 28
14 30
14 32
15 17
15 19
15 21
15 23
15 25
15 27
15 29
15 31
16 17
16 19
16 21
16 23
16 25
16 27
16 29
16 31
17 18
17 20
17 22
17 24
17 26
17 28
17 30
17 32
18 20
18 22
18 24
18 26
18 28
18 30
18 32
19 21
19 23
19 25
19 27
19 29
19 31
20 21
20 23
20 25
20 27
20 29
20 31
21 22
21 24
21 26
21 28
21 30
21 32
22 24
22 26
22 28
22 30
22 32
23 25
23 27
23 29
23 31
24 25
24 27
24 29
24 31
25 26
25 28
25 30
25 32
26 28
26 30
26 32
27 29
27 31
28 29
28 31
29 30
29 32
30 32

e.t.c