Modeling of Occupancy-Based Energy Consumption in a Campus Building Using Embedded Devices and IoT Technology
Abstract
:1. Introduction
- We developed a real-time application for energy monitoring and tested it using the proposed model.
- Since the model was implemented on an embedded device equipped with Wi-Fi communication, it was suitable for the actual situation in the campus building where Wi-Fi is available in almost all areas.
- Since each embedded device modeled a room’s energy consumption, it can be extended to cope appropriately with a more extensive system.
- Since the embedded device was IoT-enabled, it could adopt the existing IoT applications for easy monitoring and data logging.
- The proposed embedded model was developed to enable the user to change the model parameter from a smartphone.
2. Proposed System
2.1. Overview of Proposed System
- The effect of the random numbers that are used in the occupancy-based model. Since the model uses a random number, it will be a different value each time the simulation runs. Therefore, to provide a consistency of the model, the effect of this random number should be examined.
- The compatibility of the proposed embedded simulator with the IoT applications. To configure and monitor the implemented model on the embedded system, the IoT-based applications are adopted, i.e., the Blynk and ThingSpeak applications. The purpose of using these applications is to prove that the proposed embedded model is compatible with the IoT platforms.
- The comparison of occupant behavior models. In the occupancy-based energy consumption simulator, the energy consumption in the building relies on the occupant’s behavior to control the electrical appliances. Therefore, we should analyze the impact of the models.
- The IoT data transmission such as latency, jitter, and packet loss. We measure the data transmission parameters to evaluate the reliability of the proposed real-time simulator in a real-time environment.
2.2. Architecture
- The model parameter can be configured easily from a smartphone.
- The model can be monitored remotely through the internet.
- The data generated during the model simulation can easily be stored in the IoT cloud server for further analysis.
- The developed IoT-based energy monitoring system is applicable for real-time implementation.
2.3. Occupancy-Based Energy Consumption Model
2.3.1. Model-A
- When the occupant is present in the room, the light is switched on; otherwise, it is switched off.
- When the occupant is present in the room, the AC is switched on; otherwise, it is switched off.
- When the occupant is present in the room, the plug load power is 100%; otherwise, the plug load power is 0%.
2.3.2. Model-B
- When the occupant is present, and the room illumination is lower than a threshold, the light is switched on according to the following probability function:
- When the occupant is present, and the room illumination is greater than a threshold, the light is switched off according to the following probability function:
- When there is no occupant, the light is switched off.
- When the occupant is present, and the room temperature is greater than a threshold, the AC is switched on according to the following probability function:
- When the occupant is present, and the room temperature is lower than a threshold, the AC is switched off according to the following probability function:
- When there is no occupant, the AC is switched off.
- When the occupant is present in the room, the plug load power is 100%; otherwise, the plug load power is 30% [7].
2.4. IoT-Based Monitoring System
2.4.1. IoT System Configuration
2.4.2. Hardware Implementation
3. Experimental Results
3.1. Configuration of the Model
3.2. Blynk and ThingSpeak Applications
3.3. Evaluation of Occupancy-Based Energy Consumption Model
3.3.1. Evaluation of Occupancy Model
- The variation in time intervals did not significantly affect the occupied time generated by the model in the sense that increasing/decreasing occupied time was not dependent on the interval. The variation of occupied time was more affected by the simulation trials.
- The maximum variation in the occupied time between Trial-1 and Trial-2 was 360 min, which was obtained in the Office room. Recalling the configuration data in Table 4, the total variations in the arrival time, departure time, lunch duration, and the teaching duration were 450 min (during five days). This result shows that the developed model appropriately generated the occupancy according to the given configuration data.
3.3.2. Evaluation of Occupant Behavior
- The right sides of Figure 11a and Figure 12a show that the average energies of the lighting increased slightly when the time intervals increased. It can be analyzed from the given data that the probability of switching on the lighting was slightly higher than the probability of switching it off, and the increment in time interval increased the probability. For instance, the PLon and PLoff in 5 min were 0.55 and 0.54, respectively, while the PLon and PLoff in 20 min were 0.8 and 0.79, respectively.
- The right sides of Figure 11b and Figure 12b show that the average energies of the AC decreased significantly when the time intervals increased. It can be analyzed the given data that the probability of switching on the AC was higher than the probability of switching it off, and the increment in time interval increased the probability. For instance, the PACon and PACoff in 5 min were 0.1 and 0.99, respectively, while the PACon and PACoff in 20 min were 0.33 and 1, respectively.
- The right sides of Figure 11c and Figure 12c show that the profiles of the average energies of the plug load followed those on the left sides. This was caused by the similar algorithm used in Model-A and Model-B for controlling the plug load. They differed only in the consumed power during the unoccupied time. Therefore, the consumed energy was not affected by the time interval.
3.3.3. Evaluation of IoT Data Transmission
- The transmission delay (latency) was the delay time between the data transmitted by the embedded device (main device) and the data received by ThingSpeak. The lighting data achieved the fastest latency, i.e., 6.053 s. This conforms to Figure 5 and Figure 6, where the lighting data were transmitted directly from the embedded device to Blynk and then ThingSpeak. Meanwhile, the AC data and plug load data were transmitted via the bridge’s devices. However, it is interesting to note that, even though we used the bridge devices, the latency of the AC data was only slightly higher than the lighting data. This concludes that the highest latency in the plug load data was caused by the internet networks, not the bridge’s architecture.
- The lighting and plug load data achieved the lowest and highest delay variations (jitter), respectively. This result was caused by a similar condition in the latency discussed above.
- The packet inter-arrival times of the lighting, AC, and plug load data were almost the same, i.e., about 5 s. Since the data were sent from the embedded devices every 5 s, the result shows that the latency and jitter affected the deviations.
- Similar to the latency and jitter, the lowest and highest packet losses were achieved by the lighting and plug load data, respectively.
4. Conclusions
Author Contributions
Funding
Conflicts of Interest
References
- Marques, G.; Pitarma, R. Monitoring energy consumption system to improve energy efficiency. Adv. Intell. Syst. Comput. 2017, 570, 3–11. [Google Scholar] [CrossRef]
- Paone, A.; Bacher, J.P. The impact of building occupant behavior on energy efficiency and methods to influence it: A review of the state of the art. Energies 2018, 11, 953. [Google Scholar] [CrossRef] [Green Version]
- Ding, Y.; Wang, Q.; Wang, Z.; Han, S.; Zhu, N. An occupancy-based model for building electricity consumption prediction: A case study of three campus buildings in Tianjin. Energy Build. 2019, 202. [Google Scholar] [CrossRef]
- Delzendeh, E.; Wu, S.; Lee, A.; Zhou, Y. The impact of occupants’ behaviours on building energy analysis: A research review. Renew. Sustain. Energy Rev. 2017, 80, 1061–1071. [Google Scholar] [CrossRef]
- Zhu, P.; Gilbride, M.; Yan, D.; Sun, H.; Meek, C. Lighting energy consumption in ultra-low energy buildings: Using a simulation and measurement methodology to model occupant behavior and lighting controls. Build. Simul. 2017, 10, 799–810. [Google Scholar] [CrossRef]
- Song, L.; Zhou, X.; Zhang, J.; Zheng, S.; Yan, S. Air-Conditioning usage pattern and energy consumption for residential space heating in Shanghai China. Procedia Eng. 2017, 205, 3138–3145. [Google Scholar] [CrossRef]
- Sun, K.; Hong, T. A simulation approach to estimate energy savings potential of occupant behavior measures. Energy Build. 2017, 136, 43–62. [Google Scholar] [CrossRef] [Green Version]
- Chen, Y.; Liang, X.; Hong, T.; Luo, X. Simulation and visualization of energy-related occupant behavior in office buildings. Build. Simul. 2017, 10, 785–798. [Google Scholar] [CrossRef]
- Yan, D.; Xia, J.; Tang, W.; Song, F.; Zhang, X.; Jiang, Y. DeST—An integrated building simulation toolkit part I: Fundamentals. Build. Simul. 2008, 1, 95–110. [Google Scholar] [CrossRef]
- Zhou, X.; Yan, D.; Hong, T.; Ren, X. Data Analysis and stochastic modeling of lighting energy use in large office buildings in China. Energy Build. 2015, 86, 275–287. [Google Scholar] [CrossRef] [Green Version]
- Wang, C.; Yan, D.; Ren, X. Modeling individual’s light switching behavior to understand lighting energy use of office building. Energy Procedia 2016, 88, 781–787. [Google Scholar] [CrossRef] [Green Version]
- Chen, Y.; Hong, T.; Luo, X. An agent-based stochastic occupancy simulator. Build. Simul. 2018, 11, 37–49. [Google Scholar] [CrossRef] [Green Version]
- Occupancy Simulator. Available online: http://occupancysimulator.lbl.gov/ (accessed on 21 June 2021).
- Ren, X.; Yan, D.; Wang, C. Air-Conditioning Usage Conditional Probability Model for Residential Buildings. Build. Environ. 2014, 81, 172–182. [Google Scholar] [CrossRef]
- EnergyPlus. Available online: https://energyplus.net/ (accessed on 15 September 2021).
- Hong, T.; Sun, H.; Chen, Y.; Taylor-Lange, S.C.; Yan, D. An occupant behavior modeling tool for co-simulation. Energy Build. 2016, 117, 272–281. [Google Scholar] [CrossRef] [Green Version]
- Occupant Behavior Research at LBNL BTUS. Available online: https://behavior.lbl.gov/?q=node/4 (accessed on 21 June 2021).
- Anylogic. Available online: https://www.anylogic.com/ (accessed on 21 June 2021).
- Zhao, L.; Zhang, J.L.; Liang, R.B. Development of an energy monitoring system for large public buildings. Energy Build. 2013, 66, 41–48. [Google Scholar] [CrossRef]
- Liu, Y.; Leng, J.; Sun, B. Design of a energy monitoring system based on WebAccess. In Proceedings of the 29th Chinese Control Decision. Conference CCDC, Chongqing, China, 28–30 May 2017; pp. 4099–4103. [Google Scholar] [CrossRef]
- Sesotya Utami, S.; Faridah Azizi, N.A.; Kencanawati, E.; Tanjung, M.A.; Achmad, B. Energy monitoring system for existing buildings in Indonesia. E3S Web Conf. 2018, 42, 1–7. [Google Scholar] [CrossRef]
- Priyadarshini, R.; Reddyb, S.R.N.; Mehra, R.M. Occupancy-based energy management and campus monitoring using wireless sensor network. Int. J. Eng. Technol. 2015, 15, 56. [Google Scholar]
- Wei, C.; Li, Y. Design of energy consumption monitoring and energy-saving management system of intelligent building based on the Internet of Things. In Proceedings of the International Conference on Electronics, Communications and Control (ICECC), Ningbo, China, 9–11 September 2011; pp. 3650–3652. [Google Scholar] [CrossRef]
- Gomes, L.; Sousa, F.; Vale, Z. An agent-based iot system for intelligent energy monitoring in buildings. In Proceedings of the IEEE Conference on Vehicular Technology (VTC), Porto, Portugal, 3–6 June 2018; pp. 1–5. [Google Scholar] [CrossRef]
- Arduino Nano 33 IoT. Available online: https://store.arduino.cc/usa/nano-33-iot (accessed on 30 July 2021).
- Blynk. Available online: https://blynk.io/ (accessed on 20 July 2021).
- ThingSpeak. Available online: https://thingspeak.com/ (accessed on 20 July 2021).
Ref. | Software Simulation | Real-Time System | ||||||
---|---|---|---|---|---|---|---|---|
Model | Dashboard Monitoring System | Hardware Platform | ||||||
Occupancy | Occupant Behavior | Energy Consumption | Web Application | Mobile Application | Desktop Application | Sensor Systems | Communication Protocol | |
DesT [9] | √ | |||||||
Occupancy Simulator [13] | √ | |||||||
EnergyPlus [15] | √ | |||||||
obFMU [17] | √ | |||||||
[8] | √ | √ | √ | |||||
[1] | √ | √ | SmartPlug | Wi-Fi | ||||
[19] | √ | Energy meters | RS-485 | |||||
[22] | √ | Smart sensors | Zigbee | |||||
[24] | √ | SmartPlug | Wi-Fi | |||||
Proposed | √ | √ | √ | √ | √ | Embedded simulator | Wi-Fi |
Activity | Data Input | Room |
---|---|---|
Arrival | Time of arrival, time variation | Office room, Administration room, Lecturer room |
Departure | Time of departure, time variation | Office room, Administration room, Lecturer room |
Teaching | Teaching time, time variation, duration, duration variation | Office room, Lecturer room, Classroom, Laboratory room |
Lunch break | Lunchtime, time variation, duration, duration variation | Office room, Administration room, Lecturer room |
Other leaving | Absence time, time variation, duration, duration variation | Office room, Administration room, Lecturer room |
Arduino Nano 33 IoT (Main Device) | Arduino Nano 33 IoT (Bridge Device) | Blynk | ThingSpeak |
---|---|---|---|
#1: Office room | Project name: Office room (Main) | Channel name: Office (Lighting) | |
-Configuration | |||
-Lighting Monitoring | |||
Lighting Power—Model-A | Field-1: Lighting Power—Model-A | ||
Lighting Energy—Model-A | Field-2: Lighting Energy—Model-A | ||
Lighting Power—Model-B | Field-3: Lighting Power—Model-B | ||
Lighting Energy—Model-B | Field-4 Lighting Energy—Model-B | ||
-AC Monitoring | |||
-Plug load Monitoring | |||
#6: Office Room (AC) | Project name: Office—AC (Bridge) | Channel name: Office (AC) | |
AC Power—Model-A | Field-1: AC Power—Model-A | ||
AC Energy—Model-A | Field-2: AC Energy—Model-A | ||
AC Power—Model-B | Field-3: AC Power—Model-B | ||
AC Energy—Model-B | Field-4 AC Energy—Model-B | ||
#7: Office Room (Plug) | Project name: Office—Plug (Bridge) | Channel name: Office (AC) | |
Plug Power—Model-A | Field-1: Plug Power—Model-A | ||
Plug Energy—Model-A | Field-2: Plug Energy—Model-A | ||
Plug Power—Model-B | Field-3: Plug Power—Model-B | ||
Plug Energy—Model-B | Field-4 Plug Energy—Model-B |
Data/Parameter | Office Room | Administration Room | Lecturer Room | Classroom | Laboratory Room | |
---|---|---|---|---|---|---|
Arrival time; variation (min) | 08:00; 30 | 08:00; 30 | 08:00; 30 | NA | NA | |
Departure time; variation (min) | 16:00; 30 | 16:00; 30 | 16:00; 30 | NA | NA | |
Lunchtime; variation (min); Lunch duration; variation (min) | 12:00; 30; 60; 15 | 12:00; 30; 60; 15 | 12:00; 30; 60; 15 | NA | NA | |
Teaching time; variation (min); Teaching duration; variation (min) | Monday | 00:00; 00; 000; 00 | NA | 10:00; 10; 100; 30 | 08:00; 20; 100; 30; 10:00; 20; 100; 30; 13:00; 20; 150; 30 | 08:00; 20; 180; 30; 13:00; 20; 180; 30; 10:00; 00; 000; 00 |
Tuesday | 09:00; 20; 150; 30 | NA | 00; 00; 00; 000; 00 | 09:00; 20; 150; 30; 13:00; 20; 150; 30; 00:00; 00; 000; 00 | 00:00; 00; 000; 00; 00:00; 00; 000; 00; 00:00; 00; 000; 00 | |
Wednesday | 00:00; 00; 000; 00 | NA | 09:00; 10; 100; 30 | 08:00; 20; 100; 30; 10:00; 20; 150; 30; 14:00; 20; 100; 30 | 08:00; 20; 180; 30; 13:00; 20; 180; 30; 10:00; 00; 000; 00 | |
Thursday | 00:00; 00; 000; 00 | NA | 13:00; 10; 150; 30 | 08:00; 20; 100; 30; 10:00; 20; 100; 30; 14:00; 20; 100; 30 | 08:00; 20; 180; 30; 13:00; 20; 180; 30; 10:00; 00; 000; 00 | |
Friday | 00:00; 00; 000; 00 | NA | 00:00; 00; 000; 00 | 08:00; 20; 100; 30; 14:00; 20; 100; 30; 00:00; 00; 000; 00 | 00:00; 00; 000; 00; 00:00; 00; 000; 00; 00:00; 00; 000; 00 | |
Leaving time; variation (min); Teaching duration; variation (min); probability (%) | 09:00; 30; 090; 30; 40 | 09:00; 30; 060; 30; 10 | 09:00; 30; 090; 30; 20 | NA | NA | |
Room temperature (°C); Room illumination (lux) | Time: 6 h | 25.00; 000.00 | 25.00; 000.00 | 25.00; 000.00 | 25.00; 000.00 | 25.00; 000.00 |
Time: 7 h | 25.00; 000.00 | 25.00; 000.00 | 25.00; 000.00 | 25.00; 000.00 | 25.00; 000.00 | |
Time: 8 h | 25.50; 000.00 | 25.50; 000.00 | 25.50; 000.00 | 25.50; 050.00 | 25.50; 000.00 | |
Time: 9 h | 28.00; 000.00 | 28.00; 000.00 | 28.00; 000.00 | 28.00; 100.00 | 28.00; 000.00 | |
Time: 10 h | 28.00; 000.00 | 28.00; 000.00 | 28.00; 000.00 | 28.00; 100.00 | 28.00; 000.00 | |
Time: 11 h | 29.00; 000.00 | 29.00; 000.00 | 29.00; 000.00 | 29.00; 100.00 | 29.00; 000.00 | |
Time: 12 h | 29.00; 000.00 | 29.00; 000.00 | 29.00; 000.00 | 29.00; 100.00 | 29.00; 000.00 | |
Time: 13 h | 30.00; 000.00 | 30.00; 000.00 | 30.00; 000.00 | 30.00; 100.00 | 30.00; 000.00 | |
Time: 14 h | 28.00; 000.00 | 28.00; 000.00 | 28.00; 000.00 | 28.00; 100.00 | 28.00; 000.00 | |
Time: 15 h | 27.00; 000.00 | 27.00; 000.00 | 27.00; 000.00 | 27.00; 050.00 | 27.00; 050.00 | |
Time: 16 h | 25.00; 000.00 | 25.00; 000.00 | 25.00; 000.00 | 25.00; 050.00 | 25.00; 050.00 | |
Time: 17 h | 24.00; 000.00 | 24.00; 000.00 | 24.00; 000.00 | 24.00; 000.00 | 24.00; 000.00 | |
Parameters for AC control: u3; L3; k3; u4; L4; k4 | 27.75; 15.87; 2.22; 30.25; 152.88; 1.30 | 27.75; 15.87; 2.22; 30.25; 152.88; 1.30 | 27.75; 15.87; 2.22; 30.25; 152.88; 1.30 | 27.75; 15.87; 2.22; 30.25; 152.88; 1.30 | 27.75; 15.87; 2.22; 30.25; 152.88; 1.30 | |
Parameters for lighting control: u1; L1; k1; u2; L2; k2 | 325.00; 430.00; 09.00; 175.00; 2300.00; 1.30 | 27.75; 15.87; 2.22; 30.25; 152.88; 1.30 | 27.75; 15.87; 2.22; 30.25; 152.88; 1.30 | 27.75; 15.87; 2.22; 30.25; 152.88; 1.30 | 27.75; 15.87; 2.22; 30.25; 152.88; 1.30 | |
Simulation start time; time interval (Δτ) (min) | 18:00; 05 | 18:00; 05 | 18:00; 05 | 18:00; 05 | 18:00; 05 |
Occupied Time during 5 Days (Min) | ||||||
---|---|---|---|---|---|---|
Office | Admin. | Lecturer | Classroom | Laboratory | ||
Time interval = 5 min | Trial-1 | 1690 | 1820 | 1665 | 1535 | 1075 |
Trial-2 | 1860 | 1805 | 1710 | 1325 | 1050 | |
Average | 1775 | 1812.5 | 1687.5 | 1430 | 1062.5 | |
Variation | 170 | 15 | 45 | 210 | 25 | |
Time interval = 10 min | Trial-1 | 1780 | 2030 | 1800 | 1420 | 880 |
Trial-2 | 1720 | 1970 | 1860 | 1520 | 930 | |
Average | 1750 | 2000 | 1830 | 1470 | 905 | |
Variation | 60 | 60 | 60 | 100 | 50 | |
Time interval = 15 min | Trial-1 | 1980 | 2100 | 1875 | 1140 | 915 |
Trial-2 | 1620 | 1845 | 1830 | 1305 | 1110 | |
Average | 1800 | 1972.5 | 1852.5 | 1222.5 | 1012.5 | |
Variation | 360 | 255 | 45 | 165 | 195 | |
Time interval = 20 min | Trial-1 | 1900 | 1820 | 1720 | 1260 | 960 |
Trial-2 | 1820 | 2120 | 1760 | 1040 | 860 | |
Average | 1860 | 1970 | 1740 | 1150 | 910 | |
Variation | 80 | 300 | 40 | 220 | 100 |
Lighting Data | AC Data | Plug Load Data | |
---|---|---|---|
Transmission delay (latency) | 6.0153 s | 6.4735 s | 9.0348 s |
Delay variation (jitter) | 0.2704 s | 0.6270 s | 0.9829 s |
Packet inter-arrival time | 5.1763 s | 5.4371 s | 5.5085 s |
Packet loss | 1.11% | 5.42% | 10.8% |
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2021 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 (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Soetedjo, A.; Sotyohadi, S. Modeling of Occupancy-Based Energy Consumption in a Campus Building Using Embedded Devices and IoT Technology. Electronics 2021, 10, 2307. https://doi.org/10.3390/electronics10182307
Soetedjo A, Sotyohadi S. Modeling of Occupancy-Based Energy Consumption in a Campus Building Using Embedded Devices and IoT Technology. Electronics. 2021; 10(18):2307. https://doi.org/10.3390/electronics10182307
Chicago/Turabian StyleSoetedjo, Aryuanto, and Sotyohadi Sotyohadi. 2021. "Modeling of Occupancy-Based Energy Consumption in a Campus Building Using Embedded Devices and IoT Technology" Electronics 10, no. 18: 2307. https://doi.org/10.3390/electronics10182307
APA StyleSoetedjo, A., & Sotyohadi, S. (2021). Modeling of Occupancy-Based Energy Consumption in a Campus Building Using Embedded Devices and IoT Technology. Electronics, 10(18), 2307. https://doi.org/10.3390/electronics10182307