Medication path decision reasoning system

By designing a medication route decision-making reasoning system and using large language models to automatically process medication route decisions, the problem of low efficiency of manual decision-making has been solved, and the effects of reducing labor costs and improving decision-making efficiency have been achieved.

CN118737368APending Publication Date: 2024-10-01SUN YAT SEN MEMORIAL HOSPITAL SUN YAT SEN UNIV +1
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410736474.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-07
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

In the existing technology, manual medication route decision-making involves a heavy human burden, high labor costs, and low decision-making efficiency.

Method used

Design a medication route decision-making reasoning system that receives query information and obtains medical knowledge data through the processing module, constructs AI prompt words and inputs them into the pre-trained medication route decision-making reasoning large language model, outputs the medication route decision-making reasoning results, and realizes automated decision-making. .

Benefits of technology

It reduces labor costs and burdens, improves decision-making efficiency, and provides personalized medication recommendations and drug interaction analysis results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118737368A_ABST
    Figure CN118737368A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a medication path decision reasoning system, which comprises a processing module used for executing at least one processing step according to a preset execution end condition; wherein the processing step comprises the steps of receiving query information and obtaining medical knowledge data related to the query information, and the query information comprises symptom description information; the construction module is used for obtaining AI cue word construction data based on the query information and the medical knowledge data in the at least one processing step, and constructing an AI cue word by filling the AI cue word construction data into a preset AI cue word template; and the reasoning module is used for inputting the AI cue word into a pre-trained drug use path decision reasoning big language model and outputting a drug use path decision reasoning result. According to the medication path decision reasoning system provided by the embodiment of the invention, automatic reasoning of medication path decision is realized, the labor cost and burden are reduced, and the decision efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a medication path decision reasoning system. Background Art

[0002] In recent years, various diseases have emerged one after another. People are paying more and more attention to their health, and the demand for medical treatment and medicine has increased accordingly, which undoubtedly increases the professional burden of medical staff. In the current medical field, with the rapid development of data science and the widespread application of artificial intelligence technology, the use of artificial intelligence technology to deal with medical-related problems has become a cutting-edge trend. Summary of the invention

[0003] The embodiment of the present invention provides a medication path decision reasoning system to solve the defects of manual medication path decision in the prior art, such as heavy manpower burden, high manpower cost and low decision-making efficiency, and realize automatic generation of medication path decision reasoning results, reduce manpower cost and burden, and improve decision-making efficiency.

[0004] An embodiment of the present invention provides a medication path decision reasoning system, comprising: a processing module, used to: execute at least one processing step according to a preset execution end condition; wherein the processing step includes receiving query information and obtaining medical knowledge data related to the query information, and the query information includes symptom description information; a construction module, used to: obtain AI prompt word construction data based on the query information and the medical knowledge data in the at least one processing step, and construct AI prompt words by filling the AI ​​prompt word construction data into a preset AI prompt word template; an inference module, used to: input the AI ​​prompt word into a pre-trained medication path decision reasoning large language model, and output the medication path decision reasoning result.

[0005] According to a medication path decision reasoning system provided by an embodiment of the present invention, before the processing module is used to execute a non-first processing step in the at least one processing step, the processing module is also used to: generate questions based on the query information and / or the medical knowledge data of the previously executed processing step, and display the questions.

[0006] According to a medication path decision reasoning system provided by an embodiment of the present invention, the preset execution end conditions include: the number of execution times of the processing step reaches the preset number of execution times; or, the query information in a certain processing step includes indication information requesting immediate return of results; or, the processing module does not receive the query information again for more than a preset time threshold.

[0007] According to a medication path decision reasoning system provided by an embodiment of the present invention, the processing module, when used to obtain medical knowledge data related to the query information, is specifically used to: vectorize the query information to obtain a first text vector; perform similarity matching on the first text vector and a second text vector corresponding to the medical knowledge data in a vector database to obtain at least one matching second text vector; sort the at least one second text vector according to the similarity with the first text vector to obtain the medical knowledge data related to the query information.

