Method for carrying out fault diagnosis on wireless sensor networks

The invention relates to the field of wireless sensor networks and fault diagnosis, and discloses a method for carrying out fault diagnosis on wireless sensor networks. The method comprises the following steps: S1, carrying out online real-time acquisition on data measured by sensor nodes in a wireless sensor network; S2, detecting the fault of a single sensor node by using the space and time characteristics of the data; S3, detecting the fault of the whole wireless sensor network by using the correlation between two adjacent nodes; S4, carrying out attribute reduction on parameters obtained in the steps S2 and S3; and S5, obtaining a fault diagnosis result of the wireless sensor network according to the attribute reduction result obtained in the step S4. In the invention, the fault of a single sensor node is detected by using the space and time characteristics of data measured by sensor nodes in a wireless sensor network, and the rapid and correct fault detection on all nodes in the network by using the correlation between the nodes is realized.