Diagnosis and treatment method and device based on interactive feedback among multiple models

Through the interactive feedback method between multiple models, the combination of large visual models and large language models is used to solve the problem of high manual dependence of traditional medical image analysis, achieve efficient and accurate disease diagnosis, and improve the diagnostic efficiency and efficiency of intelligent medical treatment. accuracy.

CN118748076APending Publication Date: 2024-10-08SECOND AFFILIATED HOSPITAL OF COLLEGE OF MEDICINEOF XIAN JIAOTONG UNIV
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410730971.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-06
Publication Date
2024-10-08

AI Technical Summary

Technical Problem

Traditional disease diagnosis methods rely on doctors’ subjective judgment, are inefficient and easy to miss, making it difficult to meet the needs of the rapid development of intelligent medical care. Medical image analysis methods are highly dependent on manual labor.

Method used

Using a method based on interactive feedback between multiple models, through the combination of a large visual model and a large language model, inspection images and text reports are input, natural language information and feature language information are extracted for translation alignment, and the interaction is controlled according to the uncertainty of the model. Diagnosis, reducing manual intervention and improving diagnostic accuracy and efficiency.

Benefits of technology

Effectively reduce manual intervention, improve the diagnostic accuracy and efficiency of medical image analysis, achieve efficient disease diagnosis, and improve patient treatment experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118748076A_ABST
    Figure CN118748076A_ABST
Patent Text Reader

Abstract

The invention discloses a diagnosis and treatment method and device based on interactive feedback among multiple models, and the method comprises the steps: inputting an examination image into a visual large model to obtain a visual feature vector, and converting the visual feature vector into a natural prompt language; inputting the character inspection report into a large language model to obtain a language feature vector; extracting the language information of the natural prompt language and the language feature vector to obtain natural language information and feature language information; translating and aligning the natural language information and the feature language information; obtaining the uncertainty of the visual large model and the large language model, and determining the interaction degree of the visual large model and the large language model based on the uncertainty; and performing interactive diagnosis on the visual large model and the large language model according to the interaction degree to obtain a diagnosis result. The problem that a medical image analysis method in the prior art is highly dependent on manpower is solved, manual intervention can be greatly reduced, efficient disease diagnosis is achieved, and the doctor-seeing experience of a patient is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of intelligent medical diagnosis technology, and in particular to a diagnosis and treatment method and device based on interactive feedback between multiple models. Background Art

[0002] Traditional disease diagnosis methods rely on doctors’ subjective judgment, require high clinical experience, and have no follow-up review methods. In addition, during large-scale examinations, doctors are prone to fatigue, resulting in reduced efficiency and increased missed examinations, making it difficult to meet the requirements of the rapid development of modern medical models towards intelligent medicine.

[0003] With the development of deep learning technology, the combination of imaging, medical image processing technology and computer analysis and calculation can assist in the discovery of lesions and improve the accuracy of diagnosis. Users can analyze medical images and make decisions by interacting with auxiliary diagnosis software on the computer interface. For example, users can run the given functions in the software by clicking on the page or entering instructions to complete the analysis of medical images. This medical image analysis method is highly dependent on manual labor. Summary of the invention

[0004] The embodiments of the present application solve the problem that the medical image analysis methods in the prior art are highly dependent on manual labor by providing a diagnosis and treatment method and device based on interactive feedback between multiple models.

[0005] In a first aspect, an embodiment of the present application provides a diagnosis and treatment method based on interactive feedback among multiple models, including: inputting an inspection image into a large visual model to obtain a visual feature vector, and converting the visual feature vector into a natural prompt language; inputting a text inspection report into a large language model to obtain a language feature vector; respectively extracting language information of the natural prompt language and the language feature vector to obtain natural language information and feature language information; translating and aligning the natural language information and the feature language information; obtaining the uncertainty of the large visual model and the large language model, and determining the degree of interaction between the large visual model and the large language model based on the uncertainty; the large visual model and the large language model perform interactive diagnosis according to the degree of interaction to obtain a diagnosis result.

[0006] In combination with the first aspect, in a possible implementation manner, the language information includes language concepts, language attributes, and language relations.

[0007] In combination with the first aspect, in a possible implementation method, the translation alignment of the natural language information and the feature language information includes: representing the natural language information and the feature language information as parameter distributions; determining the natural language information and the feature language information to be aligned and an alignment standard based on the parameter distribution; performing a preliminary alignment on the natural language information to be aligned and the feature language information based on the alignment standard; obtaining a mapping relationship between the natural language information and the feature language information; and performing a secondary alignment on the natural language information and the feature language information based on each of the mapping relationships.

[0008] In combination with the first aspect, in a possible implementation method, the secondary alignment of the natural language information and the feature language information according to each of the mapping relationships includes: determining an equivalent probability value of each of the mapping relationships; and secondary aligning the natural language information and the feature language information according to the equivalent probability value.

