Embodiments of the present application disclose an electrocardiogram multi-
label classification method based on knowledge coding and related devices. Embodiments of the present application include preprocessing the collected multi-lead electrocardiogram
signal to obtain a preprocessed multi-lead electrocardiogram
signal; constructing knowledge coding; based on a
signal and knowledge embedding module, merging the preprocessed multi-lead electrocardiogram signal, lead knowledge coding, and
time sequence knowledge coding into a signal data block; based on an
encoder composed of a multi-head self-attention layer, performing
feature learning on the signal data block to obtain a signal feature block; based on a
knowledge learning module, classifying and identifying the signal feature block according to the category knowledge coding. The present application not only solves the problem of too few labels on data in the existing method, but also can be compatible with different lead formats. In addition, the present application also obtains high
interpretability for each electrocardiogram
label category, has good classification effect, and improves the accuracy of electrocardiogram multi-
label classification.