Statistics for Machine learning-based high-precision and real-time focus detection for laser material processing systems