[0009] In combination with the first aspect, in a possible implementation manner, the equivalent probability value calculation formula is as follows:

[0010] Pr i (X≡X′)=1-∏ R(X,Y),R(X′,Y′) (1-τ -1 (R)×Pr(Y≡Y′)); where, Pr i surface

[0011] represents the i-th group of equivalent probability values, X represents the language concept of the characteristic language information, X′ represents the language concept of the natural language information, R represents the language relationship, that is, the mapping relationship between X and Y, Y represents the language attribute of the characteristic language information, Y′ represents the language attribute of the natural language information, τ -1 Represents the inverse mapping.

[0012] In combination with the first aspect, in a possible implementation, determining the degree of interaction between the large visual model and the large language model based on the uncertainty includes: constructing a gated switch array based on the uncertainty; when the uncertainty of the large visual model and / or the large language model is higher than a preset threshold, opening all the gated switch arrays to make the degree of interaction full interaction; when the uncertainty of the large visual model and / or the large language model is within the preset threshold range, partially opening the gated switch arrays to make the degree of interaction partial interaction; when the uncertainty of the large visual model and / or the large language model is lower than the preset threshold, closing all the gated switch arrays to make the degree of interaction no interaction.

[0013] In combination with the first aspect, in a possible implementation method, after the large visual model and the large language model perform interactive diagnosis according to the degree of interaction to obtain a diagnosis result, it also includes: using the large language model to interpret the diagnosis result and provide medical advice.

[0014] In a second aspect, an embodiment of the present application provides a diagnosis and treatment device based on interactive feedback between multiple models, including: a visual feature module, used to input the inspection image into a large visual model to obtain a visual feature vector, and convert the visual feature vector into a natural prompt language; a language feature module, used to input a text inspection report into a large language model to obtain a language feature vector; an extraction module, used to respectively extract the language information of the natural prompt language and the language feature vector to obtain natural language information and feature language information; a translation alignment module, used to translate and align the natural language information and the feature language information; an acquisition module, used to obtain the uncertainty of the large visual model and the large language model, and determine the degree of interaction between the large visual model and the large language model based on the uncertainty; a diagnosis module, used for the large visual model and the large language model to perform interactive diagnosis according to the degree of interaction to obtain a diagnosis result.

[0015] In a third aspect, an embodiment of the present application provides a device, comprising: a processor; a memory for storing processor-executable instructions; when the processor executes the executable instructions, it implements the method described in the first aspect or any possible implementation method of the first aspect.

[0016] In a fourth aspect, an embodiment of the present application provides a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium includes a medium for storing a computer program or instructions, which, when executed, enables the method described in the first aspect or any possible implementation method of the first aspect to be implemented.

[0017] One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:

[0018] The embodiment of the present application combines a large visual model with a large language model to reduce manual intervention and improve the accuracy of diagnosis. By controlling the interaction between the large visual model and the large language model, the diagnostic efficiency can be improved, effectively solving the problem of the high degree of manual dependence of medical image analysis methods in the prior art. It can significantly reduce manual intervention, efficiently realize disease diagnosis, and improve the patient's medical experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0020] Figure 1 A flowchart of a diagnosis and treatment method based on interactive feedback between multiple models provided in an embodiment of the present application;

[0021] Figure 2 A schematic diagram of the structure of a diagnostic and treatment device based on interactive feedback between multiple models provided in an embodiment of the present application. DETAILED DESCRIPTION

[0022] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0023] The following describes some of the techniques involved in the embodiments of the present application to facilitate understanding, and they should be considered as merely exemplary. Therefore, it should be appreciated by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present application. Similarly, for the sake of clarity and conciseness, some descriptions of well-known functions and structures are omitted in the following description.

[0024] Figure 1 is a flow chart of a diagnosis and treatment method based on interactive feedback between multiple models provided in an embodiment of the present application, including steps 101 to 106. Among them, Figure 1 This is only an execution order shown in the embodiment of the present application, and does not represent the only execution order of the diagnosis and treatment method based on interactive feedback between multiple models. If the final result can be achieved, Figure 1 The steps shown may be performed in parallel or reversed.

[0025] Step 101: Input the inspection image into the visual big model to obtain a visual feature vector, and convert the visual feature vector into a natural prompt language. In an embodiment of the present application, the inspection image represents information displayed in the form of an image during the inspection and treatment process of the hospital, such as an X-ray. Input the inspection image into the visual big model, segment and classify it, and extract the visual feature vector. Exemplarily, the output of the disease classifier in the visual big model is set to a five-value vector. The disease classifier is as follows.

[0026] In the classification task, for a sample, the model will output a prediction vector, and then use the Softmax activation function to get a set of probabilities p i . Assume that the prediction vector follows a Gaussian distribution:

