Adaptive Machine Learning for Automatic Load Optimization in Connected Smart Green Townhouses
Abstract
:1. Introduction
2. Methodology
2.1. Problem Formulation
- is the power supplied from the grid at time t.
- is the power from RESs (solar panels) at time t.
- is the power discharged from the battery at time t.
- is the total load demand at time t.
- The load balance at time t is
- The grid constraint at time t is
- The battery State of Charge (SOC) constraint at time t is [5]
- The power of the renewable energy produced from solar panels at time t is
- The demand prediction for time is
2.2. Other Deep Learning-Based Methods
2.3. External Uncertainties in Load Optimization
- Policy Changes: Regulatory policies include adjustments in net metering policies, carbon pricing, and/or energy tariffs that affect costs. To ensure adaptability, the framework can integrate periodic policy updates by retraining the model with revised energy pricing and regulatory data.
- Demand Fluctuations: Unpredictable occupant behavior, seasonal variations, and external grid constraints may cause deviations from expected load patterns. To address this, the framework updates continuously using occupancy-driven forecasts based on real-time IoT and environmental data to enable fast load adjustments.
- Renewable Energy Intermittency: Variations in solar irradiance affect the availability of renewable energy. The framework mitigates this by incorporating probabilistic forecasting to anticipate fluctuations and by dynamically managing battery storage to compensate for variability. Historical weather data and real-time solar radiation measurements can also be used to improve prediction accuracy.
3. Performance Results
Proposed ML Model Results
4. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
Abbreviations
Symbol | Description |
BC | British Columbia |
CAD | Canadian Dollar |
CSGT | Connected Smart Green Townhouse |
GA | Genetic Algorithm |
GHG | Greenhouse Gas |
IoT | Internet of Things |
LSTM | Long Short-Term Memory |
MILP | Mixed-Integer Linear Programming |
MOPSO | Multi-Objective Particle Swarm Optimization |
NABERS | National Australian Built Environment Rating System |
Coefficient of Determination | |
RL | Reinforcement Learning |
SGB | Smart Green Building |
Tanh | Hyperbolic Tangent |
VAE | Variational Autoencoders |
BREEAM | Building Research Establishment Environmental Assessment Method |
CNN | Convolutional Neural Network |
DSM | Demand Side Management |
GEB | Grid-Interactive Efficient Building |
HVAC | Heating, Ventilation, and Air Conditioning |
LEED | Leadership in Energy and Environmental Design |
MAE | Mean Absolute Error |
ML | Machine Learning |
MSE | Mean Squared Error |
ReLU | Rectified Linear Unit |
RES | Renewable Energy Source |
SB | Smart Building |
SOC | State of Charge |
TOU | Time-Of-Use |
Volt-VAR | Voltage and Volt-Ampere Reactive Control |
References
- Hafez, F.S.; Sa, B.; Safa-Gamal, M.; Taufiq-Yap, Y.H.; Alrifaey, M.; Seyedmahmoudian, M.; Stojcevski, A.; Horan, B.; Mekhilef, S. Energy efficiency in sustainable buildings: A systematic review with taxonomy, challenges, motivations, methodological aspects, recommendations, and pathways for future research. Energy Strategy Rev. 2023, 45, 101013. [Google Scholar] [CrossRef]
- Qayyum, F.; Jamil, H.; Ali, F. A review of smart energy management in residential buildings for smart cities. Energies 2024, 17, 83. [Google Scholar] [CrossRef]
- Yuan, J.; Zeng, X.; Zhou, J.; Li, J.; Lv, J.; Chen, R.; Chen, K.; Yang, W.; Zhang, Y. Data-driven real-time home energy management system based on adaptive dynamic programming. Electr. Power Syst. Res. 2025, 238, 111055. [Google Scholar] [CrossRef]
- Moghimi, S.M.; Gulliver, T.A.; Chelvan, I.T.; Teimoorinia, H. Resource optimization for grid-connected smart green townhouses using deep hybrid machine learning. Energies 2024, 17, 6201. [Google Scholar] [CrossRef]
- Moghimi, S.M.; Gulliver, T.A.; Chelvan, I.T.; Teimoorinia, H. Load optimization for connected modern buildings using deep hybrid machine learning in island mode. Energies 2024, 17, 6475. [Google Scholar] [CrossRef]
- Li, K.; Huang, W.; Hu, G.; Li, J. Ultra-short term power load forecasting based on CEEMDAN-SE and LSTM neural network. Energy Build. 2023, 279, 112666. [Google Scholar] [CrossRef]
- Makonin, S. Electricity, water, and natural gas consumption of a residential house in Canada from 2012 to 2014. Sci. Data 2016, 3, 160037. Available online: https://www.nature.com/articles/sdata201637 (accessed on 22 January 2025). [CrossRef]
- Makonin, S.; Popowich, F.; Bartram, L.; Gill, B.; Bajić, I.V. AMPds: A public dataset for load disaggregation and eco-feedback research. In Proceedings of the IEEE Electrical Power & Energy Conference, Halifax, NS, Canada, 21–23 August 2013. [Google Scholar] [CrossRef]
- Venkateswaran, D.; Cho, Y.; Shin, C. Hybrid LSTM-Markovian model for greenhouse power consumption prediction: A dynamical approach. In The European Physical Journal Special Topics; Springer: Berlin, Germany, 2024. [Google Scholar] [CrossRef]
- Da, T.N.; Cho, M.Y.; Thanh, P.N. Hourly load prediction based on feature selection and a hybrid CNN-LSTM method for building’s smart solar microgrid. Expert Syst. 2024, 41, e13539. [Google Scholar] [CrossRef]
- Onteru, R.R.; Sandeep, V. An intelligent model for efficient load forecasting and sustainable energy management in sustainable microgrids. Discov. Sustain. 2024, 5, 170. [Google Scholar] [CrossRef]
- Gaur, M.; Makonin, S.; Bajić, I.V.; Majumdar, A. Performance evaluation of techniques for identifying abnormal energy consumption in buildings. IEEE Access 2019, 7, 62721–62733. [Google Scholar] [CrossRef]
- Decuypere, R.; Robaeyst, B.; Hudders, L.; Baccarne, B.; Van De Sompel, D. Transitioning to energy efficient housing: Drivers and barriers of intermediaries in heat pump technology. Energy Policy 2021, 156, 112709. [Google Scholar] [CrossRef]
- Benavente-Peces, C. On the energy efficiency in the next generation of smart buildings—Supporting technologies and techniques. Energies 2019, 12, 4399. [Google Scholar] [CrossRef]
- Anh, H.P.H.; Kien, C.V. Optimal energy management of microgrid using advanced multi-objective particle swarm optimization. Eng. Comput. 2020, 37, 2085–2110. [Google Scholar] [CrossRef]
- Moghimi, S.M.; Gulliver, T.A.; Chelvan, I.T. Energy management in modern buildings based on demand prediction and machine learning—A review. Energies 2024, 17, 555. [Google Scholar] [CrossRef]
- Zupančič, J.; Filipič, B.; Gams, M. Genetic-programming-based multi-objective optimization of strategies for home energy-management systems. Energy 2020, 203, 117769. [Google Scholar] [CrossRef]
- Parvin, K.; Lipu, M.H.; Hannan, M.A.; Abdullah, M.A.; Jern, K.P.; Begum, R.A.; Mansur, M.; Muttaqi, K.M.; Mahlia, T.I.; Dong, Z.Y. Intelligent controllers and optimization algorithms for building energy management towards achieving sustainable development: Challenges and prospects. IEEE Access 2021, 9, 41577–41602. [Google Scholar] [CrossRef]
- Zhang, Y.; Yuan, L.-J.; Zhang, Q.; Sun, X.-Y. Multi-objective optimization of building energy performance using a particle swarm optimizer with less control parameters. J. Build. Eng. 2020, 32, 101505. [Google Scholar] [CrossRef]
- Garces-Jimenez, A.; Gomez-Pulido, J.M.; Gallego-Salvador, N.; Garcia-Tejedor, A.J. Genetic and swarm algorithms for optimizing the control of building HVAC systems using real data: A comparative study. Mathematics 2021, 9, 2181. [Google Scholar] [CrossRef]
- Kivanç, Ö.C.; Akgün, B.T.; Bilgen, S.; Öztürk, S.B.; Baysan, S.; Tuncay, R.N. Residential energy management system based on integration of fuzzy logic and simulated annealing. Turk. J. Electr. Eng. Comput. Sci. 2022, 30, 1539–1554. [Google Scholar] [CrossRef]
- Xu, X.; Jia, Y.; Xu, Y.; Xu, Z.; Chai, S.; Lai, C.S. A multi-agent reinforcement learning-based data-driven method for home energy management. IEEE Trans. Smart Grid 2020, 11, 3201–3211. [Google Scholar] [CrossRef]
- Wang, Z.; Hong, T. Reinforcement learning for building controls: The opportunities and challenges. Appl. Energy 2020, 269, 115036. [Google Scholar] [CrossRef]
- ACosic; Stadler, M.; Mansoor, M.; Zellinger, M. Mixed-integer linear programming-based optimization strategies for renewable energy communities. Energy 2021, 237, 121559. [Google Scholar] [CrossRef]
- Javanmard, M.E.; Ghaderi, S.F.; Sangari, M.S. Integrating energy and water optimization in buildings using multi-objective mixed-integer linear programming. Sustain. Cities Soc. 2020, 62, 102409. [Google Scholar] [CrossRef]
Hyperparameter | Values | Best Value | Selection Method |
---|---|---|---|
LSTM Units | {64, 128, 256} | 128 | Grid Search |
CNN Kernel Size | {3 × 3, 5 × 5} | 3 × 3 | Grid Search |
Activation Function | {Tanh, ReLU} | ReLU | Empirical Evaluation |
Batch Size | {32, 64} | 64 | Grid Search |
Learning Rate | {0.001, 0.0005} | 0.0005 | Grid Search |
Dropout Rate | {0.2, 0.3} | 0.2 | Empirical Testing |
Optimizer | {Adam, RMSprop} | Adam | Empirical Testing |
Number of Epochs | 150 (with early stopping) | 150 (early stop at plateau) | Convergence |
Early Stopping Patience | 10 epochs | Convergence |
Algorithm | Strengths and Applicability | Weaknesses | References | Average Execution Time (s) |
---|---|---|---|---|
Genetic Algorithm (GA) | Effective for multi-objective optimization and nonlinear problems; suitable for large search spaces. | Requires careful parameter tuning; computationally expensive for real-time applications. | [17,18] | 6.21 |
MOPSO | Fast convergence; ideal for real-time applications; effectively handles multi-objective problems. | Can converge to local optima if not implemented and initialized properly. | [15,19,20,21] | 1.42 |
Simulated Annealing (SA) | Suitable for discrete and continuous problems; simple implementation. | Prone to local minima and slow convergence, especially in complex problems. | [21] | 7.89 |
Reinforcement Learning (RL) | Adaptive and can learn optimal strategies over time; suitable for dynamic environments. | Requires large datasets and extensive training time. | [22,23] | 15.34 |
Mixed-Integer Linear Programming (MILP) | Provides exact solutions with linear constraints; well-suited to small-scale problems. | Computationally expensive and impractical for large-scale, real-time applications. | [24,25] | 23.91 |
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. |
© 2025 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
Moghimi, S.M.; Gulliver, T.A.; Thirumarai Chelvan, I.; Teimoorinia, H. Adaptive Machine Learning for Automatic Load Optimization in Connected Smart Green Townhouses. Algorithms 2025, 18, 132. https://doi.org/10.3390/a18030132
Moghimi SM, Gulliver TA, Thirumarai Chelvan I, Teimoorinia H. Adaptive Machine Learning for Automatic Load Optimization in Connected Smart Green Townhouses. Algorithms. 2025; 18(3):132. https://doi.org/10.3390/a18030132
Chicago/Turabian StyleMoghimi, Seyed Morteza, Thomas Aaron Gulliver, Ilamparithi Thirumarai Chelvan, and Hossen Teimoorinia. 2025. "Adaptive Machine Learning for Automatic Load Optimization in Connected Smart Green Townhouses" Algorithms 18, no. 3: 132. https://doi.org/10.3390/a18030132
APA StyleMoghimi, S. M., Gulliver, T. A., Thirumarai Chelvan, I., & Teimoorinia, H. (2025). Adaptive Machine Learning for Automatic Load Optimization in Connected Smart Green Townhouses. Algorithms, 18(3), 132. https://doi.org/10.3390/a18030132