The prediction of the mechanical properties of different dosages amounts of cement has been a hot topic in various scholars. In addition to water and a small amount of air and pores, cement has unhydrated cementitious material particles and hydration products. It was found that the hydration products CH and C-S-H gel in cement had certain effects on the mechanical properties of cement. In the theory of many porosity and cement mechanical properties, the theory of porosity and cement mechanical properties based on percolation theory can better predict the strength of cement stone. This paper studies the hydration products on cement,a numerical model of multi-parameter cement mechanical properties based on porosity and hydration products was proposed. By using various optimization algorithms to fit and optimize the constructed numerical model, it was found through multiple experiments and comparisons. The lightning search algorithm can achieve a certain effect on the optimized fitting of the constructed mathematical model. The multi-parameter numerical model based on pore percolation constructed in this paper is well fitted. In terms of predicting cement strength, it is superior to the three most cited porosity strength models at home and abroad and the porosity strength model based on percolation theory.