[0008] According to a medication path decision reasoning system provided by an embodiment of the present invention, the processing module, when used to vectorize the query information, is specifically used to: vectorize the query information through the semantic vector model BGE-M3; when the processing module is used to perform similarity matching between the first text vector and the second text vector corresponding to the medical knowledge data in the vector database, is specifically used to: use the vector search engine Zilliz to perform similarity matching between the first text vector and the second text vector corresponding to the medical knowledge data in the vector database.

[0009] According to a medication path decision reasoning system provided by an embodiment of the present invention, when the processing module is used to sort the at least one second text vector according to the similarity with the first text vector, it is specifically used to: calculate the first score of the second text vector based on the retrieval ranking model bge-reranker; calculate the second score of the second text vector based on the information retrieval algorithm BM25; calculate the relevance score of the second text vector based on the first score and the second score; and sort the at least one second text vector according to the relevance score.

[0010] According to a medication path decision reasoning system provided by an embodiment of the present invention, the correlation score is expressed as: Wherein, Score represents the relevance score, S bge represents the first score obtained based on the retrieval ranking model bge-reranker, S BM25 represents the second score obtained based on the information retrieval algorithm BM25, and Length(Sentence) represents the length of the second text vector.

[0011] According to a medication path decision reasoning system provided by an embodiment of the present invention, the system also includes a preprocessing module. Before the processing module executes the processing step, the preprocessing module is used to: obtain at least one medical data from medical guidelines, medical literature, medical information, drug instructions, adverse drug reaction information, clinical medical knowledge graphs and electronic medical records, perform data preprocessing and vectorization processing on the medical data, and then store it in the vector database.

[0012] According to a medication path decision reasoning system provided by an embodiment of the present invention, the reasoning module, when used to output medication path decision reasoning results, is specifically used to: output multiple medication path decision reasoning results sorted according to scores.

[0013] According to an embodiment of the present invention, a medication pathway decision reasoning system is provided, wherein the medication pathway decision reasoning results include personalized medication recommendations for patients and analysis results of drug interactions.

[0014] The medication pathway decision reasoning system provided by the embodiment of the present invention executes at least one processing step according to a preset execution end condition, the processing step including receiving query information and obtaining medical knowledge data related to the query information, the query information including symptom description information, obtaining AI prompt word construction data based on the query information and medical knowledge data in at least one processing step, constructing AI prompt words by filling the AI ​​prompt word construction data into a preset AI prompt word template, inputting the AI ​​prompt words into a pre-trained medication pathway decision reasoning large language model, and outputting the medication pathway decision reasoning result, thereby realizing automated reasoning of medication pathway decisions, reducing labor costs and burdens, and improving decision-making efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0016] Figure 1 It is a schematic diagram of the structure of the medication path decision reasoning system provided by an embodiment of the present invention.

[0017] Figure 2 It is a processing flow chart of the medication path decision reasoning system provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0018] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings 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.

[0019] The present invention aims to develop an intelligent system based on a large language model that can understand complex medical knowledge and provide personalized medication recommendations, thereby assisting doctors in making more accurate clinical decisions.

[0020] Figure 1 Schematic diagram of the structure of the medication path decision reasoning system provided by the embodiment of the present invention. Figure 1 As shown, the system includes a processing module 10, a construction module 20 and a reasoning module 30, wherein: The processing module 10 is used to: execute at least one processing step according to a preset execution end condition; wherein the processing step includes receiving query information and obtaining medical knowledge data related to the query information, and the query information includes symptom description information.

[0021] The query information may be input by a user based on an interface of the medication pathway decision system, wherein the query information includes symptom description information.

