Abstract:K2 algorithm is the classical learning algorithm of Bayesian network structure. Aiming at the problems that K2 algorithm depends on the maximum number of parent nodes & node order and ant colony optimization algorithm has large search space, this paper proposes a new Bayesian structure learning algorithm MWSTACOK2 algorithm. Firstly, through calculating the mutual information, the algorithm establishes the Most Weight Supported Tree (MWST) and obtain the maximum number of parent nodes. Secondly, ant colony optimization algorithm is adopted to search the Most Weight Supported Tree and obtain the node order. Finally, combining with K2 algorithm, the proposed algorithm can obtain the optimal Bayesian network structure. The simulation experiment results show that the proposed algorithm not only solves the problem that K2 algorithm relies on prior knowledge, but also reduces the search space of ant colony algorithm, simplifies the search mechanism and obtains good Bayesian structure. The proposed algorithm was applied to the operation data of the cement rotary kiln in Jidong Cement Company, established the Bayesian network structure model of the cement rotary kiln and achieved precise and rapid fault diagnosis.