Accurate electricity demand forecasting is crucial for the stable operation of smart grids, as it enables proactive resource allocation and prevents grid failures caused by demand–supply mismatches.