The study addresses the critical issue of low power factor in industrial settings and presents a novel capacitor bank control system utilizing an artificial neural network (ANN) with a closed-loop mechanism for automatic power factor correction. Simulations conducted using MATLAB Simulink demonstrate the system's adaptability to varying capacitor values and its superior performance in managing power factor oscillations compared to conventional methods. The research highlights the importance of maintaining power quality in industrial equipment to avoid damage and associated costs.