To address problems arising from focusing through scattering media,this paper proposes a genetically assisted harmony search(GAHS)algorithm for wavefront modulation to achieve greater and more stable light-intensity enhancement while maintaining high noise resistance.The main innovation of GAHS algorithm is the combination of the genetic-algorithm cross-directional optimization process with the retrieval method of the harmony search algorithm,which improves the algorithm's optimization ability while ensuring the globality of the algorithm optimization through the traversal process of the harmony algorithm,thereby improving the algorithm's adaptability.Experimental results show that the GAHS algorithm can efficiently complete single-and multi-point wavefront focusing,thus forming a bright and visible light spot at the specified target position;additionally,the focusing gain increases with the number of modulation modules.A simulation model was constructed.In an environment with different noise levels,the GAHS algorithm was compared with the original harmony search algorithm and other classical optimization algorithms.The results show that the GAHS algorithm presents a higher enhancement level than the original algorithm in a noisy environment and has a higher enhancement upper limit compared with other classical algorithms,thus demonstrating its effectiveness as well as potential in imaging and light manipulation through scattering media.