[0027] In the formula, represents the prediction vector, i represents the sample, and Represents the output when the network parameter is W, which is equivalent to the vector A variance of The noise, p i Represents the probability of the sample and the prediction vector.

[0028] If sample i belongs to category c, y i,c′ ∈{0,1}, then the cross entropy loss of the sample is:

[0029] In the formula, y i,c represents the category label of sample i, C represents the total number of categories, c represents a category, and p i,c represents the probability that the sample and is of category c, Represented as a sample of category c.

[0030] Since the uncertainty is obtained by calculating the variance of T prediction results of the same sample, the loss should also be averaged T times. Finally, by taking the logarithm, the loss function in the classification model training process is obtained:

[0031] In the formula, ∈ t ~N(0,1) means∈ t belongs to the standard normal distribution, Represents a sample, and Represents the output when the network parameter is W, Represents the loss function, T represents the number of predictions, and c represents the sample category.

[0032] In the process of training the visual big model, this application takes the higher the disease score, the greater the probability of the disease as the basic principle. Then each disease is output in the form of (score, corresponding disease). For example, if a chest X-ray is input into the visual big model, the output visual feature vector is: (0.238, cardiac hypertrophy), (0.086, edema), (0.923, consolidation), (0.379, atelectasis), (0.167, pleural effusion).

[0033] The above-mentioned visual feature vector is converted into a natural prompt language. In an embodiment of the present application, in the process of training the visual large model, the score is converted into a form consistent with the language commonly used in clinical reports. The score is converted into a description of the severity of the disease. For example, a score in [0.0, 0.2) is converted to "no signs", a score in [0.2, 0.5) is converted to "very unlikely", a score in [0.5, 0.9) is converted to "possible", and a score of 0.9 and above is converted to "definitely" or "confirmed". The above-mentioned visual feature vector is then converted into the following natural prompt language: there is no sign of edema and pleural effusion, there is a small possibility of cardiomegaly and atelectasis, and there is definitely consolidation in the lungs.

[0034] In addition, here, only diseases with scores greater than 0.5 can be diagnosed by way of example, so that the generated natural prompt language is more intuitive and easy to read. For example, according to the scores of the above-mentioned various diseases, "confirmed pulmonary consolidation" is output.

[0035] Step 102: Input the text examination report into the large language model to obtain a language feature vector. In the embodiment of the present application, the text examination report refers to information displayed in text form during the examination or treatment process, such as an electronic medical record. Exemplarily, an electronic medical record with the recorded information "coughing and sputum for four months, intermittent fever for one month. Consolidation shadow in the left lower lobe of the lung, secondary bronchiectasis, and a preliminary diagnosis of lobar pneumonia." is input into the large language model, and the obtained language body complete vector is: left lower lobe of the lung, consolidation shadow, lobar pneumonia, etc.

[0036] Step 103: extract the language information of the natural prompt language and the language feature vector respectively to obtain natural language information and feature language information. In the embodiment of the present application, the language information includes language concepts, language attributes and language relations. The language information of the natural prompt language is extracted to obtain natural language information, and the language information of the language feature vector is extracted to obtain feature language information. Exemplarily, methods such as bag-of-words model and syntactic analysis can be used here to extract the language information of the natural prompt language and the language feature vector.

[0037] Step 104: perform translation alignment on the natural language information and the characteristic language information pair. In the embodiment of the present application, the translation of the natural language information and the characteristic language information is represented as a parameter distribution. Exemplarily, the parameter distribution is a Gaussian distribution.

[0038] In the embodiment of the present application, the alignment process of natural language information and feature language information is regarded as an alignment on probability distribution, and these two types of information can be modeled by Gaussian distribution. i and the corresponding feature language information F i , their Gaussian distribution representations can be constructed separately, as follows:

[0039] Gaussian distribution of natural language information: P N (N i ∣μ N ,Σ N ),

[0040] Gaussian distribution of characteristic language information: P F (F i ∣μ F ,Σ F ),

[0041] Among them, μ N and μ F Represent the mean vectors of natural language information and feature language information, Σ N and Σ F They represent the covariance matrix of the mean vector of natural language information and feature language information respectively.

[0042] First, calculate the statistical similarity between the Gaussian distribution of natural language information and the Gaussian distribution of feature language information to find the alignment point, for example:

[0043] Calculate the covariance to identify the part with large possible deviation, let Δ C =Σ N -Σ F , and find the dimensions or feature items with larger deviations.

[0044] Use word embedding methods (such as Word2Vec, GloVe) to calculate the vector representation of natural language information and feature language information v Ni and v Fi Similarity:

[0045]

[0046] Among them, N i represents a natural language information fragment, F i Indicates that N i The corresponding feature language information, Similarity(N i ,F i ) represents the similarity between a natural language information segment and its corresponding feature language information, A vector representation of natural language information, A vector representation that represents characteristic linguistic information.

