The document discusses the use of an artificial neural network (ANN) controlling a dynamic voltage restorer (DVR) to enhance power quality by reducing voltage disturbances and harmonics in electrical distribution systems. The proposed ANN controller outperforms traditional controllers, such as PID and fuzzy controllers, achieving a total harmonic distortion of just 13.5%. A detailed comparison is made, showcasing the ANN's superior performance in mitigating voltage sag and swell.