[0022] The processing module 10 executes at least one processing step of receiving query information and obtaining medical knowledge data related to the query information according to a preset execution end condition. In each execution of the above processing step, the query information and the medical knowledge data related to the query information may be different. The query information is determined according to the result of each user input, and the medical knowledge data related to the query information is related to the query information received in the execution of the processing step.

[0023] The construction module 20 is used to obtain AI prompt word construction data based on the query information and the medical knowledge data in the at least one processing step, and construct AI prompt words by filling the AI ​​prompt word construction data into a preset AI prompt word template.

[0024] The AI ​​prompt word construction data is obtained based on the query information and medical knowledge data in at least one processing step. The AI ​​prompt word construction data can be directly taken as the query information and medical knowledge data, or taken as data extracted based on the query information and medical knowledge data. The AI ​​prompt word (prompt) is constructed by filling the AI ​​prompt word construction data into a preset AI prompt word template.

[0025] In a large language model integration, a prompt refers to the input text or instruction provided to the model to guide the model to generate a specific type of response. This prompt can be a question, a description, a task instruction, or even a portion of the conversation history. By designing and optimizing the prompt, the model can be guided to generate expected responses or complete specific tasks. When integrating a large language model, a well-designed prompt can help the model understand the user's intent more accurately and generate more expected results. Therefore, designing a suitable prompt is a very important step for different application scenarios and needs.

[0026] Therefore, based on the application scenario of medication path decision reasoning, a suitable prompt template is first designed, and then the AI ​​prompt word is constructed by filling the AI ​​prompt word construction data into the preset AI prompt word template.

[0027] Edge computing can be used for data processing. The core of edge computing is to make data processing as close to the data source as possible, that is, to perform it on the local device or the edge of the network. In the prompt construction, the user's input data can be processed on the edge device. This helps to reduce network latency, improve response speed, and protect user privacy.

[0028] The reasoning module 30 is used to: input the AI ​​prompt words into a pre-trained medication path decision reasoning large language model, and output the medication path decision reasoning result.

[0029] Taking into account the development of modern natural language processing (NLP) technology, especially the outstanding performance of large language models in text understanding, generation and reasoning, the embodiment of the present invention adopts a large language model as the infrastructure. The pre-trained large language model learns rich language knowledge and semantic relationships through pre-training on large-scale text data, so that the model can be fine-tuned on specific tasks to adapt to specific application scenarios. By fine-tuning the pre-trained large language model based on the medication path decision reasoning task, a large language model for medication path decision reasoning is obtained. During the training process, the validation set is used to evaluate the model performance, and the model structure is adjusted according to the results, including adding or deleting layers, changing the order of layers, adjusting activation functions, etc. The model structure can be fine-tuned based on factors such as computational cost and preventing potential overfitting problems. In addition, hyperparameters such as learning rate, batch size, and number of iterations can be adjusted.

[0030] The training process of the medication path decision reasoning large language model includes: inputting different AI prompt words into the selected large language model, outputting the medication path decision reasoning results; adjusting the model parameters according to the difference between the medication path decision reasoning results and the expected results, gradually training the large language model, and completing the training of the medication path decision reasoning large language model after reaching the preset number of iterations. During the model training process, the BertViz interactive visualization tool can be introduced, and the attention matrix view of BertViz can be used to better understand how the model captures relationships in context.

[0031] After the model is trained, it is compared with real-world clinical cases to evaluate its performance in various medication path decision-making scenarios. In order to improve the accuracy and reliability of the model, knowledge graphs and expert systems can be introduced to combine structured medical knowledge with the learning ability of language models. This hybrid approach aims to improve the model's ability to understand complex medical concepts while keeping up with the latest medical research.

[0032] In actual use, the AI ​​prompt words output by the construction module 20 are input into the medication path decision reasoning large language model, and the medication path decision reasoning result is output.

