Reducing the cost of network traffic monitoring with AI