Medical data analysis method and device based on artificial intelligence, equipment and medium
By using the inquiry behavior prediction sub-model and reply generation sub-model of the pre-trained language model in medical data analysis to generate symptom description entity normalized text and inquiry behavior labels, the low accuracy of medical data analysis in the existing technology is solved. problems and achieve more efficient data analysis results.
Patent Information
- Application Number
- CN202410399288.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-02
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-04-02
AI Technical Summary
Due to the isolation problem between the two language models, the existing medical data analysis method is difficult to discover the hidden relationship between inquiry and data analysis, resulting in low accuracy of medical data analysis.
By obtaining the user's initial symptom description text and inputting it into the pre-trained language model, the inquiry behavior prediction sub-model and the reply generation sub-model are used to generate the symptom description entity normalized text and inquiry behavior labels, and then generate medical data analysis As a result, the hidden relationship between the two models can be fully explored.
It improves the accuracy of medical data analysis, enhances the collaborative working ability between models, and improves the accuracy of data analysis.
Smart Images

Figure CN118609831A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of digital medical technology, and in particular to a medical data analysis method, device, computer equipment and medium based on artificial intelligence. Background Art
[0002] In the automated consultation scenario of digital medicine, language models are used to intelligently identify the symptom description text entered by the user, thereby realizing intelligent medical data analysis of the user. Usually, a new round of inquiries about the user's symptom description and medical data analysis based on the user's symptom description text are implemented through two language models respectively. This method has the following problems. For example, when the prediction error of one model may affect the prediction effect of another model, or there is an isolation problem between the two language models, it is difficult to mine the hidden relationship between the inquiry and data analysis through learning between the two isolated models, which leads to the problem of low accuracy of medical data analysis in the existing medical data analysis method. Summary of the invention
[0003] The present invention provides a medical data analysis method, device, equipment and medium based on artificial intelligence to solve the technical problem of low accuracy of medical data analysis in existing medical data analysis methods.
[0004] In the first aspect, a medical data analysis method based on artificial intelligence is provided, comprising:
[0005] Obtaining the initial symptom description text of the user to be analyzed and inputting it into a pre-trained language model, wherein the pre-trained language model includes an inquiry behavior prediction sub-model for predicting inquiry behavior and a response generation sub-model for predicting medical data analysis results;
[0006] Generate a symptom description entity normalized text based on the initial symptom description text through the response generation sub-model;
[0007] The inquiry behavior prediction sub-model predicts an inquiry behavior label based on the symptom description entity normalized text, where the inquiry behavior label is one of a continue inquiry behavior label and an end inquiry behavior label;
[0008] The response generation sub-model generates a medical data analysis result for the user to be analyzed based on the symptom description entity normalized text and the inquiry behavior label.
[0009] In a second aspect, a medical data analysis device based on artificial intelligence is provided, comprising:
[0010] An acquisition module, used to acquire the initial symptom description text of the user to be analyzed, and input it into a pre-trained language model, wherein the pre-trained language model includes an inquiry behavior prediction sub-model for inquiry behavior prediction and a response generation sub-model for medical data analysis;
[0011] A first generation module is used to generate a symptom description entity normalized text based on the initial symptom description text through the response generation sub-model;
[0012] A prediction module, used for predicting an inquiry behavior label based on the symptom description entity normalized text through the inquiry behavior prediction sub-model, wherein the inquiry behavior label is one of a continue inquiry behavior label and an end inquiry behavior label;
[0013] The second generation module is used to generate a medical data analysis result for the user to be analyzed based on the symptom description entity normalized text and the inquiry behavior label through the response generation sub-model.
[0014] In a third aspect, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned medical data analysis method when executing the computer program.
[0015] In a fourth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned medical data analysis method are implemented.
[0016] In the scheme implemented by the above-mentioned artificial intelligence-based medical data analysis method, device, computer equipment and storage medium, the initial symptom description text of the user to be analyzed is obtained and input into the pre-trained language model. The pre-trained language model includes an inquiry behavior prediction sub-model for inquiry behavior prediction and a reply generation sub-model for medical data analysis; and the reply generation sub-model generates a symptom description entity normalized text based on the initial symptom description text; further, the inquiry behavior prediction sub-model predicts the inquiry behavior label based on the symptom description entity normalized text; finally, the reply generation sub-model generates a medical data analysis result for the user to be analyzed based on the symptom description entity normalized text and the inquiry behavior label, so that the two models can fully explore the hidden relationship between inquiry and data analysis, thereby improving the accuracy of the model in medical data analysis. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0018] Figure 1 is a schematic diagram of an application environment of a medical data analysis and processing method in one embodiment of the present invention;
[0019] Figure 2 is a flow chart of a medical data analysis and processing method in one embodiment of the present invention;
[0020] Figure 3 yes Figure 1 A schematic flow chart of a specific implementation of step S1;
[0021] Figure 4 is a structural schematic diagram of a medical data analysis and processing device in one embodiment of the present invention;
[0022] Figure 5 is a schematic diagram of a structure of a computer device in one embodiment of the present invention;
[0023] Figure 6 It is another structural schematic diagram of a computer device in one embodiment of the present invention. DETAILED DESCRIPTION
[0024] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. 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.
[0025] The medical data analysis method based on artificial intelligence provided by the embodiment of the present invention can be applied in Figure 1In an application environment, the client communicates with the server through a network. The server can receive the initial symptom description text of the user to be analyzed through the client, and the server inputs the initial symptom description text of the user to be analyzed into a pre-trained language model. The pre-trained language model includes an inquiry behavior prediction sub-model for inquiry behavior prediction and a reply generation sub-model for medical data analysis; the reply generation sub-model generates a symptom description entity normalized text based on the initial symptom description text and the start inquiry status label; the inquiry behavior prediction sub-model predicts an inquiry behavior label based on the symptom description entity normalized text and the start inquiry status label, and the inquiry behavior label is one of a continue inquiry behavior label and an end inquiry behavior label; the reply generation sub-model generates a medical data analysis result for the user to be analyzed based on the symptom description entity normalized text and the inquiry behavior label; the server obtains the medical data analysis result for the user to be analyzed, and feeds the medical data analysis result back to the client. In the present invention, by obtaining the initial symptom description text of the user to be analyzed and inputting it into the pre-trained language model, the pre-trained language model includes an inquiry behavior prediction sub-model for inquiry behavior prediction and a reply generation sub-model for medical data analysis; and the reply generation sub-model generates a symptom description entity normalized text based on the initial symptom description text; further, the inquiry behavior prediction sub-model predicts the inquiry behavior label based on the symptom description entity normalized text; finally, the reply generation sub-model generates the medical data analysis results for the user to be analyzed based on the symptom description entity normalized text and the inquiry behavior label, so that the two models can fully explore the hidden relationship between inquiry and data analysis, and improve the accuracy of the model in medical data analysis. Among them, the client can be but not limited to various personal computers, laptops, smart phones, tablet computers and portable wearable devices. The server can be implemented with an independent server or a server cluster composed of multiple servers. The present invention is described in detail below through specific embodiments.
[0026] See also Figure 2 As shown, Figure 2 A flowchart of a medical data analysis method based on artificial intelligence provided by an embodiment of the present invention includes the following steps:
[0027] S1: Obtain the initial symptom description text of the user to be analyzed and input it into a pre-trained language model, wherein the pre-trained language model includes an inquiry behavior prediction sub-model for inquiry behavior prediction and a response generation sub-model for medical data analysis.
[0028] The medical data analysis method provided by the present invention can be applied to intelligent medical data analysis engines such as digital medical intelligent consultation customer service or digital medical intelligent consultation assistant in various application scenarios. The medical data analysis engine is usually implemented through a server, which can obtain the initial symptom description text of the user to be analyzed in real time. For example, in the field of digital medicine, the user to be analyzed often asks some simple medical data analysis questions by phone or online chat, and often needs to use the medical data analysis engine to answer some medical data analysis questions of the customer, so as to reduce the workload and work efficiency of senior doctors or expert physicians.
[0029] In this embodiment, the initial symptom description text is the corpus information for describing the disease symptoms input by the user when the user needs to conduct a medical consultation. In one embodiment, the initial symptom description text may be an online corpus text input by the user for describing the disease symptoms. For example, the initial symptom description text may be: "I have a headache and body aches recently. Do I have a cold or another disease?"
[0030] It can be understood that the initial symptom description text may also be text corpus information obtained by performing speech recognition on speech information input by the user to be analyzed for describing the disease symptoms.
[0031] In this embodiment, the pre-trained language model is a language model obtained by training a language-based machine learning model using a large number of corpus texts of real disease consultation dialogues between patients and doctors as training samples. The trained language model can be used for medical data analysis. The language model includes an inquiry behavior prediction sub-model for inquiry behavior prediction and a response generation sub-model for medical data analysis.
[0032] The inquiry behavior prediction submodel in this embodiment outputs an inquiry behavior label, which includes a continued inquiry behavior label for characterizing the continuation of medical data inquiry and an end inquiry behavior label for characterizing the continuation of output of medical data analysis results or the end of inquiry behavior. The reply generation submodel is used to generate a medical data analysis reply text for performing medical data analysis. It is understandable that the reply generation submodel can also output a question reply text that guides the user to be analyzed to perform a new round of symptom description.
[0033] In this embodiment, the inquiry behavior prediction sub-model and the reply generation sub-model can be obtained by training using a Transformer model, and of course can also be obtained by training using convolutional neural networks (CNN) or recurrent neural networks (RNN), which is not limited here.
[0034] In one embodiment, Figure 3 As shown, a specific solution for obtaining the initial symptom description text of the user to be analyzed is provided. Step S1, that is, the step of obtaining the initial symptom description text of the user to be analyzed, specifically includes the following steps S11-S12:
[0035] S11: Obtain the corpus text of the symptom description of the user to be analyzed.
[0036] In this embodiment, the corpus text to be analyzed when the user describes the symptoms can be an online corpus text input by the user to describe the disease symptoms, or an online voice information input by the user in the form of voice to describe the disease symptoms, and the corpus text is obtained by converting the online voice information based on speech recognition technology. The speech recognition technology can be a speech recognition model based on a recurrent neural network (RNN) or a neural network language model (NLM), which is not specifically limited here.
[0037] S12: Extracting characteristic words of symptom description from the corpus text to obtain the initial symptom description text.
[0038] In an embodiment of the present invention, in order to more accurately obtain specific keywords used to characterize disease symptoms in the corpus text, feature words describing symptoms in the corpus text may be extracted to obtain an initial symptom description text. For example, when the corpus text is "I have a headache and body aches recently. Do I have a cold or another disease?", specific feature words describing symptoms such as "head", "pain", "body aches" and "cold" may be extracted to obtain an initial symptom description text containing feature words such as "head", "pain", "body aches" and "cold".
[0039] It is understandable that when extracting feature words for symptom description, a feature word library for describing the symptoms can be established in advance, the vocabulary in the corpus text can be matched with each feature word in the feature word library, and the initial symptom description text can be generated based on the successfully matched feature words.
[0040] Figure 3 In the scheme of the illustrated embodiment, by extracting feature words of symptom description from the corpus text to obtain the initial symptom description text, invalid words in the corpus text that cannot reflect the symptom description can be filtered out to obtain keywords that can be used directly for medical data analysis and convenient for symptom description, which can effectively reduce the data processing amount of the language model, thereby improving the efficiency of the language model in medical data analysis.
[0041] Step S2, generating a normalized text of the symptom description entity based on the initial symptom description text through the response generation sub-model.
[0042] In this embodiment, the reply generation sub-model performs standard entity normalization processing on the initial symptom description text to generate symptom description entity normalized text. It can be understood that standard entity normalization processing refers to the process of transforming the keywords in the initial symptom description text into keywords of standard entities, thereby facilitating subsequent recognition processing.
[0043] Optionally, in one embodiment, a mapping relationship between some non-standard entity keywords and standard entity keywords can be established, such as the mapping relationship between the non-standard entity "whole body" and the standard entity "limbs", and the mapping relationship between the non-standard entity "head" and the standard entity "head", thereby achieving rapid standard entity normalization of the keywords in the initial symptom description text.
[0044] In some embodiments, the reply generation submodel can also convert the initial symptom description text into a feature vector, and based on the feature vector, perform standard entity normalization processing on the initial symptom description text to obtain the symptom description entity normalized text. In this embodiment, it is necessary to train the reply generation submodel through a large number of paired text pairs consisting of symptom description texts of non-standard entities and symptom description texts of standard entities. For example, the initial symptom description text of the non-standard entity can be "headache, cold, body aches", and the symptom description text of the standard entity can be "headache, cold, limb aches". The reply generation submodel is trained through the above text pairs, and the trained reply generation submodel can perform standard entity normalization processing on the keywords of the initial symptom description text to generate symptom description entity normalized text. The scheme in this embodiment, compared with the scheme of performing standard entity normalization processing on the keywords in the initial symptom description text through the aforementioned mapping relationship, can improve the generalization ability of standard entity normalization processing through model training.
[0045] Step S3, predicting a query behavior label based on the symptom description entity normalized text through the query behavior prediction sub-model, wherein the query behavior label is one of a continue query behavior label and an end query behavior label.
[0046] In this embodiment, the inquiry behavior prediction submodel is used to predict the inquiry behavior label based on the normalized text of the symptom description entity, and the inquiry behavior label is one of a continue inquiry behavior label and an end inquiry behavior label. Among them, the inquiry behavior prediction submodel outputs the inquiry behavior label, and the inquiry behavior label includes a continue inquiry behavior label for characterizing the continuation of the disease inquiry and an end inquiry behavior label for characterizing the continuation of the output of medical data analysis or the end of the inquiry behavior. The inquiry behavior prediction submodel mainly predicts whether to stop the inquiry behavior through the normalized text of the symptom description entity, and outputs the continue inquiry behavior label characterizing the continuation of the disease inquiry and the end inquiry behavior label characterizing the continuation of the output of medical data analysis results or the end of the inquiry behavior to the reply generation submodel.
[0047] Step S4, generating a medical data analysis result for the user to be analyzed based on the normalized text of the symptom description entity and the inquiry behavior label through the response generation sub-model.
[0048] In this embodiment, the normalized text of the symptom description entity and the query behavior label are converted and processed by the reply generation sub-model to obtain a feature vector, and based on the feature vector, a medical data analysis result for the user to be analyzed is generated. The medical data analysis result is the medical data analysis result obtained by analyzing the symptom description of the user to be analyzed, for example, the medical data analysis result of "cold" obtained for the symptom description of the user to be analyzed "fever 38 degrees, runny nose".
[0049] In one embodiment, a solution for generating a medical data analysis result for a user to be analyzed is provided, wherein step S4 specifically includes steps S41 to S45.
[0050] Step S41, if the inquiry behavior tag is an end inquiry behavior tag, the medical data analysis results for the user to be analyzed are generated through the response generation sub-model based on the symptom description entity normalized text and the end inquiry behavior tag.
[0051] When the inquiry behavior label is the end inquiry behavior label, the response generation sub-model will directly generate the medical data analysis results for the user to be analyzed based on the symptom description entity normalized text and the end inquiry behavior label.
[0052] In one embodiment, a solution is provided for directly generating medical data analysis results for the user to be analyzed based on the normalized text of the symptom description entity and the end inquiry behavior label through a reply generation sub-model, and step S41 specifically includes the following steps S411-S414.
[0053] Step S411, if the inquiry behavior tag is an end inquiry behavior tag, feature extraction is performed on the normalized text of the symptom description entity through the reply generation sub-model to obtain the first symptom description feature, and feature extraction is performed on the end inquiry behavior tag to obtain the first inquiry behavior feature.
[0054] Step S412: performing feature fusion on the first symptom description feature and the first inquiry behavior feature to obtain a first medical data analysis feature.
[0055] Step S413: Based on the first medical data analysis feature, multiple medical data prediction results for the user to be analyzed and confidence levels corresponding to the multiple medical data prediction results are calculated.
[0056] Step S414, generating a medical data analysis result for the user to be analyzed based on the medical data prediction result with the highest confidence among the multiple medical data prediction results.
[0057] In step S411-step S414, when the inquiry behavior label is the end inquiry behavior label, the reply generation sub-model performs feature extraction on the symptom description entity normalized text to obtain the first symptom description feature, and performs feature extraction on the end inquiry behavior label to obtain the first inquiry behavior feature. It can be understood that when the reply generation sub-model performs feature extraction on the symptom description entity normalized text and the end inquiry behavior label respectively, it specifically converts the vocabulary included in the symptom description entity normalized text and the end inquiry behavior label into word vectors, and generates a position feature vector for each word vector according to the position relationship of the vocabulary, thereby obtaining the first symptom description feature and the first inquiry behavior feature.
[0058] After obtaining the first symptom description feature and the first inquiry behavior feature, the first symptom description feature and the first inquiry behavior feature can be feature fused to obtain the first medical data analysis feature. When performing feature fusion, the two features can be directly concatenated to obtain a feature vector with a higher vector dimension. Of course, other feature fusion methods can also be used to perform feature fusion, which is not limited here.
[0059] After obtaining the first medical data analysis feature, multiple medical data prediction results for the user to be analyzed and the confidence levels corresponding to the multiple medical data prediction results can be calculated based on the first medical data analysis feature, and among the multiple medical data prediction results, a medical data analysis result for the user to be analyzed is generated based on the medical data prediction result with the highest confidence level, and then the symptom description of the user to be analyzed is predicted to obtain the medical data analysis result.
[0060] Step S42: If the inquiry behavior label is a continue inquiry behavior label, the reply generation sub-model generates a symptom question text for the user to be analyzed based on the symptom description entity normalized text and the continue inquiry behavior label.
[0061] Step S43, obtaining a new symptom description text of the symptom question text feedback from the user to be analyzed.
[0062] Step S44, the inquiry behavior prediction sub-model predicts an updated inquiry behavior label based on the normalized text of the symptom description entity, the new symptom description text and the continue inquiry behavior label, and the updated inquiry behavior label is one of a continue inquiry behavior label and an end inquiry behavior label.
[0063] Step S45, if the updated inquiry behavior label is a continue inquiry behavior label, repeat steps S43 and S44 until the updated inquiry behavior label output by the inquiry behavior prediction sub-model is an end inquiry behavior label, and the reply generation sub-model generates a medical data analysis result for the user to be analyzed based on the normalized text of the symptom description entity, all new symptom description texts and the end inquiry behavior label.
[0064] In step S42, when the inquiry behavior tag is the end inquiry behavior tag, it means that the medical data analysis result cannot be directly generated at present, so the response generation sub-model will first generate a symptom question text for further symptom inquiry of the user to be analyzed.
[0065] In one embodiment, a solution is provided for specifically replying to the generated sub-model to generate the symptom question text, that is, step S42 specifically includes the following steps S421-S424;
[0066] Step S421, if the inquiry behavior label is a continue inquiry behavior label, feature extraction is performed on the normalized text of the symptom description entity through the reply generation sub-model to obtain a second symptom description feature, and feature extraction is performed on the continue inquiry behavior label to obtain a second inquiry behavior feature.
[0067] Step S422: performing feature fusion on the second symptom description feature and the second inquiry behavior feature to obtain a medical data analysis feature.
[0068] Step S423: Based on the medical data analysis features, a plurality of recommended question texts for the user to be analyzed and confidence levels corresponding to the plurality of recommended question texts are calculated.
[0069] Step S424: Generate a symptom question text for the user to be analyzed based on the recommended question text with the highest confidence among the multiple recommended question texts.
[0070] In step S421-step S414, when the inquiry behavior label is a continue inquiry behavior label, the reply generation sub-model performs feature extraction on the symptom description entity normalized text to obtain the second symptom description feature, and performs feature extraction on the continue inquiry behavior label to obtain the second inquiry behavior feature. It can be understood that when the symptom description entity normalized text and the continue inquiry behavior label are respectively characterized by the reply generation sub-model, specifically, the vocabulary included in the symptom description entity normalized text and the continue inquiry behavior label is converted into a word vector, and a position feature vector is generated for each word vector according to the positional relationship of the vocabulary, thereby obtaining the second symptom description feature and the second inquiry behavior feature.
[0071] After obtaining the second symptom description feature and the second inquiry behavior feature, the second symptom description feature and the second inquiry behavior feature can be fused to obtain the medical data analysis feature. When performing feature fusion, the two features can be directly concatenated to obtain a feature vector with a higher vector dimension. Of course, other feature fusion methods can also be used to perform feature fusion, which is not limited here.
[0072] After obtaining the medical data analysis features, multiple recommended question texts for the user to be analyzed and the confidence levels corresponding to the multiple recommended question texts can be calculated based on the medical data analysis features, and a symptom question text for the user to be analyzed can be generated based on the recommended question text with the highest confidence level among the multiple recommended question texts, thereby facilitating further symptom inquiries based on the symptom question text for the user to be analyzed, thereby understanding a lot of new symptom description information, so as to facilitate more accurate analysis and obtain medical data analysis results.
[0073] In step S43, the generated symptom question text is provided to the user to be analyzed for review, so as to facilitate the user to be analyzed to make a new symptom description, and a new symptom description text is generated based on the new symptom description information fed back by the user to be analyzed on the symptom question text. The specific method of generating a new symptom description text can refer to the description of the above embodiment, which will not be repeated here.
[0074] In step S44, the inquiry behavior prediction sub-model predicts an updated inquiry behavior label based on the symptom description entity normalized text, the new symptom description text, and the continue inquiry behavior label. The updated inquiry behavior label is one of the continue inquiry behavior label and the end inquiry behavior label.
[0075] In one embodiment, a solution is provided for obtaining updated inquiry behavior labels through the inquiry behavior prediction sub-model prediction, that is, step S44 specifically includes the following steps S441-S443:
[0076] Step S441, performing feature extraction on the normalized text of the symptom description entity and the new symptom description text through the reply generation sub-model to obtain a third medical data analysis feature, and performing feature extraction on the continue inquiry behavior label to obtain a third inquiry behavior feature.
[0077] Step S442: performing feature fusion on the third medical data analysis feature and the third inquiry behavior feature to obtain an inquiry behavior prediction feature.
[0078] Step S443: Based on the inquiry behavior prediction feature, an updated inquiry behavior label is predicted.
[0079] In steps S441-S443, the reply generation sub-model performs feature extraction on the symptom description entity normalized text and the new symptom description text to obtain the third medical data analysis feature, and performs feature extraction on the continued inquiry behavior label to obtain the third inquiry behavior feature. It can be understood that when the reply generation sub-model performs feature extraction on the symptom description entity normalized text, the new symptom description text and the continued inquiry behavior label respectively, it specifically converts the vocabulary included in the symptom description entity normalized text, the new symptom description text and the continued inquiry behavior label into word vectors, and generates a position feature vector for each word vector according to the positional relationship of the vocabulary, thereby obtaining the third medical data analysis feature and the third inquiry behavior feature.
[0080] After obtaining the third medical data analysis feature and the third inquiry behavior feature, the third medical data analysis feature and the third inquiry behavior feature can be feature fused to obtain the inquiry behavior prediction feature. When performing feature fusion, the two features can be directly concatenated to obtain a feature vector with a higher vector dimension. Of course, other feature fusion methods can also be used to perform feature fusion, which is not limited here.
[0081] After obtaining the inquiry behavior prediction features, an updated inquiry behavior label can be predicted based on the inquiry behavior prediction features.
[0082] In step S45, if the updated inquiry behavior label is a continue inquiry behavior label, the contents of step S43 and step S44 are repeated until the updated inquiry behavior label output by the inquiry behavior prediction sub-model is an end inquiry behavior label. Then the final reply generation sub-model generates the medical data analysis results for the user to be analyzed based on the normalized text of the symptom description entity, all new symptom description texts and the end inquiry behavior label.
[0083] It can be seen that in the above scheme, by obtaining the initial symptom description text of the user to be analyzed and inputting it into the pre-trained language model, the pre-trained language model includes an inquiry behavior prediction sub-model for inquiry behavior prediction and a reply generation sub-model for medical data analysis; and the reply generation sub-model generates a symptom description entity normalized text based on the initial symptom description text; further, the inquiry behavior prediction sub-model predicts the inquiry behavior label based on the symptom description entity normalized text; finally, the reply generation sub-model generates the medical data analysis results for the user to be analyzed based on the symptom description entity normalized text and the inquiry behavior label, so that the two models can fully explore the hidden relationship between inquiry and data analysis, thereby improving the accuracy of the model in medical data analysis.
[0084] In one embodiment, after step S4, the artificial intelligence-based medical data analysis method of the present invention may further include: step S5, based on the medical data analysis results, determining the medical treatment text associated with the medical data analysis results in a preset medical information library; step S6, based on the medical treatment text, generating medical treatment recommendations.
[0085] In this embodiment, after the medical data analysis results are obtained, in order to facilitate the recommendation of reasonable medical treatment suggestions for the user to be analyzed, the medical treatment suggestions associated with the medical data analysis results can be determined in a preset medical information database. The preset medical information database contains various diseases and medical treatment texts for each disease. The medical treatment texts include treatment opinions, treatment drugs and other information. After determining the medical treatment text associated with the medical data analysis results, the medical treatment text can be used as a medical treatment suggestion.
[0086] In the solution of this embodiment, by generating medical treatment suggestions for auxiliary treatment of the user to be analyzed based on the medical data analysis results, the content richness of the generated medical data analysis results can be improved to a certain extent, and at the same time, the user to be analyzed can be given a better medical consultation experience.
[0087] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.
[0088] In one embodiment, a medical data analysis device based on artificial intelligence is provided, and the medical data analysis device based on artificial intelligence corresponds to the medical data analysis method based on artificial intelligence in the above embodiment. Figure 4As shown, the medical data analysis device includes an acquisition module 101, a first generation module 102, a prediction module 103, a second generation module 104, a matching module 105 and a third generation module 106. The functional modules are described in detail as follows:
[0089] An acquisition module 101 is used to acquire the initial symptom description text of the user to be analyzed and input it into a pre-trained language model, wherein the pre-trained language model includes an inquiry behavior prediction sub-model for predicting inquiry behavior and a response generation sub-model for predicting medical data analysis results;
[0090] A first generating module 102 is used to generate a symptom description entity normalized text based on the initial symptom description text through the response generation sub-model;
[0091] A prediction module 103, configured to predict an inquiry behavior label based on the symptom description entity normalized text through the inquiry behavior prediction sub-model, wherein the inquiry behavior label is one of a continue inquiry behavior label and an end inquiry behavior label;
[0092] The second generation module 104 is used to generate a medical data analysis result for the user to be analyzed based on the symptom description entity normalized text and the inquiry behavior label through the response generation sub-model.
[0093] In one embodiment, the second generation module 104 is specifically used to: if the inquiry behavior label is an end inquiry behavior label, generate a medical data analysis result for the user to be analyzed based on the symptom description entity normalized text and the end inquiry behavior label through the reply generation sub-model.
[0094] In one embodiment, the second generation module 104 is specifically used to: if the inquiry behavior label is an end inquiry behavior label, perform feature extraction on the normalized text of the symptom description entity through the reply generation sub-model to obtain a first symptom description feature, and perform feature extraction on the end inquiry behavior label to obtain a first inquiry behavior feature; perform feature fusion on the first symptom description feature and the first inquiry behavior feature to obtain a first medical data analysis feature; based on the first medical data analysis feature, calculate a plurality of medical data prediction results for the user to be analyzed and the confidence corresponding to each of the medical data prediction results; among the multiple medical data prediction results, generate a medical data analysis result for the user to be analyzed based on the medical data prediction result with the highest confidence.
[0095] In one embodiment, the second generation module 104 is also used for: if the inquiry behavior label is a continue inquiry behavior label, then generating a symptom question text for the user to be analyzed based on the symptom description entity normalized text and the continue inquiry behavior label through the reply generation sub-model; obtaining a new symptom description text fed back by the user to be analyzed for the symptom question text; the inquiry behavior prediction sub-model predicts an updated inquiry behavior label based on the symptom description entity normalized text, the new symptom description text and the continue inquiry behavior label, and the updated inquiry behavior label is one of a continue inquiry behavior label and an end inquiry behavior label; if the updated inquiry behavior label is a continue inquiry behavior label, then re-executing the acquisition of the new symptom description text fed back by the user to be analyzed for the symptom question text until the updated inquiry behavior label output by the inquiry behavior prediction sub-model is an end inquiry behavior label, and generating a medical data analysis result for the user to be analyzed based on the symptom description entity normalized text, all new symptom description texts and the end inquiry behavior label through the reply generation sub-model.
[0096] In one embodiment, the second generation module 104 is specifically used to: if the inquiry behavior label is a continued inquiry behavior label, then perform feature extraction on the symptom description entity normalized text through the reply generation sub-model to obtain a second symptom description feature, and perform feature extraction on the continued inquiry behavior label to obtain a second inquiry behavior feature; perform feature fusion on the second symptom description feature and the second inquiry behavior feature to obtain a medical data analysis feature; based on the medical data analysis feature, calculate a plurality of recommended question texts for the user to be analyzed and the confidences corresponding to the plurality of recommended question texts; among the plurality of recommended question texts, generate a symptom question text for the user to be analyzed based on the recommended question text with the highest confidence;
[0097] The second generation module 104 is further specifically used for: performing feature extraction on the normalized text of the symptom description entity through the reply generation sub-model to obtain a third medical data analysis feature, and performing feature extraction on the continue inquiry behavior label to obtain a third inquiry behavior feature; performing feature fusion on the third medical data analysis feature and the third inquiry behavior feature to obtain an inquiry behavior prediction feature; and predicting an updated inquiry behavior label based on the inquiry behavior prediction feature.
[0098] In one embodiment, the acquisition module 101 is specifically used to: acquire the corpus text of the symptom description of the user to be analyzed; extract the feature words of the symptom description from the corpus text to obtain the initial symptom description text.
[0099] In one embodiment, the matching module 105 is used to determine the medical treatment text associated with the medical data analysis result in a preset medical information library based on the medical data analysis result; the third generation module 106 is used to generate medical treatment recommendations based on the medical treatment text.
[0100] The present invention provides a medical data analysis device, which obtains the initial symptom description text of a user to be analyzed and inputs it into a pre-trained language model, wherein the pre-trained language model includes an inquiry behavior prediction sub-model for inquiry behavior prediction and a reply generation sub-model for medical data analysis; and generates a symptom description entity normalized text based on the initial symptom description text through the reply generation sub-model; further predicts an inquiry behavior label based on the symptom description entity normalized text through the inquiry behavior prediction sub-model; finally, generates a medical data analysis result for the user to be analyzed based on the symptom description entity normalized text and the inquiry behavior label through the reply generation sub-model, thereby enabling the two models to fully explore the hidden relationship between inquiry and data analysis, thereby improving the accuracy of the model in performing medical data analysis.
[0101] For the specific definition of the medical data analysis device, please refer to the definition of the medical data analysis method above, which will not be repeated here. Each module in the above-mentioned medical data analysis device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0102] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 5 As shown. The computer device includes a processor, a memory, a network interface and a database connected via a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile and / or volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external client through a network connection. When the computer program is executed by the processor, it realizes the functions or steps on the server side of a medical data analysis method based on artificial intelligence.
[0103] In one embodiment, a computer device is provided. The computer device may be a client, and its internal structure diagram may be as follows: Figure 6As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected via a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external server via a network connection. When the computer program is executed by the processor, it implements the functions or steps of the client side of a medical data analysis method based on artificial intelligence
[0104] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:
[0105] Obtaining an initial symptom description text of a user to be analyzed and inputting it into a pre-trained language model, wherein the pre-trained language model includes an inquiry behavior prediction sub-model for inquiry behavior prediction and a response generation sub-model for medical data analysis;
[0106] Generate a symptom description entity normalized text based on the initial symptom description text through the response generation sub-model;
[0107] The inquiry behavior prediction sub-model predicts an inquiry behavior label based on the normalized text of the symptom description entity, and the inquiry behavior label is one of a continue inquiry behavior label and an end inquiry behavior label;
[0108] The reply generation sub-model generates a medical data analysis result for the user to be analyzed based on the normalized text of the symptom description entity and the inquiry behavior label.
[0109] The present invention provides a computer device, which obtains the initial symptom description text of a user to be analyzed and inputs it into a pre-trained language model, wherein the pre-trained language model includes an inquiry behavior prediction sub-model for inquiry behavior prediction and a reply generation sub-model for medical data analysis; and generates a symptom description entity normalized text based on the initial symptom description text through the reply generation sub-model; further predicts an inquiry behavior label based on the symptom description entity normalized text through the inquiry behavior prediction sub-model; finally, generates a medical data analysis result for the user to be analyzed based on the symptom description entity normalized text and the inquiry behavior label through the reply generation sub-model, thereby enabling the two models to fully explore the hidden relationship between inquiry and data analysis, thereby improving the accuracy of the model in performing medical data analysis.
[0110] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0111] Obtaining an initial symptom description text of a user to be analyzed and inputting it into a pre-trained language model, wherein the pre-trained language model includes an inquiry behavior prediction sub-model for inquiry behavior prediction and a response generation sub-model for medical data analysis;
[0112] Generate a symptom description entity normalized text based on the initial symptom description text through the response generation sub-model;
[0113] The inquiry behavior prediction sub-model predicts an inquiry behavior label based on the normalized text of the symptom description entity, and the inquiry behavior label is one of a continue inquiry behavior label and an end inquiry behavior label;
[0114] The reply generation sub-model generates a medical data analysis result for the user to be analyzed based on the normalized text of the symptom description entity and the inquiry behavior label.
[0115] The present invention provides a computer-readable storage medium, which obtains the initial symptom description text of a user to be analyzed and inputs it into a pre-trained language model, wherein the pre-trained language model includes an inquiry behavior prediction sub-model for predicting inquiry behavior and a reply generation sub-model for performing medical data analysis; and generates a symptom description entity normalized text based on the initial symptom description text through the reply generation sub-model; further predicts an inquiry behavior label based on the symptom description entity normalized text through the inquiry behavior prediction sub-model; finally, generates a medical data analysis result for the user to be analyzed based on the symptom description entity normalized text and the inquiry behavior label through the reply generation sub-model, thereby enabling the two models to fully explore the hidden relationship between inquiry and data analysis, thereby improving the accuracy of the model in performing medical data analysis.
[0116] It should be noted that the above functions or steps that can be implemented by the computer-readable storage medium or computer device can refer to the relevant descriptions on the server side and the client side in the aforementioned method embodiment. To avoid repetition, they will not be described one by one here.
[0117] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0118] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.
[0119] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.
Claims
1. A medical data analysis method based on artificial intelligence, It is characterized in that include: Obtaining an initial symptom description text of a user to be analyzed and inputting it into a pre-trained language model, wherein the pre-trained language model includes an inquiry behavior prediction sub-model for inquiry behavior prediction and a response generation sub-model for medical data analysis; Generate a symptom description entity normalized text based on the initial symptom description text through the response generation sub-model; The inquiry behavior prediction sub-model predicts an inquiry behavior label based on the symptom description entity normalized text, where the inquiry behavior label is one of a continue inquiry behavior label and an end inquiry behavior label; The response generation sub-model generates a medical data analysis result for the user to be analyzed based on the symptom description entity normalized text and the inquiry behavior label.
2. The medical data analysis method based on artificial intelligence as claimed in claim 1, It is characterized in that Generate a medical data analysis result for the user to be analyzed based on the symptom description entity normalized text and the inquiry behavior label through the response generation sub-model, including: If the inquiry behavior tag is an end inquiry behavior tag, the medical data analysis results for the user to be analyzed are generated through the response generation sub-model based on the symptom description entity normalized text and the end inquiry behavior tag.
3. The medical data analysis method based on artificial intelligence as claimed in claim 2, It is characterized in that Generate a medical data analysis result for the user to be analyzed based on the symptom description entity normalized text and the inquiry behavior label through the response generation sub-model, including: If the inquiry behavior tag is an end inquiry behavior tag, feature extraction is performed on the normalized text of the symptom description entity through the reply generation sub-model to obtain a first symptom description feature, and feature extraction is performed on the end inquiry behavior tag to obtain a first inquiry behavior feature; Performing feature fusion on the first symptom description feature and the first inquiry behavior feature to obtain a first medical data analysis feature; Based on the first medical data analysis feature, a plurality of medical data prediction results for the user to be analyzed and a confidence level corresponding to each of the medical data prediction results are calculated; Among the multiple medical data prediction results, a medical data analysis result for the user to be analyzed is generated based on the medical data prediction result with the highest confidence.
4. The medical data analysis method based on artificial intelligence as claimed in claim 1, It is characterized in that Generate a medical data analysis result for the user to be analyzed based on the symptom description entity normalized text and the inquiry behavior label through the response generation sub-model, including: If the inquiry behavior tag is a continued inquiry behavior tag, generating a symptom question text for the user to be analyzed based on the symptom description entity normalized text and the continued inquiry behavior tag through the reply generation sub-model; Obtaining a new symptom description text of the to-be-analyzed user's feedback on the symptom question text; The inquiry behavior prediction sub-model predicts an updated inquiry behavior label based on the symptom description entity normalized text, the new symptom description text, and the continued inquiry behavior label, wherein the updated inquiry behavior label is one of a continued inquiry behavior label and an ended inquiry behavior label; If the updated inquiry behavior label is a continue inquiry behavior label, the process of obtaining the new symptom description text fed back by the user to be analyzed regarding the symptom question text is performed again until the updated inquiry behavior label output by the inquiry behavior prediction sub-model is an end inquiry behavior label, and the medical data analysis results for the user to be analyzed are generated through the reply generation sub-model based on the symptom description entity normalized text, all new symptom description texts and the end inquiry behavior label.
5. The medical data analysis method based on artificial intelligence as claimed in claim 4, It is characterized in that If the inquiry behavior tag is a continued inquiry behavior tag, the reply generation sub-model generates a symptom question text for the user to be analyzed based on the symptom description entity normalized text and the continued inquiry behavior tag, including: If the inquiry behavior label is a continue inquiry behavior label, feature extraction is performed on the normalized text of the symptom description entity through the reply generation sub-model to obtain a second symptom description feature, and feature extraction is performed on the continue inquiry behavior label to obtain a second inquiry behavior feature; Performing feature fusion on the second symptom description feature and the second inquiry behavior feature to obtain a second medical data analysis feature; Based on the medical data analysis features, a plurality of recommended question texts for the user to be analyzed and confidence levels corresponding to the plurality of recommended question texts are calculated; Generate a symptom question text for the user to be analyzed based on the recommended question text with the highest confidence among the multiple recommended question texts; Predicting an updated inquiry behavior label based on the symptom description entity normalized text, the new symptom description text, and the continued inquiry behavior label by the inquiry behavior prediction submodel includes: Performing feature extraction on the symptom description entity normalized text and the new symptom description text through the reply generation sub-model to obtain a third medical data analysis feature, and performing feature extraction on the continue inquiry behavior label to obtain a third inquiry behavior feature; Performing feature fusion on the third medical data analysis feature and the third inquiry behavior feature to obtain an inquiry behavior prediction feature; Based on the query behavior prediction feature, an updated query behavior label is predicted.
6. The medical data analysis method based on artificial intelligence as claimed in claim 1, It is characterized in that The step of obtaining the initial symptom description text of the user to be analyzed includes: Obtaining the corpus text of the symptom description of the user to be analyzed; Feature words of symptom description are extracted from the corpus text to obtain the initial symptom description text.
7. The medical data analysis method based on artificial intelligence as claimed in claim 1, It is characterized in that After generating the medical data analysis result for the user to be analyzed based on the symptom description entity normalized text and the inquiry behavior label by the reply generation sub-model, the method further includes: Based on the medical data analysis result, determining a medical treatment text associated with the medical data analysis result in a preset medical information database; A medical treatment recommendation is generated based on the medical treatment text.
8. A medical data analysis device based on artificial intelligence, It is characterized in that include: An acquisition module, used to acquire the initial symptom description text of the user to be analyzed, and input it into a pre-trained language model, wherein the pre-trained language model includes an inquiry behavior prediction sub-model for predicting inquiry behavior and a response generation sub-model for predicting medical data analysis results; A first generation module is used to generate a symptom description entity normalized text based on the initial symptom description text through the response generation sub-model; A prediction module, used for predicting an inquiry behavior label based on the symptom description entity normalized text through the inquiry behavior prediction sub-model, wherein the inquiry behavior label is one of a continue inquiry behavior label and an end inquiry behavior label; The second generation module is used to generate a medical data analysis result for the user to be analyzed based on the symptom description entity normalized text and the inquiry behavior label through the response generation sub-model.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the steps of the artificial intelligence-based medical data analysis method as described in any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium storing a computer program. It is characterized in that When the computer program is executed by a processor, the steps of the artificial intelligence-based medical data analysis method as described in any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Interrogation processing method and device, equipment and storage medium
CN114300127A
Interrogation method and device, electronic equipment and storage medium
CN114579723A
Deep reinforcement learning-based inquiry method and system
CN114613489A
Session end prediction method and device, equipment and storage medium
CN116525093A
Consultation session-based auxiliary diagnosis method and apparatus, and computer device
WO2023024422A1
