Abstract Due to the fixed parameters, inadequate dynamic performance, and significant tracking error of the traditional PID control algorithm, it is challenging to satisfy the increasingly stringent precision demands for position control of the slider in the hydraulic servo system of the bending machine. Given the significant impact of external load on the position accuracy of the bending machine’s slider, a single neuron network is employed to dynamically adjust parameters in response to external load interference, thereby compensating for the limitations of traditional algorithms. Consequently, this paper proposes the design of a single neuron PID (SN-PID) controller to enhance system control accuracy. Through multiple simulation comparisons, it is evident that the SN-PID controller system exhibits superior anti-interference capabilities, enhanced adaptability, and reduced following error compared to traditional PID control algorithms in achieving slider position accuracy.