US military tests AI software that could let it predict events 'days in advance'