A method and apparatus is provided for fault detection and classification based
on calculating distances between data points. The method comprises receiving a
data sample representative of measurements of one or more variables associated
with a process operation, determining a distance between the data sample and one
or more data points of a history data of the process operation and detecting a
fault associated with the process operation based on the distance between the data
sample and the one or more data points of the history data.