InfantConnect: integrating developmental brain atlases and electrophysiological network analysis
Alessandro Crimi, Paweł Gryboś
cs.CE
2026-11-20
InfantConnect exposes infant EEG tools to agents over MCP, and on a three-node nonlinear toy network transfer entropy reaches AUC 0.974 while Granger falls to 0.616.
The cortex changes quickly across the first two years, and an adult template shifts electrodes, source estimates, and region names off the anatomy of that age. Age-matched surfaces, scalp and skull models, parcellations, and tractography already exist, scattered across programs. Moving between them means aligning space by hand, and the pipeline is hard to repeat.
Directed connectivity is less often bundled in. Biomarkers in preterm infants, and TMS-EEG where a magnetic pulse is a controlled cortical input, both need a directed statistical relationship. InfantConnect places the anatomy and the EEG steps in one 3D scene, with command-line entry points for batch runs.
The program is from AGH University of Krakow, written in Python and released under Apache 2.0. The desktop shell is PySide6, 3D is PyVista/VTK, and EEG handling uses MNE. The atlases are brought in as they are.
Surfaces come from the 4D UNC neonatal and infant cortical atlases, about 1 to 72 months, in three-month steps where files exist. The infant AAL parcellation has volumetric labels at three ages only: neonate, 12 months, and 24 months. Those labels are projected onto left and right hemispheres, so a region name at an in-between age comes from one of those three maps. Scalp, skull, and electrodes use infant templates tied to MNE and are cached on demand. Tractography uses NABA800FC. Display keeps 2,000 streamlines and rescales them into the cortical bounding box, for rendering only.
EEG is read from EDF. Quality control can write text or JSON. Defaults are a 50 Hz notch, a zero-phase band-pass from 0.5 to 40 Hz, and common-average reference, with no cropping and no resampling. The configuration that actually ran is the one to report.
Granger causality compares two linear autoregressions. Y is predicted from its own past, then again with the past of X added. The log ratio of the two residual variances is the strength from X to Y. Transfer entropy is the conditional mutual information, and it does not require linearity. The worked examples use a Granger lag of 5 and transfer entropy with 4 bins and lag 1. The estimator is self-contained, uses LAPACK, and brings in Statsmodels only for the speed comparison.
LORETA scores are drawn on the cortical surface for the chosen age. A click returns the AAL acronym, full name, and hemisphere. Fast activity such as F7 is drawn as a thick band, usually muscle or poor contact. A seizure segment can be marked and checked on the surface. Dynamic series can be stored as HDF5. In the Helsinki example the right precuneus carries a high displayed value. That is the click path.
The command line runs quality control, preprocessing, connectivity export, and LORETA separately. An optional MCP layer only checks arguments and calls those same scripts. MCP is the open protocol AI clients use to call external tools. LangGraph, Claude Desktop over local stdio, and ChatGPT over Streamable HTTP can all discover them. The computation stays on the local machine. Meshes may be scaled and translated when they enter the shared scene.
All 110 meshes had valid geometry, with zero errors. Median extents were X 61.62, Y 149.24, and Z 99.94, and the maximum symmetric extent ratio versus the median was 3.246. The text describes this as 324.6% greater than the median. A factor of 3.246 is 324.6% of the median, about 224.6% greater, so the sentence does not match the table. The ratio is also not a registration score.
Nonzero coverage on 22 hemisphere label arrays ran from 76.1% to 91.8%, with 37 to 40 regions a side and about 125,000 to 150,000 labelled vertices. A vertex that receives an id is not thereby anatomically correct.
The Helsinki set has 79 term neonates, 19 channels in the 10-20 montage, 256 Hz, and a median duration of 74 minutes. The test machine was an Ubuntu laptop with no GPU, an Intel Core 5 120U, 10 physical cores, 12 logical CPUs, and 15 GiB of RAM. The table is seconds across recordings.
| Step | Time (s) | Baseline |
| Quality control | 1.47 ± 0.27 | none reported |
| Preprocessing | 1.68 ± 0.28 | none reported |
| LORETA | 5.58 ± 0.58 | none reported |
| Granger, self-contained | 22.48 ± 3.66 | Statsmodels 45.56 ± 1.57 |
| Transfer entropy | 1.99 ± 0.45 | none reported |
Self-contained Granger took about half the Statsmodels time. The paper does not say whether the input was the full recording or a segment.
The connectivity numbers come from a three-node synthetic series, 5,000 samples each, one true edge X→Y, coupling 0.8, and an independent Z. The linear case is a first-order autoregression. The nonlinear case applies tanh to each term. The caption says means of 2,000 runs.
| System | Method | AUC | F1 | Precision |
| Linear | Granger | 0.9220 | 0.6167 | 0.5750 |
| Linear | Transfer entropy | 0.8620 | 0.4650 | 0.4233 |
| Nonlinear | Granger | 0.616 | 0.333 | 0.279 |
| Nonlinear | Transfer entropy | 0.974 | 0.811 | 0.795 |
On the linear system Granger has the higher AUC. After the switch to tanh, Granger falls to 0.616 and transfer entropy rises to 0.974. Linear Granger precision is only 0.575 and recall is 0.7000, so false edges remain. Helsinki has no connectivity ground truth, and the LORETA view has no localization error. The real files show that the pipeline runs.
Surfaces, electrodes, parcels, tracts, quality control, directed links, and source maps can share one scene, and the command line is there for batch jobs and saved settings. The install name is infant-brain-viewer, with a Zenodo archive. MCP lets LangGraph, Claude, or a compatible ChatGPT session call the steps as tools. The EEG is still computed by the local program.
On the same GPU-free laptop, Granger went from 45.56 s to 22.48 s, and transfer entropy took about 2 s. What that buys is wall-clock time. Clinical accuracy does not rise with it.
Third-party anatomy has to be checked, release by release, for completeness and provenance. After scaling and translation, a shared view is not a registration. Coverage only says whether a label was assigned. Three nodes and one true edge, with no connectivity ground truth in infant EEG, do not extend to clinically mixed recordings.
Granger and transfer entropy return directed statistical dependence. Common drivers, non-stationarity, noise, filtering, reference, length, and parameter choices all move the edges. That does not yield a cause in the intervention sense.
The abstract says LORETA performance benchmarks and a validation of effective connectivity are provided. The LORETA figures are mostly runtimes, and connectivity accuracy stops at the toy network. The abstract is wider than the experiments.
Surfaces are spaced about every three months out to 72 months, while AAL volumes exist only at 0, 12, and 24 months. An ROI comparison across ages includes a projection that was not validated on its own. The Table 3 caption says 2,000 runs. The methods text says 100 random seeds. The two counts are not reconciled. The default 50 Hz notch matches European mains. Two thousand displayed fibres are not a quantitative tract measure. There is no functional comparison with Brainstorm or a standalone MNE workflow.