Artificial intelligence accelerates pharmaceutical production