Deployment of IoT Edge and Fog Computing Technologies to Develop Smart Building Services
Abstract
:1. Introduction
- To facilitate the integration of new intelligent and interoperable services in automated and non-automated buildings (integration).
- To allow the distribution of smart services between all of the building’s subsystems (interoperability).
2. Related Work
2.1. Edge Computing Resource and Service Provisioning
2.2. Cloud Computing Service Provisioning
2.3. IoT in Building Services Engineering
2.4. Findings
- The general concept of cloud computing as a “utility” is well suited to the conventional needs of smart home applications. However, there are scenarios where moving all computations to the cloud is not realistic.
- Edge computing emerges as a computing paradigm to perform computations near to the data generated by the IoT devices. This paradigm might help to meet recent applications’ security and QoS requirements.
- Currently, advanced building facilities that control subsystems usually use Internet, IoT protocols and web services. Proprietary systems are designed using standard Internet communication protocols for control and monitoring. Previous works show that the control systems for climate control, power management or security use different monitoring and control technologies, based on wireless sensor networks, web interfaces and industrial control models. Monitoring applications analyse these subsystems in supervisory and data acquisition systems. There are different solutions for different subsystems. Considering the scenario described above, the model proposed in this work introduces the following novel elements:
- A layered architecture (integrating both the edge and fog levels) and a method to provide interoperability between the subsystems, and to develop smart services in building control is introduced.The method uses edge and fog paradigms that integrate IoT protocols and operate AI techniques in a local Intranet. A communication layer with cloud services completes this layer architecture.
- A method based on user centred methodology to design, validate and improve new services under interoperability requirements is introduced.
- The proposal enables using non-proprietary hardware and software systems that can be implemented in buildings already built.
3. Computing Model Design
- Analysis: Different expert users are identified in this phase (climate, security, power, water, energy, managers and Information and Communications Technology (ICT) technicians). Expert users are consulted to specify the main processes that need controlling. ICT experts participated in this process as a link for integration. This first approach produced the things (objects) required to design control rules and potential services. In this phase, user-centred methodology is used and the subsystems requirements are captured.
- Design: We propose a three-level architecture (edge, fog and cloud), as shown in Figure 3.
- Implementation and data analysis: The subsystems are installed and integrated during this phase. Services are based on rules in each subsystem. The data generated by the things (objects) are analysed to design machine-learning based services.
- Start up: Initially, expert rules are developed with supervision for each subsystem. Then, rules are installed with feedback processes. Finally, automatic and adapted rules are inferred through artificial intelligence techniques.
3.1. Analysis and Design
- –
- ID is an identification code.
- –
- Type can be a sensor, actuator, variable, process, device, interface, data storage or any object that can write, process, communicate, store or read data in the IoT ecosystem.
- –
- Node specifies the building subsystem, functionality description, layer type (edge, fog, communication or cloud), IoT protocol and time access.
- –
- Context represents the time, date, location, relations with others things, the state and the access rate that use to publish or read data in the IoT ecosystem.
- Edge layer functionality: Control software developed on embedded devices that connect sensors/actuators. Some AI algorithms can be installed on an edge node. Central Processing Units (CPU) and computing resources are limited. Communication interfaces are installed to allow integration in the local network.
- Fog layer functionality: Communication, AI paradigms, storage, configuration files, and monitoring activity on the local area network level. A fog node processes data in an IoT gateway, server device or other device with processing, communication and storage. Local, global and integrated services are implemented at this level. Algorithms based on machine-learning paradigms are developed using the hardware, software and communication capabilities of these nodes. Fog layer device can also perform the edge node functions in facilities or services with few units.
3.2. Architecture Design
- It is a publish–subscribe messaging protocol developed to resource-constrained scenarios.
- It has low bandwidth requirements.
- It is a very energy efficient protocol.
- The programming resources are very simple making it especially suitable for embedded devices.
- With three QoS levels, it provides reliable and secure communications.
- Connection and communication services: All devices must be in the same network and be interoperable. All sensors and actuators can be accessible to develop services. An example of this activity is the remote reading of building’s power parameters, ambient conditions and open weather forecast data on the Internet. Other functionalities such as security, reliability and interoperability of connections should be implemented in this activity.
- Control algorithms and data treatment in embedded devices (edge computing layer): In this activity, basic control rules and data analysis services implemented in these devices can develop new capabilities. This phase can be applied to data filtering, calculating climatic data or analysing power consumption, reactive control or detecting events using pattern recognition techniques.
- Advanced services on gateways nodes (fog computing layer): This level uses and manages AI paradigms and IoT communication protocols. Fog computing nodes perform an intelligent analysis of the data, stores it, filters it and communicates it to the different levels, either to correct new control actions at lower levels, or produce information of interest to services in the cloud. Example of applications in this phase are analysing new patterns, predicting water or power consumption, smart detection and other predictive services.
3.3. Test and Feedback
- Define and capture datasets: Main variables must be identified, captured and stored. In different building subsystems, process datasets are data captured by sensors connected to the edge-layer. The datasets are monitored and stored using communication protocols. An example is a power metre connected in an electric panel to an embedded device (edge-node) that communicates power data to store and process in a fog-node device.
- Training dataset and pattern recognition model. A subset of the previous dataset is used to train different models. Evaluation tests the model against data that have never been used for training The results of this process are validated with expert users. The aim is to obtain a set of representative results to know how the model might perform in the real world.
- Validation in a real scenario: New services and control algorithms must be implemented on edge and fog nodes. The models have algorithms that analyse the data, implement specific patterns, and use the results to develop optimal parameters. In this phase, the model can be modified or refined.
- Test results in statistical terms and model evolution: Models based on AI algorithms will produce approximations and not exact results. Applications results are analysed to determine the level of confidence and allow model evolution. This activity supports developing new AI services or modifications on the algorithms implemented. Supervised and automatic changes are processes to maintain and improve the system. The processes in this phase include all model layers.
4. Implementation of Smart Services in Building Subsystems
4.1. Analysis and Design
4.2. Implementation
4.3. Deploying and Testing
- The do not interfere with the previous installation operation.
- They introduce new controls using new expert and automatic rules.
- They test and reconfigure expert rules designed in analysis, learning and testing validation.
4.3.1. Machine Learning: Data Capture Process (Edge-Node) and Home Appliances Classification (Fog-Node)
4.3.2. Renewable Power Management. Decision Tree to Control Electric Self-Consumption
4.3.3. Control Home Based in Edge and Fog Nodes
4.3.4. Cloud Services Using IoT Protocols
5. Conclusions
Author Contributions
Funding
Conflicts of Interest
References
- Ren, J.; Pan, Y.; Goscinski, A.; Beyah, R.A. Edge computing for the Internet of things. IEEE Netw. 2018, 32, 6–7. [Google Scholar] [CrossRef]
- Satyanarayanan, M. The Emergence of Edge Computing. Computer 2017, 50, 30–39. [Google Scholar] [CrossRef]
- Lin, J.; Yu, W.; Zhang, N.; Yang, X.; Zhang, H.; Zhao, W. A Survey on Internet of Things: Architecture, Enabling Technologies, Security and Privacy, and Applications. IEEE Internet Things J. 2017, 4, 1125–1142. [Google Scholar] [CrossRef]
- Östberg, P.O.; Byrne, J.; Casari, P.; Eardley, P.; Fernandez Anta, A.; Forsman, J.; Kennedy, J.; Duc, T.L.; Mariño, M.N.; Loomba, R.; et al. Reliable capacity provisioning for distributed cloud/edge/fog computing applications. In Proceedings of the 2017 European Conference on Networks and Communications (EuCNC), Oulu, Finland, 12–15 June 2017; pp. 1–6. [Google Scholar]
- Xu, J.; Palanisamy, B.; Ludwig, H.; Wang, Q. Zenith: Utility-Aware Resource Allocation for Edge Computing. In Proceedings of the IEEE International Conference on Edge Computing (EDGE), Honolulu, HI, USA, 25–30 June 2017; pp. 47–54. [Google Scholar]
- Wang, N.; Varghese, B.; Matthaiou, M.; Nikolopoulos, D.S. ENORM: A Framework For Edge NOde Resource Management. IEEE Trans. Serv. Comput. 2017. [Google Scholar] [CrossRef]
- Liu, H.; Eldarrat, F.; Alqahtani, H.; Reznik, A.; de Foy, X.; Zhang, Y. Mobile Edge Cloud System: Architectures, Challenges, and Approaches. IEEE Syst. J. 2017, 1–14. [Google Scholar] [CrossRef]
- Chen, X.; Jiao, L.; Li, W.; Fu, X. Efficient Multi-User Computation Offloading for Mobile-Edge Cloud Computing. IEEE/ACM Trans. Netw. 2016, 24, 2795–2808. [Google Scholar] [CrossRef]
- Wang, L.; Jiao, L.; Kliazovich, D.; Bouvry, P. Reconciling task assignment and scheduling in mobile edge clouds. In Proceedings of the IEEE 24th International Conference on Network Protocols (ICNP), Singapore, 8–11 November 2016; pp. 1–6. [Google Scholar]
- Ahn, G.; Park, Y.-J.; Hur, S. Probabilistic Graphical Framework for Estimating Collaboration Levels in Cloud Manufacturing. Sustainability 2017, 9, 277. [Google Scholar] [CrossRef]
- Hoefer, C.N.; Karagiannis, G. Taxonomy of cloud computing services. IEEE Globecom Workshops 2010, 1345–1350. [Google Scholar] [CrossRef]
- Ghazouani, S.; Slimani, Y. A survey on cloud service description. J. Netw. Comput. Appl. 2017, 91, 61–74. [Google Scholar] [CrossRef]
- Ruan, J.; Chan, F.T.S.; Zhu, F.; Wang, X.; Yang, J. A Visualization Review of Cloud Computing Algorithms in the Last Decade. Sustainability 2016, 8, 1008. [Google Scholar] [CrossRef]
- Bokhari, M.U.; Makki, Q.; Tamandani, Y.K. A Survey on Cloud Computing. Big Data Anal. Adv. Intell. Syst. Comput. 2018, 654, 149–164. [Google Scholar]
- Mukherjee, M.; Matam, R.; Shu, L.; Maglaras, L.; Ferrag, M.A.; Choudhury, N.; Kumar, V. Security and Privacy in Fog Computing: Challenges. IEEE Access 2017, 5, 19293–19304. [Google Scholar] [CrossRef]
- Xiao, M.; Zhou, J.; Liu, X.; Jiang, M. A Hybrid Scheme for Fine-Grained Search and Access Authorization in Fog Computing Environment. Sensors 2017, 17, 1423. [Google Scholar] [CrossRef] [PubMed]
- Zhang, Y.; Huang, H.; Xiang, Y.; Zhang, L.Y.; He, X. Harnessing the Hybrid Cloud for Secure Big Image Data Service. IEEE Internet Things J. 2017, 5, 1380–1388. [Google Scholar] [CrossRef]
- Panda, S.K.; Jana, P.K. SLA-based task scheduling algorithms for heterogeneous multi-cloud environment. J. Supercomput. 2017, 73, 2730–2762. [Google Scholar] [CrossRef]
- Faniyi, F.; Bahsoon, R. A Systematic Review of Service Level Management in the Cloud. ACM Comput. Surv. 2016, 48, 43. [Google Scholar] [CrossRef]
- Singh, S.; Chana, I. QoS-Aware Autonomic Resource Management in Cloud Computing: A Systematic Review. ACM Comput. Surv. 2016, 48, 42. [Google Scholar] [CrossRef]
- Xu, H.; Qiu, X.; Sheng, Y.; Luo, L.; Xiang, Y. A Qos-driven Approach to the Cloud Service Addressing Attributes of Security. IEEE Access 2018, 6, 34477–34487. [Google Scholar] [CrossRef]
- Khan, A.M.; Freitag, F. On Edge Cloud Service Provision with Distributed Home Servers. In Proceedings of the IEEE International Conference on Cloud Computing Technology and Science (CloudCom), Hong Kong, 11–14 December 2017. [Google Scholar]
- Mora, H.; Colom, J.F.; Gil, D.; Jimeno-Morenilla, A. Distributed computational model for shared processing on Cyber-Physical System environments. Comput. Commun. 2017, 111, 68–83. [Google Scholar] [CrossRef]
- Mora, H.; Signes-Pont, M.T.; Gil, D.; Johnsson, M. Collaborative Working Architecture for IoT-Based Applications. Sensors 2018, 18, 1676. [Google Scholar] [CrossRef] [PubMed]
- Al-Ayyoub, M.; Al-Quraan, M.; Jararweh, Y.; Benkhelifa, E.; Hariri, S. Resilient service provisioning in cloud based data centers. Future Gener. Comput. Syst. 2018, 86, 765–774. [Google Scholar] [CrossRef]
- Cardoso, I.D.; Barraca, J.P.; Gonçalves, C.; Aguiar, R.L. Seamless integration of cloud and fog networks. Int. J. Netw. Mgmt. 2016, 26, 435–460. [Google Scholar] [CrossRef]
- Farahzadi, A.; Shams, P.; Rezazadeh, J.; Farahbakhsh, R. Middleware technologies for cloud of things—A survey. Digit. Commun. Netw. 2018, 4, 176–188. [Google Scholar] [CrossRef]
- Borgia, E. The Internet of Things vision: Key features, applications and open issues. Comput. Commun. 2014, 54, 1–31. [Google Scholar] [CrossRef]
- Marco, C. Internet of things for Energy efficiency of buildings. Int. Sci. J. Archit. Eng. 2014, 2, 24–28. [Google Scholar]
- i-SCOOP. Facility Management and Smart Buildings: Smart Data, Insights and Integration. Available online: https://www.i-scoop.eu/Internet-of-things-guide/facility-management-iot-smart-buildings/ (accessed on 16 June 2018).
- Intel Buiding Managenet Platform. Smart Building with Internet of Things Technologies. Available online: https://www.intel.com/content/www/us/en/smart-buildings/overview.html (accessed on 16 June 2018).
- Siemens. Digitalize Your Building. Available online: https://www.siemens.com/global/en/home/company/topic-areas/intelligent-infrastructure/buildings/digital-buildings.html (accessed on 16 June 2018).
- Min, W.; Seung Ho, H.; Musharraf, A. An IoT-based energy-management platform for industrial facilities. Appl. Energy 2016, 164, 607–619. [Google Scholar]
- FacilitiesNet. Edge Devices Are Spurring IoT Transformation of Buildings. Available online: https://www.facilitiesnet.com/buildingautomation/tip/Edge-Devices-Are-Spurring-IoT-Transformation-of-Buildings–38738 (accessed on 16 June 2018).
- Selahattin, G.; Nikolay, Z.; Kurt, G.; Berna, O. IoT in Action: Design and Implementation of a Building Evacuation Service. J. Comput. Netw. Commun. 2017, 9, 8595404. [Google Scholar]
- Alaa, A.; Zaidan, A.A.; Zaidan, B.B.; Talal, M.; Kiah, M.L.M. A review of smart home applications based on Internet of Things. J. Netw. Comput. Appl. 2017, 97, 48. [Google Scholar] [CrossRef]
- Weinreich, A. The Future Of The Smart Home: Smart Homes and IoT: A Century In The Making, Forbes. 2017. Available online: https://www.forbes.com/sites/andrewweinreich/2017/12/18/the-future-of-thesmart-home-smart-homes-iot-a-century-in-the-making/#5d01b9f857ac (accessed on 10 October 2018).
- Stojkoska, B.L.R.; Trivodaliev, K.V. A review of Internet of Things for smart home: Challenges and solutions. J. Clean. Prod. 2017, 140, 1454–1464. [Google Scholar] [CrossRef]
- Hui, T.K.L.; Sherratt, R.S.; Díaz-Sánchez, D. Major requirements for building Smart Homes in Smart Cities based on Internet of Things technologies. Future Gener. Comput. Syst. 2017, 76, 358–369. [Google Scholar] [CrossRef]
- Tolga, K.; Esra, B. An Investigation on Internet of Things Technology (IoT) In Smart Houses. Int. J. Eng. Res. Dev. 2017, 9, 196–207. [Google Scholar]
- Pan, J.; McEIhannon, J. Future Edge Cloud and Edge Computing for Internet of Things Applications. IEEE Internet Things J. 2018, 5, 439–449. [Google Scholar] [CrossRef]
- Ferrández-Pastor, F.J.; García-Chamizo, J.M.; Nieto-Hidalgo, M.; Mora-Martínez, J. Precision Agriculture Design Method Using a Distributed Computing Architecture on Internet of Things Context. Sensors 2018, 18, 1731. [Google Scholar] [CrossRef] [PubMed]
- Chang, H.L.; Wang, C.G.; Wu, M.T.; Tsai, M.H.; Lin, C.Y. Gateway-Assisted Retransmission for Lightweight and Reliable IoT Communications. Sensors 2016, 16, 1560. [Google Scholar] [CrossRef] [PubMed]
- Cruz-Piris, L.; Rivera, D.; Marsa-Maestre, I.; de la Hoz, E.; Velasco, J.R. Access Control Mechanism for IoT Environments Based on Modelling Communication Procedures as Resources. Sensors 2018, 18, 917. [Google Scholar] [CrossRef] [PubMed]
- Atmoko, R.A.; Riantini, R.; Hasin, M.K. IoT real time data acquisition using MQTT protocol. J. Phys. Conf. Ser. 2017, 853, 012003. [Google Scholar] [CrossRef] [Green Version]
- Babovic, Z.B.; Protic, J.; Milutinovic, V. Web Performance Evaluation for Internet of Things Applications. IEEE Access 2016, 4, 6974–6992. [Google Scholar] [CrossRef]
- MQTT-org. MQTT Protocol. 2018. Available online: https://www.mqtt.org (accessed on 21 June 2018).
- MQTT. MQTT Essentials Part 6: Quality of Service. 2018. Available online: https://www.hivemq.com/blog/mqtt-essentials-part-6-mqtt-quality-of-service-levels (accessed on 16 June 2018).
- Cover, T.; Hart, P. Nearest neighbor pattern classification. IEEE Trans. Inf. Theory 1967, 13, 21–27. [Google Scholar] [CrossRef] [Green Version]
- Miloud-Aouidate, A.; Baba-Hali, A.R. Survey of Nearest Neighbor Condensing Techniques. Int. J. Adv. Comput. Sci. Appl. 2011, 2–11, 59–64. [Google Scholar]
- Amazon AWS core IoT. 2018. Available online: https://aws.amazon.com/es/iot-core/features/ (accessed on 16 June 2018).
- Microsoft. Connect, Monitor, and Manage Billions of IoT Assets. 2018. Available online: https://azure.microsoft.com/en-us/services/iot-hub/ (accessed on 16 June 2018).
- Ubidots. Data Drives Decision. 2018. Available online: https://ubidots.com/ (accessed on 16 June 2018).
- Thingspeak. Understand Your Things. 2018. Available online: https://thingspeak.com/ (accessed on 16 June 2018).
lim1 -> Power level to detect | lim2-> Filter parameter |
Rate_Time -> Capture meter time | T-> Time rate to analyse |
D -> ( ) | E -> Electrical energy consumed in T |
Classes | ||||
(1)->Induction Lamp | (2)->Fluorescent Lamp | (3)->Toaster | (4)->Refrigerator | (5)->Pool cleaner |
(6)->Air conditioner | (7)->Washing machine | (8)->Oven | (9)->Other1 | (10)->Other2 |
Thing ID | ||
---|---|---|
Type | ||
Node | ||
Context | [] |
Analysis and Design Requirements | Things/Layer/Device/Process | |
---|---|---|
renewable generation | Wind and solar generation are facilities that should be considered as necessary for every building. To this end, they are analysed for introduction to domestic buildings. The proposed things will be scalable to larger buildings. Generation resources are analysed to be integrated into the layers model. | things: power-meter, wind-solar forecast power, outdoor climate sensors, ON–OFF controllers, data consumption. edge-layer: control-communication algorithms, embedded devices fog-layer: subsystem integration and machine learning algorithms, communication and processing devices adapted comm-layer: local and cloud communication devices cloud-layer: dashboard data, storage and events |
power consumption | All buildings have an electrical consumption that must be monitored to optimize their use. Consumption sensors obtain data that will be used to extract consumption patterns. With these consumption patterns, actions will be taken to reduce consumption and make better use of renewable generation. The control of loads (ON–OFF of household appliances) or people activity monitoring are services that are implemented for energy management, control and security in buildings. | things: indoor sensors (temperature, humidity, luminosity), ON–OFF climate controllers, energy meter. edge-layer: control-communication algorithms, embedded devices connected to air conditioning machinery. fog-layer: subsystem integration and machine learning algorithms, communication and processing devices adapted comm-layer: local and cloud communication devices cloud-layer: dashboard data, storage and events |
home appliances control | Home appliances can be controlled by power management services. Actuators and sensors can also be used in security comfort and security services | things: ON–OFF home appliance controllers. edge-layer: control-communication algorithms, embedded devices connected to air conditioning machinery. fog-layer: subsystem integration and machine learning algorithms, communication and processing devices adapted comm-layer: local and cloud communication devices cloud-layer: dashboard data, storage and events |
cloud services | Analytic processes, user interfaces and storage services must be designed. Tables and graphs with statistical data show data in real time. IoT communications store main data. Analysis applications generate information about the growing process | things: graphs, data tables, variables with things objects, events cloud-processes user interfaces, data storage, statistical calculations, analytics |
Features | |
---|---|
Fog node used: RaspberryPiARM BCM2837-system-on-chip (SoC)/CPU 1400 MHz memory 1 GB (OS Linux) OS multi threaded | |
Edge node used: Broadcom BCM43362 Wi-Fi chip STM32F205RGY6 120 Mhz ARM Cortex M3 Real-time operating system (FreeRTOS) OS monoprocess | |
ARM smartphone (Android/iOS/windows OS) | |
Communication node: Quad band GSM: 850, 900, 1800, 1900 MHz GPRS class 12 data rates: DL max. 86 kbps, UL max. 86 kbps Internet services: TCP, UDP, HTTP, FTP, SMTP, POP3 | |
Cloud platform: Ubidots device API, connect any hardware to the Ubidots Cloud over HTTP, MQTT, TCP, UDP |
© 2018 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).
Share and Cite
Ferrández-Pastor, F.-J.; Mora, H.; Jimeno-Morenilla, A.; Volckaert, B. Deployment of IoT Edge and Fog Computing Technologies to Develop Smart Building Services. Sustainability 2018, 10, 3832. https://doi.org/10.3390/su10113832
Ferrández-Pastor F-J, Mora H, Jimeno-Morenilla A, Volckaert B. Deployment of IoT Edge and Fog Computing Technologies to Develop Smart Building Services. Sustainability. 2018; 10(11):3832. https://doi.org/10.3390/su10113832
Chicago/Turabian StyleFerrández-Pastor, Francisco-Javier, Higinio Mora, Antonio Jimeno-Morenilla, and Bruno Volckaert. 2018. "Deployment of IoT Edge and Fog Computing Technologies to Develop Smart Building Services" Sustainability 10, no. 11: 3832. https://doi.org/10.3390/su10113832