Self healing in artificial intelligence