Stream-based perception for cognitive agents in mobile ecosystems