Industrial machinery diagnostics