[0047] Then, based on the above similarity as the alignment criterion, the natural language information and the feature language information are preliminarily aligned through an optimization algorithm, for example, maximizing the similarity function to obtain the best alignment state.

[0048] Next, we define the mapping relationship R, which is a mapping from the natural language concept space to the feature language attribute space. It can be expressed using set theory and logical symbols, as follows:

[0049]

[0050] Among them, X represents the natural language concept set, Y represents the characteristic language attribute set, and θ is a preset similarity threshold. When the similarity between natural language information x and characteristic language information y exceeds this threshold, it is considered that there is a mapping relationship.

[0051] In addition, the mapping relation R should satisfy the inverse relation R of the bijective condition -1 ,Right now:

[0052]

[0053] This means that any element in the feature language attribute space must be able to find a clear corresponding element in the natural language concept space, and vice versa, thereby ensuring the effective transmission and consistency of information. In actual operation, it is necessary to gradually discover and establish this mapping relationship through iterative optimization methods.

[0054] The natural language information and the characteristic language information are aligned twice according to the equivalent probability value. Specifically, equivalent natural language information and characteristic language information are determined based on the equivalent probability value calculated above to achieve the secondary alignment.

[0055] Step 105: Obtain the uncertainty of the large visual model and the large language model, and determine the degree of interaction between the large visual model and the large language model based on the uncertainty. In an embodiment of the present application, uncertainty includes accidental uncertainty and cognitive uncertainty. Accidental uncertainty is caused by the noise of the observation data itself (for example, noise, artifacts, labeling errors, etc.). Cognitive uncertainty is caused by the uncertainty of model parameters and the uncertainty of model structure. The present application exemplarily uses Monte Carlo Dropout technology to quantitatively evaluate the uncertainty of the model.

[0056] Through the Monte Carlo dropout technique, the model parameters will learn a distribution range rather than a fixed value. Based on this parameter distribution space, we can get multiple prediction results for the same sample, and then get the uncertainty value of the model prediction by calculating the variance, as follows.

[0057] The model is trained by minimizing the loss function as follows:

[0058] In the formula, represents the loss function, D represents the number of samples, i represents the index of the pixel, θ represents the parameter of the neural network, and y represents the true label. Represents the result predicted by the model, Represents adaptive weights. For samples that are difficult to predict, there is more inherent noise in the data and the weights are smaller. For samples that are easy to predict, there is less inherent noise in the data and the weights are larger, so that the model can be applied to different samples during training.

[0059] The above loss consists of two parts: one is the residual of the regression model, which is used to capture the epistemic uncertainty of the model parameters, and the other is the accidental uncertainty of the pixel points, which acts as a regularization term.

[0060] Based on the Monte Carlo dropout technology, multiple samples are sampled from the distribution of model parameters to obtain multiple models. These multiple models are used to predict the same sample, and the stability of multiple prediction results is calculated.

[0061] In an embodiment of the present application, a gated switch array is constructed based on uncertainty. When the uncertainty of the large visual model and / or the large language model is higher than a preset threshold, the gated switch array is fully opened to make the degree of interaction fully interactive. When the uncertainty of the large visual model and / or the large language model is within a preset threshold, the gated switch array is partially opened to make the degree of interaction partially interactive. When the uncertainty of the large visual model and / or the large language model is lower than a preset threshold, the gated switch array is fully closed to make the degree of interaction non-interactive.

[0062] In the embodiment of the present application, in the process of fusing a large visual model (such as a computer vision model for analyzing medical images) and a large language model (such as a natural language processing model for understanding medical texts), the degree of interaction between them can be adaptively adjusted according to the uncertainty of the model output. The following is a possible implementation method and introduces relevant mathematical expressions.

[0063] Assume there is an uncertainty quantification index U m It is used to measure the uncertainty of the model m (which can be a large visual model or a large language model). This indicator can be derived based on the entropy, confidence score or other uncertainty estimation methods of the model prediction. Let the preset threshold be τ high and τ low , where τ low ≤τ high .

[0064] The gate switch array G can be represented as a binary matrix, with element g ijRepresents the switch state of the interaction channel i to j between the large visual model and the large language model. The value range is [0,1], 1 means fully open, and 0 means fully closed.

[0065] When the uncertainty of model m satisfies the uncertainty quantification index greater than the maximum value τ of the preset threshold high , the expression is as follows:

[0066] U m >τ high

[0067] At this point, it is believed that model m needs to interact more fully with other models to obtain more information, so:

[0068]

[0069] When the uncertainty of model m is within the range of the preset threshold, the expression is as follows:

[0070] τ low ≤U m ≤τ high

[0071] At this time, only some interactive channels are opened, namely:

