Grey wolf-optimized artificial neural networks used in DC–AC hybrid distribution networks, to regulate the energy consumption, is presented in this study. Energy management system that takes into consideration, the distributed generation, load demand, and battery state of charge are being considered. The artificial neural network have been trained, utilising the profile data, based on the energy storage system’s charging and discharging characteristics, under various distribution network power conditions. Moreover, the error rate was kept, well under 10%. The suggested energy management system, that employs an artificial neural network, has been trained to function in the optimal mode, utilising grey wolf optimization for each grid-connected power converter. Small-scale hybrid DC/AC microgrids have been developed and tested, in order to simulate and verify the proposed energy management system. The grey wolf optimized neural network energy management system has been proven to provide 99.48 % efficiency, which is superior when compared to other methods existing in the literatures.