[0033] The medication pathway decision reasoning system provided by the embodiment of the present invention executes at least one processing step according to a preset execution end condition, the processing step including receiving query information and obtaining medical knowledge data related to the query information, the query information including symptom description information, obtaining AI prompt word construction data based on the query information and medical knowledge data in at least one processing step, constructing AI prompt words by filling the AI ​​prompt word construction data into a preset AI prompt word template, inputting the AI ​​prompt words into a pre-trained medication pathway decision reasoning large language model, and outputting the medication pathway decision reasoning result, thereby realizing automated reasoning of medication pathway decisions, reducing labor costs and burdens, and improving decision-making efficiency.

[0034] According to a medication path decision reasoning system provided by an embodiment of the present invention, before being used to execute a non-first processing step in the at least one processing step, the processing module is also used to: generate questions based on the query information and / or the medical knowledge data of the processing step previously executed, and display the questions.

[0035] Effective AI prompt word construction data can be obtained in the form of questions and answers to improve the accuracy of AI prompt words.

[0036] When the above-mentioned processing steps of receiving query information and obtaining medical knowledge data related to the query information are executed more than twice, for the second and subsequent executions of the processing steps, the processing module 10 generates questions based on the query information and medical knowledge data of the previously executed processing steps, and displays the questions for the user to further input relevant information based on the displayed questions. Among them, named entity recognition based on the query information and medical knowledge data can be performed and recorded for question generation for multiple rounds of question answering.

[0037] For example, if the symptom description information in the query information input by the user includes "headache", and the medical knowledge data related to the symptom description information includes "lack of sleep", "sinusitis", and "cervical spondylosis", questions about whether the above diseases exist can be generated, such as "Are you lacking sleep? Do you have sinusitis or cervical spondylosis?" The medication pathway decision reasoning system provided by an embodiment of the present invention generates questions based on query information and / or medical knowledge data of previously executed processing steps, and displays the questions to guide users to conduct further effective inquiries, thereby improving the accuracy of AI prompt words and thus improving the accuracy of medication pathway decision reasoning results.

[0038] According to a medication path decision reasoning system provided by an embodiment of the present invention, the preset execution end conditions include: the number of execution times of the processing step reaches the preset number of execution times; or, the query information in a certain processing step includes indication information requesting immediate return of results; or, the processing module does not receive the query information again for more than a preset time threshold.

[0039] The execution termination condition of at least one processing step can be set as needed. For example, the execution termination condition of at least one processing step can be that the execution times of the processing step reaches a preset execution times, and the subsequent processing steps are no longer executed.

[0040] The execution termination condition of at least one processing step may also be that the query information in a certain processing step includes indication information requesting immediate result return, and the subsequent processing steps are no longer executed. The indication information requesting immediate result return can be preset, such as "OK, thank you", "Please output", etc., and can be specifically prompted to the user on the display interface.

[0041] The execution termination condition of at least one processing step may also be that the processing module does not receive query information again within a preset time threshold, etc.

[0042] The medication path decision reasoning system provided by the embodiment of the present invention improves the flexibility of the execution termination conditions of at least one processing step by setting the execution termination conditions of at least one processing step to include that the execution times of the processing step reaches a preset execution times, or the query information in a certain processing step includes indication information requesting immediate return of results, or the processing module does not receive query information again within a preset time threshold.

[0043] According to a medication path decision reasoning system provided by an embodiment of the present invention, the processing module 10, when used to obtain medical knowledge data related to the query information, is specifically used to: vectorize the query information to obtain a first text vector; perform similarity matching on the first text vector and a second text vector corresponding to the medical knowledge data in a vector database to obtain at least one matching second text vector; sort the at least one second text vector according to the similarity with the first text vector to obtain medical knowledge data related to the query information.

