The embodiment of the present application provides a gene sequence optimization method, device and data processing terminal, by obtaining the amino acid sequence corresponding to the codon sequence to be optimized, and importing the amino acid sequence into a pre-established optimization model for optimization to obtain the codon box sequence. Wherein, each group of codon boxes contained in the codon box sequence corresponds to at least one group of codons, and the codons corresponding to the same group of codon boxes contain the same code elements. Then for each codon box, obtain the codon corresponding to the codon box, and the codon corresponding to the amino acid corresponding to the codon box, obtain an optimized codon according to the codons corresponding to the two, and use the optimized codon Optimize the codon sequence to be optimized. In this way, by optimizing the way to obtain the codon box, the complexity of the optimization process is simplified, and the method of combining amino acids and codons corresponding to the codon box to obtain the optimized codon improves the accuracy of the optimized codon.