How governments can use AI to improve threat detection and reduce cost