Using electroencephalography (EEG) dynamic brain function can be measured and its abnormalities identified and described. However, inferring pathological mechanisms from EEG recordings is an ill-posed, inverse problem. Here we illustrate the use of neural mass model based dynamic causal modelling to address this inverse problem. Using Bayesian model inversion and model comparison, DCM allows evaluation of different hypotheses regarding pathomechanisms leading to dynamic brain dysfunction in NMDA receptor encephalitis