Study uses social media and machine learning to show environ