The invention discloses an electrocardiosignal identification method based on a
diffusion model and Bi-LSTM (Bidirectional
Long Short Term Memory). The method comprises the steps that firstly, an electrocardiosignal is preprocessed, and
wavelet transform is used for conducting
noise reduction on the electrocardiosignal; then learning real electrocardiosignal data characteristics by using a
diffusion model; the method comprises the following steps of: firstly, acquiring
heart beat data, then utilizing a
convolutional neural network and a Bi-LSTM feature extractor to learn
heart beat features, finally, inputting the learned features into a full connection layer, and then utilizing softmax to obtain the probability that the
heart beat data belong to a corresponding category, thereby realizing classification of electrocardiosignals. Finally, in order to detect the heart state of the patient in real time, the fully trained classification model is stored and migrated to a cloud end, then signals, collected by electrocardiosignal collecting equipment in real time, of the patient are input into the model, whether the heart
rhythm of the patient is normal or not is judged, a result is fed back to a user, and therefore the patient can conveniently see a doctor and treat the patient in time.