Method, device, computer equipment and storage medium for implementing medical consultation session
By presetting the symptom data table and corpus screening model, natural language questions are generated, which solves the problems of low accuracy of consultation and poor user experience of the intelligent dialogue system in traditional Chinese medicine consultation, and achieves higher accuracy of consultation and User experience.
Patent Information
- Application Number
- CN202110838720.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-23
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2041-07-23
AI Technical Summary
The existing intelligent dialogue system lacks attention to symptoms during traditional Chinese medicine consultation and cannot accurately judge similar symptoms, resulting in low consultation accuracy and poor user experience.
Determine the syndrome information through the preset symptom data table, use the pre-trained corpus screening model to screen out candidate corpus related to the symptoms, generate target questions and send them to the terminal to confirm the accuracy of the syndrome information and improve the accuracy of the consultation. and user understandability.
It improves the accuracy of consultation sessions and user experience, ensures that questions are expressed in natural language, and users can better understand questions and pay more attention to symptoms.
Smart Images

Figure CN113539520B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of artificial intelligence, and in particular relates to a method, device, computer equipment and storage medium for realizing a medical consultation session. Background Art
[0002] With the development of artificial intelligence technology and natural language processing technology, intelligent dialogue systems have broad development prospects. At present, intelligent dialogue systems are widely used in TCM consultation. However, the existing intelligent dialogue systems lack attention to symptoms in consultation, and cannot make correct judgments on similar symptoms to obtain accurate questions. In the process of implementing the consultation conversation, the intelligent dialogue system cannot conduct symptom-related consultations based on the symptoms input by the user, and the questions asked use professional medical terms that users cannot understand. It can be seen that the existing consultation conversation process has problems such as low consultation accuracy and poor user experience. Summary of the invention
[0003] The purpose of the present invention is to provide a method, device, computer equipment and storage medium for implementing a medical consultation session, so as to solve the problems of low medical consultation accuracy and poor user experience in the existing medical consultation session process.
[0004] A first aspect of an embodiment of the present application provides a method for implementing a medical consultation session, comprising:
[0005] Determine syndrome information from a preset stored symptom data table according to symptom information sent by the user through the terminal; wherein the syndrome information is used to characterize the disease category related to the symptom information;
[0006] Using a pre-trained corpus screening model, screening candidate corpora according to the syndrome information to obtain target corpora;
[0007] The target question generated based on the target corpus is sent to the terminal for loading; wherein the target question is used to confirm whether the syndrome corresponding to the target corpus is the same as the syndrome corresponding to the symptom information input by the user.
[0008] A second aspect of an embodiment of the present application provides a device for implementing a medical consultation session, including:
[0009] A determination module, used to determine syndrome information from a preset stored symptom data table according to the symptom information sent by the user through the terminal; wherein the syndrome information is used to characterize the disease category related to the symptom information;
[0010] A screening module, used to use a pre-trained corpus screening model to screen candidate corpora according to the syndrome information to obtain a target corpus; wherein the target corpus is used to screen out the candidate corpus with the largest attention weight value according to the symptom information among the candidate corpora;
[0011] A generation module is used to send a target question generated based on the target corpus to a terminal for loading; wherein the target question is used to confirm whether the syndrome corresponding to the target corpus is the same as the syndrome corresponding to the symptom information input by the user.
[0012] A third aspect of an embodiment of the present application provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the computer device, wherein when the processor executes the computer program, each step of the method for implementing a medical consultation session provided by the first solution is implemented.
[0013] A fourth aspect of an embodiment of the present application provides a storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, each step of the method for implementing a medical consultation session provided by the first solution is implemented.
[0014] The method, device, computer device and storage medium for implementing a medical consultation session provided by the embodiments of the present application have the following beneficial effects:
[0015] The embodiment of the present application provides a method for realizing a medical consultation conversation, by using a pre-trained corpus screening model to input syndrome information corresponding to the symptoms, where the syndrome information is used to characterize the disease category related to the symptom information. Because there is a mapping relationship between syndrome information and corpus, candidate corpus corresponding to the syndrome information can be obtained based on the syndrome information, and the candidate corpus with the highest input symptom weight, i.e., the target corpus, can be screened out from the candidate corpus. The target question is generated from the target corpus and sent to the terminal for loading. Because the corpus is a natural language expression of the syndrome, questions are generated using the corpus, and users can simply understand the questions, which brings about a good user experience, and improves the accuracy of the medical consultation conversation based on the symptoms. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0017] Figure 1 is a flowchart of a method for implementing a medical consultation session provided in an embodiment of the present application;
[0018] Figure 2 is a training flow chart of the corpus screening model provided in the embodiment of the present application;
[0019] Figure 3 It is a structural block diagram of a device for implementing a medical consultation session provided in an embodiment of the present application;
[0020] Figure 4 It is a structural block diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0021] In order to make the technical problems, technical solutions and beneficial effects to be solved by the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0022] The method for implementing a medical consultation session provided in the embodiment of the present invention can be applied to a computer device. The computer device executes each step of the method for implementing a medical consultation session provided in the embodiment of the present invention.
[0023] Reference Figure 1 As shown, Figure 1 A method for implementing a medical consultation session provided by an embodiment of the present application is shown, including:
[0024] S11: According to the symptom information sent by the user through the terminal, syndrome information is determined from a preset stored symptom data table; wherein the syndrome information is used to characterize the disease category related to the symptom information.
[0025] In step S11, the symptom information sent by the user through the terminal is the information obtained from the patient's description of his or her own symptoms during the consultation process, which may be information obtained based on the patient's language, image, video or audio input. The user sends the symptom information through the terminal, and the syndrome information corresponding to the symptom information is determined from the preset symptom data table based on the sent symptom information. From the determined syndrome information, the corpus corresponding to the syndrome is obtained through the attention mechanism in the corpus screening model, and candidate questions are generated based on the corpus, thereby improving the accuracy of the questions in the consultation process.
[0026] In this embodiment, the syndrome information is determined from the preset stored symptom data table according to the symptom data table that is manually sorted and pre-stored on the system. The symptom data table of symptoms and syndromes collects symptom data and establishes a symptom data table associated with symptoms and syndromes according to the mapping relationship between symptoms and syndromes. Syndrome is a general term for a series of related symptoms in traditional Chinese medicine. One symptom corresponds to at least one syndrome, and multiple symptoms correspond to the same syndrome.
[0027] Collecting symptom data is to aggregate the patient's symptoms. When a patient has multiple symptoms, it may correspond to multiple syndromes, so it is necessary to collect as much symptom data as possible, classify the symptoms, and establish a data table with a large number of symptoms. Symptom data can come from medical books, historical consultation records, or the Internet. Classifying the symptoms means putting similar symptom descriptions together, such as "headache" and "headache" which have the same expression, to facilitate the subsequent finding of the corresponding syndrome.
[0028] S12: Using a pre-trained corpus screening model, screen candidate corpora according to the syndrome information to obtain a target corpus; wherein the corpus screening model is trained by constructing training samples obtained based on the causes and symptom descriptions of syndrome samples.
[0029] In step S12, the pre-trained corpus screening model is a model pre-built and trained to screen candidate corpora from syndrome information. By obtaining training samples from the Internet, a mapping relationship between syndrome samples and corpus samples in the training samples is established. To build a corpus screening model, it is also necessary to learn the parameter weights of multimodal features, and learn the weights of corpus samples through the attention mechanism. Usually we use the transformer model, which allocates attention based on the attention mechanism. Through the encoder and decoder in the transformer model, the output of the encoder will be used as the input of the decoder, and the words are input to the encoder to obtain word vectors and learn the weights of word vectors. Specifically, the input word is converted into a word vector, and the query vector, key vector and value vector are obtained according to the word vector. By calculating the vector matrix of the query vector, key vector and value vector, the obtained vector matrix is transmitted to the decoder, and the decoder predicts the position of the word. The corpus screening model obtains the attention weights between sentences by inputting the sentence-level vector to obtain the feature representation of the context. Specifically, the target sentence is input into the corpus screening model to obtain the query vector of the target sentence, the key vector of each sentence in the context and the original value vector of each sentence in the context. The weights are normalized using the softmax function to obtain the attention weight of the target sentence and thus the feature representation of the context. The corpus sample contains multiple sentences describing the causes and symptoms of the syndrome sample. The target corpus is obtained from the candidate corpus using the corpus screening model to obtain the weights of the symptoms in the candidate corpus, and the candidate corpus with the highest symptom weight is selected as the target corpus.
[0030] See also Figure 2 , Figure 2 It is a training flow chart of the corpus screening model provided in the embodiment of the present application.
[0031] like Figure 2In one embodiment, the pre-trained corpus screening model in step S12 is trained in the following manner:
[0032] S100: Use crawler technology to crawl syndrome samples and corpus samples from network resources.
[0033] In step S100, crawler technology is used to crawl the TCM knowledge graph on the Internet, the syndrome and the description related to the syndrome in the TCM resource network, and the description related to the syndrome includes the cause of disease, pathogenesis, symptom description, differential diagnosis, etc. The corpus is a detailed description of the syndrome, and the corpus comes from the natural language expression of the syndrome on the Internet, medical books, etc. The corpus can be converted into questions and further questions can be asked to the patient. The questions generated according to the corpus are more natural, because the corpus is not limited to professional medical terms, and the patient can understand it, and it is no longer limited to generating questions based on the patient's symptoms. It can also generate questions based on the cause of disease, pathogenesis, etc. related to the syndrome, and it is more accurate to get close to the patient's possible disease from many aspects. Based on the above reasons, the crawler obtains syndrome samples and corpus samples, wherein the syndrome samples are used to establish mapping samples with the corpus samples, and the corpus samples are used to describe the cause of disease, symptom description and treatment plan, that is, the corpus samples include the cause of disease, symptom description and treatment plan of the syndrome.
[0034] S101: Establish a mapping relationship between the syndrome sample and the corpus sample to obtain a training sample. In step S101, the mapping relationship between the syndrome sample and the corpus sample is established. A syndrome will have a corresponding syndrome corpus, and there is a one-to-one correspondence between the syndrome sample and the corpus sample. The training sample composed of the syndrome sample and the corpus sample trains the corpus screening model. As described in Table 1 below, there are syndrome samples and corpus samples in Table 1, and there is a mapping relationship between the syndrome samples and the corpus samples in Table 1. Table 1 is an example of syndrome samples and corpus samples. For example, the syndrome sample of wind-cold cold syndrome in Table 1 corresponds to the cold caused by wind and cold, which occurs more frequently in autumn and winter. Its symptoms are body aches, nasal congestion and runny nose, and cough with sputum. Both Western medicine and Chinese medicine can be used for treatment, and diet therapy can also be used. Preventive measures are to keep warm, strengthen physical exercise, and improve immunity. Corpus samples, and according to the content of the corpus samples of wind-cold cold syndrome, the content of the corpus samples can be further classified. The content of the corpus sample of wind-cold cold syndrome can be divided into the cause of the disease, which is caused by the wind and cold, and occurs more frequently in autumn and winter; the symptom description, which includes body aches, nasal congestion, runny nose, and cough with sputum. Both Western and Chinese medicines can be used for treatment, and diet therapy and treatment plans can also be used. The preventive measures are to keep warm, strengthen physical exercise, and improve immunity.
[0035]
[0036]
[0037] Table 1
[0038] S102: Using the training samples to train a corpus screening model to obtain a pre-trained corpus screening model.
[0039] In step S102, the training of the corpus screening model using training samples is to obtain training samples by crawling the syndrome samples and corpus samples and establishing a mapping relationship between them, and to train the model's ability to screen corpus and learn the weight of the content of the corpus corresponding to the syndrome. The pre-trained corpus screening model is to receive syndrome data using the trained corpus screening model, obtain the corpus corresponding to the received syndrome, and then screen out the required corpus from the corpus.
[0040] As an embodiment of the present application, step S102 may include:
[0041] S1021: Perform feature representation on the corpus samples in the training samples to obtain the corpus samples after feature representation.
[0042] In step S1021, feature representation is performed on the corpus samples in the training samples, that is, feature representation is performed on the causes of disease, symptom descriptions, treatment plans, etc., contained in the contents of the corpus samples in the corpus samples.
[0043] As an embodiment of the present application, step S1021 may further include:
[0044] A context feature representation is established for the corpus sample in the training sample, or a feature representation is performed on the cause of disease, symptom description and treatment plan in the corpus sample at the position of the corpus sample.
[0045] In a specific embodiment, the context feature representation of the corpus sample in the training sample can be established by using the existing SBERT model, and the vector representation of each sentence in the corpus sample can be obtained through the encode function. The SBERT model is a semantic representation of text containing rich semantic information obtained by training with large-scale unlabeled corpus. The DeBERTa model can be used to represent the features of the causes of disease, symptom descriptions and treatment plans in the corpus sample at the positions of the corpus samples, and each sentence in the corpus sample is represented by two vectors that encode its content and position respectively. The linear matrix of the model is used to calculate the similarity with each sentence in the original corpus according to the content and relative position of the sentence, to predict the starting position of the causes of disease, symptom descriptions and treatment plans in the corpus sample, and improve the corpus screening model's understanding of traditional Chinese medicine knowledge.
[0046] S1022: Using the feature-represented corpus samples to train a corpus screening model, allowing the corpus screening model to screen candidate corpora based on the cause of the disease, the symptom description, and the attention weights of the treatment plan in the corpus samples to obtain a trained corpus screening model.
[0047] In step S1022, the corpus screening model performs candidate corpus screening based on the attention weights of the causes of disease, the symptom descriptions and the treatment plans in the corpus samples, by calculating the attention weights of the causes of disease, the symptom descriptions and the treatment plans in the corpus samples, and calculating the attention weights corresponding to each sentence in the corpus including the causes of disease, the symptom descriptions and the treatment plans. Since the attention weight represents the correlation between sentences, and the sum of the attention weights is 1, it can be equivalent to the probability of the sentence appearing at each position in the corpus, that is, the confidence. The greater the attention weight, the greater the correlation. The method for calculating the attention weight can use the softmax function, that is, the normalized exponential function, which presents the results of multi-classification in the form of probability.
[0048] As an embodiment of the present application, step S12 includes:
[0049] S121: Input syndrome information, and use the corpus to screen syndrome samples and corpus samples that have a mapping relationship in the model to obtain candidate corpus corresponding to the syndrome information.
[0050] In step S121, the input syndrome information is the syndrome information corresponding to the symptom information, and the input syndrome information uses the corpus screening model to obtain candidate corpus, because there are syndrome samples and corpus samples with a mapping relationship in the corpus screening model, as long as the syndrome information is input, the candidate corpus corresponding to the syndrome information can be obtained. The candidate corpus includes the cause of the input syndrome, pathogenesis, symptom description, differential diagnosis, etc.
[0051] S122: Calculate the attention weight of the symptom information input by the user in the candidate corpus, and obtain the attention weight of each symptom information in the candidate corpus.
[0052] In step S122, the attention weight of the symptom information in the candidate corpus is calculated to obtain the attention of the symptom in the corpus sentence and narrow the scope of the candidate corpus containing multiple different symptoms. Calculating the attention weight of the symptom information in the candidate corpus can also include using the corpus screening model to vectorize the candidate corpus sentence level and normalizing the weight using the softmax function to obtain the attention weight.
[0053] S123: Compare and obtain the attention weights, select the candidate corpus with the highest symptom information attention weight among the candidate corpora, and obtain the target corpus.
[0054] In step S123, the attention weights of the symptom information on the candidate corpus are compared, and the candidate corpus with the highest weight of the symptom information in the candidate corpus is selected. The higher the weight, the more relevant the symptom information is in the candidate corpus, so that the syndrome that best corresponds to the symptom can be obtained, and the most corresponding syndrome has a corresponding corpus, that is, the target corpus is obtained, and the target corpus is used to generate the target question. The target question generated according to the target corpus can be closer to the syndrome corresponding to the symptom input by the user.
[0055] S13: Sending the target question generated based on the target corpus to the terminal for loading; wherein, the target corpus is generated by deleting the same content in the target corpus and generating the target question according to the different content in the target corpus, and the target question is used to confirm whether the syndrome corresponding to the target corpus is the same as the syndrome corresponding to the symptom information input by the user.
[0056] In step S13, the target question is generated based on the content of the target corpus, and the content of the target corpus includes the relevant description of the corresponding syndrome of the target corpus, including but not limited to the cause of disease, pathogenesis, symptom description, differential diagnosis. The target question is generated based on the cause of disease, pathogenesis, symptom description, differential diagnosis and other contents, and the language of the generated target question is vivid and natural. When generating the target question, the multiple causes of disease, pathogenesis, symptom description, and differential diagnosis in the content of the target corpus are screened. The target corpus is generated by deleting the same content in the target corpus and generating the target question based on the difference content in the target corpus. For example, there are multiple cough contents in the symptom description of the target corpus. When generating the target question, multiple coughs are deleted and only one symptom description about cough is retained to generate the target question. The target question is also generated based on syndrome, because the symptoms input by the user have corresponding syndromes, and there are multiple symptoms in the corpus corresponding to the syndrome. The user extracts the target corpus based on the multiple symptoms in the corpus to obtain the target corpus and then obtain the target question. The generated target question is sent to the terminal for loading, and the user answers based on the target question loaded by the terminal.
[0057] As an embodiment of the present application, step S13 may include:
[0058] The same contents in the target corpus are deleted to obtain a processed target corpus; a target question is generated according to the content of the processed target corpus; and the target question is sent to the terminal for loading.
[0059] In a specific embodiment, the same content in the target corpus is deleted because the target corpus contains the relevant description of the corresponding syndrome, including the cause of disease, pathogenesis, symptom description, and differential diagnosis. Because the target corpus is obtained based on the symptoms input by the user, the target corpus contains the same symptom description. The same content in the target corpus, including but not limited to the cause of disease, pathogenesis, symptom description, and differential diagnosis, is deleted, leaving only the content of different target corpora. The target questions generated based on the content of the remaining target corpora have a more natural description because they are not limited to symptom descriptions, and questions about the cause of disease, pathogenesis, etc. related to the patient's symptoms are also asked. The target questions are sent to the terminal for loading, and the patient can conduct a new round of consultation sessions based on the questions displayed on the terminal. Answer the target questions and enter new symptoms to obtain the next round of target questions, and finally get the questions that are closest to the patient's symptoms.
[0060] As an implementation method of this embodiment, after step S13, the following method is further included:
[0061] Receive new symptom information input by a user through a terminal, wherein the new symptom information is input by the user according to a target problem loaded on the terminal; collect a set of symptom information input by all terminals, wherein the set of symptom information includes symptom information previously sent by the user through the terminal and the new symptom information; select the set of symptom information to obtain a subset of symptom information, wherein the subset of symptom information is the symptom information with the highest confidence in the set of symptom information; generate a diagnostic question based on the subset of symptom information using an NLG algorithm, wherein the diagnostic question is used to narrow the range of optional symptoms based on the subset of symptom information to obtain a more precise question.
[0062] In one embodiment, the target question is displayed on the terminal, and the user conducts a new round of consultation session according to the target question displayed on the terminal. The terminal receives information input by the user, and the information includes new symptom information. Based on the symptom information obtained in the previous round and this round, a symptom information set including the new symptom information is obtained. To generate diagnostic questions, the corpus screening model is also used to extract the corresponding syndrome information set in the symptom information set to obtain the corresponding corpus set, and then calculate the corpus with high weight in the corpus set, and obtain the subset of symptom information contained in the corpus, and generate diagnostic questions based on the subset of symptom information. The obtained diagnostic questions narrow the range of optional symptoms and are more accurate and closer to the patient's symptoms.
[0063] Corresponding to the above method embodiment, the embodiment of the present invention also provides a device 40 for implementing a medical consultation session, such as Figure 3 As shown, the device may include the following modules:
[0064] The determination module 10 is used to determine the syndrome information from the preset stored symptom data table according to the symptom information sent by the user through the terminal; wherein the syndrome information is used to characterize the disease category related to the symptom information;
[0065] A screening module 20 is used to use a pre-trained corpus screening model to screen candidate corpora according to the syndrome information to obtain a target corpus; wherein the target corpus is used to screen out the candidate corpus with the largest attention weight value according to the symptom information among the candidate corpora;
[0066] The generating module 30 is used to send the target question generated based on the target corpus to the terminal for loading; wherein the target question is used to confirm whether the syndrome corresponding to the target corpus is the same as the syndrome corresponding to the symptom information input by the user.
[0067] It should be understood that Figure 3 In the structural block diagram of the device for implementing the consultation session shown in FIG. Figure 1 and Figure 2 The steps in the corresponding embodiments, and for Figure 1 and Figure 2 Each step in the corresponding embodiment has been explained in detail in the above embodiment. Figure 1 and Figure 2 as well as Figure 1 and Figure 2 The relevant descriptions in the corresponding embodiments are not repeated here.
[0068] Figure 4 is a structural block diagram of a computer device provided by another embodiment of the present application. Figure 4 As shown, the computer device 50 of this embodiment includes: a processor 51, a memory 52, and a computer program 53 stored in the memory 52 and executable on the processor 51, such as a program for implementing the medical consultation method. When the processor 51 executes the computer program 53, the steps in each embodiment of the medical consultation method are implemented, such as Figure 1 Alternatively, the processor 51 implements the above when executing the computer program 53 Figure 3 The functions of each module in the corresponding embodiment are, for example, Figure 3 For details on the functions of modules 10 to 30, please refer to Figure 3 The relevant descriptions in the corresponding embodiments are not repeated here.
[0069] Exemplarily, the computer program 53 may be divided into one or more modules, which are stored in the memory 52 and executed by the processor 51 to complete the present application. The one or more modules may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program 53 in the computer device 50. For example, the computer program 53 may be divided into a determination module, a screening module, and a generation module, and the specific functions of each module are as described above.
[0070] The turntable device may include, but is not limited to, a processor 51 and a memory 52. Those skilled in the art will appreciate that Figure 4 It is only an example of the computer device 50 and does not constitute a limitation of the computer device 50. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the turntable device may also include input and output devices, network access devices, buses, etc.
[0071] The processor 51 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0072] The memory 52 may be an internal storage unit of the computer device 50, such as a hard disk or memory of the computer device 50. The memory 52 may also be an external storage device of the computer device 50, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the computer device 50. Further, the memory 52 may also include both an internal storage unit of the computer device 50 and an external storage device. The memory 52 is used to store the computer program and other programs and data required by the turntable device. The memory 52 may also be used to temporarily store data that has been output or is to be output.
[0073] In one embodiment, a storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method for implementing a medical consultation session in the above embodiment is implemented.
[0074] 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 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 the present application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may 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).
[0075] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person 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 application, and should all be included in the protection scope of the present application.
Claims
1. A method for implementing a medical consultation session, characterized in that: include: Determining syndrome information from a preset stored symptom data table according to symptom information sent by the user through the terminal; Wherein, the syndrome information is used to characterize the disease category related to the symptom information; Using a pre-trained corpus screening model, candidate corpus is screened according to the syndrome information to obtain the target corpus; wherein the corpus screening model is trained by training samples constructed based on the causes and symptom descriptions of syndrome samples; the pre-trained corpus screening model is trained in the following manner, including: Use crawler technology to crawl syndrome samples and corpus samples from network resources; Establishing a mapping relationship between the syndrome sample and the corpus sample to obtain a training sample; Using the training samples to train the corpus screening model to obtain a pre-trained corpus screening model; Sending the target question generated based on the target corpus to the terminal for loading; wherein the target corpus is generated by deleting the same content in the target corpus and generating the target question according to the difference content in the target corpus, and the target question is used to confirm whether the syndrome corresponding to the target corpus is the same as the syndrome corresponding to the symptom information input by the user; The corpus samples are used to describe the causes of disease, symptom descriptions, and treatment plans; The method of training the corpus screening model using the training samples to obtain a pre-trained corpus screening model includes: Perform feature representation on the corpus samples in the training samples to obtain corpus samples after feature representation; The corpus screening model is trained using the corpus samples after the feature representation, and the corpus screening model is made to screen candidate corpuses based on the cause of the disease, the symptom description, and the attention weight of the treatment plan in the corpus sample to obtain a trained corpus screening model; The method of using a pre-trained corpus screening model to screen candidate corpus according to the syndrome information to obtain a target corpus includes: Input syndrome information, and use the corpus to screen syndrome samples and corpus samples that have a mapping relationship in the model to obtain candidate corpus corresponding to the syndrome information; Calculating the attention weight of the symptom information input by the user in the candidate corpus, and obtaining the attention weight of each symptom information on the candidate corpus; The attention weights are obtained by comparison, and the candidate corpus with the highest attention weight of the symptom information among the candidate corpus is selected to obtain the target corpus.
2. The method according to claim 1, characterized in that The step of performing feature representation on the corpus samples in the training samples to obtain the corpus samples after feature representation includes: Establish context feature representation for corpus samples in training samples; Alternatively, the cause of the disease, the symptom description and the treatment plan in the corpus sample are represented by features at the position of the corpus sample.
3. The method according to claim 1, characterized in that After the step of sending the target question generated based on the target corpus to the terminal for loading, the method further includes: receiving new symptom information input by a user through a terminal, wherein the new symptom information is input by the user according to a target problem loaded on the terminal; Collecting a set of symptom information input by all terminals, the set of symptom information including symptom information previously sent by users through the terminals and the new symptom information; Selecting the symptom information set to obtain a subset of symptom information, wherein the subset of symptom information is symptom information with the highest confidence in the symptom information set; A NLG algorithm is used to generate a diagnostic question based on the subset of the symptom information, and the diagnostic question is used to narrow the range of optional symptoms based on the subset of the symptom information to obtain a more accurate question.
4. A device for implementing a medical consultation session, characterized in that: include: A determination module, used to determine syndrome information from a preset stored symptom data table according to the symptom information sent by the user through the terminal; wherein the syndrome information is used to characterize the disease category related to the symptom information; A screening module is used to use a pre-trained corpus screening model to screen candidate corpora according to the syndrome information to obtain a target corpus; wherein the corpus screening model is trained based on training samples constructed based on the causes and symptom descriptions of syndrome samples; the pre-trained corpus screening model is trained in the following manner, including: Use crawler technology to crawl syndrome samples and corpus samples from network resources; Establishing a mapping relationship between the syndrome sample and the corpus sample to obtain a training sample; Using the training samples to train the corpus screening model to obtain a pre-trained corpus screening model; A generating module, used for sending a target question generated based on the target corpus to a terminal for loading; wherein the target corpus is generated by deleting the same content in the target corpus and generating the target question according to the difference content in the target corpus, and the target question is used to confirm whether the syndrome corresponding to the target corpus is the same as the syndrome corresponding to the symptom information input by the user; The corpus samples are used to describe the causes of disease, symptom descriptions, and treatment plans; The method of training the corpus screening model using the training samples to obtain a pre-trained corpus screening model includes: Perform feature representation on the corpus samples in the training samples to obtain corpus samples after feature representation; The corpus screening model is trained using the corpus samples after the feature representation, and the corpus screening model is made to screen candidate corpuses based on the cause of the disease, the symptom description, and the attention weight of the treatment plan in the corpus sample to obtain a trained corpus screening model; The method of using a pre-trained corpus screening model to screen candidate corpus according to the syndrome information to obtain a target corpus includes: Input syndrome information, and use the corpus to screen syndrome samples and corpus samples that have a mapping relationship in the model to obtain candidate corpus corresponding to the syndrome information; Calculating the attention weight of the symptom information input by the user in the candidate corpus, and obtaining the attention weight of each symptom information on the candidate corpus; The attention weights are obtained by comparison, and the candidate corpus with the highest attention weight of the symptom information among the candidate corpus is selected to obtain the target corpus.
5. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 3 are implemented.
6. A storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 3 are implemented.
