Advanced diagnostics to cut machine downtime