Context-driven mean residual life estimation of mining machinery