Scientists have created an artificial intelligence tool to help parents determine the reason for their baby’s cries.