Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Insufficiently sensitive head movement detection for chpi extraction? #13122

Open
kinleyid opened this issue Feb 21, 2025 · 1 comment · May be fixed by #13123
Open

Insufficiently sensitive head movement detection for chpi extraction? #13122

kinleyid opened this issue Feb 21, 2025 · 1 comment · May be fixed by #13123

Comments

@kinleyid
Copy link

When extracting continuous head position from CTF systems, np.all in the following line:

indices.extend(np.where(np.all(np.diff(chpi_data, axis=1), axis=0))[0] + 1)

appears to require that every coordinate of every HPI coil changes from sample to sample for any head movement to be detected. I noticed this because I have a number of participants for whom no head movement is detected over 10 minute runs, which seems too good to be true (and indeed, the HPI coil positions do change for these participants, but not dramatically enough to be detected with the above-referenced code). It seems like using np.any would fix this issue.

Copy link

welcome bot commented Feb 21, 2025

Hello! 👋 Thanks for opening your first issue here! ❤️ We will try to get back to you soon. 🚴

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant