{'fraction_non_alphanumeric': 0.02633744855967078, 'fraction_numerical': 0.0008230452674897119, 'mean_word_length': 5.1725888324873095, '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}}
An adaptive framework for applying machine learning in smart spaces

A smart space 1 is a physical environment that contains cooperating nodes which continuously and autonomously monitor their surroundings. The environment can interact with users and adapt their behaviors to enhance user experiences using semantic reasoning. Such semantic reasoning is based on information gathered and shared either from the physical environment (e.g., via sensors) or from the Internet (e.g., via user profiles). The nodes share knowledge to adapt their behaviors using semantic reasoning in a smart space. On the other hand, machine learning is a promising tool to generate or enhance knowledge for nodes' adaptations. In this paper, we propose a semantic learning component in a comprehensive smart space architecture to generate knowledge on stored semantics for nodes' adaptations. For this purpose, we propose an adaptive framework which includes machine learning techniques in the component for nodes' behaviors. Moreover, an example use-case is presented using the K-nearest neighbor algorithm. Further, two use-cases are discussed in support of the proposed framework. Finally, we address the further work to be studied.