Protective relays and predictive devices