Defining a data-driven maintenance policy: an application to an oil refinery plant