Abstract
Machine learning models for surface quality and tool condition in machining are usually trained on small datasets in which several observations belong to the same specimen, tool, or experiment. How much row-wise cross-validation then overstates performance on real machining data, and how this affects model selection and uncertainty quantification, has rarely been measured. Using three open datasets (hard turning of 51CrV4 steel with 27 specimens; NASA face milling with 16 tool lives; CNC milling with 18 experiments), we compared row-wise, grouped, leave-one-group-out, and nested grouped cross-validation for five model families, three conformal calibration schemes, group-level paired tests, and alternative definitions of the prediction task. Row-wise cross-validation underestimated the error for a new specimen or tool by up to 58% for roughness and by 25–30% for flank wear, changed the ranking of models, and indicated a tool-condition classifier with a balanced accuracy of up to 0.78 that fell below chance (0.29–0.46) for new experiments. For hardness, whose conditional intraclass correlation was 0.07, the bias was small and not significant. Non-nested model selection added 5–18% optimism, and row-wise calibrated intervals covered only 73% of new roughness observations instead of 90%. The validation protocol must match the intended use of the model, and the number of independent units limits what any protocol can show.