[0072]

[0073] The degree to which the switch array is opened can be determined by a linear or nonlinear mapping of the uncertainty level.

[0074] When the uncertainty of model m is low, that is, below the minimum value τ of the preset threshold low , the expression is as follows:

[0075] U m <τ low

[0076] The model is relatively certain about its own output, so it does not need to rely too much on information from other models. At this time, all interaction channels are closed, as follows:

[0077]

[0078] After completing the interactive diagnosis and obtaining the diagnosis result D, the large language model is used to explain the diagnosis result and give medical advice. This process can be represented by an explanation and advice generation function F, as follows:

[0079] S=F(D,ML)

[0080] Among them, ML stands for large language model, I is the explanation of the diagnosis result D, and S is the medical advice based on D.

[0081] In summary, this method achieves intelligent regulation of the degree of interaction between models by quantifying model uncertainty, and ensures that the results can be effectively interpreted and reasonable suggestions can be made through a large language model after diagnosis.

[0082] Step 106: The large visual model and the large language model perform interactive diagnosis according to the interaction degree to obtain a diagnosis result. Specifically, the large visual model and the large language model perform interactive diagnosis according to the interaction degree determined above to obtain a diagnosis result, and the large language model is used to interpret the diagnosis result and provide medical advice.

[0083] Although the present application provides method operation steps as described in the embodiments or flowcharts, more or fewer operation steps may be included based on conventional or non-creative labor. The order of steps listed in this embodiment is only one way of executing the order of many steps and does not represent the only execution order. When the actual device or client product is executed, it can be executed in sequence or in parallel according to the method shown in this embodiment or the accompanying drawings (for example, in a parallel processor or multi-threaded processing environment).

[0084] like Figure 2 As shown, the embodiment of the present application also provides a diagnosis and treatment device 200 based on interactive feedback between multiple models. The device includes: a visual feature module 201, a language feature module 202, an extraction module 203, a translation alignment module 204, an acquisition module 205 and a diagnosis module 206, as follows.

[0085] The visual feature module 201 is used to input the inspection image into the visual big model to obtain a visual feature vector, and convert the visual feature vector into a natural prompt language. The visual feature module 201 is specifically used for the inspection image to represent the information displayed in the form of an image during the inspection and treatment process of the hospital, such as an X-ray. The inspection image is input into the visual big model, segmented and classified, and the visual feature vector is extracted. Exemplarily, the output of the disease classifier in the visual big model is set to a five-value vector.

[0086] In the process of training the visual big model, this application takes the higher the disease score, the greater the probability of the disease as the basic principle. Then each disease is output in the form of (score, corresponding disease). For example, if a chest X-ray is input into the visual big model, the output visual feature vector is: (0.238, cardiac hypertrophy), (0.086, edema), (0.923, consolidation), (0.379, atelectasis), (0.167, pleural effusion).

[0087] The above-mentioned visual feature vector is converted into a natural prompt language. In an embodiment of the present application, in the process of training the visual large model, the score is converted into a form consistent with the language commonly used in clinical reports. The score is converted into a description of the severity of the disease. For example, a score in [0.0, 0.2) is converted to "no signs", a score in [0.2, 0.5) is converted to "very unlikely", a score in [0.5, 0.9) is converted to "possible", and a score of 0.9 and above is converted to "definitely" or "confirmed". The above-mentioned visual feature vector is then converted into the following natural prompt language: there is no sign of edema and pleural effusion, there is a small possibility of cardiomegaly and atelectasis, and there is definitely consolidation in the lungs.

[0088] In addition, here, it is also possible to exemplarily diagnose only diseases with a score greater than 0.5, so that the generated natural prompt language is more intuitive and easy to read. For example, according to the scores of the above-mentioned diseases, the output is "confirmed pulmonary consolidation"

[0089] The language feature module 202 is used to input the text examination report into the large language model to obtain a language feature vector. The language feature module 202 is specifically used for, the text examination report refers to information displayed in text form during the examination or treatment process, such as an electronic medical record. For example, the electronic medical record with the recorded information "coughing and sputum for four months, intermittent fever for one month. Consolidation shadow in the lower lobe of the left lung, secondary bronchiectasis, preliminary diagnosis of lobar pneumonia." is input into the large language model, and the obtained language body complete vector is: left lower lobe, consolidation shadow, lobar pneumonia, etc.

[0090] The extraction module 203 is used to extract the language information of the natural prompt language and the language feature vector to obtain natural language information and feature language information. The extraction module 203 is specifically used for language information including language concepts, language attributes and language relations. The language information of the natural prompt language is extracted to obtain natural language information, and the language information of the language feature vector is extracted to obtain feature language information. Exemplarily, the bag-of-words model, syntactic analysis and other methods can be used here to extract the language information of the natural prompt language and the language feature vector.

