GEV is unusually high? Verbose file incorrect? #21
Replies: 13 comments 2 replies
-
|
Hi again Armen |
Beta Was this translation helpful? Give feedback.
-
|
Didn't have time to fully investigate yet, but found I did modify the GEV implementation back in 2024-05-14. But I did (supposedly) thorough tests back in the day. I will double check these modifications. |
Beta Was this translation helpful? Give feedback.
-
|
I just ran a quick test myself. I looked at some of our baby data that I had already processed with an older version (not open source) of Cartool. The GEV for 5 microstates was .77 in the older version and now with the new version (exact same data, all the same inputs) it is 97.69 (n = 43 babies). So, something definitely appears to be wrong in the calculation! |
Beta Was this translation helpful? Give feedback.
-
|
Hi Armen, there are quite a few things happening here:
In the meantime, could you try the 5.04 release to see if the other issues got fixed? |
Beta Was this translation helpful? Give feedback.
-
|
I was comparing version 4.11 and 5.03 It appears that Version 4.11 never produced verbose files at Stage 2 for each like version 5.03 does except for in the resampling folder for each resampled epoch which is not very relevant. I guess here is where I am confused. At Stage 2, version 5.03 outputs a verbose file for some of the k solutions as long as they meet some threshold. You can visualize this with the error.data file. For example, here, k = 6, 7, 10, and 11 produce a positive MetaCriterion; though, clearly 6 is the winner. And verbose files are only available for 6 and 7 since the MetaCriterion for 10 and 11 are too low. k = 7 is very low too but passes the threshold I suppose.
When you open each verbose file, the GEV are as follows: k = 6 (GEV = 96.2008), k = 7 (GEV = 99.7968). But when you open the error.data file (I usually copy and paste into Excel), the GEV are as follows (and to me, more reasonable): k = 6 (GEV = 0.8430306), k = 7 (GEV = 0.8616478).
Why are the GEV values different? Are they representing different things? Here are the verbose files for k = 6 and 7. https://duke.box.com/s/re6l3qfw683i563eiuikq127kv57ytuc |
Beta Was this translation helpful? Give feedback.
-
|
OK, now I see where you get confused, because it is confusing with all these steps... I will see if I can improve this state of affair. In the meantime, here is a full recap of all the steps involved, all while using the resampling option: Resting States, Stage 1 (subjects level):
Restings States, Stage 2 (group level):
|
Beta Was this translation helpful? Give feedback.
-
|
On a related topic, it might be handy to add another Preset in the Segmentation Toolbox, something like:
User provides the parameters for Stage 1, which might need some tuning, but then Stage 2 could be run straight away with the default from Cartool. This would do a single operation for a single condition... |
Beta Was this translation helpful? Give feedback.
-
|
Ah ok! Yes, cleaning up some of the areas that may cause confusion sounds like a great idea. I understand now. So, which GEV value do we report in papers? Only at the individual level from the backfitting? I am not sure everyone is reporting the GEV values from the same step in their papers. I think a single operation could be helpful for some individuals, though I like to control the stages manually sometimes. |
Beta Was this translation helpful? Give feedback.
-
I just made a release (5.04.02) that cleans-up the spurious verbose files. That was a side-effects of recent changes, and was not really intended... It has the Back-Fitting bug fixed, too (hopefully).
If you were to report a number, I would go to the GEV track of the final error.data, f.ex. here 85.2%: But this is only the mean GEV of the 100 Stage 2 segmentations GEV's, which are computed from the resampled templates that comes from the stage 1 segmentations, which are themselves computed from the GFP Peaks of the original data. Quite a lot of steps, and it does not really say how much your original data is explained, which is given by the Back-Fitting GEV... |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
I believe that in the most recent versions of Cartool, Denis removed the Verbose file output in Stage 2 as it was not really relevant. The error file will give you the different criterion (including GEV) and the meta-criterion. If you want values for each k solution and criterion, I like to convert the error file into a text file. You can do this directly in Cartool by going to Tools -> EEG and Tracks -> Exporting / Reprocessing Tracks. Just change the Output File Type to Txt and drop in the error file. It may look a little bit messy, but you can figure out what corresponds to what. If you have trouble, just let me know and I can provide further guidance. |
Beta Was this translation helpful? Give feedback.
-
|
I just tested it out myself and exporting to text as I suggested should give you what you are looking for.
Here, the 3rd column represents GEV. For example, when k = 5, GEV = .82. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.






Uh oh!
There was an error while loading. Please reload this page.
-
Hi Denis! Armen again.
It seems unusual to me, the GEV after stage 2 / group clustering is very high (see Screenshot 1). I have never seen GEV values so high at this stage (>.90). Does this seem unusual to you, too?
Also, the verbose file at stage 2 does not seem to be outputting with the correct information. Specifically, I used the resampling method as clearly seen in Screenshots 2 and 3 (i.e., see folder structure). However, as seen in Screenshot 4, the verbose file says no resampling was used.
Beta Was this translation helpful? Give feedback.
All reactions