This report details a comprehensive framework for integrating advanced Machine Learning (ML) techniques with traditional power system controls to enhance microgrid stability, directly supporting the achievement of several Sustainable Development Goals (SDGs). To update the proportional-integral (PI) controller gains online, the suggested approach considers the impact of the. . This paper explores seamless operation of microgrids through the integration of artificial (ANN) and particle swarm optimization (PSO) algorithms. The study addresses critical challenges. . By using Kisen Energy's Digital Cloud + Optical Storage and Charging Integration Solution, the above problems can be effectively solved, operational efficiency can be improved, management costs can be reduced, carbon emissions can be lowered, and green and sustainable development can be achieved.