Preprocessing of alarm data for data mining