MindPilot: Closed-loop Visual Stimulation Optimization for Brain Modulation with EEG-guided Diffusion
Dongyang Li, Kunpeng Xie, Mingyang Wu, Yiwei Kong, Jiahua Tang, Haoyang Qin, Chen Wei, Quanying Liu
TL;DR
MindPilot addresses the challenge of non-invasively modulating brain states by using EEG-derived targets to guide diffusion-based image generation in a closed-loop, gradient-free framework. It treats the brain as a non-differentiable black-box $g$ and leverages a surrogate pseudo-model to provide gradient-like signals for optimization, enabling semantic and spectral target alignment. The approach combines interactive search, GP-based guidance, and diffusion generation to produce naturalistic stimuli that steer neural representations toward target embeddings, validated in simulations and real-time human EEG experiments including emotion regulation tasks. The work demonstrates the feasibility of EEG-guided brain–stimulus co-optimization with potential implications for bidirectional BCIs, cognitive neuroscience, and non-invasive neuromodulation.
Abstract
Whereas most brain-computer interface research has focused on decoding neural signals into behavior or intent, the reverse challenge-using controlled stimuli to steer brain activity-remains far less understood, particularly in the visual domain. However, designing images that consistently elicit desired neural responses is difficult: subjective states lack clear quantitative measures, and EEG feedback is both noisy and non-differentiable. We introduce MindPilot, the first closed-loop framework that uses EEG signals as optimization feedback to guide naturalistic image generation. Unlike prior work limited to invasive settings or low-level flicker stimuli, MindPilot leverages non-invasive EEG with natural images, treating the brain as a black-box function and employing a pseudo-model guidance mechanism to iteratively refine images without requiring explicit rewards or gradients. We validate MindPilot in both simulation and human experiments, demonstrating (i) efficient retrieval of semantic targets, (ii) closed-loop optimization of EEG features, and (iii) human-subject validations in mental matching and emotion regulation tasks. Our results establish the feasibility of EEG-guided image synthesis and open new avenues for non-invasive closed-loop brain modulation, bidirectional brain-computer interfaces, and neural signal-guided generative modeling.