[0044] When the processing module 10 is used to obtain medical knowledge data related to the query information, the query information is vectorized to obtain a first text vector, and the first text vector is matched with a second text vector corresponding to the medical knowledge data in the vector database for similarity, and at least one second text vector that meets the similarity requirement (i.e., matches) is obtained by comparing the similarity between the first text vector and each second text vector. The higher the similarity between the first text vector and the second text vector, the stronger the correlation between the medical knowledge data corresponding to the second text vector and the query information. At least one second text vector that matches is sorted in descending order of the similarity between the second text vector and the first text vector, and the medical knowledge data corresponding to the second text vector is sorted according to the sorting order of at least one second text vector to obtain the medical knowledge data related to the query information.

[0045] The medication path decision reasoning system provided by the embodiment of the present invention obtains a first text vector by vectorizing the query information, performs similarity matching on the first text vector and a second text vector corresponding to the medical knowledge data in the vector database to obtain at least one matching second text vector, sorts the at least one second text vector according to the similarity with the first text vector to obtain medical knowledge data related to the query information, thereby improving the correlation between the medical knowledge data and the query information, and facilitating further improving the accuracy of medication path decision reasoning.

[0046] According to a medication path decision reasoning system provided by an embodiment of the present invention, the processing module 10, when used to vectorize the query information, is specifically used to: vectorize the query information keywords through the semantic vector model BGE-M3; when the processing module 10 is used to perform similarity matching between the first text vector and the second text vector corresponding to the medical knowledge data in the vector database, it is specifically used to: use the vector search engine Zilliz to perform similarity matching between the first text vector and the second text vector corresponding to the medical knowledge data in the vector database.

[0047] In urgent or time-sensitive medical scenarios, delayed decision-making can lead to serious consequences. The model structure and algorithm can be optimized to improve its operational efficiency, while high-performance computing resources can be used to shorten processing time.

[0048] The semantic vector model BGE-M3 is a multi-language, multi-granular, and multi-functional model. Its multi-language capability and long text processing capability enable it to adapt to a wider range of and more complex application scenarios in terms of text-to-quantity tasks. In the embodiment of the present invention, when the processing module 10 is used to vectorize keywords, the semantic vector model BGE-M3 is used to vectorize keywords.

[0049] The vector search engine Zilliz can greatly reduce the amount of calculation and search time by using its advanced index structure, high-dimensional data support and strong scalability. In the embodiment of the present invention, when the processing module 10 is used to perform similarity matching between the first text vector and the second text vector corresponding to the medical knowledge data in the vector database, the vector search engine Zilliz is used to perform similarity matching between the first text vector and the second text vector corresponding to the medical knowledge data in the vector database.

[0050] The medication path decision reasoning system provided in the embodiment of the present invention vectorizes keywords through the semantic vector model BGE-M3 and uses the vector search engine Zilliz to perform similarity matching between a first text vector and a second text vector corresponding to medical knowledge data in a vector database, thereby improving the accuracy of vectorization processing and improving the efficiency of similarity matching.

[0051] According to a medication path decision reasoning system provided by an embodiment of the present invention, the processing module 10, when used to sort the at least one second text vector according to the similarity with the first text vector, is specifically used to: calculate the first score of the second text vector based on the retrieval ranking model bge-reranker; calculate the second score of the second text vector based on the information retrieval algorithm BM25; calculate the relevance score of the second text vector based on the first score and the second score; and sort the at least one second text vector according to the relevance score.

[0052] bge-reranker uses a hierarchical self-distillation strategy to optimize reasoning efficiency and supports multilingual retrieval capabilities through model bases of different sizes (such as MiniCPM-2B, Gemma-2B, BGE-M3-0.5B). It learns patterns in the data set to better predict which results are most relevant, and is used to improve the accuracy of preliminary search or ranking results. BM25 is used in the field of information retrieval. It evaluates the relevance of documents to queries by considering term frequency (TF) and inverse document frequency (IDF). It can measure the importance of a term to a document, and reduce the unfair advantage of long documents over short queries by adjusting the saturation function and document length factor.

