Research Article

Metric Learning Method Aided Data-Driven Design of Fault Detection Systems

Algorithm 1

Learning Mahalanobis matrix by iterative algorithm.
Input: : a given data sets of points, : set of pairs of data in same
categories, : set of pairs of data in different categories, : a given
matrix, : a given upper bound, : a given lower bound, : the slack
variable
Output: : the target Mahalanobis matrix
(1) = ,
(2) when , when
(3) Repeat until convergence:
 (3.1) Pick a pairs of data
 (3.2) when , when
 (3.3)
 (3.4)
 (3.5)
 (3.6)
 (3.7)
 (3.8)
Return: