Examples include control , planning and scheduling , the ability to answer diagnostic and consumer questions , handwriting recognition , natural language understanding , speech recognition and facial recognition .