Cognitive system for autonomous underwater intervention