The NYPD has a new way to measure public sentiment. (iStock)