The proof-of-concept research could lead to an early warning system for the public.