Closed-loop transcranial ultrasound stimulation technology is based on real-time feedback signals, and has the potential for precise regulation of neural activity. In this paper, firstly the local field potential (LFP) and electromyogram (EMG) signals of mice under different intensities of ultrasound stimulation were recorded, then the mathematical model of ultrasound intensity and mouse LFP peak/EMG mean was established offline based on the data, and the closed-loop control system of LFP peak and EMG mean based on PID neural network control algorithm was simulated and built to realize closed-loop control of LFP peak and EMG mean of mice. In addition, using the generalized minimum variance control algorithm, the closed-loop control of theta oscillation power was realized. There was no significant difference between the LFP peak, EMG mean and theta power under closed-loop ultrasound control and the given value, indicating a significant control effect on the LFP peak, EMG mean and theta power of mice. Transcranial ultrasound stimulation based on closed-loop control algorithms provides a direct tool for precise modulation of electrophysiological signals in mice.