SenSquare: A mobile crowdsensing architecture for smart cities