# SCM-IoT: An Approach for Internet of Things Services Integration and Coordination
## 1 Introduction
Therefore, IoT provides new opportunities to create a more innovative world, which is evident when the number of data and events from various smart objects are dynamically composed in a simple way for new applications. Applications in IoT arrival are because the protocols based on the Web facilitated the support in real-time. Likewise, to meet the diverse requirements of users in the IoT, the SC combines services of various intelligent devices, which allows the development of new applications [14]. In addition, healthcare and domotic in the context of the IoT are two relevant application areas in which there is an opportunity to improve services interoperability and reduce some costs. In this sense, the services integration and coordination in the healthcare and domotic are required to cover the different needs of patients who need to continue their recovery or rehabilitation at home [15]. Healthcare and domotic share various integration and coordination aspects in their processes such as information flow, organizational processes, market development, integration of inter and intra-organizational processes, and market approaches. For health and domotic services management, coordinated integration of processes is necessary due to the relationship between patients and providers of the smart wearables used to monitor their health, increase comfort, and save energy at home [16; 17]. Current SC challenges on intelligent systems are still largely unexplored for IoT services interoperability. This work proposes an IoT services composition mechanism called SCM-IoT, which performs the IoT services integration and coordination. BPEL is important because it addresses IoT services orchestration and choreography, though the latter to a lesser extent. SCM-IoT offers three services in BPEL (selection, update, and notification) to provide an infrastructure for systems exhibiting greater intelligent behavior. Finally, to validate SCM-IoT, a case study is developed to automate domotic appliances for a physically disabled and overweight patient who needs to continue his recovery and rehabilitation at home. This work extends [18] that PISIoT presents, a platform that contributes to the control of overweight or obesity, and [19] that HEMS-IoT presents, a platform that provides recommendations for energy-saving and comfort for residents at home. SCM-IoT is proposed to develop IoT applications in a broker-oriented architecture providing storage, edition, and notification services upon the message-passing distributed architecture of BPEL. Consequently, SCM-IoT makes it possible to extend and simplify the development of applications often found in artificial intelligence. These applications involve the collaboration of intelligent agents exchanging information through shared memory. Among the various applications of SCM-IoT, the following have been already addressed:  
* Home automation, for the assistance of people with disabilities through automated control of home appliances;
* Healthcare, for reducing overweight and obesity;
* Systems integration, for monitoring the programmed activities needed in treatments and therapies of patients with physical disabilities. SCM-IoT also extends the BPEL markup language with new elements further translated into BPEL elements only. This approach allows for orchestrating the activities of agents willing to be notified on any relevant application data. Besides, SCM-IoT closely resembles a data-centric model, similar to the distributed database model. Data may be located in physically distributed storage media, though interconnected by a network infrastructure that ensures the retrieval and exchange of information between applications. Among the original contributions brought by the SCM-IoT, we can outline the following: (1) The SCM-IoT model introduces a coordination mechanism where storage, production, and notification of findings of data of interest by a mediator, called the editor, are performed on the original data provided by content producers.