This paper discussed the problem of data preprocessing of the invasion detection system.We investigated a data preprocessing based invation deteetion system in view of the problems of low check rate and high false alarm rate of the present system,and proposed an effective preprocessing approach to the data preprocessing subsystem,which integrated the basic processing for a data source and TCM-KNN algorithm based data preprocessing cluster.The experiment proves that the approach not only greatly decreases the imperfect information and attack data quantity,but also farther increases the detection rate and reduces the false alarm rate.