Verifiable medical question answering method based on hierarchical evidence retrieval and heterogeneity analysis
By constructing a hierarchical medical corpus space and analyzing evidence heterogeneity, the problem of ignoring differences in evidence hierarchy in existing medical question-and-answer systems is solved, thereby improving the verifiability and accuracy of explicit evidence hierarchy retrieval and answers.
Patent Information
- Application Number
- CN202611404652.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-10
- Publication Date
- 2026-11-27
AI Technical Summary
Existing medical question-and-answer systems ignore the differences in the levels of evidence among different medical documents during evidence retrieval, resulting in answers that rely excessively on individual case information, making it difficult to make full use of high-level evidence, and generating answers that contain cross-level evidence conflicts and inconsistent citations.
A hierarchical medical corpus space is constructed, and a two-stage search is performed at the case level and statement level. Evidence is retrieved independently through a hierarchical dedicated search index, and evidence heterogeneity analysis is conducted. Statements are revised and citations are configured to improve the structured analysis of evidence and the verifiability of responses.
It improves the citation quality and verifiability of medical Q&As while maintaining the accuracy of the answers, reducing cross-level evidence conflicts, and enhancing the overall consistency and citation integrity of the answers.
Smart Images

Figure CN123178558A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of retrieval enhancement generation technology, and in particular to a verifiable medical question-answering method based on hierarchical evidence retrieval and heterogeneity analysis, a computer-readable storage medium, and a computer device. Background Technology
[0002] In related technologies, with the development of large language model technology, medical question-answering systems have been gradually applied to tasks such as clinical case analysis, disease diagnosis reasoning, medical knowledge retrieval, and decision support. However, due to potential issues with the parameterized knowledge of large language models, such as insufficient timeliness, factual memory errors, or opaque reasoning bases, existing technologies typically employ retrieval-enhanced generation methods. This involves retrieving relevant evidence from external medical corpora and configuring citations for specific statements during answer generation to improve the factual verifiability of the responses.
[0003] Existing medical question-answering evidence retrieval methods typically place different types of medical literature, such as clinical guidelines, systematic reviews, randomized controlled trials, observational studies, case reports, and preclinical studies, into a unified candidate space, primarily ranking them based on the semantic similarity between the query text and document paragraphs. This approach essentially equates semantic relevance with evidentiary value, ignoring differences in clinical validation, applicability, and strength of evidence across different study designs. For case questions containing specific patient manifestations, semantic similarity retrieval tends to prioritize recalling case reports with highly similar symptoms but narrow applicability, reducing the coverage of evidence from clinical guidelines, systematic reviews, and randomized controlled trials. Analysis of existing citation generation methods shows that retrieval results based on a unified candidate space are significantly concentrated on case-level evidence. In the MedCaseReasoning dataset and Qwen3-8B model settings, among the citations generated by the seven baseline methods, evidence belonging to the case report, single-arm study, or pilot study level accounted for 46.5% to 90.9%, while higher-level evidence such as clinical guidelines, systematic reviews, meta-analyses, randomized controlled trials, and external validation studies accounted for only a maximum of 1.7%. This search bias causes medical responses to rely excessively on individual case information, making it difficult to fully utilize evidence with a broader clinical validation base.
[0004] Even when the retrieval phase covers multiple levels of evidence, existing generation methods typically treat all evidence as a collection of texts without hierarchical differences, lacking explicit modeling of consensus within the same level and conflicts between different levels of evidence. Evidence at different levels may support general medical relevance, limit applicability, or provide opposing patient-specific conclusions. Experimental analysis shows that among statements containing both supporting and opposing evidence, 54.6% of statements exhibited conflicts between different levels of evidence. Of these, 30.8% of the opposing evidence came from a higher level than the supporting evidence, 23.9% came from a lower level, and the remaining 45.3% occurred within the same level. Existing methods' local support judgments can identify supportive or opposing relationships between individual documents and statements, but they cannot determine how to summarize multiple pieces of evidence within the same level, nor how to weigh evidence from different levels. This may result in evidence with different clinical implications being directly merged into a single conclusion, forming medical statements that, while cited, are contradictory or insufficient to support the answer.
[0005] Furthermore, evidence obtained using complete case records as search queries may only be relevant to the case as a whole and not directly support every fine-grained statement in the response. Performing a case-level search only once during the response generation stage is insufficient to simultaneously meet the requirements of overall response coherence and statement-level citation accuracy. Therefore, a medical question-answering technology solution is needed that can explicitly distinguish the levels of medical evidence, perform case-level searches and statement-level cross-level searches separately, and conduct structured analysis of the consistency of evidence within the same level and the differences between evidence across levels. This would reduce evidence coverage bias caused by uniform semantic ranking, coordinate mutually supporting, limiting, or conflicting medical evidence, and jointly improve the consistency, completeness, and verifiability of response content and cited evidence. Summary of the Invention
[0006] This invention aims to at least partially solve one of the technical problems in the aforementioned technologies. To this end, one objective of this invention is to propose a verifiable medical question-answering method based on hierarchical evidence retrieval and heterogeneity analysis. This method constructs a hierarchical medical corpus space, performs two-stage retrieval at the case-level and statement-level, generates hierarchical evidence heterogeneity analysis results, and revises statements and configuration citations based on the analysis results. This transforms medical question-answering from local semantic matching into a retrieval, analysis, and answer calibration process oriented towards evidence structure, thereby improving citation quality and verifiability without sacrificing answer accuracy.
[0007] A second objective of this invention is to provide a computer-readable storage medium.
[0008] The third objective of this invention is to provide a computer device.
[0009] To achieve the above objectives, a first aspect of the present invention proposes a verifiable medical question-answering method based on hierarchical evidence retrieval and heterogeneity analysis, comprising the following steps: acquiring a medical corpus and establishing an evidence hierarchy that reflects the clinical verification degree and applicability of medical literature; constructing a hierarchy-specific retrieval index corresponding to each evidence hierarchy based on the evidence hierarchy; receiving input clinical cases and retrieving an initial candidate evidence set from the medical corpus that has been hierarchically divided and has constructed a hierarchy-specific retrieval index; inputting the clinical cases and the initial candidate evidence set into a draft generation model to generate a draft containing multiple medical statements and an initial citation set corresponding to each medical statement. The process involves: drafting a cited response; independently retrieving supplementary evidence from the dedicated search indexes of each level using each medical statement as the search query; obtaining statement-level supplementary evidence corresponding to each medical statement; merging the initial citation set with the statement-level supplementary evidence into a candidate evidence pool; performing evidence heterogeneity analysis on the candidate evidence pool to generate an evidence analysis file including intra-level evidence summaries, cross-level evidence relationships, revision actions for each medical statement, and suggested citation sets; revising each medical statement based on the evidence analysis file and configuring citation content matching the revised medical statement to obtain the revised final medical response and its corresponding citation information.
[0010] The verifiable medical question-answering method based on hierarchical evidence retrieval and heterogeneity analysis according to embodiments of the present invention has the following advantages: by constructing a hierarchical medical corpus space, performing two-stage retrieval at the case level and statement level, generating hierarchical evidence heterogeneity analysis results, and revising statements and configuring citations based on the analysis results, the medical question-answering process is transformed from local semantic matching into a retrieval, analysis, and answer calibration process oriented towards evidence structure, thereby improving citation quality and verifiability without sacrificing answer accuracy.
[0011] In addition, the verifiable medical question-answering method based on hierarchical evidence retrieval and heterogeneity analysis proposed in the above embodiments of the present invention may also have the following additional technical features: Optionally, an evidence hierarchy classification reflecting the clinical validation degree and applicability of medical literature is established, including: constructing a rule labeling function based on the source metadata, title, and abstract of each medical literature extracted from the medical corpus; assigning evidence hierarchy labels to medical paragraphs whose evidence hierarchy can be determined by the rule labeling function; obtaining a silver label training set; training a medical text classification model using the silver label training set; performing evidence hierarchy classification on medical paragraphs whose evidence hierarchy cannot be determined by rules; and obtaining the final evidence hierarchy of each paragraph.
[0012] Optionally, construct a level-specific retrieval index corresponding to each level of evidence, including: grouping medical paragraphs with the same final level of evidence into the same level set, establishing a level-specific retrieval index for semantic retrieval for each level, and saving the mapping relationship between document identifiers, paragraph identifiers, level identifiers and vector representations.
[0013] Optionally, an initial set of candidate evidence is retrieved from a medical corpus that has been hierarchically divided and has a hierarchical-specific retrieval index. This includes: using the clinical case as the query, retrieving the top K evidence paragraphs that are most relevant to the overall clinical case from the medical corpus that has been hierarchically divided and has a hierarchical-specific retrieval index, and obtaining the initial set of candidate evidence.
[0014] Optionally, the clinical case and the initial candidate evidence set are input into a draft generation model to generate a draft answer with citations, which includes multiple medical statements and a set of initial citations corresponding to each medical statement. This includes: inputting the clinical case and the initial candidate evidence set into the draft generation model, generating an initial medical answer with statement-level citation tags by the draft generation model, wherein the statement-level citation tags constitute the set of initial citations corresponding to each medical statement; parsing the initial medical answer into multiple medical statements, and establishing a mapping relationship between each medical statement and the initial citations to obtain the draft answer with citations, wherein each medical statement is associated with at least one initial citation or is marked as having no initial citation at present.
[0015] Optionally, supplementary evidence is independently retrieved from the dedicated retrieval indexes of each level to obtain statement-level supplementary evidence corresponding to each medical statement. This includes: sequentially using each medical statement as a retrieval query, accessing the dedicated retrieval indexes of each level respectively, retrieving the first c candidate evidence items at each level, and performing deduplication and filtering on the retrieval results to obtain the statement-level supplementary evidence.
[0016] Optionally, an evidence heterogeneity analysis is performed on the candidate evidence pool to generate an evidence analysis file including intra-level evidence summaries, cross-level evidence relationships, revision actions for each medical statement, and a suggested citation set. This includes: grouping the candidate evidence pool according to evidence levels; summarizing consensus among multiple pieces of evidence within each evidence level to obtain evidence summaries for each evidence level; comparing the relationships between evidence summaries from different evidence levels to determine whether they form consistency, complementarity, limitation of application, or substantial conflict, and obtaining cross-level evidence relationship results; determining the revision actions for each medical statement based on evidence coverage, evidence consistency, and the combination relationship of evidence at higher clinical validation levels; selecting evidence from the candidate evidence pool that can support the revised medical statement and reflect the main evidence level, and obtaining the suggested citation set; and combining the evidence summaries for each evidence level, the cross-level evidence relationship results, the revision actions for each medical statement, and the suggested citation set into the evidence analysis file.
[0017] Optionally, each of the medical statements is revised based on the evidence analysis archive, and citations matching the revised medical statements are configured, including: retaining medical statements with consistent evidence, deleting medical statements lacking sufficient evidence, replacing medical statements with incorrect conclusions, and adding limiting expressions to medical statements that are valid only under specific conditions or within the scope of evidence; and configuring citations matching the strength and consistency of evidence for each retained or revised medical statement.
[0018] To achieve the above objectives, a second aspect of the present invention provides a computer-readable storage medium storing a verifiable medical question-answering program based on hierarchical evidence retrieval and heterogeneity analysis. When executed by a processor, the verifiable medical question-answering program based on hierarchical evidence retrieval and heterogeneity analysis implements the verifiable medical question-answering method based on hierarchical evidence retrieval and heterogeneity analysis as described above.
[0019] To achieve the above objectives, a third aspect of the present invention provides a computer device including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, it implements the verifiable medical question-answering method based on hierarchical evidence retrieval and heterogeneity analysis as described above. Attached Figure Description
[0020] Figure 1 This is a flowchart illustrating a verifiable medical question-answering method based on hierarchical evidence retrieval and heterogeneity analysis according to an embodiment of the present invention. Figure 2 This is a schematic diagram of the overall process of a verifiable medical question-answering method based on hierarchical evidence retrieval and heterogeneity analysis according to a specific embodiment of the present invention. Detailed Implementation
[0021] Embodiments of the present invention are described in detail below, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain the present invention, and should not be construed as limiting the present invention.
[0022] To better understand the above technical solutions, exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the drawings, it should be understood that the present invention can be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided to enable a more thorough understanding of the present invention and to fully convey the scope of the invention to those skilled in the art.
[0023] To better understand the above technical solutions, the following will provide a detailed explanation of the technical solutions in conjunction with the accompanying drawings and specific implementation methods.
[0024] Figure 1 This is a flowchart illustrating a verifiable medical question-answering method based on hierarchical evidence retrieval and heterogeneity analysis according to an embodiment of the present invention. Figure 1 As shown, this verifiable medical question-answering method based on hierarchical evidence retrieval and heterogeneity analysis includes the following steps: S101, acquire a medical corpus and establish an evidence hierarchy that reflects the degree of clinical validation and scope of application of medical literature.
[0025] It should be noted that the medical corpus includes a diverse collection of medical literature, including clinical guidelines, systematic reviews, meta-analyses, randomized controlled trials (RCTs), cohort studies, case-control studies, narrative reviews, case reports, animal experiments, and in vitro studies. Each article includes a title, abstract, main text paragraphs, and source metadata.
[0026] As an example, an evidence hierarchy classification reflecting the clinical validation level and applicability of medical literature is established, including: constructing a rule labeling function based on the source metadata, title and abstract of each medical literature extracted from the medical corpus; assigning evidence hierarchy labels to medical paragraphs whose evidence hierarchy can be determined by the rule labeling function; obtaining a silver label training set; training a medical text classification model using the silver label training set; performing evidence hierarchy classification on medical paragraphs whose evidence hierarchy cannot be determined by rules; and obtaining the final evidence hierarchy of each paragraph.
[0027] In other words, a medical corpus C is acquired, and an evidence hierarchy set L = {L1, L2, L3, L4, L5, L6} is established. Lower-level numbers correspond to evidence with higher comprehensiveness and clinical validation, while higher-level numbers correspond to evidence with narrower applicability or stronger exploratory nature. A rule-based annotation function r is constructed based on the source metadata, title information, and abstract text of the medical literature. Medical paragraphs whose levels can be determined by the rules are labeled as their corresponding evidence levels, and a silver-label training set S = {(d, r(d)) | d ∈ C, r(d) ∈ L} is constructed. A medical text classification model is then trained using this silver-label training set. For medical passages whose level cannot be determined by rules, an evidence hierarchy classification is performed.
[0028] Specifically, the process begins by acquiring a medical corpus, segmenting each document into paragraphs, and preserving the correspondence between document type, title, abstract, source database, and main text paragraphs. Next, rule matching is performed based on source metadata, research type clues in the title and abstract, for example, paragraphs explicitly labeled as clinical guidelines, meta-analyses, or systematic reviews are assigned to L1, while paragraphs explicitly labeled as randomized controlled trials, external validation, or diagnostic accuracy studies are assigned to L2, thus forming a six-level rule mapping. Then, paragraphs whose evidence level can be determined by the rules are constructed into a silver-label training set, using the medical paragraph text as input and one of the six evidence levels as output to train the BioLinkBERT medical text classification model. Finally, for medical paragraphs not covered by the rules, their titles, abstracts, and paragraph text are input into the trained medical text classification model to obtain prediction results for the six levels, and the predicted level is selected as the final evidence level.
[0029] S102, Based on the division of evidence levels, construct a level-specific retrieval index corresponding to each evidence level.
[0030] As an example, constructing a level-specific retrieval index corresponding to each level of evidence includes: grouping medical paragraphs with the same final level of evidence into the same level set, establishing a level-specific retrieval index for semantic retrieval for each level, and saving the mapping relationship between document identifiers, paragraph identifiers, level identifiers, and vector representations.
[0031] In other words, six levels of dedicated search indexes are established based on the final level. This prevents medical literature at different levels of evidence from competing with each other in the same candidate space solely based on semantic similarity.
[0032] Specifically, vector indexes or other hierarchical indexes with semantic retrieval capabilities are established for each of the six evidence levels; the mapping relationship between document identifiers, paragraph identifiers, hierarchical identifiers, and vector representations is preserved.
[0033] S103 receives the input clinical cases and retrieves an initial set of candidate evidence from a medical corpus that has been hierarchically divided and has a hierarchical retrieval index.
[0034] As an example, retrieving an initial set of candidate evidence from a medical corpus that has been hierarchically divided and has a hierarchical-specific retrieval index includes: using clinical cases as the query, retrieving the top K evidence paragraphs that are most relevant to the overall clinical cases from the medical corpus that has been hierarchically divided and has a hierarchical-specific retrieval index, and obtaining an initial set of candidate evidence.
[0035] In other words, upon receiving the input clinical case x, an initial set of candidate evidence of number K, E0=Retrieve(x,C,K), is retrieved from the complete medical corpus C. This stage uses the complete case as the query to obtain medical evidence related to the patient's overall clinical performance, providing a global case context for generating a semantically coherent initial response.
[0036] Specifically, first, a clinical case x, including patient symptoms, medical history, examination results, and questions to be answered, is received, and a case query vector is generated using a text encoder; then, using the complete case as the query, the top K pieces of evidence are retrieved from all paragraphs of the medical corpus to form an initial candidate evidence set E0.
[0037] S104. Input the clinical cases and initial candidate evidence set into the draft generation model to generate a draft response with citations, which includes multiple medical statements and the initial citation set corresponding to each medical statement.
[0038] As one embodiment, clinical cases and an initial set of candidate evidence are input into a draft generation model to generate a draft answer with citations, which includes multiple medical statements and a set of initial citations corresponding to each medical statement. This includes: inputting clinical cases and an initial set of candidate evidence into the draft generation model; generating an initial medical answer with statement-level citation tags, wherein the statement-level citation tags constitute the set of initial citations corresponding to each medical statement; parsing the initial medical answer into multiple medical statements and establishing a mapping relationship between each medical statement and the initial citations to obtain a draft answer with citations, wherein each medical statement is associated with at least one initial citation or is marked as having no initial citation at present.
[0039] In other words, the input clinical cases and initial candidate evidence set are fed into the draft generation model to generate a cited response draft that includes multiple statements and an initial set of citations:
[0040] Specifically, first, clinical cases and initial candidate evidence are input into the draft generation model, which is then tasked with generating initial medical responses with statement-level citation tags. Each statement is associated with at least one initial citation or is marked as having no current initial citation. Next, the initial responses are parsed into m statements according to syntactic boundaries, citation boundaries, and medical semantic integrity, establishing a mapping between statements and initial citations.
[0041] S105, using each medical statement as a search query, independently retrieve supplementary evidence from the dedicated search index at each level, obtain statement-level supplementary evidence corresponding to each medical statement, and merge the initial citation set and statement-level supplementary evidence into a candidate evidence pool.
[0042] As an example, supplementary evidence is independently retrieved from the dedicated search indexes at each level to obtain statement-level supplementary evidence corresponding to each medical statement. This includes: using each medical statement as a search query, accessing the dedicated search indexes at each level respectively, retrieving the first c candidate evidence items at each level, and performing deduplication and filtering on the search results to obtain statement-level supplementary evidence.
[0043] In other words, each draft is presented separately. As a retrieval query, evidence is independently retrieved from six levels of dedicated indexes, with c candidate pieces of evidence obtained from each level. This step expands the coverage of statement-level evidence while maintaining independent retrieval quotas at each level, thus avoiding the crowding out of other evidence levels by highly similar case materials in the unified index.
[0044] Specifically, firstly, each statement is used as a query, and the six levels of dedicated indexes from I1 to I6 are accessed respectively, retrieving the first c candidate pieces of evidence at each level; then, paragraph deduplication, source deduplication, and invalid text filtering are performed on the search results, and the retained supplementary evidence is merged with the initial citation to form a candidate evidence pool for the corresponding statement. .
[0045] S106, Perform evidence heterogeneity analysis on the candidate evidence pool to generate an evidence analysis file that includes intra-level evidence summaries, cross-level evidence relationships, revision actions for each medical statement, and suggested citation sets.
[0046] As an example, an evidence heterogeneity analysis is performed on the candidate evidence pool to generate an evidence analysis file that includes intra-level evidence summaries, cross-level evidence relationships, revision actions for each medical statement, and a set of suggested citations. This includes: grouping the candidate evidence pool according to evidence levels; summarizing consensus on multiple pieces of evidence within each evidence level to obtain evidence summaries for each level; comparing the relationships between evidence summaries from different evidence levels to determine whether they form consistency, complementarity, limitation of application, or substantial conflict, thus obtaining cross-level evidence relationship results; determining revision actions for each medical statement based on evidence coverage, evidence consistency, and the combination relationship of evidence at higher clinical validation levels; selecting evidence from the candidate evidence pool that supports the revised medical statement and reflects the main evidence level, thus obtaining a set of suggested citations; and combining the evidence summaries for each evidence level, the cross-level evidence relationship results, the revision actions for each medical statement, and the set of suggested citations into an evidence analysis file.
[0047] In other words, the initial set of citations and supplementary evidence at the statement level are merged into a candidate evidence pool Uj, which includes clinical case x and draft statements. and candidate evidence pool Input the heterogeneity analysis model to obtain the evidence analysis file. .
[0048] Specifically, firstly, the candidate evidence pools for each statement are grouped according to the level of evidence, and the support, opposition, limitation, or irrelevance of evidence at each level to the current statement is analyzed. Then, within each level of evidence, the common conclusions, distinguishing conditions, and applicable scope of multiple pieces of evidence are summarized to form an evidence summary for that level. Then, the evidence summaries at the six levels are compared to determine whether there is consistency, complementarity, limitation of application, or substantial conflict between different levels, and cross-level relationship results are generated. Next, based on the combination of evidence coverage, evidence consistency, higher level of clinical validation evidence, and patient-specific evidence, the revision actions for the current statement are determined. Finally, evidence that directly supports the revised statement and reflects the main levels of evidence and necessary limiting conditions is selected from the candidate evidence pool to form a recommended citation set. .
[0049] S107, based on the evidence analysis archive, revise each medical statement and configure the citation content that matches the revised medical statement to obtain the revised final medical answer and its corresponding citation information.
[0050] As an example, each medical statement is revised based on the evidence analysis archive, and citations matching the revised medical statements are configured, including: retaining medical statements with consistent evidence, deleting medical statements lacking sufficient evidence, replacing medical statements with incorrect conclusions, and adding limiting expressions to medical statements that are valid only under specific conditions or within the scope of evidence; and configuring citations matching the strength and consistency of evidence for each retained or revised medical statement.
[0051] In other words, revision actions include four types: retention, deletion, replacement, and revision. All draft statements and their evidence analysis files are input into the response revision model. It outputs a revised final medical response and configures each retained or revised statement with citations that match its strength and consistency of evidence.
[0052] Specifically, firstly, the clinical case, original statement, hierarchical evidence summary, cross-hierarchical relationship, revision action, and suggested citation set are input into the response revision model. Statements with consistent evidence are retained; statements lacking sufficient evidence are deleted; statements with incorrect conclusion directions are replaced; and restrictive expressions are added to statements that are valid only for specific patient conditions or within the scope of evidence. Next, the revised response is checked for the correspondence between statements and citations to ensure that the citation position is adjacent to the supported statement, and the final medical response, citation document identifier, and optional evidence hierarchy information are output.
[0053] In summary, this application proposes a verifiable medical question-answering method based on hierarchical evidence retrieval and heterogeneity analysis. It explicitly encodes the strength and applicability of medical literature into operational evidence hierarchies, avoiding indiscriminate ranking of different research designs based solely on semantic similarity. A two-stage retrieval structure combining case-level initial retrieval and statement-level hierarchical retrieval is employed. The first stage maintains the global clinical context required for the answer, while the second stage improves the citation coverage and direct support of each fine-grained statement. In the statement-level retrieval stage, candidate evidence is independently retrieved from dedicated indexes at different evidence levels, preventing high-text-similarity materials such as case reports from crowding out evidence from guidelines, systematic reviews, and clinical trials. Simultaneously, it models intra-hierarchical evidence consensus and inter-hierarchical evidence differences, distinguishing between supporting, supplementary, limiting, and conflicting relationships, rather than compressing evidence from different levels into independent local support judgments. Based on the cross-hierarchical evidence analysis results, statement revision actions and suggested citation sets are simultaneously determined, forming a joint calibration mechanism between citation selection and answer content revision. We employ a weakly supervised corpus hierarchical approach that combines rule-based annotation with a medical text classification model to construct a searchable hierarchical evidence space in a large-scale medical corpus lacking human-grade evidence annotation.
[0054] It should be noted that this application uses CupCase and MedCaseReasoning as medical question-answering datasets. CupCase focuses on rare diseases and uncommon clinical manifestations, while MedCaseReasoning includes clinical cases and diagnostic inferences written by clinicians. Qwen3-8B, Qwen3.5-9B, and Gemma-4-E4B-it are used as answer generation models, and comparisons are made with PRG, PGC, SelfCite, MedCite, eTracer, ClinTrace, and RARR. Evaluation metrics include medical question-answering accuracy, citation recall, citation precision, and citation F1 score.
[0055] Experimental results show that this application achieved the highest citation recall and citation F1 score across all six dataset and model combinations, and the highest response accuracy in four settings. These results demonstrate that by using the hierarchy of medical evidence as the retrieval structure and revising responses based on cross-level evidence relationships, the citation completeness and factual relevance of medical responses can be improved.
[0056] As a specific embodiment, such as Figure 2 As shown, the method of this application includes the following three main processing stages: Phase 1: Medical Corpus Stratification. First, the medical corpus was divided into six levels of evidence according to the OCEBM evidence hierarchy: L1 for clinical guidelines and systematic reviews, L2 for randomized controlled trials and external validation studies, L3 for cohort studies and case-control studies, L4 for narrative reviews and summaries, L5 for case reports, and L6 for animal experiments and in vitro studies. Then, a BioLinkBERT classification model was trained using the Silver Set. The trained classifier automatically labeled the unlabeled corpus with the evidence levels, resulting in a hierarchically labeled medical corpus.
[0057] Phase Two: Hierarchical Evidence Retrieval. Using clinical cases (e.g., "45-year-old patient with fever, rash, eosinophilia, and recent antibiotic use") as the query, an initial case-level retrieval is performed to obtain initial candidate evidence. Simultaneously, the initial draft with citations output by the draft generation model is parsed into multiple medical statements, and supplementary evidence is independently retrieved from the dedicated indexes of the six evidence levels for each statement. The initial citations and statement-level supplementary evidence are merged to construct a candidate evidence pool corresponding to each statement.
[0058] Phase 3: Heterogeneity-guided analysis and revision. Clinical cases, medical statements to be revised, and their corresponding candidate evidence pools are input into the heterogeneity analysis model to generate a heterogeneity profile for each statement. This profile includes an assessment of the degree of support each level of evidence provides for the current statement (e.g., L1 to L3 are supportive, L4 is partially supportive, and L5 is insufficient evidence) and an overall consistency evaluation. Based on the analysis results, the model selects to retain (KEEP), replace (REPLACE), delete (DROP), or revise (REVISE) statements, performs corresponding revisions, configures updated citations, and outputs the final revised medical response with citations.
[0059] During the deployment phase, the system pre-completes the hierarchical structure of the medical corpus and the construction of six levels of dedicated indexes. For newly input clinical cases, the system first performs a case-level search and generates a draft with citations, then breaks the draft down into multiple medical statements, and performs a six-level independent search for each statement.
[0060] The system generates a statement analysis profile based on consensus within the same level of evidence and differences between different levels of evidence, and revises the responses and citations accordingly. The final output includes at least the revised medical responses and their corresponding citations; it can also output the evidence level to which each citation belongs, the type of statement revision, and evidence conflict warnings.
[0061] To implement the above embodiments, this invention also proposes a computer-readable storage medium storing a verifiable medical question-and-answer program based on hierarchical evidence retrieval and heterogeneity analysis. When executed by a processor, this verifiable medical question-and-answer program based on hierarchical evidence retrieval and heterogeneity analysis implements the verifiable medical question-and-answer functionality described above.
[0062] To implement the above embodiments, this invention also proposes a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, it implements the verifiable medical question-answering method based on hierarchical evidence retrieval and heterogeneity analysis as described above.
[0063] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0064] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0065] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0066] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0067] It should be noted that any reference signs placed between parentheses in the claims should not be construed as limiting the claims. The word "comprising" does not exclude the presence of components or steps not listed in the claims. The word "a" or "an" preceding a component does not exclude the presence of a plurality of such components. The invention can be implemented by means of hardware comprising several different components and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third, etc., does not indicate any order. These words can be interpreted as names.
[0068] Although preferred embodiments of the invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including both the preferred embodiments and all changes and modifications falling within the scope of the invention.
[0069] Obviously, those skilled in the art can make various modifications and variations to this invention without departing from its spirit and scope. Therefore, if these modifications and variations fall within the scope of the claims of this invention and their equivalents, this invention also intends to include these modifications and variations.
[0070] In the description of this invention, it should be understood that the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this invention, "a plurality of" means two or more, unless otherwise explicitly specified.
[0071] In this invention, unless otherwise explicitly specified and limited, the terms "installation," "connection," "linking," and "fixing," etc., should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral part; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication of two components or the interaction between two components. Those skilled in the art can understand the specific meaning of the above terms in this invention according to the specific circumstances.
[0072] In this invention, unless otherwise explicitly specified and limited, "above" or "below" the second feature can mean that the first feature is in direct contact with the second feature, or that the first feature is in indirect contact with the second feature through an intermediate medium. Furthermore, "above," "over," and "on top" of the second feature can mean that the first feature is directly above or diagonally above the second feature, or simply that the first feature is at a higher horizontal level than the second feature. "Below," "below," and "under" the second feature can mean that the first feature is directly below or diagonally below the second feature, or simply that the first feature is at a lower horizontal level than the second feature.
[0073] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the present invention. In this specification, the illustrative expressions of the above terms should not be construed as necessarily referring to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.
[0074] Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of the present invention.
Claims
1. A verifiable medical question-answering method based on hierarchical evidence retrieval and heterogeneity analysis, characterized in that, Includes the following steps: Acquire a medical corpus and establish an evidence hierarchy that reflects the clinical validation level and applicability of medical literature; Based on the aforementioned evidence hierarchy, a hierarchy-specific retrieval index is constructed for each evidence hierarchy. The system receives input clinical cases and retrieves an initial set of candidate evidence from a medical corpus that has been hierarchically divided and has a hierarchical retrieval index. The clinical cases and the initial set of candidate evidence are input into the draft generation model to generate a draft answer with citations, which includes multiple medical statements and the initial set of citations corresponding to each medical statement. Each medical statement is used as a search query to independently retrieve supplementary evidence from the dedicated search index of each level, obtain statement-level supplementary evidence corresponding to each medical statement, and merge the initial citation set and the statement-level supplementary evidence into a candidate evidence pool. Perform evidence heterogeneity analysis on the candidate evidence pool to generate an evidence analysis file that includes intra-level evidence summaries, cross-level evidence relationships, revision actions for each medical statement, and suggested citation sets; Based on the evidence analysis archive, each of the medical statements is revised, and citation content matching the revised medical statements is configured to obtain the revised final medical answer and its corresponding citation information.
2. The verifiable medical question-answering method based on hierarchical evidence retrieval and heterogeneity analysis as described in claim 1, characterized in that, Establish an evidence hierarchy that reflects the degree of clinical validation and scope of application of medical literature, including: Based on the source metadata, title and abstract of each medical document extracted from the medical corpus, a rule labeling function is constructed, and evidence level labels are assigned to medical paragraphs whose evidence level can be determined by the rule labeling function, and a silver label training set is obtained. The medical text classification model is trained using the silver label training set. Evidence level classification is performed on medical paragraphs whose evidence level cannot be determined by rules, and the final evidence level of each paragraph is obtained.
3. The verifiable medical question-answering method based on hierarchical evidence retrieval and heterogeneity analysis as described in claim 2, characterized in that, Construct level-specific search indexes for each level of evidence, including: Medical paragraphs with the same final level of evidence are grouped into the same level set. A level-specific retrieval index for semantic retrieval is established for each level, and the mapping relationship between document identifiers, paragraph identifiers, level identifiers and vector representations is saved.
4. The verifiable medical question-answering method based on hierarchical evidence retrieval and heterogeneity analysis as described in claim 1, characterized in that, An initial set of candidate evidence is retrieved from a medical corpus that has been hierarchically divided and has a hierarchical retrieval index, including: Using the clinical case as the query, the top K evidence paragraphs most relevant to the overall clinical case are retrieved from the medical corpus, which has been divided into evidence levels and constructed with a level-specific retrieval index, to obtain the initial candidate evidence set.
5. The verifiable medical question-answering method based on hierarchical evidence retrieval and heterogeneity analysis as described in claim 1, characterized in that, The clinical cases and the initial set of candidate evidence are input into the draft generation model to generate a draft response with citations, including multiple medical statements and an initial set of citations corresponding to each medical statement. The clinical cases and the initial candidate evidence set are input into the draft generation model, which generates an initial medical response with statement-level citation tags, wherein the statement-level citation tags constitute the initial citation set corresponding to each medical statement; The initial medical response is parsed into multiple medical statements, and a mapping relationship is established between each medical statement and the initial citation to obtain the citation-based response draft, wherein each medical statement is associated with at least one initial citation or is marked as having no current initial citation.
6. The verifiable medical question-answering method based on hierarchical evidence retrieval and heterogeneity analysis as described in claim 1, characterized in that, Supplementary evidence is independently retrieved from the dedicated search indexes for each of the aforementioned levels to obtain statement-level supplementary evidence corresponding to each of the aforementioned medical statements, including: Each of the aforementioned medical statements is used as a search query in sequence, and the dedicated search indexes of each level are accessed respectively. The first c candidate evidence items are retrieved at each level, and the search results are deduplicated and filtered before being used as supplementary evidence at the statement level.
7. The verifiable medical question-answering method based on hierarchical evidence retrieval and heterogeneity analysis as described in claim 1, characterized in that, Perform evidence heterogeneity analysis on the candidate evidence pool to generate an evidence analysis file that includes intra-level evidence summaries, cross-level evidence relationships, revision actions for each medical statement, and suggested citation sets, including: The candidate evidence pool is grouped according to the evidence level, and consensus is summarized for multiple pieces of evidence within each evidence level to obtain evidence summaries for each evidence level. Compare the relationships between evidence summaries at different levels of evidence to determine whether they are consistent, complementary, have limited scope of application, or are substantially conflicting, and obtain the results of cross-level evidence relationships. The revision actions for each medical statement are determined based on the degree of evidence coverage, the consistency of evidence, and the combination of evidence at a higher level of clinical validation. From the candidate evidence pool, select evidence that supports the revised medical statement and reflects the main evidence level to obtain the recommended citation set; The evidence summary of each evidence level, the cross-level evidence relationship results, the revision actions of each medical statement, and the recommended citation set are combined into the evidence analysis file.
8. The verifiable medical question-answering method based on hierarchical evidence retrieval and heterogeneity analysis as described in claim 1, characterized in that, Based on the aforementioned evidence analysis archive, each of the medical statements is revised, and citations matching the revised medical statements are configured, including: Medical statements that are consistent with the evidence should be retained, medical statements that lack sufficient evidence should be deleted, medical statements that have incorrect conclusions should be replaced, and medical statements that are valid only under specific conditions or within the scope of evidence should be given limiting expressions. Configure citations for each retained or revised medical statement that match its strength and consistency of evidence.
9. A computer-readable storage medium, characterized in that, It stores a verifiable medical question-answering program based on hierarchical evidence retrieval and heterogeneity analysis. When executed by a processor, the verifiable medical question-answering program based on hierarchical evidence retrieval and heterogeneity analysis implements the verifiable medical question-answering method based on hierarchical evidence retrieval and heterogeneity analysis as described in any one of claims 1-8.
10. 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 program, it implements the verifiable medical question-answering method based on hierarchical evidence retrieval and heterogeneity analysis as described in any one of claims 1-8.
