Intelligent perception frameworks and algorithms for social good: food security and public safety