[0091] The translation alignment module 204 is used to perform translation alignment on the natural language information and the characteristic language information. The translation alignment module 204 is specifically used to represent the translation of the natural language information and the characteristic language information as a parameter distribution. Exemplarily, the parameter distribution is a Gaussian distribution.

[0092] In the embodiment of the present application, the alignment process of natural language information and feature language information is regarded as an alignment on probability distribution, and these two types of information can be modeled by Gaussian distribution. i and the corresponding feature language information F i , their Gaussian distribution representations can be constructed separately, as follows:

[0093] Gaussian distribution of natural language information: P N (N i ∣μ N ,Σ N ),

[0094] Gaussian distribution of characteristic language information: P F (F i ∣μ F ,Σ F ),

[0095] Among them, μ N and μ F Represent the mean vectors of natural language information and feature language information, Σ N and Σ F They represent the covariance matrix of the mean vector of natural language information and feature language information respectively.

[0096] First, calculate the statistical similarity between the Gaussian distribution of natural language information and the Gaussian distribution of feature language information to find the alignment point, for example:

[0097] Calculate the covariance to identify the part with large possible deviation, let Δ C =Σ N -Σ F , and find the dimensions or feature items with larger deviations.

[0098] Use word embedding methods (such as Word2Vec, GloVe) to calculate the vector representation of natural language information and feature language information and Similarity:

[0099]

[0100] Among them, N i represents a natural language information fragment, F i Indicates that N i The corresponding feature language information, Similarity(N i ,F i ) represents the similarity between a natural language information segment and its corresponding feature language information, A vector representation of natural language information, A vector representation that represents characteristic linguistic information.

[0101] Then, based on the above similarity as the alignment criterion, the natural language information and the feature language information are preliminarily aligned through an optimization algorithm, for example, maximizing the similarity function to obtain the best alignment state.

[0102] Next, we define the mapping relationship R, which is a mapping from the natural language concept space to the feature language attribute space. It can be expressed using set theory and logical symbols, as follows:

[0103]

[0104] Among them, X represents the natural language concept set, Y represents the characteristic language attribute set, and θ is a preset similarity threshold. When the similarity between natural language information x and characteristic language information y exceeds this threshold, it is considered that there is a mapping relationship.

[0105] In addition, the mapping relation R should satisfy the inverse relation R of the bijective condition -1 ,Right now:

[0106]

[0107] This means that any element in the feature language attribute space must be able to find a clear corresponding element in the natural language concept space, and vice versa, thereby ensuring the effective transmission and consistency of information. In actual operation, it is necessary to gradually discover and establish this mapping relationship through iterative optimization methods.

[0108] The natural language information and the characteristic language information are aligned twice according to the equivalent probability value. Specifically, equivalent natural language information and characteristic language information are determined based on the equivalent probability value calculated above to achieve the secondary alignment.

[0109] The acquisition module 205 is used to obtain the uncertainty of the large visual model and the large language model, and determine the degree of interaction between the large visual model and the large language model based on the uncertainty. The acquisition module 205 is specifically used for uncertainty including accidental uncertainty and cognitive uncertainty. Accidental uncertainty is caused by the noise of the observation data itself (for example, noise, artifacts, labeling errors, etc.). Cognitive uncertainty is caused by the uncertainty of model parameters and the uncertainty of model structure. The present application exemplarily uses Monte Carlo Dropout technology to quantitatively evaluate the uncertainty of the model.

[0110] Through the Monte Carlo dropout technique, the model parameters will learn a distribution range rather than a fixed value. Based on this parameter distribution space, we can get multiple prediction results for the same sample, and then get the uncertainty value of the model prediction by calculating the variance, as follows.

[0111] The model is trained by minimizing the loss function as follows:

[0112] In the formula, represents the loss function, D represents the number of samples, i represents the index of the pixel, θ represents the parameter of the neural network, and y represents the true label. Represents the result predicted by the model, Represents adaptive weights. For samples that are difficult to predict, there is more inherent noise in the data and the weights are smaller. For samples that are easy to predict, there is less inherent noise in the data and the weights are larger, so that the model can be applied to different samples during training.

[0113] The above loss consists of two parts: one is the residual of the regression model, which is used to capture the epistemic uncertainty of the model parameters, and the other is the accidental uncertainty of the pixel points, which acts as a regularization term.

[0114] Based on the Monte Carlo dropout technology, multiple samples are sampled from the distribution of model parameters to obtain multiple models. These multiple models are used to predict the same sample, and the stability of multiple prediction results is calculated.

[0115] In an embodiment of the present application, a gated switch array is constructed based on uncertainty. When the uncertainty of the large visual model and / or the large language model is higher than a preset threshold, the gated switch array is fully opened to make the degree of interaction fully interactive. When the uncertainty of the large visual model and / or the large language model is within a preset threshold, the gated switch array is partially opened to make the degree of interaction partially interactive. When the uncertainty of the large visual model and / or the large language model is lower than a preset threshold, the gated switch array is fully closed to make the degree of interaction non-interactive.

