[FieldTrip] fieldtrip Digest, Vol 192, Issue 2
Grace Harvie
grace.harvie at sydney.edu.au
Wed Nov 11 02:11:19 CET 2026
Hi John,
Thanks for your reply.
I will look into your publications on neurodevelopmental templates - the only reason I was looking at creating a NIHPD BEM model in the first place was because I couldn't find an appropriated pre-existing paediatric conduction models, so knowing that you have already developed some high-quality models is enormously helpful.
Many thanks,
Grace Harvie
PhD Candidate, Faculty of Medicine and Health, University of Sydney
Research Assistant, Brain Dynamics Centre, Westmead Institute For Medical Research
________________________________
176 Hawkesbury Road | PO Box 412 | Westmead NSW 2145 Australia
grace.harvie at sydney.edu.au<mailto:grace.harvie at sydney.edu.au> | M +61 493 817 559
westmeadinstitute.org.au<https://secure-web.cisco.com/1wTyM9mCZTtoYA5-KQRf-36yLi35yjTyunZgoXZK4aA1t5pcmIrMMmon6nxWH8BvkyM_7bCWbVmnJuTBY1-idEpzOTrNnIzNMWiB1c7JmZNya3v4kCuTmjYjOABpMUbY__ZiJ1F0En3g_2PXBAoplKdI-21br38tTbdL-986a6onxJQ50NPcgXnjoL5R9yqSASUAWDj51_9tjUWBDdMYjrHDRwFMociNwPc2Uk5I-tca7pR8ZgVyUXx_l1mA78m97N6S1W3cE6bf22He_BQktBV4FK2mImv82pCVfE-PZ5t8Sx8RVkwEW-r4pUck0JaNdMpdAO9HUxWdFefmksChyNx7Y64-PCNdBgwU7M-piFp1dkznSGvSsZ2TKX58XKzubcJr3ulgbQqKx0Hym9dHyIjdU1MRq11MGKuqKCt6Z6XCzb-Ot-aJNlugJCnB920px6P3c04LlnfKYUqQmqt_GOiaJhJAFClQBtyaUhstrGVk/https%3A%2F%2Fwww.westmeadinstitute.org.au%2F> | Follow us on Facebook<https://www.facebook.com/TheWestmeadInstitute/> | Watch us on YouTube<http://tinyurl.com/WIMRYoutube>
This email is private and confidential to the intended recipient. If you are not the intended recipient, please do not copy it, circulate it or take any action in reliance on it. Kindly notify me that it has been misdirected and then delete it. Thank you.
________________________________
From: Richards, John <RICHARDS at mailbox.sc.edu>
Sent: Tuesday, 10 November 2026 11:07 PM
To: fieldtrip at science.ru.nl <fieldtrip at science.ru.nl>; Grace Harvie <grace.harvie at sydney.edu.au>
Subject: RE: fieldtrip Digest, Vol 192, Issue 2
There are two issues going on in this error, and some solutions.
1--One issue is that SPM segmenting uses an adult template, including head, brain, segments. The infant/child "head" (full head MRI; cutoff MRI; brain) does not register well to the adult template used in SPM. And the overlap msg is probably that. I'm a little surprised, I think, that the adolescent data does not work. I've found that older children and adolescents often register well to the SPM templates. However, .....
2--One solution is to use an age-appropriate MRI template, including brain, head, segmenting. Google "Neurodevelopmental MRI database". See my publications on this.
3--A second, and even better, is to do the following.
1--use registration tools to register the age appropriate template to the subject.
2--transform (warp) the template to the subject.
3--substitute the transformed template in the SPM macro language
4--Use the identity matrix for the transform in SPM.
The 3) method solves both issues in 1).
FYI, the 3) method is even better than the default method with adult MRIs. Sometimes registration errors occur in the SPM registration step. Happens occasionally with "young adults", is just as bad for adults in the older ages as it is for infants and children.
Re NIHPD and templates. Search my work on neurodevelopmental MRI templates. I have a full set of age-appropriate templates with BEM modeling segments, also FEM and other information.
NIHPD MRIs are less than optimal. MRI quality, template age range, 1.5T, etc. If you need templates "out-of-the-box", see my template and EEG source work. If you need to construct templates, see the "CP" (HCP) MRIs. The "CPs" use the HCP protocol, 3T MRIs, high resolution, across all ages.
You can contact me offline if you want. I have a lot of background in source analysis of pediatric samples, primarily infants, but also children and adults.
John
***********************************************
John E. Richards
Carolina Distinguished Professor
Department of Psychology
University of South Carolina
Columbia, SC 29208
Dept Phone: 803 777 2079
Fax: 803 777 9558
Email: richards-john at sc.edu
https://jerlab.sc.edu
***********************************************
-----Original Message-----
From: fieldtrip <fieldtrip-bounces at science.ru.nl> On Behalf Of fieldtrip-request at science.ru.nl
Sent: Tuesday, November 10, 2026 6:00 AM
To: fieldtrip at science.ru.nl
Subject: fieldtrip Digest, Vol 192, Issue 2
Send fieldtrip mailing list submissions to
fieldtrip at science.ru.nl
To subscribe or unsubscribe via the World Wide Web, visit
https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
or, via email, send a message with subject or body 'help' to
fieldtrip-request at science.ru.nl
You can reach the person managing the list at
fieldtrip-owner at science.ru.nl
When replying, please edit your Subject line so it is more specific than "Re: Contents of fieldtrip digest..."
Today's Topics:
1. Re: SPM error when segmenting NIHPD volumes (Grace Harvie)
----------------------------------------------------------------------
Message: 1
Date: Mon, 9 Nov 2026 22:17:36 +0000
From: Grace Harvie <grace.harvie at sydney.edu.au>
To: "fieldtrip at science.ru.nl" <fieldtrip at science.ru.nl>
Subject: Re: [FieldTrip] SPM error when segmenting NIHPD volumes
Message-ID:
<SYCPR01MB40934BC853821788F4B90C6EDB732 at SYCPR01MB4093.ausprd01.prod.outlook.com>
Content-Type: text/plain; charset="utf-8"
Hi Jan-Marthijs,
Thanks for the insight. I did briefly wonder whether the fact that the scans were paediatric might be causing problems.
I will follow up on the SPM mailing list and take a closer look at the Template-O-Matic toolbox from the paper you linked to.
Many thanks,
Grace Harvie
PhD Candidate, Faculty of Medicine and Health, University of Sydney
Research Assistant, Brain Dynamics Centre, Westmead Institute For Medical Research
________________________________
176 Hawkesbury Road | PO Box 412 | Westmead NSW 2145 Australia grace.harvie at sydney.edu.au<mailto:grace.harvie at sydney.edu.au> | M +61 493 817 559 westmeadinstitute.org.au<https://secure-web.cisco.com/1wTyM9mCZTtoYA5-KQRf-36yLi35yjTyunZgoXZK4aA1t5pcmIrMMmon6nxWH8BvkyM_7bCWbVmnJuTBY1-idEpzOTrNnIzNMWiB1c7JmZNya3v4kCuTmjYjOABpMUbY__ZiJ1F0En3g_2PXBAoplKdI-21br38tTbdL-986a6onxJQ50NPcgXnjoL5R9yqSASUAWDj51_9tjUWBDdMYjrHDRwFMociNwPc2Uk5I-tca7pR8ZgVyUXx_l1mA78m97N6S1W3cE6bf22He_BQktBV4FK2mImv82pCVfE-PZ5t8Sx8RVkwEW-r4pUck0JaNdMpdAO9HUxWdFefmksChyNx7Y64-PCNdBgwU7M-piFp1dkznSGvSsZ2TKX58XKzubcJr3ulgbQqKx0Hym9dHyIjdU1MRq11MGKuqKCt6Z6XCzb-Ot-aJNlugJCnB920px6P3c04LlnfKYUqQmqt_GOiaJhJAFClQBtyaUhstrGVk/https%3A%2F%2Fwww.westmeadinstitute.org.au%2F> | Follow us on Facebook<https://www.facebook.com/TheWestmeadInstitute> | Watch us on YouTube<http://tinyurl.com/WIMRYoutube>
This email is private and confidential to the intended recipient. If you are not the intended recipient, please do not copy it, circulate it or take any action in reliance on it. Kindly notify me that it has been misdirected and then delete it. Thank you.
________________________________
From:"Schoffelen, J.M. (Jan Mathijs)" <janmathijs.schoffelen at donders.ru.nl>
Sent: Monday, 9 November 2026 10:00 PM
To: fieldtrip at science.ru.nl <fieldtrip at science.ru.nl>
Subject: Re: [FieldTrip] SPM error when segmenting NIHPD volumes
Dear Grace,
Don’t quote me on this, since I have never worked with children’s anatomical MRIs before, but I can imagine that the error that you get is caused by the fact that SPM tries to segment a child-sized brain based on a template (a.k.a. tissue probability maps) of adult brains. It could be that the algorithmic heuristics used in SPM don’t converge to a solution, and hence throw an error. As such - indeed - I think your question might be better suited for the SPM mailing list, or otherwise consult the web. Not inhibited by any knowledge I came across this paper: https://doi.org/10.1016/j.neuroimage.2008.02.056<https://doi.org/10.1016/j.neuroimage.2008.02.056>, which might serve as a point of departure. There might be more recent stuff as well.
Best wishes,
Jan-Mathijs
On 9 Nov 2026, at 06:34, Grace Harvie via fieldtrip <fieldtrip at science.ru.nl> wrote:
Hi all,
I'm trying to create a BEM conduction head model to use for source localisation of EEG data in eeglab. As the age range of my dataset spans from 6-16 years, I was planning on using the NIST pediatric atlases (NIHPD). However, I keep encountering an error when trying to segment the volume:
*- SPM12: spm_affreg ---------------------------------------------
There is not enough overlap in the images
to obtain a solution.
Please check that your header information is OK.
The Check Reg utility will show you the initial
alignment between the images, which must be
within about 4cm and about 15 degrees in order
for SPM to find the optimal solution.
----------------------------------------- 12:51:29 - 09/11/2026
Error using spm_affreg>error_message (line 465) insufficient image overlap
Error in spm_affreg (line 172)
if length(msk)<32, error_message; end
^^^^^^^^^^^^^
Error in spm_normalise (line 176)
[M,scal] = spm_affreg(VG1, VF1, aflags, M); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Error in ft_convert_coordsys (line 295) params = spm_normalise(V2,V1,[],[],[],flags);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in ft_volumesegment (line 301)
mri = ft_convert_coordsys(mri, 'acpc');
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in BEMModelCreator (line 122)
t1.(currAgeRange).segmented = ft_volumesegment(cfg, t1.(currAgeRange).resliced); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
I encounter this error with all four of the NIHPD volumes I'm trying to create templates from (4.5-8.5y, 7-11y, 10-14y and 13-18.5y).
I've stepped through all the functions called by ft_volumesegment() which throw errors, and the problem seems to be that, spm_affreg(), around the 40th iteration, updates the cost function for multiple variables, one of which is updated to NaN (ss1, ln 195-203).
I also installed SPM12 so that I could check the header information, but I couldn't figure out how to view this in Check Reg. As for image ovelap, I'm only working on a single volume, so I'm not sure this is an alignment issue.
This is the first time I've worked with any MRI data and I'm not sure how to proceed (or even if this question is better directed at the SPM mailing list). Any help or advice on how to resolve this so that segmentation of these volumes would be greatly appreciated.
The script I'm working from is based on the FieldTrip tutorial (https://www.fieldtriptoolbox.org/tutorial/source/headmodel_eeg_bem<https://www.fieldtriptoolbox.org/tutorial/source/headmodel_eeg_bem/>) can be found here: https://github.com/graematterneuro/NIHPD-BEM-Model/blob/main/BEMModelCreator.m<https://github.com/graematterneuro/NIHPD-BEM-Model/blob/main/BEMModelCreator.m>
Many thanks,
Grace Harvie
PhD Candidate, Faculty of Medicine and Health, University of Sydney Research Assistant, Brain Dynamics Centre, Westmead Institute For Medical Research ________________________________
176 Hawkesbury Road | PO Box 412 | Westmead NSW 2145 Australia grace.harvie at sydney.edu.au<mailto:grace.harvie at sydney.edu.au> | M +61 493 817 559 westmeadinstitute.org.au<https://secure-web.cisco.com/1wTyM9mCZTtoYA5-KQRf-36yLi35yjTyunZgoXZK4aA1t5pcmIrMMmon6nxWH8BvkyM_7bCWbVmnJuTBY1-idEpzOTrNnIzNMWiB1c7JmZNya3v4kCuTmjYjOABpMUbY__ZiJ1F0En3g_2PXBAoplKdI-21br38tTbdL-986a6onxJQ50NPcgXnjoL5R9yqSASUAWDj51_9tjUWBDdMYjrHDRwFMociNwPc2Uk5I-tca7pR8ZgVyUXx_l1mA78m97N6S1W3cE6bf22He_BQktBV4FK2mImv82pCVfE-PZ5t8Sx8RVkwEW-r4pUck0JaNdMpdAO9HUxWdFefmksChyNx7Y64-PCNdBgwU7M-piFp1dkznSGvSsZ2TKX58XKzubcJr3ulgbQqKx0Hym9dHyIjdU1MRq11MGKuqKCt6Z6XCzb-Ot-aJNlugJCnB920px6P3c04LlnfKYUqQmqt_GOiaJhJAFClQBtyaUhstrGVk/https%3A%2F%2Fwww.westmeadinstitute.org.au%2F> | Follow us on Facebook<https://www.facebook.com/TheWestmeadInstitute/> | Watch us on YouTube<http://tinyurl.com/WIMRYoutube>
This email is private and confidential to the intended recipient. If you are not the intended recipient, please do not copy it, circulate it or take any action in reliance on it. Kindly notify me that it has been misdirected and then delete it. Thank you.
_______________________________________________
fieldtrip mailing list
https://mailman.science.ru.nl/mailman/listinfo/fieldtrip<https://mailman.science.ru.nl/mailman/listinfo/fieldtrip>
https://doi.org/10.1371/journal.pcbi.1002202<https://doi.org/10.1371/journal.pcbi.1002202>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20261109/e9243cff/attachment-0001.htm>
------------------------------
Subject: Digest Footer
_______________________________________________
fieldtrip mailing list
https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
_______________________________________________
fieldtrip mailing list
https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
https://doi.org/10.1371/journal.pcbi.1002202
------------------------------
End of fieldtrip Digest, Vol 192, Issue 1
*****************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20261109/656f2d85/attachment-0001.htm>
------------------------------
Subject: Digest Footer
_______________________________________________
fieldtrip mailing list
https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
_______________________________________________
fieldtrip mailing list
https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
https://doi.org/10.1371/journal.pcbi.1002202
------------------------------
End of fieldtrip Digest, Vol 192, Issue 2
*****************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20261111/dc30355b/attachment.htm>
More information about the fieldtrip
mailing list