Machine Learning For Autonomous Privacy Preservation In Participatory Sensing And Smart Cities