Power Quality (PQ) issues are now a crucial topic of conversation and investigation for customers and suppliers are aware of the consequences of these issues. According to the responsibilities, the customized power appliances are used to reduce many of the PQ difficulties. In order to deliver doubled support to meet the challenges of clean energy generation and to improve the power grid PQ in the instance of distributed generation, the proposed study investigation concepts a UPQC along with an ANN control system which combines a solar array. It also uses a custom power device, such as a concurrently connected shunt and series converter, to shield delicate loads from penalties or disruptions on the grid and at the source. A load unbalancing condition, which can result from the abrupt switching of a huge load, is evaluated and examined for in the system. In MATLAB, the system activity can be assessed in situations containing load imbalance.