The invention discloses a closed-loop training device and a closed-loop training method for an in-vitro neural
chip to control
obstacle avoidance of a trolley, and belongs to the field of neurobiology and in-vitro brain-computer interfaces, and the closed-loop training device shapes a
biological neural network structure and regulates and controls a
discharge mode in a closed-loop training mode, so that the device makes a correct decision in different obstacle situations to control
obstacle avoidance of the trolley. According to the device, by means of sensory electrical stimulation coding, the
neuron culture can'sense 'the obstacle condition faced by the trolley in the environment, and then
motion control over the external trolley is achieved by collecting and decoding the
discharge signals of the
neuron. According to the method, training electrical stimulation is adopted to provide feedback for a neural network, a
system applies reward or punishment electrical stimulation to the neural network according to whether a trolley successfully avoids an obstacle or not, a synaptic structure and a
discharge mode of the neural network are adaptively shaped and optimized, and the safety of the trolley is improved. And a
network structure capable of autonomously controlling the trolley to avoid obstacles in different obstacle environments is gradually formed.