Electronic device progress has increased demand for smart homes with IoT-based appliances. The advances in smart grid technology enabled each instant of energy consumption to be monitored in smart buildings. The problem is more energy consumption than ordinary homes compared with smart and standard devices. The requirement for efficient resource management is also increasing. As a result, scientists and researchers aim to optimize energy consumption and provide a comfortable environment, particularly in smart cities and buildings. In the previous research on this topic, the methods proposed in the literature have used static user parameters that fail to keep the balance of energy consumption and comfort index. In contrast, the proposed model uses deep learning to predict the dynamic indoor temperature, humidity, illumination, and CO2. This thesis focuses on balancing energy consumption optimization and comfort index in smart homes. Four parameters have been considered: temperature, humidity, illumination, and CO2 for the comfort index (thermal, visual, and air quality). The optimization module used the enhanced bat and krill herd algorithms regarding objective function and dynamic bounds, providing improved energy consumption optimization compared to static bounds. In addition, the enhanced fuzzy logic rules have more input and output membership functions, as in Malaysian environmental conditions. Hence provide more options for selecting optimal power based on the error difference between environmental and optimized parameters.
The RMSE results have proved that the bat algorithm's model has achieved an acceptable range of energy optimization while maintaining the comfort index of single and multi-users compared to the traditional model using the krill herd algorithm. The results indicate that the forecast and automation of user parameters have improved overall system performance in operating the system, efficient utilization of energy resources, and improved comfort index. The model using the bat algorithm has achieved an average optimized comfort index of 0.80, 0.72, and 0.87 for groups 1, 2, and 3 of the single-user models. The multi-user model's minimum, maximum, and average scenarios comfort index was 0.76, 0.88, and 0.87. Overall, the comfort index remained close to 1 for both single and multi-user models.
The energy consumption was reduced in the one-month scenario for the single-user model using the bat and krill algorithms with total optimization of 22.886% and 45.256%. Similarly, groups 2 and 3 using the bat algorithm have noticed an optimization of 26.639% and 37.018%, while the krill herd has an optimization of 41.873% and 35.950%. For the multi-user model one-month minimum scenario, bat and krill herd algorithms have optimized energy consumption to 19.022% and 55.547%. In the maximum scenario, the optimization remained at 36.287% and 43.689%. Finally, the average scenario has optimized energy consumption of 23.697% and 38.211%. In optimizing energy consumption, group 3 and the maximum scenario remained better than the other scenarios.