Abstract For the first-order inverted pendulum control system, a fuzzy PID control system based on the optimization of the genetic algorithm is proposed. The traditional genetic algorithm has the problem that the difference in the fuzzy subset parameter leads to a decrease in the interpretative ability of the fuzzy system. The main problem of the current genetic algorithm is the complexity of the computation and the low efficiency. Based on this problem, this paper proposes an improved genetic algorithm, i.e., it adopts the variance operator and adaptive change of the variance index and elite retention strategy, which solves the premature and local convergence problems of the standard genetic algorithm, in order to optimize the fuzzy system. The experimental results show that the optimized genetic algorithm gives full play to the advantages of fuzzy control in terms of interpretability and robustness, and at the same time guarantees the prediction accuracy, which provides a new research idea in the field of artificial intelligence control.