Researchers use artificial intelligence to identify potential unsafe locations in cities