Kinetic indentation is widely used to measure physical and mechanical properties of materials as one of the most universal methods for non-destructive testing. This paper uses the latest advances in artificial intelligence and capabilities of the Python programming language libraries allowing to carry out accurate measurements of cast iron hardness based on the data of the material’s micro-impact loading diagram. It has been shown that use of machine learning allows eliminating gross errors and reducing the error of indirect hardness evaluation in several times – down to 10 units according to Brinell HB. It has also been established that formation of additional features for training models (based on traditionally used characteristics: penetration depths, indenter movement speed and contact forces at certain points in time) has a positive effect on the accuracy of measurements, but amount of measurements should also be optimized. Feasibility of effective use of machine learning to evaluate hardness has been demonstrated by comparing of calculated hardness values with data obtained with standard testing methods. Advantage of the developed testing method is the fact that the developed algorithms can be used for prompt diagnostics of cast iron hardness using existing equipment. It is appropriate to extend the proposed approach for determination of other mechanical properties of cast iron: yield strength, strain hardening index, creep, relaxation, determined by indentation methods.