A platform architecture for occupancy detection using stream processing and machine learning approaches