Published in: Current Opinion in Biomedical Engineering, 8, 28-37 Non-invasive and invasive electrical neurostimulation are promising tools to better understand brain function and ultimately treat its malfunction. In current open-loop approaches, a clinician chooses a fixed set of stimulation parameters, informed by observed therapeutic benefits and previous empirical evidence. However, this procedure leads to …