In order to study the prediction and optimization of borehole stability parameters in deepwater drilling based on genetic algorithm. First, a genetic hybrid algorithm based on pattern search is proposed. Then, based on the adaptive genetic algorithm, the evolutionary population is searched for patterns, which makes the hybrid algorithm not only has a strong global search ability but also improves the local optimization accuracy. Finally, the unit footage cost in the drilling process is taken as the objective function, and the algorithm is verified by taking the drilling in Karamay area as an example. The calculation results show that if the bit wear reaches 0.8-0.9 and then the bit is pulled out, the utilization rate of the bit can be increased, the design efficiency and accuracy can be improved, and the drilling cost can be reduced. The wear amount of the optimized bit is higher than that of the actual bit. Increasing the utilization rate of the bit can reduce the cost of drilling meters to a certain extent and improve the economic benefits of drilling. The objective function and constraint conditions for the optimization of drilling parameters are determined, and the algorithm is verified with the drilling data of Karamay Oilfield. The results show that the algorithm improves the stability and speed of iterative convergence and improves the reliability of data analysis results. Based on the regional three-dimensional formation rock parameter data volume, the optimization method can be used to optimize the drilling parameters before drilling and provide a basis for formulating the drilling design scheme.