CN113361612A - Magnetocardiogram classification method based on deep learning - Google Patents

Magnetocardiogram classification method based on deep learning Download PDF

Info

Publication number
CN113361612A
CN113361612A CN202110653261.3A CN202110653261A CN113361612A CN 113361612 A CN113361612 A CN 113361612A CN 202110653261 A CN202110653261 A CN 202110653261A CN 113361612 A CN113361612 A CN 113361612A
Authority
CN
China
Prior art keywords
network
magnetocardiogram
training
level
model
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110653261.3A
Other languages
Chinese (zh)
Inventor
胡正珲
叶凯凯
林强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang University of Technology ZJUT
Original Assignee
Zhejiang University of Technology ZJUT
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang University of Technology ZJUT filed Critical Zhejiang University of Technology ZJUT
Priority to CN202110653261.3A priority Critical patent/CN113361612A/en
Publication of CN113361612A publication Critical patent/CN113361612A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques
    • G06F18/241Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Artificial Intelligence (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Evolutionary Computation (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Computational Linguistics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • Biophysics (AREA)
  • Evolutionary Biology (AREA)
  • General Health & Medical Sciences (AREA)
  • Molecular Biology (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Image Analysis (AREA)

Abstract

A magnetocardiogram grading method based on deep learning comprises the following steps: firstly, preprocessing a measured magnetocardiogram signal to obtain a required current density vector diagram, then properly expanding a sample, and training a network through the expanded sample to obtain a better model for grading the magnetocardiogram. The method is simple to implement, and high grading accuracy can be achieved only by training the network by a small amount of current density vector diagrams of the magnetocardiogram.

Description

Magnetocardiogram classification method based on deep learning
Technical Field
The invention relates to a magnetocardiogram grading method.
Background
Since the change of the magnetic permeability of human tissues is small and can be considered as a constant, the propagation of magnetic signals in the body is hardly influenced, so that the detection of the biological phenomenon by the MCG is more reliable, and the accuracy of diagnosis of various heart diseases can be improved.
The classification of the current density vector diagram of the magnetocardiogram is an important index for clinical magnetocardiogram diagnosis. At present, related researches on the current density vector diagram of the magnetocardiogram are few, most of the known methods are classified by using traditional machine learning, although the methods have effects, researchers need to design experiments to extract the characteristics of the current density vector diagram of the magnetocardiogram, and are time-consuming and labor-consuming, so that a new method needs to be developed for simply and efficiently classifying the current density vector diagram of the magnetocardiogram.
Disclosure of Invention
The invention overcomes the defects in the prior art and provides a high-efficiency and high-accuracy grading method for a current density vector diagram of a small sample magnetocardiogram. Has great practical significance for clinical auxiliary diagnosis of heart diseases.
The invention provides a novel and noninvasive heart disease detection technology, wherein the classification of a current density vector diagram of a magnetocardiogram is an important evaluation index, and the invention provides a classification method of the current density vector diagram of the magnetocardiogram based on ResNet18 and transfer learning in view of the characteristics that a convolutional neural network has excellent performance in the aspect of image classification and transfer learning is suitable for small sample classification.
The invention discloses a magnetocardiogram grading method based on deep learning, which comprises the following steps:
step 1, collecting magnetocardiogram data of a subject, generating a current density vector diagram after processing, then sending all samples to experts for labeling, and finally obtaining 5 types (0 level, 1 level, 2 level, 3 level and 4 level) of labeled data.
And 2, expanding the samples marked in the step 1 (changing contrast, changing chroma, changing brightness, adding random noise and sharpening).
And 3, mixing the expanded data set with the original data set, and dividing the data set into a training set, a verification set and a test set according to the ratio of 6:2: 2.
Step 4, loading a ResNet18 network pre-trained on the ImageNet data set, removing the softmax output layer with the final node of 1000, and adding an output layer with 5 nodes according to the magnetocardiogram classification task; inputting the divided training set and verification set into a network for training to obtain a better network model and storing network weight for subsequent identification and classification; because the bottom layer features of the pictures extracted by the convolutional neural network are all the same and different, the first layers of ResNet are frozen during training, and the images are not subjected to back propagation of errors.
And 5, randomly extracting pictures in the test set by using the trained network model, inputting the pictures into the network model, outputting the prediction labels and the corresponding probabilities corresponding to the pictures by the network model, and outputting the evaluation indexes of the evaluation model.
The invention utilizes the convolutional neural network to automatically extract the characteristic of the image, does not need a large amount of training images for transfer learning, combines the convolutional neural network and the training images, only needs to put a small amount of samples with labels into the network for training, then adjusts related parameters, and obtains good grading accuracy when the network achieves better effect.
The invention has the advantages that: the implementation is simple, and the high grading accuracy rate can be achieved only by training the network by a small amount of current density vector diagrams of the magnetocardiogram.
Drawings
FIG. 1 is an overall flow chart of the method of the present invention.
Fig. 2 is a network structure diagram of the method of the present invention.
FIG. 3 is a loss curve for the network training of the present invention.
FIG. 4 is a graph of network training accuracy and validation accuracy in accordance with the present invention.
Detailed Description
The technical scheme of the invention is further explained by combining the attached drawings.
The invention discloses a magnetocardiogram grading method based on deep learning, which comprises the following steps as shown in figure 1:
step 1, collecting magnetocardiogram data of a subject on a pumping type Rb atom magnetometer, carrying out a series of operations on the magnetocardiogram data to generate a current density vector diagram, then sending all samples to experts for labeling, and finally obtaining 5 types (0 level, 1 level, 2 level, 3 level and 4 level) of labeled data.
And 2, expanding each type of the samples with the labels in the step 1 by 5 times by using a plurality of data enhancement methods to improve the generalization capability of the model, namely changing the chroma, the contrast, the brightness, sharpening and adding random noise of the picture.
And 3, mixing the expanded data set with the original data set, and performing data conversion according to the ratio of 6:2:2, dividing the training set, the verification set and the test set.
And 4, loading a ResNet18 network pre-trained on the ImageNet data set, removing the softmax output layer with the final node of 1000, and adding an output layer with 5 nodes according to the magnetocardiogram classification task, wherein the network structure is shown in FIG. 2. And then inputting the divided samples into a network for training, wherein the bottom layer characteristics of the picture extracted by the convolutional neural network are different, so that the first layers of ResNet are frozen during training, and the ResNet is not allowed to participate in the back propagation of errors.
The input image size was set to 224 x 224, the learning rate of the network was set to 0.0001, the batch _ size was 8, the cross entropy loss function (CrossEntropyLoss) was defined as the loss function of the network, and 200 epochs were trained on the training set and the validation set using the Adam optimizer until the model converged, see fig. 3 and 4.
And 5, randomly extracting pictures in the test set by using the trained network model, inputting the pictures into the network model, outputting the pictures and the probabilities corresponding to the prediction labels by using the network model, and finally outputting evaluation indexes to evaluate the quality of the network model.
The evaluation indexes in step 5 include accuracy (accuracycacy) of the model, precision (precision) of each type, specificity (specificity), recall (call) and confusion matrix.
The embodiments described in this specification are merely illustrative of implementations of the inventive concept and the scope of the present invention should not be considered limited to the specific forms set forth in the embodiments but rather by the equivalents thereof as would occur to those skilled in the art upon consideration of the present inventive concept.

Claims (3)

1. A magnetocardiogram grading method based on deep learning is characterized by comprising the following steps:
step 1, collecting magnetocardiogram data of a subject, generating a current density vector diagram after processing, then sending all samples to experts for labeling, and finally obtaining 5 types (0 level, 1 level, 2 level, 3 level and 4 level) of labeled data;
step 2, expanding the samples marked in the step 1, wherein the expansion operation comprises adjusting the brightness, the chroma and the contrast of the picture, sharpening the picture and adding random noise;
step 3, mixing the expanded data set with the original data, and dividing a training set, a verification set and a test set according to the ratio of 6:2: 2;
step 4, loading a pre-trained ResNet18 network on the ImageNet data set, removing the softmax output layer with the final node of 1000, and adding an output layer with 5 nodes according to the magnetocardiogram classification task; inputting the divided training set and verification set into a network for training to obtain a better network model and storing network weight for subsequent identification and classification; because the bottom layer characteristics of the picture extracted by the convolutional neural network are different, the first layers of ResNet are frozen during training, and the picture is not subjected to back propagation of errors;
and 5, randomly extracting pictures in the test set by using the trained network model, inputting the pictures into the network model, outputting the prediction labels and the corresponding probabilities corresponding to the pictures by using the network model, and outputting the evaluation indexes of the evaluation model.
2. The magnetocardiogram classification method based on deep learning according to claim 1, wherein: the step 4 specifically comprises the following steps: the input image size is set to 224 x 224, the learning rate of the network is set to 0.0001, the batch _ size is 8, a Cross Entropy Loss function (Cross Entropy Loss) is defined as the Loss function of the network, and 200 epochs are trained on a training set and a verification set by using an Adam optimizer until the model converges.
3. The method of claim 1, wherein the evaluation indexes in step 5 include model accuracy (accuracy), precision (precision) of each class, specificity (specificity), recall (recall), and confusion matrix.
CN202110653261.3A 2021-06-11 2021-06-11 Magnetocardiogram classification method based on deep learning Pending CN113361612A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110653261.3A CN113361612A (en) 2021-06-11 2021-06-11 Magnetocardiogram classification method based on deep learning

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110653261.3A CN113361612A (en) 2021-06-11 2021-06-11 Magnetocardiogram classification method based on deep learning

Publications (1)

Publication Number Publication Date
CN113361612A true CN113361612A (en) 2021-09-07

Family

ID=77533906

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110653261.3A Pending CN113361612A (en) 2021-06-11 2021-06-11 Magnetocardiogram classification method based on deep learning

Country Status (1)

Country Link
CN (1) CN113361612A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117557840A (en) * 2023-11-10 2024-02-13 中国矿业大学 Fundus lesion grading method based on small sample learning

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112508063A (en) * 2020-11-23 2021-03-16 刘勇志 Medical image classification method based on incremental learning

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112508063A (en) * 2020-11-23 2021-03-16 刘勇志 Medical image classification method based on incremental learning

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117557840A (en) * 2023-11-10 2024-02-13 中国矿业大学 Fundus lesion grading method based on small sample learning
CN117557840B (en) * 2023-11-10 2024-05-24 中国矿业大学 Fundus lesion grading method based on small sample learning

Similar Documents

Publication Publication Date Title
CN111191660B (en) Colon cancer pathology image classification method based on multi-channel collaborative capsule network
CN109584254B (en) Heart left ventricle segmentation method based on deep full convolution neural network
CN109389037B (en) Emotion classification method based on deep forest and transfer learning
CN109816661A (en) A kind of tooth CT image partition method based on deep learning
CN112488976B (en) Multi-modal medical image fusion method based on DARTS network
CN110570432A (en) CT image liver tumor segmentation method based on deep learning
CN115050477B (en) Bethes-optimized RF and LightGBM disease prediction method
CN110543916B (en) Method and system for classifying missing multi-view data
CN104850860A (en) Cell image recognition method and cell image recognition device
Li et al. A deep learning method for material performance recognition in laser additive manufacturing
Deng et al. A strategy of MR brain tissue images' suggestive annotation based on modified U-net
CN114581701A (en) Method for generating dynamic enhanced image features by weighting image features through T2
CN113361612A (en) Magnetocardiogram classification method based on deep learning
CN116310466A (en) Small sample image classification method based on local irrelevant area screening graph neural network
CN116129193B (en) Method, system and equipment for predicting organoid growth
CN112863650A (en) Cardiomyopathy identification system based on convolution and long-short term memory neural network
CN109300545B (en) Risk early warning method for thalassemia based on RF
CN108304546B (en) Medical image retrieval method based on content similarity and Softmax classifier
CN114224354B (en) Arrhythmia classification method, arrhythmia classification device, and readable storage medium
Wu et al. A novel framework called HDU for segmentation of brain tumor
CN115131628A (en) Mammary gland image classification method and equipment based on typing auxiliary information
Sun et al. Brain tumor segmentation based on AMRUNet++ neural network
CN114519722A (en) Carotid artery extraction method based on convolutional neural network
CN114155251A (en) Whole brain three-dimensional anatomical structure segmentation method of context-aware convolutional neural network
CN112417882A (en) Word embedding learning method and word embedding learning migration method in traditional Chinese medicine clinical field based on migration learning

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination