Researchers develop new AI form that can adapt to perform tasks in changeable environments