BIAPT / awareness-perturbation-complexity-index

Development of an index for assessing the level of consciousness of healthy and disorder of consciousness individuals.
1 stars 0 forks source link

Integrate the code from Danielle into the experiment to be able to use first participant #10

Closed yacineMahdid closed 4 years ago

yacineMahdid commented 4 years ago

This is important since we want to be able to validate if the dpli index make sense and we have recovery information about the participant WSAS02 which doesn't have a similar headset than all the other participants.

First task to do:

Will need to run four analysis

These should be documented in the corresponding wikipage

yacineMahdid commented 4 years ago

I've documented the mapping over here in a wiki page

yacineMahdid commented 4 years ago

We are having some issue with the converter as the version I have in NeuroAlgo doesn't allow for channel with name like Fsomething. I will make a conversion module to take each channels that doesn't start with E and map it to its equivalent.

yacineMahdid commented 4 years ago

WSAS02_alpha_sim_dpli

One of the similarity matrices, done with the first way of doing it

yacineMahdid commented 4 years ago

dpli_dri_2

There is clearly something wrong since we get a a matrix with higher contrast for the alpha vs recovery in the previous picture. Should take a look at the raw matrices.

yacineMahdid commented 4 years ago

WSAS02_alpha_dpli

Given this dPLI matrices what we have above doesn't make any sense.

yacineMahdid commented 4 years ago

mismatch

The problem seems to be caused by a mismatch in the regions localization. We see the exact same pattern, but shifted in one case and not in another.

yacineMahdid commented 4 years ago

WSAS02_alpha_dpli

When using the min-max normalization we do not get the same shift

yacineMahdid commented 4 years ago

WSAS02_alpha_sim_dpli

The similarity matrix looks like this now

yacineMahdid commented 4 years ago

dpli_dri_2

However we still have larger difference in the baseline vs recovery comparisons

yacineMahdid commented 4 years ago

To validate that the number of channels are making our analysis less robust I'll run the analysis again but with only the left brain for all other participant than WSAS02

yacineMahdid commented 4 years ago

The main issue was in the filter_matrix function which was not filtering the matrices properly. I also added normalization as Dr. Blain-Moraes suggested, which helped :+1:

dpli_dri_2

Here is the results!

yacineMahdid commented 4 years ago

I will move away from Github Wiki and instead directly use markdown files inside the github repository. This will be easier to structure and will allow for the documentation to match up with the codebase current state.