In a typical neuroimaging study, each brain scan contains far more measurements than there are subjects — often thousands to millions of voxels from only tens or hundreds of subjects. This means the dimensionality
Standard machine learning methods that work directly on the data struggle in this setting — both because there are too few examples relative to the number of measurements, and because the data matrix itself is very large. Regularised kernel methods address both issues:
- regularisation prevents overfitting when
$p \gg N$ , and - the kernel representation replaces the large data matrix with a compact
$N \times N$ summary of pairwise similarities between scans.
In machine learning, the measurements extracted from each data example (e.g. from each brain scan) are represented as a feature vector — a list of values, one per measurement. For a dataset of
A kernel is a function that, for any two feature vectors (e.g. two brain scans), returns a single number representing their pairwise similarity. For example, instead of comparing scans voxel by voxel, a kernel summarises how similar two scans are in a compact form.
Formally, for two feature vectors
PRoNTo uses linear kernels, where the similarity between two scans
K(xᵢ, xⱼ) = xᵢ · xⱼ
For a dataset of
K = X Xᵀ
As an illustrative example, if we have feature vectors with only two measures: feature vector 1 is
K(x₁, x₂) = (4 × −2) + (1 × 3) = −5
This captures the overall similarity between the feature vectors.
This is the key insight behind using kernel methods in neuroimaging.
Machine learning models can be formulated in two ways:
-
Primal representation — the model is expressed as a weight vector
$w$ in the$p$ -dimensional feature space. The computational cost grows with the number of features$p$ (e.g. number of voxels). -
Dual representation — the model is expressed in terms of the
$N \times N$ kernel matrix$K$ . The computational cost depends only on the number of subjects$N$ .
| Primal | Dual (kernel) | |
|---|---|---|
| Complexity depends on | number of features |
number of subjects |
| Efficient when | ||
| Example | psychometric scores | voxel-level brain imaging |
When
With high-dimensional data and few samples, models risk overfitting — memorising the training data rather than learning generalisable patterns. Regularisation controls model complexity by penalising large weights.
In the kernel framework, regularised kernel methods such as Support Vector Machines (SVM) and Kernel Ridge Regression (KRR) incorporate regularisation naturally through the dual formulation. This means the model:
- Avoids overfitting even when
$p \gg N$ - Produces solutions that generalise well to unseen subjects
- Remains computationally tractable regardless of the number of features
A practical advantage of linear kernels is that the model weights in the original voxel space can be recovered from the dual solution. This means that even though the model was trained in the kernel (similarity) space, the contribution of each voxel to the prediction can be mapped back — producing spatial weight maps that are interpretable in the context of the neuroimaging data. This distinguishes linear kernels from non-linear kernels, where recovering input-space weights is not straightforward.
When data come from multiple modalities (e.g. fMRI and sMRI) or multiple feature groups (e.g. different brain regions), PRoNTo can compute one kernel per modality or region and combine them using Multiple Kernel Learning (MKL).
MKL learns an optimal weighted combination of kernels jointly with the prediction model. The kernel weights β reveal the relative contribution of each kernel for prediction, aiding with interpretation.