{'fraction_non_alphanumeric': 0.01288135593220339, 'fraction_numerical': 0.0, 'mean_word_length': 6.096153846153846, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
CARD: Context-Aware Resource Discovery for mobile Internet of Things scenarios

The occurrence of short but recurrent opportunistic contacts between static infrastructure and mobile devices largely characterizes recent Internet of Things (IoT) applications for Smart Cities and Smart Buildings scenarios. In order to efficiently exploit such existing communication opportunities to access services, share and collect data, IoT applications cannot rely on standard discovery mechanisms that periodically probe the environment to discover resources. Discovery protocols resilient to different contact opportunities and able to optimize energy consumption when device contacts are not present are therefore required in order to avoid waste of energy especially in battery operated user devices. Additionally, such new discovery protocols need to optimize the time available for communication operations, while being able to adjust to application requirements, and balance energy consumption with respect to latency for contacts discovery. To this aim, we introduce CARD, a Context Aware Resource Discovery framework that leveraging Q-Learning techniques extends the functionalities of asynchronous neighbor discovery protocols, while being capable to reduce energy wastage and discovery latency. Simulation results show that CARD performs better than existing approaches and is resilient to a variety of real scenarios characterizing Smart Cities and Smart Building deployments.