In a throwback to the antebellum era, popular photo-sharing services, from Flickr and Google Photos, have publicly come under assault for their software algorithms tagging photos of black people as gorillas and apes. But this just highlights the growing risk that “learning machines” may learn to develop human biases and even criminal tendencies.