Artificial intelligence is rapidly improving scientists' ability to detect chemicals in the environment and human body.