Artificial intelligence auxiliary herpes zoster identification method based on cross-modal contrast training
Through cross-modal contrast training technology, EMG signals and diagnostic report text are combined to generate a diagnostic model, which solves the problem of EMG being difficult to efficiently assist in the diagnosis of PHN in the existing technology, and achieves simple and effective assisted diagnosis of PHN and the credibility of clinical assessment. promote.
Patent Information
- Application Number
- CN202410722446.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-05
- Publication Date
- 2024-09-10
AI Technical Summary
The existing technology lacks a simple and efficient method to assist in the diagnosis of postherpetic neuralgia (PHN) through electromyography (EMG).
An artificial intelligence-assisted identification method of herpes zoster based on cross-modal contrast training is adopted. By preprocessing the EMG signal and diagnosis report text, calculating the feature vector and conducting cross-modal comparison training, a diagnostic model is generated to assist in the diagnosis of PHN and PHN. Dichotomous classification of common neuralgia.
It realizes multi-channel comparative learning through EMG signals and diagnostic report text, simplifies the diagnostic process of PHN, provides the credibility of auxiliary clinical assessment, and improves the efficiency and accuracy of diagnosis.
Smart Images

Figure CN118629627A
Abstract
Description
Technical Field
[0001] The present invention relates to an auxiliary diagnosis method, and more specifically to an artificial intelligence-assisted identification method for herpes zoster based on cross-modal contrast training. Background Art
[0002] Herpes zoster is an acute infectious skin disease caused by the varicella-zoster virus. It is called herpes zoster because the rash is distributed in a band-like pattern. Herpes zoster often occurs in the areas innervated by the trigeminal nerve, cervical nerve, and lumbosacral nerve. The main clinical symptoms are fatigue, low-grade fever, and neuralgia. Pain that lasts for at least 3 months after the onset of the herpes zoster rash is defined as postherpetic neuralgia (PHN). Postherpetic neuralgia is difficult to cure and is a chronic pain syndrome that can cause anxiety, depression, and even suicidal tendencies in patients, placing a heavy burden on families and society.
[0003] Currently, electromyography (EMG) is used in the prior art to achieve non-invasive diagnosis of some diseases. Since electromyography diagnosis has the characteristics of simple operation and repeated comparison, it can also be used to diagnose PHN. However, there is currently no method to simply and efficiently assist in the diagnosis of PHN through EMG. Summary of the invention
[0004] In view of the shortcomings of the prior art, the object of the present invention is to provide a method that can simply and efficiently assist in the diagnosis of PHN through EMG.
[0005] To achieve the above object, the present invention provides the following technical solution: an artificial intelligence-assisted identification method for herpes zoster based on cross-modal contrast training, characterized in that it comprises the following steps:
[0006] Step 1: pre-processing the collected EMG signal of a patient;
[0007] Step 2, input the EMG signal preprocessed in step 1 into the EMG encoder, and output the EMG feature vector E;
[0008] Step 3, expanding the diagnosis report text into a complete sentence to complete the preprocessing of the report text;
[0009] Step 4, input the report text sentence preprocessed in step 3 into a text editor, and output the report text feature vector T, wherein the dimension of the report text feature vector T and the EMG feature vector E are the same;
[0010] Step 5: The EMG signal and the diagnosis report text of the same patient are regarded as positive sample pairs, and the diagnosis report texts of other patients are regarded as negative sample pairs. Cross-modal comparison training is performed between the positive sample pairs and the negative sample pairs, and a diagnosis model is obtained after the training is completed.
[0011] Step 6: Use the diagnostic model trained in step 5 to evaluate the model performance on the binary classification task of PHN and common neuralgia. During the test, the patient's EMG signal is input into the model, and the model is used to complete the auxiliary diagnosis;
[0012] As a further improvement of the present invention, the specific steps for preprocessing the EMG signal of a patient in step one are as follows: denoising the original electromyographic signal of the detection area collected by N surface electromyographic signal sensors, and then performing window segmentation, the segmentation window size is W, the window sliding distance is S, and the data size of the segmented surface electromyographic signal is N×W.
[0013] As a further improvement of the present invention, the specific steps of report text preprocessing in step three are as follows: construct a text input template, i.e., “The report of this EMG is that {text}.”, integrate the diagnosis report conclusion, i.e., “decrease in MCV and SCV, decrease in CMAP and SNAP, first consider PHN,” into the template to obtain “The report of this EMG is that decrease in MCV and SCV, decrease in CMAP and SNAP, first consider PHN.”.
[0014] As a further improvement of the present invention, the specific steps of the cross-modal contrast training in step 5 are as follows: Step 51, the similarity between the report text feature vector T and the EMG feature vector E is calculated by the following formula:
[0015]
[0016] Step 52: Calculate the loss function of the above formula for comparison training using the following formula:
[0017]
[0018] Among them, s i,i Represents the similarity of positive sample pairs, s i,j(i≠j) represents the similarity of negative sample pairs, τ is a constant, and most studies use a small value, such as 0.05. τ is used to adjust the model's attention to difficult samples. The smaller its value, the more the model focuses on separating the negative samples that are most similar to the current sample. The accumulation of negative sample pairs in the denominator is equivalent to i being calculated with multiple non-i remaining negative samples. During the training process, the text encoder can use the existing clinical text pre-training model, so it can freeze and update the EMG encoder parameters to minimize the loss function.
[0019] As a further improvement of the present invention, the specific steps of evaluating the model performance in step 6 are:
[0020] Step 6.1: Preprocess the EMG signal in the same way as steps 1 and 2 to obtain the EMG feature vector E, then construct a text input template for testing, namely, "The EMG of {label}.", and integrate the proper noun corresponding to the disease label, namely, "postherpetic neuralgia" or "common neuralgia", into the template to obtain "The EMG of postherpetic neuralgia." or "The EMG of common neuralgia.".
[0021] Step 62, input the constructed text into the text encoder to obtain the text feature vector T;
[0022] Step 63: Calculate the similarity between the EMG feature vector E and the text feature vector T to obtain the probability to classify PHN and common neuralgia, and complete the performance evaluation of the model.
[0023] The beneficial effects of the present invention are that by setting steps 1 to 6, auxiliary diagnosis of PHN can be simply and effectively achieved, and has the following advantages:
[0024] (1) Applying a large-scale pre-trained model of medical diagnosis records to multi-channel electromyographic signal-diagnosis report text comparative learning makes full use of the prior clinical knowledge of the pre-trained model;
[0025] (2) By comparing the similarity between the EMG signal feature vector and the text feature vector corresponding to the predefined diagnostic category, it is used for the clinical classification of PHN and common neuralgia. At the same time, the similarity coefficient can assist clinicians in evaluating the credibility of the classification results. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 A schematic diagram of the training process of the herpes zoster artificial intelligence-assisted identification method based on cross-modal contrast training of the present invention;
[0027] Figure 2The figure is a schematic diagram of the test process of the herpes zoster artificial intelligence-assisted identification method based on cross-modal contrast training of the present invention. DETAILED DESCRIPTION
[0028] The present invention will be further described below in detail with reference to the embodiments shown in the accompanying drawings.
[0029] Reference Figures 1 to 2 As shown, the present embodiment provides an artificial intelligence-assisted identification method for herpes zoster based on cross-modal contrast training, which specifically includes a training step and a testing step.
[0030] The main steps of training are briefly described as follows:
[0031] EMG signal preprocessing: De-noise the original EMG signals of the detection area (such as a body part where neuralgia occurs) collected by N surface EMG signal sensors, and then perform window segmentation. The segmentation window size is W, the window sliding distance is S, and the data size of the segmented surface EMG signals is N×W;
[0032] EMG signal encoding: The preprocessed surface electromyography signal data (N×W) in (1) is input into an EMG encoder (such as ResNet18, ViT, etc.), and the EMG feature vector E is output;
[0033] Report text preprocessing: In order to make the large language model fully understand the report text, the report text is expanded into a complete sentence. Specifically, a text input template is constructed, namely "The report of this EMG is that {text}.", and the diagnosis report conclusion, namely "decrease in MCV and SCV, decrease in CMAP and SNAP, first consider PHN", is integrated into the template to obtain "The report of this EMG is that decrease in MCV and SCV, decrease in CMAP and SNAP, first consider PHN.";
[0034] Report text encoding: The preprocessed report text sentence (3) is input into a text encoder (such as a pre-trained model of medical diagnosis records such as ClinicalBert), and the report text feature vector T is output, where T and E have the same dimension;
[0035] Cross-modal contrast training: The EMG signal and the diagnostic report text belonging to the same patient are regarded as positive sample pairs, while the diagnostic report texts of other patients are regarded as negative sample pairs. The extended modality contrast training maximizes the contrast loss of different pairs (Ti, Ej) and minimizes the contrast loss of the same pair (Ti, Ei) to improve the similarity of the same sample pairs. The similarity between E and T can be defined by cosine similarity, and the calculation formula is shown in the following formula (1).
[0036]
[0037] The calculation formula of the contrast loss function is shown in the following formula (2):
[0038]
[0039] Among them, s i,i Represents the similarity of positive sample pairs, s i,j (i≠j) represents the similarity of negative sample pairs. τ is a constant, and most studies use a small value, such as 0.05. τ is used to adjust the model's attention to difficult samples. The smaller its value, the more the model focuses on separating the negative samples that are most similar to the current sample. The accumulation of negative sample pairs in the denominator is equivalent to calculating i with multiple non-i remaining negative samples. During training, the text encoder can be frozen, and the EMG encoder can be trained to minimize the loss function.
[0040] The main steps of the test are briefly described as follows:
[0041] After the model is trained, the model performance is evaluated on the binary classification task of PHN and common neuralgia. The preprocessing of the EMG signal is consistent with the training and will not be repeated here. We construct a text input template for testing, namely "The EMG of{label}.", and integrate the proper nouns corresponding to the disease label, namely "postherpetic neuralgia" or "commonneuralgia", into the template to obtain "The EMG ofpostherpetic neuralgia." or "The EMGofcommonneuralgia.". Then input it into the text encoder to obtain the text feature vector T. Finally, calculate the similarity between the EMG feature vectors E and T to obtain the probability to classify PHN and common neuralgia.
[0042] The above is only a preferred embodiment of the present invention, and the protection scope of the present invention is not limited to the above embodiments. All technical solutions under the concept of the present invention belong to the protection scope of the present invention. It should be pointed out that for ordinary technicians in this technical field, some improvements and modifications without departing from the principle of the present invention should also be regarded as the protection scope of the present invention.
Claims
1. An artificial intelligence-assisted identification method for herpes zoster based on cross-modal contrast training, characterized in that: The steps include: Step 1: pre-processing the collected EMG signal of a patient; Step 2, input the EMG signal preprocessed in step 1 into the EMG encoder, and output the EMG feature vector E; Step 3, expanding the report text into a complete sentence to complete the preprocessing of the report text; Step 4, input the report text sentence preprocessed in step 3 into a text editor, and output the report text feature vector T, wherein the dimension of the report text feature vector T and the EMG feature vector E are the same; Step 5: The EMG signal and the diagnosis report text of the same patient are regarded as positive sample pairs, and the diagnosis report texts of other patients are regarded as negative sample pairs. Cross-modal comparison training is performed between the positive sample pairs and the negative sample pairs, and a diagnosis model is obtained after the training is completed. Step six, evaluate the performance of the diagnostic model trained in step five on the binary classification task of PHN and common neuralgia; during the test, input the patient's EMG signal into the model and complete auxiliary diagnosis through the model.
2. The method for artificial intelligence-assisted identification of herpes zoster based on cross-modal contrast training according to claim 1, characterized in that: The specific steps of preprocessing the EMG signal of a patient in the step 1 are as follows: denoising the original electromyographic signal of the detection area collected by N surface electromyographic signal sensors, and then performing window segmentation, the segmentation window size is W, the window sliding distance is S, and the data size of the segmented surface electromyographic signal is N×W.
3. The method for artificial intelligence-assisted identification of herpes zoster based on cross-modal contrast training according to claim 2, characterized in that: The specific steps of report text preprocessing in step three are as follows: construct a text input template, i.e., "The report of this EMG is that {text}.", integrate the diagnosis report conclusion, i.e., "decrease in MCV and SCV, decrease in CMAP and SNAP, first consider PHN", into the template to obtain "The report of this EMG is that decrease in MCV and SCV, decrease in CMAP and SNAP, first consider PHN.".
4. The method for artificial intelligence-assisted identification of herpes zoster based on cross-modal contrast training according to claim 3 is characterized in that: The specific steps of the cross-modal contrast training in step 5 are as follows: Step 5.1: Calculate the similarity between the report text feature vector T and the EMG feature vector E by the following formula: Step 52: Calculate the loss function of the above formula for comparison training using the following formula: Among them, s i,i Represents the similarity of positive sample pairs, s i,j (i≠j) represents the similarity of negative sample pairs, τ is a constant. Most studies use a small value, such as 0.
05. τ is used to adjust the model's attention to difficult samples. The smaller its value, the more the model focuses on separating the negative samples that are most similar to the current sample. The accumulation of negative sample pairs in the denominator is equivalent to calculating i with multiple non-i remaining negative samples.
5. The method for artificial intelligence-assisted identification of herpes zoster based on cross-modal contrast training according to claim 4 is characterized in that: The specific steps for evaluating the model performance in step 6 are: Step 6.1: Preprocess the EMG signal in the same way as steps 1 and 2 to obtain the EMG feature vector E, and then construct a text input template for testing, i.e., "The EMG of {label}.", and integrate the proper noun corresponding to the disease label, i.e., "postherpetic neuralgia" or "common neuralgia", into the template to obtain "The EMG of postherpetic neuralgia." or "The EMG of common neuralgia.". Step 62, input the constructed text input module into the text encoder to obtain the text feature vector T; Step 6.3: Calculate the similarity between the EMG feature vector E and the text feature vector T to obtain the probability to classify PHN and common neuralgia, and complete the performance evaluation of the model.
