Intelligent control for an induction motor