Due to its high precision, productivity, and surface quality, computer numerical control turning (CNC) is a desirable processing tool in the traditional processing area. CNC machining procedures have a huge number of process parameters, making it challenging to find the best combination of parameters for increased accuracy. In this research work, the Taguchi method and ANOVA were used to study the effects of CNC machining parameters in EN8 steel turning: Surface roughness (Ra) value of component affected due to cutting speed, depth of cut and feed rate. Three-level three-parameter experimental design, using Minitab 17 software using L9 orthogonal array, using coated carbide insert cutting tools, using signal-to-noise ratio (S/N) to study the performance characteristics of EN8 steel turning. In this study, statistical approaches such as the signal-to-noise ratio (S/N ratio) and analysis of variance (ANOVA) were used to explore the effects of cutting speed, depth of cut, and feed rate on surface roughness. Natureinspired algorithms play a vital role in solving real life. In this study, the bat algorithm can be used to predict the optimal surface value (Ra) and process parameters. Verify the results by conducting confirmation experiments. The current research shows that the feed rate is the most important factor affecting the surface roughness (Ra) of EN8 steel turning.