[0116] In the embodiment of the present application, in the process of fusing a large visual model (such as a computer vision model for analyzing medical images) and a large language model (such as a natural language processing model for understanding medical texts), the degree of interaction between them can be adaptively adjusted according to the uncertainty of the model output. The following is a possible implementation method and introduces relevant mathematical expressions.

[0117] Assume there is an uncertainty quantification index U m It is used to measure the uncertainty of the model m (which can be a large visual model or a large language model). This indicator can be derived based on the entropy, confidence score or other uncertainty estimation methods of the model prediction. Let the preset threshold be τ high and τ low , where τ low ≤τ high .

[0118] The gate switch array G can be represented as a binary matrix, with element g ijRepresents the switch state of the interaction channel i to j between the large visual model and the large language model. The value range is [0,1], 1 means fully open, and 0 means fully closed.

[0119] When the uncertainty of model m satisfies the uncertainty quantification index greater than the maximum value τ of the preset threshold high , the expression is as follows:

[0120] U m >τ high

[0121] At this point, it is believed that model m needs to interact more fully with other models to obtain more information, so:

[0122]

[0123] When the uncertainty of model m is within the range of the preset threshold, the expression is as follows:

[0124] τ low ≤U m ≤τ high

[0125] At this time, only some interactive channels are opened, namely:

[0126]

[0127] The degree to which the switch array is opened can be determined by a linear or nonlinear mapping of the uncertainty level.

[0128] When the uncertainty of model m is low, that is, below the minimum value τ of the preset threshold low , the expression is as follows:

[0129] U m <τ low

[0130] The model is relatively certain about its own output, so it does not need to rely too much on information from other models. At this time, all interaction channels are closed, as follows:

[0131]

[0132] After completing the interactive diagnosis and obtaining the diagnosis result D, the large language model is used to explain the diagnosis result and give medical advice. This process can be represented by an explanation and advice generation function F, as follows:

[0133] S=F(D,ML)

[0134] Among them, ML stands for large language model, I is the explanation of the diagnosis result D, and S is the medical advice based on D.

[0135] In summary, this method achieves intelligent regulation of the degree of interaction between models by quantifying model uncertainty, and ensures that the results can be effectively interpreted and reasonable suggestions can be made through a large language model after diagnosis.

[0136] The diagnosis module 206 is used for interactive diagnosis between the large visual model and the large language model according to the interaction degree to obtain a diagnosis result. The diagnosis module 206 is specifically used for interactive diagnosis between the large visual model and the large language model according to the interaction degree determined above to obtain a diagnosis result, and to use the large language model to interpret the diagnosis result and provide medical advice.

[0137] Some modules in the apparatus described in the present application can be described in the general context of computer executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, classes, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.

[0138] The devices or modules described in the above application embodiments can be implemented by computer chips or entities, or by products with certain functions. For the convenience of description, the above devices are described in various modules according to their functions. When implementing the embodiments of the present application, the functions of each module can be implemented in the same or multiple software and / or hardware. Of course, the module that implements a certain function can also be implemented by combining multiple sub-modules or sub-units.

[0139] The methods, devices or modules described in this application can be implemented in the form of computer-readable program codes. The controller can be implemented in any appropriate manner. For example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing computer-readable program codes (such as software or firmware) that can be executed by the (micro)processor, logic gates, switches, application-specific integrated circuits (English: Application Specific Integrated Circuit; Abbreviation: ASIC), programmable logic controllers and embedded microcontrollers. Examples of controllers include but are not limited to the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in the form of pure computer-readable program codes, the controller can be implemented in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers and embedded microcontrollers by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included in it for implementing various functions can also be regarded as structures within the hardware component. Or even, the means for realizing various functions may be regarded as both a software module for realizing the method and a structure within a hardware component.

[0140] An embodiment of the present application further provides a device, comprising: a processor; a memory for storing processor executable instructions; when the processor executes the executable instructions, the method described in the embodiment of the present application is implemented.

[0141] The embodiments of the present application also provide a non-volatile computer-readable storage medium on which a computer program or instruction is stored. When the computer program or instruction is executed, the method described in the embodiments of the present application is implemented.

[0142] In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, or each module may exist independently, or two or more modules may be integrated into one module.

[0143] The above storage media include but are not limited to random access memory (RAM), read-only memory (ROM), cache, hard disk (HDD) or memory card. The memory can be used to store computer program instructions.