[0053] In terms of retrieval reranking of the vector library, the embodiment of the present invention uses bge-reranker and BM25 to simultaneously rerank the second text vectors searched out of the vector database to obtain a relevance score. The first score of the second text vector is calculated based on the retrieval ranking model bge-reranker, the second score of the second text vector is calculated based on the information retrieval algorithm BM25, the relevance score of the second text vector is calculated based on the first score and the second score, and at least one second text vector is sorted according to the relevance score.

[0054] BM25 provides a statistically based, query-related document scoring mechanism, while BGE-Reranker leverages the power of large language models to deeply understand the semantic information of documents, which helps to filter out the most relevant documents from a large number of retrieval results, thereby improving the accuracy of the scoring and fitting the two scores to achieve complementary working mechanisms of the two methods.

[0055] The medication path decision reasoning system provided by an embodiment of the present invention calculates the first score of the second text vector based on the retrieval ranking model bge-reranker, calculates the second score of the second text vector based on the information retrieval algorithm BM25, calculates the relevance score of the second text vector based on the first score and the second score, and sorts at least one second text vector according to the relevance score, thereby improving the accuracy of sorting at least one second text vector according to the similarity with the first text vector, thereby further improving the accuracy of the medication path decision reasoning result.

[0056] According to a medication path decision reasoning system provided by an embodiment of the present invention, the correlation score is expressed as: Wherein, Score represents the relevance score, S bge represents the first score obtained based on the retrieval ranking model bge-reranker, S BM25 represents the second score obtained based on the information retrieval algorithm BM25, and Length(Sentence) represents the length of the second text vector.

[0057] The relevance score of the second text vector is obtained by combining the first score obtained based on the retrieval ranking model bge-reranker and the second score obtained based on the information retrieval algorithm BM25. This combination method emphasizes the synergy of the two scores, increases the difference between the scores by taking the logarithm, and standardizes by the average sentence length, so that a high score indicates a higher match or relevance.

[0058] The medication path decision reasoning system provided in an embodiment of the present invention calculates the relevance score based on the provided relevance score calculation formula, further improving the accuracy of sorting at least one second text vector according to the similarity with the first text vector, thereby further improving the accuracy of the medication path decision reasoning result.

[0059] According to a medication path decision reasoning system provided by an embodiment of the present invention, the system also includes a preprocessing module. Before the processing module 10 executes the processing steps, the preprocessing module is used to: obtain at least one medical data from medical guidelines, medical literature, medical information, drug instructions, adverse drug reaction information, clinical medical knowledge graphs and electronic medical records, perform data preprocessing and vectorization processing on the medical data, and then store them in the vector database.

[0060] Collect at least one type of medical data including medical guidelines, medical literature, medical information, drug instructions, adverse drug reaction information, clinical medical knowledge graphs and electronic medical records, and perform data preprocessing on the collected medical data, such as data cleaning, standardization and conversion of text data, so that the model can effectively learn and extract information. Convert the preprocessed medical data (such as content including knowledge attributes such as question-answer pairs, evidence level, year, type, etc.) into vectors in a high-dimensional space to capture semantic similarities. Store the second text vector obtained from the medical data conversion into a vector database. The vector database includes second text vectors corresponding to different medical data.

[0061] The medication pathway decision reasoning system provided by the embodiment of the present invention obtains at least one medical data from medical guidelines, medical literature, medical information, drug instructions, adverse drug reaction information, clinical medical knowledge graphs and electronic medical records, performs data preprocessing and vectorization on the medical data, and then stores it in a vector database, thereby enriching the content of the vector database, improving the professionalism, and facilitating further improving the accuracy of medication pathway decision reasoning.

[0062] According to a medication path decision reasoning system provided by an embodiment of the present invention, the reasoning module 30, when used to output the medication path decision reasoning result, is specifically used to: output a plurality of medication path decision reasoning results sorted according to scores.

