AFNI Message Board

Dear AFNI users-

We are very pleased to announce that the new AFNI Message Board framework is up! Please join us at:

https://discuss.afni.nimh.nih.gov

Existing user accounts have been migrated, so returning users can login by requesting a password reset. New users can create accounts, as well, through a standard account creation process. Please note that these setup emails might initially go to spam folders (esp. for NIH users!), so please check those locations in the beginning.

The current Message Board discussion threads have been migrated to the new framework. The current Message Board will remain visible, but read-only, for a little while.

Sincerely, AFNI HQ

History of AFNI updates  

|
January 13, 2021 11:04AM
Hi Paul,

LZC: It looks complicated on paper but it's actually simple and fun when you get the hold of it. Suppose you have this time series:

0.5, 0.1, 0.1, 0.4, 0.5, 0.9, 5, 0.23, 999

First, you take the median of it (for thresholding)

0.1, 0.1, 0.23, 0.4, 0.5, 0.5, 0.9, 5, 999
The median is 0.5.

Second, we round the values to make them a binary sequence (binary in this case is arbitrary. You can actually make trinary (is that a word?) or even septary (definitely not a word).). The values that are equeal to or bigger than median are rounded to 1s, lower than median are rounded to 0s:

0.5, 0.1, 0.1, 0.4, 0.5, 0.9, 5, 0.23, 999 ==> 1 0 0 0 1 1 1 0 1

After that, we use a seperator.

1 | 0 0 0 1 1 1 0 1 ==> LZC= 1

We look at the values at right and see if it is in the left. It might sound tricky but look at the example and it will become easier:

1 | (0) 0 0 1 1 1 0 1 ==> LZC= 1

1 0 | 0 0 1 1 1 0 1 ==> LZC = 2 (0 was new so we upped the LZC)

1 0 | (0) 0 1 1 1 0 1 ==> LZC = 2 (0 was included on the left so LZC remains the same)

1 0 | (0 0) 1 1 1 0 1 ==> 1 0 0 0 | 1 1 1 0 1 ==> LZC = 3 (0 0 was new so we upped the LZC)

1 0 0 0 | (1) 1 1 0 1 ==> LZC = 3 (1 was included. LZC remains the same)

1 0 0 0 | (1 1) 1 0 1 ==> (1 1 is new) ==> 1 0 0 0 1 1 | 1 0 1 ==> LZC = 4

1 0 0 0 1 1 | (1) 0 1 ==> (1 is included. LZC remains same.)

1 0 0 0 1 1 | (1 0) 1 ==> (1 0 is included (firs two numbers), so LZC remains same)

1 0 0 0 1 1 | (1 0 1) ==> 1 0 1 is new, increase LZC ==> 1 0 0 0 1 1 1 0 1 ==> LZC = 5

Basically, this is how LZC is calculated. If you want to eliminate the effect of the length of the signal, you can normalize LZC by dividing it to loga(n); a is the different numbers in your transformed time series (2 in our case) and n is the number of time points. So that way you can compare different LZC values. But this normalization method doesn't seem very convincing to me for some reason. It tickles the skeptic inside me.

For a really fun use of LZC: A guy compared pop lyrics from different time periods: [pudding.cool]

For the case of using LZC in biomedical signaling: [www.researchgate.net] and [www.researchgate.net]

For implementation of this method to fMRI signal: [www.biorxiv.org]

For an implementation (and many other cool measures) in MATLAB: [github.com] (It would be really cool to have this in AFNILAND. Currently, I am extracting the signal using 3dmaskave and doing further stuff on MATLAB. Maybe a program called 3dLZC? eye rolling smiley)

The interpretation of LZC: This is a tricky one. Authors from the link above think it can be used to calculate complexity (duh) of fMRI signal and it's different in so-called core and periphery regions and it changes from rest to task. And median frequency (the frequency that seperates the power spectrum to two equal halves) modulates the complexity. I have some hypotheses too, but they are hypotheses at best (right now).

fSD: This is a simpler one. SD is the good old standart deviation. How can an SD be fractional? Take the SD of slow3 frequency and divide it by SD of whole frequency band. This is the fSD of slow3 (you can do the same to whatever frequency band you want).

Interpretation: It gives you a proxy of brain signal's adaptability (and if it is too much, unstability). For a heathy case: [www.jneurosci.org].

For a pathological case: [www.researchgate.net]

[www.ncbi.nlm.nih.gov]

So that's all I guess. Sorry for the really long post. I got carried away and wrote a lot. And thank you.

Yasir
Subject Author Posted

Length of rest and task?

duodenum January 09, 2021 04:42AM

Re: Length of rest and task?

ptaylor January 11, 2021 11:45AM

Re: Length of rest and task?

duodenum January 12, 2021 02:35AM

Re: Length of rest and task?

duodenum January 12, 2021 06:07AM

Re: Length of rest and task?

ptaylor January 12, 2021 12:06PM

Re: Length of rest and task?

duodenum January 12, 2021 02:01PM

Re: Length of rest and task?

ptaylor January 12, 2021 04:39PM

Re: Length of rest and task?

duodenum January 13, 2021 11:04AM

Re: Length of rest and task?

ptaylor January 19, 2021 03:39PM

Re: Length of rest and task?

duodenum January 20, 2021 04:37AM