Process diagnosis based on qualitative trend similarities using a sequence matching algorithm