[0144] It can be known from the description of the above implementation methods that those skilled in the art can clearly understand that the present application can be implemented by means of software plus necessary hardware. Based on such an understanding, the technical solution of the present application can be essentially or partly contributed to the prior art in the form of a software product, or it can be reflected in the implementation process of data migration. The computer software product can be stored in a storage medium, such as ROM / RAM, a magnetic disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a mobile terminal, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present application or certain parts of the embodiments.

[0145] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. All or part of this application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld devices or portable devices, tablet devices, mobile communication terminals, multi-processor systems, microprocessor-based systems, programmable electronic devices, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc.

[0146] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit the present application. Although the present application has been described in detail with reference to the aforementioned embodiments, a person of ordinary skill in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some or all of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the present application.

Claims

1. A diagnosis and treatment method based on interactive feedback between multiple models, characterized in that: include: Inputting the inspection image into the visual macro model to obtain a visual feature vector, and converting the visual feature vector into a natural prompt language; Input the text inspection report into the large language model to obtain a language feature vector; Respectively extracting the language information of the natural prompt language and the language feature vector to obtain natural language information and feature language information; Translating and aligning the natural language information and the characteristic language information; Acquire uncertainty of the large visual model and the large language model, and determine the degree of interaction between the large visual model and the large language model based on the uncertainty; The large visual model and the large language model perform interactive diagnosis according to the degree of interaction to obtain a diagnosis result.

2. The method according to claim 1, characterized in that: The language information includes language concepts, language attributes and language relations.

3. The method according to claim 1, characterized in that The translating and aligning the natural language information with the characteristic language information includes: Representing the natural language information and the characteristic language information as parameter distributions; Determining the natural language information and the feature language information to be aligned and an alignment standard according to the parameter distribution; Preliminarily aligning the natural language information to be aligned with the feature language information according to the alignment standard; Acquire a mapping relationship between the natural language information and the characteristic language information; The natural language information and the characteristic language information are aligned twice according to each of the mapping relationships.

4. The method according to claim 3, characterized in that The secondarily aligning the natural language information with the feature language information according to each of the mapping relationships includes: Determining an equivalent probability value of each of the mapping relationships; The natural language information and the feature language information are aligned secondary according to the equivalent probability value.

5. The method according to claim 4, characterized in that The equivalent probability value calculation formula is as follows: Pr i (X≡X′) = 1 - ∏ R(X,Y),R(X′,Y′) (1 - τ -1 (R) × Pr(Y≡Y′)); where Pr i Table represents the i-th group of equivalent probability values, X represents the language concept of the characteristic language information, X′ represents the language concept of the natural language information, R represents the language relationship, that is, the mapping relationship between X and Y, Y represents the language attribute of the characteristic language information, Y′ represents the language attribute of the natural language information, τ -1 Represents the inverse mapping.

6. The method according to claim 1, characterized in that The determining the degree of interaction between the large visual model and the large language model based on the uncertainty includes: constructing a gated switch array based on the uncertainty; When the uncertainty of the large visual model and / or the large language model is higher than a preset threshold, all of the gated switch arrays are turned on to make the interaction level fully interactive; When the uncertainty of the large visual model and / or the large language model is within the preset threshold range, partially opening the gated switch array to make the degree of interaction partial interaction; When the uncertainty of the large visual model and / or the large language model is lower than a preset threshold, the gated switch array is completely turned off to make the interaction level non-interaction.

7. The method according to claim 1, characterized in that After the large visual model and the large language model perform interactive diagnosis according to the interaction degree to obtain a diagnosis result, the method further includes: The large language model is used to interpret the diagnosis result and provide medical advice.

8. A diagnosis and treatment device based on interactive feedback between multiple models, characterized in that: include: A visual feature module, used for inputting the inspection image into the visual big model to obtain a visual feature vector, and converting the visual feature vector into a natural prompt language; A language feature module, used to input the text inspection report into a large language model to obtain a language feature vector; An extraction module, used to extract the language information of the natural prompt language and the language feature vector respectively to obtain natural language information and feature language information; A translation alignment module, used for aligning the natural language information with the characteristic language information; An acquisition module, used to acquire the uncertainty of the large visual model and the large language model, and determine the degree of interaction between the large visual model and the large language model based on the uncertainty; The diagnosis module is used for interactive diagnosis between the large visual model and the large language model according to the degree of interaction to obtain a diagnosis result.

9. A device for executing a diagnosis and treatment method based on interactive feedback between multiple models, characterized in that: include: processor; a memory for storing processor-executable instructions; When the processor executes the executable instructions, the method according to any one of claims 1 to 7 is implemented.

10. A non-volatile computer-readable storage medium, characterized in that: The device comprises a computer program or an instruction for storing the computer program or the instruction, which, when executed, enables the method according to any one of claims 1 to 7 to be implemented.

Citation Information

Cited By

  • Visual language large model hybrid quantification method and device and electronic equipment

    CN119441513A