Learning from learning machines: a new generation of AI technology to meet the needs of science