Wavelet neural network has a slow convergence rate, weak global search capability and easy to search the search results to a minimum, while the genetic algorithm has a high degree of parallelism, randomness, adaptive search and global optimization. The wavelet neural network is transformed and transformed to obtain the discretized wavelet neural network. In this paper, the three-layer wavelet neural network structure is adopted, and the real coding method is adopted, which is combined with the genetic algorithm, which makes the whole control system have good local characteristics and learning classification ability, and can also be quickly optimized. The simulation shows that the feasibility of this design is proved by comparing the obtained curves with two inverted pendulums.