Fault detection and diagnosis to enhance safety in digitalized process system