[0063] When the inference module 30 is used to output the medication path decision inference result, it can output multiple medication path decision inference results sorted by scores. Among them, the score of the medication path decision inference result is given by the medication path decision inference large language model according to the fit between the medication path decision inference result and the query information. The inference module 30 outputs multiple medication path decision inference results for user selection and reference.

[0064] The medication pathway decision reasoning system provided by the embodiment of the present invention further improves flexibility by outputting multiple medication pathway decision reasoning results sorted by scores.

[0065] According to an embodiment of the present invention, a medication pathway decision reasoning system is provided, wherein the medication pathway decision reasoning results include personalized medication recommendations for patients and analysis results of drug interactions.

[0066] The medication path decision reasoning large language model outputs the medication path decision reasoning results based on the AI ​​prompt words. The medication path decision reasoning results include personalized medication recommendations and drug interaction analysis results. Among them, personalized medication recommendations include medication regimens, dosages, drug precautions, etc.; drug interaction analysis results include information such as drug mixing contraindications.

[0067] Personalized cases can be embedded in the medication path decision reasoning results, for example, by embedding personalized cases in the form of a hidden small window at the end of the medication path decision reasoning results and providing a query entry.

[0068] The medication pathway decision reasoning system provided by the embodiment of the present invention enriches the content of the medication pathway decision reasoning results and improves the practicality by including the patient's personalized medication recommendations and drug interaction analysis results in the medication pathway decision reasoning results.

[0069] Figure 2 is a processing flow chart of the medication path decision reasoning system provided by an embodiment of the present invention. Figure 2 As shown in the figure, the processing flow of the medication path decision reasoning system includes: A medical knowledge storage platform is built, and after vectorization processing using the BGE-M3 semantic vector model, it is stored in a vector database, which includes multiple second text vectors corresponding to different medical knowledge data.

[0070] To train the large language model for medication path decision reasoning, the first step is to build a medical knowledge storage platform based on medical guidelines, medical literature, medical information, drug instructions, adverse drug reaction information, clinical medical knowledge graphs, and other massive knowledge, including multi-attribute and multi-dimensional data such as clinical question-answer pairs and knowledge evidence levels. The key links in building this medical knowledge storage platform include: Data preprocessing: The collected data needs to be cleaned and formatted, including removing irrelevant information, standardizing terms, and handling missing values.

[0071] Dynamic knowledge fusion and updating: Design adaptive algorithms to monitor newly published medical literature and research in real time, and automatically integrate the latest knowledge into the medical knowledge storage platform; adopt incremental learning methods and use the large language model of drug path decision reasoning to enable continuous learning without forgetting old knowledge.

[0072] After receiving the query information input by the user including the symptom description information, the query information is vectorized using the semantic vector model BGE-M3 to obtain a first text vector, and the first text vector is matched with a second text vector in a vector database using the vector search engine Zilliz to obtain at least one second text vector related to the first text vector.

[0073] The retrieval ranking model bge-reranker and the information retrieval algorithm BM25 are used to calculate the score of the second text vector, and the scores of the two are fitted to obtain the relevance score of the second text vector. At least one second text vector is sorted according to the relevance score of the second text vector, thereby obtaining sorted medical knowledge data. Based on the query information input by the user and the medical knowledge data related to the query information, AI prompt words are constructed to correct the user input, and the AI ​​prompt words are input into the medication path decision reasoning large language model (integrated in the AI ​​generation summary platform), and the medication path decision reasoning results are output and fed back to the user.

[0074] The medication pathway decision-making reasoning system provided in the embodiment of the present invention uses AI big model technology to search and reason the local medical drug knowledge base in combination with the input symptom information and personal information, and generates medication pathway decision-making reasoning results. Doctors make rational adjustments based on the reasoning results. The big model can help doctors avoid common medication errors, such as drug interactions, improper dosages, etc., and assist doctors or medical professionals in making more accurate and personalized treatment decisions.

[0075] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0076] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0077] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the embodiments of the present invention, rather than to limit them. Although the embodiments of the present invention have been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these 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 embodiments of the present invention.

