Repository navigation
Closed
Description
Let's keep record of what issues and enhancements are still open with the beamformer code (not including visualization etc.). Here is a list of open issues and PRs and other things that need to be done:
- Eigenvalue inversion beamformer ("automatic" regularization)
This is in issues ENH: Ditching regularization - beamformer with rank-based inversion of cov matrix #5362 and ENH: Unifyrankcomputations of beamformer and compute_whitener #5690. - Clarify SAM vs LCMV in docstring of LCMV
- Non-converging test results with reg=0.0
Check out why one of the beamformer tests intest_lcmvdoes not converge across CIs forreg=0. For discussion and link to specific test, see MRG: Add depth weighting to LCMV #6042 (comment) - Address combination of different sensor types in DICS
The combination of different sensor types when computing the CSD matrix needs to be addressed, for discussion see [MRG] Refactoring beamformer code, part II #5135, [WIP] Add CSD whitening to DICS beamformer #7021 - Center of head bias even with normalization Strange results after computing lcmv in volume source space #5266
- Pass covariance to beamformer to get static image
This is issue allow to pass a cov to beamformer filters to get a static image as in FieldTrip #5229. It relates_lcmv_source_power, which could need some work / refactoring withmake_lcmv. - Speed up LCMV
Speed up the LCMV code and the LCMV tests. (This was taken care of in some PR already. Also in MRG, ENH: Optimize using low-level BLAS/LAPACK #6603) - Have beamformers use
mne.minimum_norm._prepare_forward
Leadfield normalization for LCMV beamformer #5881 (MRG: Add depth weighting to LCMV #6042) - Port MNE depth bias tests to LCMV
MRG: Unify _prepare_gain #5984 - Projections in beamfomer code
Still open from [MRG] Refactoring beamformer code, part II #5135: how should DICS handle projections? (Also related to BUG: CTF and proj (re)application #5342 - is LCMV handling projections the right way?) - [BUG] Orienation selection in unit-noise-gain DICS
Compare this comment, the normalization done at the beginning of the DICS pipeline results in a wrong orientation selection formula - Further refactoring of the DICS/LCMV code
Once the DICS bug (see above) is solved, the last steps of refactoring can be done (confirm equal results when switching DICS and LCMV computation blocks), this concerns this code block (review).
At the moment, results do not converge, probably due to the DICS orientation selection bug. - Orienation selection for unit-gain LCMV
This is started in WIP: orientation selection for unit-gain LCMV #4659 and is waiting for easy access to leadfield normalization, which should be granted after merging the refactoring PR [MRG] Refactoring beamformer code, part II #5135. - Store orientations in
filtersobject
Store the picked source orientation in the spatial filter, e.g., for plotting. - NAI for DICS beamformer
as suggested by @mmagnuski in [MRG] Refactoring beamformer code, part II #5135
And then, there is this older issue about beamformer enhancements: #3853. Some of this is done now, but other things might remain, like the different output types (z-scores etc. - which, however, could also just be computed on the output directly).
Anything missing, @agramfort @larsoner @sarangnemo @wmvanvliet ?
Reacted by Marijn van Vliet and Joan Massich
Metadata
Metadata
Assignees
Labels
No labels
Activity
larsoner commentedon Jul 26, 2018
Sounds reasonable to me
agramfort commentedon Jul 26, 2018
wmvanvliet commentedon Jul 27, 2018
Yeah, I agree on all these points.
Regarding projections with DICS: turns out, applying SSPs to a CSD works exactly the same as applying them to a covariance matrix! See this gist: https://gist.github.com/wmvanvliet/fe04c40e27c8f81422596163d41563ca
larsoner commentedon Jul 27, 2018
I wrote a similar test that failed, but looking back at my code I only left-multiplied by the proj op, grrr. Now it works just fine:
https://gist.github.com/larsoner/5a5f7c53c79416212e28a56292f434d7
britta-wstnr commentedon Aug 1, 2018
Added storing of source orientations in
filters.cc @sarangnemo
britta-wstnr commentedon Aug 7, 2018
Added speeding up LCMV
as brought up by @larsoner in #5135
britta-wstnr commentedon Aug 13, 2018
@larsoner I added the combination of different sensor types.
larsoner commentedon Sep 20, 2018
@britta-wstnr the max-power has a sign ambiguity. Any reason not to orient it so that positive is in the direction of the vertex normal? Basically this means taking the max power orientation and multiplying by the sign of the dot product with the vertex normal. It's a principled way to deal with the arbitrary flip.
britta-wstnr commentedon Sep 25, 2018
@larsoner How would we do that in the volume case, do volume fwd models have that information as well? (Note that beamformers are usually computed for the full source grid, not a surface solution.)
larsoner commentedon Sep 25, 2018
The normals are defined as up Z in that case IIRC. So it will still work
larsoner commentedon Sep 25, 2018
Done in wmvanvliet#6 which probably makes the most sense to put in with #5447 (which is why I made a PR to that branch)
larsoner commentedon Nov 7, 2018
@wmvanvliet can you take a look at the list above and update the checkboxes?
wmvanvliet commentedon Nov 8, 2018
mmagnuski commentedon Dec 17, 2018
(I just moved unchecked checkboxes to the top to make them more visible)
2 remaining items
larsoner commentedon Sep 11, 2019
Clearing 0.19 milestones related to beamformer, @britta-wstnr let me know if there were things you wanted to get into 0.19
britta-wstnr commentedon Sep 12, 2019
@larsoner I don't think any of the things here are critical. @wmvanvliet and I have some work planned in October (relating to the Spring Coding Sprint comparison between types) and hopefully will close the pending issues along the way!
wmvanvliet commentedon Jul 14, 2026
I think we've done enough beamformer work to close this issue.
britta-wstnr commentedon Jul 14, 2026
Oh, the nostalgia! 🤩