Intelligent valve actuator