A big data inspired preprocessing scheme for bandwidth use optimization in smart cities applications using Raspberry Pi