: In this paper we present a new self-tuning procedure for PID controllers based on neuro-predictive control. A finite horizon optimal control problem is solved on-line, permitting to calculate the tuning parameters of the PID controller. The proposed method is implemented on a level-flow pilot plant and a comparison with conventional auto-tuning methods is also given.