The invention belongs to the technical field of
machine state prediction, and particularly relates to a fault diagnosis method and
system based on a coding and decoding attention mechanism enhanced pulse neural network, and the method comprises the steps: collecting a device vibration
signal, and segmenting the device vibration
signal into
time sequence segments; converting each fragment into a two-dimensional time-frequency image by using S transformation to construct a
data set; the image is input into a lightweight
hybrid network model to extract deep features, the model is composed of a pulse
convolution encoder and a pulse efficient additive attention mechanism
encoder which are alternately cascaded, and the pulse
convolution encoder extracts local features through pulse neurons and depth separable
convolution; the global context dependency is modeled by adopting an efficient additive attention mechanism with low
linear complexity; and finally, fault classification is completed based on deep features. Through fusion of pulse calculation and an efficient attention mechanism, the
feature extraction capability and diagnosis precision are improved while the parameter quantity of the model is remarkably reduced, and the method is particularly suitable for being deployed on edge equipment with
limited resources to realize fault diagnosis.