Claims

1. A medication path decision reasoning system, characterized in that: include: A processing module, used to: execute at least one processing step according to a preset execution end condition; wherein the processing step includes receiving query information and acquiring medical knowledge data related to the query information, and the query information includes symptom description information; A construction module, used to: obtain AI prompt word construction data based on the query information and the medical knowledge data in the at least one processing step, and construct an AI prompt word by filling the AI ​​prompt word construction data into a preset AI prompt word template; The reasoning module is used to: input the AI ​​prompt word into a pre-trained medication path decision reasoning large language model, and output the medication path decision reasoning result.

2. The medication path decision reasoning system according to claim 1, characterized in that: Before the processing module is used to perform a non-first processing step in the at least one processing step, the processing module is further used to: Questions are generated based on the query information and / or the medical knowledge data of the processing steps previously performed, and the questions are presented.

3. The medication path decision reasoning system according to claim 1, characterized in that: The preset execution end conditions include: The number of executions of the processing step reaches a preset number of executions; or, The query information in a certain processing step includes instruction information requesting immediate return of results; or, The processing module does not receive the query information again after a preset time threshold.

4. The medication path decision reasoning system according to claim 1, characterized in that: When the processing module is used to obtain the medical knowledge data related to the query information, it is specifically used to: Performing vectorization processing on the query information to obtain a first text vector; Performing similarity matching between the first text vector and a second text vector corresponding to the medical knowledge data in a vector database to obtain at least one matching second text vector; The at least one second text vector is sorted according to the similarity with the first text vector to obtain medical knowledge data related to the query information.

5. The medication path decision reasoning system according to claim 4, characterized in that: When the processing module is used to vectorize the query information, it is specifically used to: vectorize the query information through the semantic vector model BGE-M3; When the processing module is used to perform similarity matching between the first text vector and the second text vector corresponding to the medical knowledge data in the vector database, it is specifically used to: use the vector search engine Zilliz to perform similarity matching between the first text vector and the second text vector corresponding to the medical knowledge data in the vector database.

6. The medication path decision reasoning system according to claim 4, characterized in that: When the processing module is used to sort the at least one second text vector according to the similarity with the first text vector, it is specifically used to: Calculate a first score for the second text vector based on a retrieval ranking model bge-reranker; Calculate a second score of the second text vector based on the information retrieval algorithm BM25; Calculate a relevance score of the second text vector based on the first score and the second score; The at least one second text vector is sorted according to the relevance score.

7. The medication path decision reasoning system according to claim 6, characterized in that: The relevance score is expressed as: Wherein, Score represents the relevance score, S bge represents the first score obtained based on the retrieval ranking model bge-reranker, S BM25 represents the second score obtained based on the information retrieval algorithm BM25, and Length(Sentence) represents the length of the second text vector.

8. The medication path decision reasoning system according to claim 4, characterized in that: The system further comprises a pre-processing module, and before the processing module executes the processing step, the pre-processing module is used to: Obtain at least one medical data from medical guidelines, medical literature, medical information, drug instructions, drug adverse reaction information, clinical medical knowledge graphs, and electronic medical records, perform data preprocessing and vectorization processing on the medical data, and then store them in the vector database.

9. The medication path decision reasoning system according to claim 1, characterized in that: When the reasoning module is used to output the reasoning result of the medication path decision, it is specifically used to: Output multiple medication path decision reasoning results sorted by scores.

10. The medication path decision reasoning system according to claim 1, characterized in that: The medication pathway decision reasoning results include personalized medication recommendations for patients and analysis results of drug interactions.

Citation Information

Cited By

  • Drug use decision-making method and system based on deep learning

    CN119557663A

  • Traditional Chinese medicine prescription data analysis method and device based on OCR (Optical Character Recognition) and large model

    CN119811698A

  • Path dynamic adjustment method based on medical decision

    CN120977612A