Described is a system for automatic adjustment of neurostimulation. The system controls stimulation of specific neural regions through a neural device positioned on a human subject, while simultaneously performing recordings from the neural device using a targeted arrangement of stimulating electrodes and distinct types of recording electrodes of the neural device. Stimulation of the specific neural regions is adjusted in real-time based on the recordings from the neural device.