Enabling End-User Development in Smart Homes: A Machine Learning-Powered Digital Twin for Energy Efficient Management
Abstract
:1. Introduction
- creation of the Digital Twin of a hypothetical smart home based on energy consumption open data;
- a method for mining appliances’ operation modes with unsupervised machine learning;
- implementation of a Digital Twin web service for energy consumption prediction;
- design of the Digital Twin interface for energy consumption simulation of routines created through End-User Development.
2. Materials and Methods
2.1. A Hypothetical Smart Home
2.2. Recognition of Appliance Operation Modes
3. Results
3.1. Simulation of New Routines
- /consumption. The endpoints belonging to this group provide insight into the appliances’ energy consumption. It is possible to ask for the energy consumption of a specific time range and/or a specific appliance;
- /appliance. This group provides two methods: one to obtain data from all the appliances of the house and one to obtain information on a specific appliance;
- /routine. There are two endpoints for this group as well. One lists all the user-created routines saved in the system, and the other provides the user with data on a specific routine;
- /simulate. The endpoints of this group are the ones responsible for the simulation of routine addition. The procedure will be discussed in more detail in the following section.
- C1.
- An appliance has conflicting operation modes in the same time interval. This conflict emerges when two routines want to use the same appliance simultaneously but with two different modes. Such a scenario happens when a cell in the original matrix, holding an operation mode other than “stand-by”, is replaced by a distinct value in the new matrix. Figure 5 shows an example in which this type of conflict occurs and is correctly identified;
- C2.
- The power consumption of the appliances in a time interval exceed a maximum limit. In this case, the user asks their smart devices to use a quantity of energy that is above the maximum load capacity of the house (commonly set to 3 kW for domestic use in Italian households; the Italian case is representative of those countries that share an issue with constrained energy availability). Such a case is identified by computing the sum of the consumption values for each row of the matrix and comparing it with the maximum allowed value.
- R1.
- Change routine’s start time. The system can suggest to users a better start time for their routines, according to the energy cost of running them at different times during the day. This type of recommendation is based on the peak hours and off-peak hours defined by the user during the Digital Twin configuration, which depends on the electricity supplier. Figure 6 shows an example of such a configuration;
- R2.
- Disable routine. When one of the conflict scenarios described above takes place, the system will suggest to the user to disable one of the responsible routines.
3.2. Interaction with the Digital Twin
- Header: Contains the title and logo of the application, which is derived from Material Icons (https://fonts.google.com/icons accessed on 1 May 2024), and two buttons for switching between light and dark modes and to access the API documentation (see (1) in Figure 8).
- Statistics: Provides various items of information about the home’s energy consumption (see (2) in Figure 8 and the corresponding letters used in the following list):
- a.
- The total instant power consumption of all appliances.
- b.
- The three appliances that consume the most power at the current time and their respective power consumption values.
- c.
- A chart that predicts the total power consumption of all appliances throughout the day based on historical data. The chart is implemented using the ApexCharts (https://apexcharts.com/ accessed on 15 May 2024) library and offers features such as zooming, panning, and tooltips.
- Appliances: Displays a table with the device name and type, the manufacturer and model, the location in the home, and the names of the supported operation modes. The table also automatically adds an appropriate icon for each appliance, taken from Material Icons.
- Routines: Displays the name, time of activation of the routines, whether the routine is enabled or not, and the list of actions of the routines.
- Simulation: Allows the user to simulate the effect of adding a new routine to the home and to detect any potential conflicts with the existing routines. In what follows, we will describe in detail how this last section works.
4. Discussion and Conclusions
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
Abbreviations
AC | Air Conditioning |
API | Application Programming Interface |
kW | Kilowatt |
LSTM | Long Short-Term Memory |
NILMTK | Non-Intrusive Load Monitoring Toolkit |
PC | Personal Computer |
REST | Representational State Transfer |
TV | Television |
GREEND | GREen ENergy Dataset |
UK-DALE | UK Domestic Appliance-Level Electricity |
References
- Sarma, S.; Brock, D.L.; Ashton, K. The networked physical world. In Auto-ID Center White Paper MIT-AUTOID-WH-001; Massachusetts Institute of Technology: Cambridge, MA, USA, 2000; pp. 1–16. [Google Scholar]
- Atzori, L.; Iera, A.; Morabito, G. The Internet of Things: A survey. Comput. Netw. 2010, 54, 2787–2805. [Google Scholar] [CrossRef]
- Wang, F.; Hu, L.; Zhou, J.; Zhao, K. A Survey from the Perspective of Evolutionary Process in the Internet of Things. Int. J. Distrib. Sens. Netw. 2015, 11, 462752. [Google Scholar] [CrossRef]
- Barricelli, B.R.; Valtolina, S. Designing for End-User Development in the Internet of Things. In Proceedings of the End-User Development: 5th International Symposium, IS-EUD 2015, Madrid, Spain, 26–29 May 2015; Díaz, P., Pipek, V., Ardito, C., Jensen, C., Aedo, I., Boden, A., Eds.; Springer International Publishing: Cham, Switzerland, 2015; pp. 9–24. [Google Scholar]
- Baxter, G.D.; Sommerville, I. Socio-technical systems: From design methods to systems engineering. Interact. Comput. 2011, 23, 4–17. [Google Scholar] [CrossRef]
- Ding, D.; Cooper, R.A.; Pasquina, P.F.; Fici-Pasquina, L. Sensor Technology for Smart Homes. Maturitas 2011, 69, 131–136. [Google Scholar] [CrossRef]
- De Silva, L.C.; Morikawa, C.; Petra, I.M. State of the Art of Smart Homes. Eng. Appl. Artif. Intell. 2012, 25, 1313–1321. [Google Scholar] [CrossRef]
- Kortuem, G.; Kawsar, F.; Sundramoorthy, V.; Fitton, D. Smart Objects as Building Blocks for the Internet of Things. IEEE Internet Comput. 2010, 14, 44–51. [Google Scholar] [CrossRef]
- Wu, Y.; Pillan, M. From Respect to Change User Behaviour. Research on How to Design a next Generation of Smart Home Objects from User Experience and Interaction Design. Des. J. 2017, 20, S3884–S3898. [Google Scholar] [CrossRef]
- Ur, B.; McManus, E.; Pak Yong Ho, M.; Littman, M.L. Practical Trigger-Action Programming in the Smart Home. In Proceedings of the SIGCHI Conference on Human Factors in Computing Systems (CHI’14), New York, NY, USA, 26 April–1 May 2014; pp. 803–812. [Google Scholar] [CrossRef]
- Desolda, G.; Ardito, C.; Matera, M. Empowering End Users to Customize Their Smart Environments: Model, Composition Paradigms, and Domain-Specific Tools. ACM Trans. Comput.-Hum. Interact. 2017, 24, 3057859. [Google Scholar] [CrossRef]
- Ghiani, G.; Manca, M.; Paternò, F.; Santoro, C. Personalization of Context-Dependent Applications through Trigger-Action Rules. ACM Trans. Comput.-Hum. Interact. 2017, 24, 3057861. [Google Scholar] [CrossRef]
- Paternò, F.; Santoro, C. End-User Development for personalizing applications, things, and robots. Int. J.-Hum.-Comput. Stud. 2019, 131, 120–130. [Google Scholar] [CrossRef]
- Manca, M.; Paternò, F.; Santoro, C. Remote monitoring of end-user created automations in field trials. J. Ambient. Intell. Humaniz. Comput. 2022, 13, 5669–5697. [Google Scholar] [CrossRef]
- Mattioli, A.; Paternò, F. A Mobile Augmented Reality App for Creating, Controlling, Recommending Automations in Smart Homes. Proc. ACM Hum.-Comput. Interact. 2023, 7, 3604242. [Google Scholar] [CrossRef]
- De Russis, L.; Monge Roffarello, A.; Borsarelli, C. Towards Vocally-Composed Personalization Rules in the IoT. In Proceedings of the EMPATHY: 2nd International Workshop on Empowering People in Dealing with Internet of Things Ecosystems, Aachen, Germany, 17 July 2021; pp. 1–5. [Google Scholar]
- Gallo, S.; Paterno, F. A Conversational Agent for Creating Flexible Daily Automation. In Proceedings of the 2022 International Conference on Advanced Visual Interfaces (AVI 2022), New York, NY, USA, 6–10 June 2022. [Google Scholar] [CrossRef]
- Lago, A.S.; Dias, J.P.; Ferreira, H.S. Managing non-trivial internet-of-things systems with conversational assistants: A prototype and a feasibility experiment. J. Comput. Sci. 2021, 51, 1–12. [Google Scholar] [CrossRef]
- Barricelli, B.R.; Bondioli, A.; Fogli, D.; Iemmolo, L.; Locoro, A. Creating Routines for IoT Ecosystems through Conversation with Smart Speakers. Int. J. Hum.-Comput. Interact. 2023, 1–19. [Google Scholar] [CrossRef]
- Barricelli, B.R.; Cassano, F.; Fogli, D.; Piccinno, A. End-User Development, End-User Programming and End-User Software Engineering: A Systematic Mapping Study. J. Syst. Softw. 2019, 149, 101–137. [Google Scholar] [CrossRef]
- Negri, E.; Fumagalli, L.; Macchi, M. A Review of the Roles of Digital Twin in CPS-based Production Systems. Procedia Manuf. 2017, 11, 939–948. [Google Scholar] [CrossRef]
- Barricelli, B.R.; Casiraghi, E.; Fogli, D. A Survey on Digital Twin: Definitions, Characteristics, Applications, and Design Implications. IEEE Access 2019, 7, 167653–167671. [Google Scholar] [CrossRef]
- Hermann, M.; Pentek, T.; Otto, B. Design Principles for Industrie 4.0 Scenarios. In Proceedings of the 2016 49th Hawaii International Conference on System Sciences (HICSS), Koloa, HI, USA, 5–8 January 2016; pp. 3928–3937. [Google Scholar] [CrossRef]
- Tagliabue, L.C.; Cecconi, F.R.; Maltese, S.; Rinaldi, S.; Ciribini, A.L.C.; Flammini, A. Leveraging Digital Twin for Sustainability Assessment of an Educational Building. Sustainability 2021, 13, 480. [Google Scholar] [CrossRef]
- Yang, B.; Lv, Z.; Wang, F. Digital Twins for Intelligent Green Buildings. Buildings 2022, 12, 856. [Google Scholar] [CrossRef]
- Casillo, M.; Cecere, L.; Colace, F.; Lorusso, A.; Marongiu, F.; Santaniello, D. An Internet of Things Approach to Support a High-Tech House. In Proceedings of the 2023 7th IEEE Congress on Information Science and Technology (CiSt), Essaouira, Morocco, 16–22 December 2023; pp. 323–328. [Google Scholar] [CrossRef]
- Chen, J.; Wang, W.; Fang, B.; Liu, Y.; Yu, K.; Leung, V.C.M.; Hu, X. Digital Twin Empowered Wireless Healthcare Monitoring for Smart Home. IEEE J. Sel. Areas Commun. 2023, 41, 3662–3676. [Google Scholar] [CrossRef]
- Shoukat, M.U.; Yan, L.; Zhang, J.; Cheng, Y.; Raza, M.U.; Niaz, A. Smart home for enhanced healthcare: Exploring human machine interface oriented digital twin model. Multimed. Tools Appl. 2024, 83, 31297–31315. [Google Scholar] [CrossRef]
- Corno, F.; De Russis, L.; Monge Roffarello, A. Empowering End Users in Debugging Trigger-Action Rules. In Proceedings of the 2019 CHI Conference on Human Factors in Computing Systems (CHI’19), New York, NY, USA, 4–23 December 2019; pp. 1–13. [Google Scholar] [CrossRef]
- Manca, M.; Paternò, F.; Santoro, C.; Corcella, L. Supporting end-user debugging of trigger-action rules for IoT applications. Int. J.-Hum.-Comput. Stud. 2019, 123, 56–69. [Google Scholar] [CrossRef]
- Barricelli, B.R.; Fogli, D. Digital Twins in Human-Computer Interaction: A Systematic Review. Int. J.-Hum.-Comput. Interact. 2024, 40, 79–97. [Google Scholar] [CrossRef]
- Monacchi, A.; Egarter, D.; Elmenreich, W.; D’Alessandro, S.; Tonello, a.m. GREEND: An Energy Consumption Dataset of Households in Italy and Austria. In Proceedings of the 2014 IEEE International Conference on Smart Grid Communications (SmartGridComm), Venice, Italy, 3–6 November 2014; pp. 511–516. [Google Scholar] [CrossRef]
- Kelly, J.; Knottenbelt, W. The UK-DALE Dataset, Domestic Appliance-Level Electricity Demand and Whole-House Demand from Five UK Homes. Sci. Data 2015, 2, 150007. [Google Scholar] [CrossRef] [PubMed]
- Castangia, M.; Barletta, N.; Camarda, C.; Quer, S.; Macii, E.; Patti, E. Clustering Appliance Operation Modes With Unsupervised Deep Learning Techniques. IEEE Trans. Ind. Inform. 2023, 19, 8196–8204. [Google Scholar] [CrossRef]
- Batra, N.; Kelly, J.; Parson, O.; Dutta, H.; Knottenbelt, W.; Rogers, A.; Singh, A.; Srivastava, M. NILMTK: An open source toolkit for non-intrusive load monitoring. In Proceedings of the 5th International Conference on Future Energy Systems (e-Energy’14), Cambridge, UK, 11–13 June 2014. [Google Scholar] [CrossRef]
- Hinton, G.E.; Salakhutdinov, R.R. Reducing the Dimensionality of Data with Neural Networks. Science 2006, 313, 504–507. [Google Scholar] [CrossRef] [PubMed]
- Hochreiter, S.; Schmidhuber, J. Long Short-Term Memory. Neural Comput. 1997, 9, 1735–1780. [Google Scholar] [CrossRef]
- Rousseeuw, P.J. Silhouettes: A Graphical Aid to the Interpretation and Validation of Cluster Analysis. J. Comput. Appl. Math. 1987, 20, 53–65. [Google Scholar] [CrossRef]
- Evans, S.; Savian, C.; Burns, A.; Cooper, C. Digital Twins for the Built Environment: An Introduction to the Opportunities, Benefits, Challenges and Risks; Technical Report; The Institution of Engineering and Technology (IET): Stevenage, UK, 2019. [Google Scholar]
- Botín-Sanabria, D.M.; Mihaita, A.S.; Peimbert-García, R.E.; Ramírez-Moreno, M.A.; Ramírez-Mendoza, R.A.; Lozoya-Santos, J.d.J. Digital Twin Technology Challenges and Applications: A Comprehensive Review. Remote. Sens. 2022, 14, 1335. [Google Scholar] [CrossRef]
Room | Appliances |
---|---|
Corridor | Lamp |
Living room | Air conditioning split, lamp, radio, television |
Kitchen | Dishwasher, fridge with a combined freezer, lamp, microwave |
Bedroom #1 | Air conditioning split, desktop computer, lamp |
Bedroom #2 | Air conditioning split, lamp, television |
Bathroom | Boiler, lamp, washing machine |
Appliance Type | Dataset | Building | Manufacturer | Model |
---|---|---|---|---|
Radio | GREEND | 3 | Denon | DRA-275RD |
Dishwasher | GREEND | 5 | Whirlpool | ADG 555 IX |
Fridge w/freezer | GREEND | 5 | Siemens | |
Television | GREEND | 5 | Samsung | LE32C650 |
Microwave | GREEND | 3 | Whirlpool | AMW 494/IX |
Lamp | UK-DALE | 1 | ||
Washing machine | GREEND | 3 | Zanussi | F1215 |
Desktop | GREEND | 5 | Dimotion | QuietONE Q2 |
Boiler | UK-DALE | 4 | ||
Air conditioning | UK-DALE | 5 |
Appliance Type | Mode Name | Power (W) | Duration (s) |
---|---|---|---|
Radio | Stand-by | 1 | ∞ |
On | 37 | 4435 | |
Dishwasher | Intensive | 1400 | 10,380 |
Daily | 810 | 10,260 | |
Eco | 700 | 6660 | |
Express | 350 | 1680 | |
Delicate | 800 | 7080 | |
Pre-wash | 10 | 660 | |
Fridge w/freezer | On | 208 | 6304 |
Television | Stand-by | 18 | 2514 |
On | 110 | 1833 | |
Microwave | Stand-by | 5 | ∞ |
Microwave | 750 | 300 | |
Crisp | 500 | 300 | |
Grill | 500 | 300 | |
Grill + microwave | 500 | 300 | |
Steam | 350 | 300 | |
Jet defrost | 160 | 300 | |
Lamp | On | 19 | 587 |
Washing machine | Cotton 90° | 2000 | 8700 |
Cotton 60 ECO | 950 | 7680 | |
Cotton 60° | 1200 | 7200 | |
Cotton 30° | 550 | 6900 | |
Synthetic 30° | 900 | 5400 | |
Delicate 30° | 500 | 3600 | |
Wool | 450 | 3300 | |
Desktop | Stand-by | 4 | ∞ |
On | 41 | 12,412 | |
Boiler | Holiday | 33 | 300 |
Comfort | 57 | 525 | |
Auto | 101 | 2187 | |
Air conditioning | Cool | 336 | 3337 |
Heat | 656 | 30,176 |
Endpoint | Method | Path Parameters | Query Parameters | Body Parameters | Description |
---|---|---|---|---|---|
/ | GET | Displays the API documentation using Swagger UI. | |||
/consumption | GET | Date and time | Returns a list of energy consumption values of all appliances at the given date and time. | ||
/consumption | GET | Appliance identifier, date, and time | Returns the energy consumption value of the given appliance at the given date and time. | ||
/consumption /total | GET | List of dates and times | Returns the list of total energy consumption of all appliances at the given dates and times. | ||
/consumption /total | GET | Date and time | Returns the total energy consumption of all appliances at the given date and time. | ||
/appliance | GET | Returns the list of all appliances. | |||
/appliance | GET | Appliance identifier | Returns a specific appliance. | ||
/routine | GET | Returns the list of all routines | |||
/routine | GET | Routine identifier | Returns a specific routine | ||
/simulate | POST | Routine to simulate | Simulates the addition of a routine and returns a list of recommendations and errors (if any). | ||
/simulate /consumption | POST | Date and time | Routine to simulate | Simulates the addition of a routine and returns a list of energy consumption values of all appliances at the given date and time. | |
/simulate /consumption | POST | Appliance identifier, date, and time | Routine to simulate | Simulates the addition of a routine and returns the energy consumption value of the given appliance at the given date and time. | |
/simulate /consumption /total | POST | Date and time | Routine to simulate | Simulates the addition of a routine and returns the list of total energy consumption of all appliances at the given date and time. | |
/simulate /consumption /total | POST | List of dates and times | Routine to simulate | Simulates the addition of a routine and returns the total energy consumption of all appliances at the given dates and times. |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 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
Cotti, L.; Guizzardi, D.; Barricelli, B.R.; Fogli, D. Enabling End-User Development in Smart Homes: A Machine Learning-Powered Digital Twin for Energy Efficient Management. Future Internet 2024, 16, 208. https://doi.org/10.3390/fi16060208
Cotti L, Guizzardi D, Barricelli BR, Fogli D. Enabling End-User Development in Smart Homes: A Machine Learning-Powered Digital Twin for Energy Efficient Management. Future Internet. 2024; 16(6):208. https://doi.org/10.3390/fi16060208
Chicago/Turabian StyleCotti, Luca, Davide Guizzardi, Barbara Rita Barricelli, and Daniela Fogli. 2024. "Enabling End-User Development in Smart Homes: A Machine Learning-Powered Digital Twin for Energy Efficient Management" Future Internet 16, no. 6: 208. https://doi.org/10.3390/fi16060208
APA StyleCotti, L., Guizzardi, D., Barricelli, B. R., & Fogli, D. (2024). Enabling End-User Development in Smart Homes: A Machine Learning-Powered Digital Twin for Energy Efficient Management. Future Internet, 16(6), 208. https://doi.org/10.3390/fi16060208