A drug repositioning method and system based on multi-source multi-modal and multi-agent

By employing a multi-source, multi-modal, and multi-agent drug relocation method, the challenge of multimodal data processing in immunotherapy for advanced non-small cell lung cancer was solved, enabling reliable drug relocation under incomplete data conditions and ensuring the safety and reliability of candidate drugs.

CN123183064APending Publication Date: 2026-11-27SHANXI MEDICAL UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611409139.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-11
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing technologies for immunotherapy of advanced non-small cell lung cancer suffer from several problems, including over-reliance on multimodal data, difficulty in tracing the candidate drug generation chain, inability to dynamically compensate for missing data, lack of a safe exit mechanism when different pieces of evidence conflict, and the potential for medical illusions to arise from large, monolithic models.

Method used

A drug relocation method based on multi-source, multi-modal, and multi-agent approaches is adopted. By acquiring multi-source, multi-modal data, multiple specialized agents are used to generate and verify structured evidence reports, construct an immune resistance status map, and generate a candidate set of drug relocation through drug generation agents, coordination agents, and safety review agents. The method includes dynamic weight calculation and safety verification processes to ensure the reliability and safety of candidate drugs.

Benefits of technology

Under incomplete data conditions, it can output drug repositioning candidate information with source index, uncertainty and manual verification status, which improves the reliability and safety of drug repositioning, solves the problems of data missing and evidence conflict, and reduces the occurrence of medical illusion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123183064A_ABST
    Figure CN123183064A_ABST
Patent Text Reader

Abstract

The application provides a drug repositioning method and system based on multi-source multi-modal and multi-agent, which comprises the following steps: acquiring multi-source multi-modal data of a target object; performing data processing on the multi-source multi-modal data to generate a plurality of evidence objects with unique evidence identifiers; distributing the evidence objects to a plurality of specialist agents and controlling each specialist agent to output a structured evidence report; verifying whether the evidence identifier referenced by each discovery item belongs to the set of evidence identifiers allowed to be read by the corresponding agent; constructing an immune drug resistance state map and an evidence phenotype vector of the target object according to the verified structured evidence report; controlling a drug generation agent to call at least two models to generate a drug repositioning candidate set; calculating a comprehensive score and a conflict index of the candidate drug; controlling a safety review agent to perform verification; and outputting drug repositioning candidate information according to the verification and validation results of the safety review agent.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the fields of medical artificial intelligence, bioinformatics, computer-aided drug development and precision oncology, and more specifically, to a drug relocation method and system based on multi-source, multi-modal and multi-agent technologies. Background Technology

[0002] Immune checkpoint inhibitors have become an important treatment for advanced non-small cell lung cancer, but patients exhibit significant heterogeneity in their response to immunotherapy. Some patients show primary resistance at the beginning of treatment, while others progress after achieving a brief remission. Existing clinical biomarkers typically only cover one aspect of tumor cells or the immune microenvironment, making it difficult to fully reflect the drug resistance state resulting from the combined effects of tumor burden, spatial immune rejection, cellular composition, signaling pathways, host status, and previous treatments.

[0003] Drug retargeting can shorten the path from candidate discovery to validation by finding new applicable scenarios for existing drugs. Existing molecular subtyping and reverse transcriptional regulation methods typically first classify disease subtypes based on transcriptome data, and then use differentially expressed genes and drug-gene interaction databases to screen for drugs that can reverse the abnormal expression direction. These methods provide candidate drug discovery ideas for drug-resistant subgroups, but their inputs are mostly concentrated on a single omics, and candidate generation depends on fixed thresholds and a single database query, making it difficult to handle common real-world problems such as missing medical records, imaging, pathology, and omics data, temporal inconsistencies, and conflicting evidence. Summary of the Invention

[0004] In view of this, the present invention discloses a drug relocation method and system based on multi-source multimodal and multi-agent, which can at least solve the problems of existing technologies such as strong dependence on complete paired multimodal data, difficulty in tracing the candidate drug generation chain, inability to dynamically compensate when data is missing, lack of safe exit mechanism when different evidences conflict, and easy generation of medical illusions by single large models.

[0005] Specifically, the present invention is achieved through the following technical solutions:

[0006] This application proposes a drug relocation method based on multi-source, multi-modal, and multi-agent approaches. This method is used to predict the immunotherapy response in advanced non-small cell lung cancer. The method includes:

[0007] Acquire multi-source multimodal data of the target object, wherein the multi-source multimodal data includes drug perturbation data and medical knowledge data, and the multi-source multimodal data also includes at least two types of patient data from clinical text data, medical imaging data, digital pathology data and omics data;

[0008] The multi-source, multi-modal data is processed to generate multiple evidence objects with unique evidence identifiers. Each evidence object includes a modality identifier, entity identifier, observation value, direction identifier, quality score, source identifier, and original location index.

[0009] The evidence objects are distributed to multiple specialized intelligent agents, and each specialized intelligent agent is controlled to output a structured evidence report. The structured evidence report includes an agent identifier, an output identifier, a state, a discovery item, a cited evidence identifier, an uncertainty, and a confidence level.

[0010] Verify whether the evidence identifier referenced by each discovery item belongs to the set of evidence identifiers that the corresponding agent is allowed to read, and isolate the structured evidence reports that fail verification;

[0011] Based on the validated structured evidence reports, an immune resistance status map and evidence phenotype vector for the target object are constructed. The immune resistance status map includes patient nodes, time nodes, immune status nodes, inhibitory microenvironment nodes, signaling pathway nodes, target nodes, and drug nodes. The evidence phenotype vector includes an immune activation axis, an inhibitory microenvironment axis, a genomic background axis, and a morphological background axis.

[0012] The control agent for drug generation invokes at least two of the following: a drug-disease heterogeneous association network model, a disease expression signature and drug perturbation signature reverse matching model, and a drug target and drug resistance mechanism node network proximity model, to generate a candidate set of drug relocation.

[0013] The control and coordination agent determines dynamic weights based on the availability, quality score, and calibration parameters of each modality, summarizes supporting evidence, opposing evidence, and uncertainty information for candidate drugs, and calculates the overall score and conflict index of candidate drugs.

[0014] The control safety review agent performs checks on indication boundaries, contraindications, organ function limitations, drug interactions, and evidence consistency, and verifies the directional consistency between candidate drugs and target immune resistance mechanisms through a counterfactual verification process;

[0015] Based on the verification and validation results of the security review agent, drug repositioning candidate information is output. The drug repositioning candidate information includes candidate drug ranking, corresponding target or pathway, sub-score, supporting evidence identifier, opposing evidence identifier, risk identifier, confidence level, and operating status. The drug repositioning candidate information does not contain automatic prescription or automatic dosing control instructions.

[0016] In some embodiments, the method further includes:

[0017] If the key evidence phenotypic axis is unknown, the structured evidence report fails verification, or the conflict index exceeds a preset threshold, the corresponding running status will be set to abstention or manual review.

[0018] In some embodiments, the immune resistance status map is constructed through the following steps:

[0019] Clinical phenotypes, visual phenotypes, and omics mechanisms are mapped to predefined medical ontology;

[0020] Connect evidence nodes of the same patient in different time windows using temporal edges;

[0021] Connecting cell states, signaling pathways, targets, and drugs through activation, inhibition, expression, binding, metabolism, or adverse reactions;

[0022] For each edge, store the source evidence set, direction, reliability score, and conflict marker;

[0023] Furthermore, evidence of immune activation and evidence of inhibitory microenvironment are preserved as independent evidence axes, and evidence of inhibitory microenvironment is not unconditionally treated as a fixed negative term of evidence of immune activation.

[0024] In some embodiments, the drug-generating agent calculates the comprehensive score of candidate drug d through the following steps:

[0025] The transcription reversal score Rsig(d) is determined based on the degree of negative correlation between the abnormal expression vector of the patient or target drug resistance subgroup and the perturbation expression vector of the candidate drug.

[0026] The network proximity score Rnet(d) is determined based on the shortest path, random walk distance, or diffusion distance between the candidate drug target set and the drug resistance mechanism node set.

[0027] Based on the drug-drug similarity matrix, disease-disease similarity matrix, and drug-disease adjacency matrix, the heterogeneous association score Rhet(d) is determined;

[0028] The comprehensive score S(d) of candidate drug d is determined based on the transcription reversal score Rsig(d), network proximity score Rnet(d), heterogeneity association score Rhet(d), clinical compatibility score Rclin(d), evidence support score Revi(d), safety penalty Ptox(d), and evidence conflict penalty Pconf(d).

[0029] The comprehensive score S(d) of candidate drug d is calculated using the following formula:

[0030]

[0031] Among them, w1 to w7 are determined by the coordinating agent based on data completeness, quality score and calibration parameters, and the weights of available benefit items are normalized.

[0032] In some embodiments, the weights of mode m are determined using the following formula:

[0033] ;

[0034] in, For modal availability, take either 0 or 1. This is the aggregated value of the quality scores of the modal evidence objects. These are calibration parameters obtained from independent validation data;

[0035] When any mode is missing, the corresponding Set to 0 and generate a modal missing mask; only generate a proxy feature with proxy evidence identification when the cross-modal substitution relationship reaches a preset reliability threshold on independent verification data; otherwise, do not fill in the corresponding feature and write the missing information into the uncertainty item.

[0036] In some embodiments, the following steps are used to determine whether the corresponding running status should be set to abstention or manual review:

[0037] Calculate the aggregated values ​​of supporting and opposing evidence for candidate drug d;

[0038] Based on the aggregated values ​​of supporting and opposing evidence for candidate drug d, calculate the conflict index C(d) of candidate drug d;

[0039] If C(d) is higher than a preset threshold, then independent source retrieval and at least one specialist intelligent agent that has not generated the original conclusion are invoked for cross-verification. If the cross-verification is still higher than the threshold, then the automatic passage of the corresponding candidate drug is stopped and it is marked as requiring manual verification.

[0040] The aggregate value of supporting evidence is calculated using the following formula:

[0041] ;

[0042] The aggregate value of opposing evidence is calculated using the following formula:

[0043] ;

[0044] Where r represents the reliability of the evidence and i represents the independence of the source of the evidence;

[0045] The conflict index is calculated using the following formula:

[0046] ;

[0047] in, To prevent positive numbers with a denominator of zero.

[0048] In some embodiments, the multiple sources refer to data coming from at least two of the following sources: hospital information system, electronic medical record system, image archiving and communication system, pathology information system, sequencing platform, public biomedical database, drug database, clinical trial database, and guideline or literature knowledge base.

[0049] The multimodal data includes at least two patient modalities from natural language text, structured tables, time series, medical images, whole slice images, nucleic acid or protein sequences, expression matrices, and graph structured data.

[0050] The evidence objects also include patient anonymity identifiers, time windows, units, processing agent identifiers, processing model versions, processing timestamps, interpretation boundaries, and verification values;

[0051] The original location index is used to locate medical record segments, image coordinate regions, pathological image blocks, omics matrix row and column positions, drug perturbation records, or knowledge base entries.

[0052] The verification value is calculated from the normalized sequence of evidence objects excluding variable display fields, so that the candidate drug score can be traced back to the corresponding original data and the evidence object can be verified as having been modified.

[0053] The multiple specialized intelligent agents include a medical record parsing intelligent agent, a visual phenotype intelligent agent, an omics mechanism intelligent agent, a drug generation intelligent agent, an evidence retrieval intelligent agent, a conflict review intelligent agent, and a security review intelligent agent;

[0054] Each discovery includes at least a discovery identifier, a statement, a direction of action, a strength of evidence, and one or more evidence identifiers, and all of the one or more evidence identifiers exist simultaneously in the used evidence identifier list of the specialized intelligent agent;

[0055] A structured evidence report in the "Completed" state includes at least one finding, while a structured evidence report in the "Insufficient Evidence" state records the missing modalities and requests for supplementation.

[0056] The multiple specialized intelligent agents and the coordinating intelligent agent communicate through structured messages. The structured messages include at least a run identifier, a task phase identifier, a list of input evidence identifiers, an output identifier, a candidate drug identifier, a support list, an opposition list, a score vector, items to be verified, and a response status. The system records the run start, phase start, phase completion, phase failure, and run completion events in the execution order, and records messages that fail the structure verification or citation verification in the isolation log instead of writing them to the shared evidence space.

[0057] In some embodiments, the step of constructing the immune resistance status map includes:

[0058] Clinical phenotypes, visual phenotypes, and omics mechanisms are mapped to predefined medical ontology;

[0059] Connect evidence nodes of the same patient in different time windows using temporal edges;

[0060] Connecting cell states, signaling pathways, targets, and drugs through activation, inhibition, expression, binding, metabolism, or adverse reactions;

[0061] For each edge, store the source evidence set, direction, reliability score, and conflict marker;

[0062] Furthermore, evidence of immune activation and evidence of inhibitory microenvironment are preserved as independent evidence axes, and evidence of inhibitory microenvironment is not unconditionally treated as a fixed negative term of evidence of immune activation.

[0063] In some embodiments, the evidence retrieval agent adopts a retrieval enhancement generation method, which only writes the content that has passed access permission verification, version verification, and document chunk quality verification into the retrieval index;

[0064] Search results include knowledge evidence identifiers, original text location, publication date or version, evidence level, and applicable conditions;

[0065] Mechanism findings involving cases will simultaneously cite at least one patient evidence identifier and at least one knowledge evidence identifier. External models that are not actually run will only be marked as reference knowledge and will not be written as case-level results.

[0066] The method further includes: performing offline updates based on expert feedback and follow-up outcomes;

[0067] Offline updates based on expert feedback and follow-up outcomes include:

[0068] In an update environment isolated from the production environment, adjust the agent prompt template, candidate drug score weights, calibration parameters, or search scope to generate candidate versions;

[0069] The candidate versions are subjected to fixed test set regression verification, evidence traceability verification, security gate verification, modal block deletion test, and feature random occlusion test.

[0070] Once the candidate version does not lower the preset security indicators and passes the version review, it will replace the production version, while retaining the model version, input data hash, test results, and rollback records.

[0071] On the other hand, this application also proposes a drug relocation system based on multi-source, multi-modal, and multi-agent technologies, which is used to predict the response to immunotherapy in advanced non-small cell lung cancer, including:

[0072] The data access and standardization module is used to acquire multi-source multimodal data of the target object. The multi-source multimodal data includes drug perturbation data and medical knowledge data. The multi-source multimodal data also includes at least two types of patient data from clinical text data, medical imaging data, digital pathology data, and omics data.

[0073] A shared evidence space is used to process the multi-source, multi-modal data and generate multiple evidence objects with unique evidence identifiers. Each evidence object includes a modality identifier, an entity identifier, an observation value, a direction identifier, a quality score, a source identifier, and an original location index.

[0074] Multiple specialized intelligent agents are used to receive the evidence objects and to output a structured evidence report, which includes an agent identifier, an output identifier, a state, a discovery item, a cited evidence identifier, an uncertainty, and a confidence level.

[0075] The structured evidence verification module is used to verify whether the evidence identifier referenced by each discovery item belongs to the set of evidence identifiers that the corresponding intelligent agent is allowed to read, and to isolate the structured evidence reports that fail verification.

[0076] The evidence report verification module is used to construct an immune resistance status map and evidence phenotype vector of the target object based on the verified structured evidence report. The immune resistance status map includes patient nodes, time nodes, immune status nodes, inhibitory microenvironment nodes, signaling pathway nodes, target nodes, and drug nodes. The evidence phenotype vector includes an immune activation axis, an inhibitory microenvironment axis, a genomic background axis, and a morphological background axis.

[0077] A coordinating agent is used to control the drug generation agent to call at least two of the following: a drug-disease heterogeneous association network model, a disease expression signature and drug perturbation signature reverse matching model, and a drug target and drug resistance mechanism node network proximity model, to generate a drug relocation candidate set.

[0078] The candidate drug ranking module is used to control and coordinate the agent to determine dynamic weights based on the availability, quality score and calibration parameters of each modality, summarize supporting evidence, opposing evidence and uncertainty information for candidate drugs, and calculate the overall score and conflict index of candidate drugs.

[0079] The safety review module is used to control the safety review agent to perform checks on indication boundaries, contraindications, organ function limitations, drug interactions, and evidence consistency, and to verify the directional consistency between candidate drugs and target immune resistance mechanisms through a counterfactual verification process.

[0080] The output module is used to output drug repositioning candidate information based on the verification and validation results of the security review agent. The drug repositioning candidate information includes candidate drug ranking, corresponding target or pathway, sub-score, supporting evidence identifier, opposing evidence identifier, risk identifier, confidence level, and operating status. The drug repositioning candidate information does not contain automatic prescription or automatic dosing control instructions.

[0081] The proposed method and system for drug relocation based on multi-source, multi-modal and multi-agent approaches can at least solve the problems of existing technologies, such as strong dependence on complete paired multimodal data, difficulty in tracing the candidate drug generation chain, inability to dynamically compensate for missing data, lack of safe exit mechanism when different evidences conflict, and the tendency of single large models to generate medical illusions. Attached Figure Description

[0082] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit the invention. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings:

[0083] Figure 1 A flowchart illustrating a drug relocation method based on multi-source, multi-modal, and multi-agent technologies provided in this application embodiment;

[0084] Figure 2 This is a schematic diagram of the overall architecture of the drug relocation system based on multi-source, multi-modal, and multi-agent systems provided in the embodiments of this application;

[0085] Figure 3 This is a schematic diagram illustrating the collaboration between a specialist intelligent agent, a coordinating intelligent agent, and a shared evidence space, as provided in an embodiment of this application.

[0086] Figure 4 This is a schematic diagram of the multi-objective scoring and screening of candidate drugs provided in the embodiments of this application;

[0087] Figure 5 This is a schematic diagram of the data missing and evidence conflict handling process provided in the embodiments of this application;

[0088] Figure 6 This is a schematic diagram illustrating the atomic evidence objects and evidence tracing relationships provided in the embodiments of this application;

[0089] Figure 7This is a schematic diagram of the offline self-evolution and version security gate of the intelligent agent provided in the embodiments of this application;

[0090] Figure 8 This is a schematic diagram of the structure of a drug relocation system based on multi-source, multi-modal, and multi-agent systems provided in an embodiment of this application. Detailed Implementation

[0091] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of systems and methods consistent with some aspects of this disclosure as detailed in the appended claims.

[0092] The terminology used in this disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The singular forms “a,” “the,” and “the” as used in this disclosure and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.

[0093] It should be understood that although the terms first, second, third, etc., may be used in this disclosure to describe various information, such information should not be limited to these terms. These terms are used only to distinguish information of the same type from one another. For example, without departing from the scope of this disclosure, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the word "if" as used herein may be interpreted as "when," "when," or "in response to determination."

[0094] This application relates to the fields of medical artificial intelligence, bioinformatics, computer-aided drug development and precision oncology, and more specifically, to a drug relocation method and system based on multi-source, multi-modal and multi-agent technologies.

[0095] Immune checkpoint inhibitors have become an important treatment for advanced non-small cell lung cancer, but patients exhibit significant heterogeneity in their response to immunotherapy. Some patients show primary resistance at the beginning of treatment, while others progress after achieving a brief remission. Existing clinical biomarkers typically only cover one aspect of tumor cells or the immune microenvironment, making it difficult to fully reflect the drug resistance state resulting from the combined effects of tumor burden, spatial immune rejection, cellular composition, signaling pathways, host status, and previous treatments.

[0096] Drug retargeting can shorten the path from candidate discovery to validation by finding new applicable scenarios for existing drugs. Existing molecular subtyping and reverse transcriptional regulation methods typically first classify disease subtypes based on transcriptome data, and then use differentially expressed genes and drug-gene interaction databases to screen for drugs that can reverse the abnormal expression direction. These methods provide candidate drug discovery ideas for drug-resistant subgroups, but their inputs are mostly concentrated on a single omics, and candidate generation depends on fixed thresholds and a single database query, making it difficult to handle common real-world problems such as missing medical records, imaging, pathology, and omics data, temporal inconsistencies, and conflicting evidence.

[0097] In related technologies, heterogeneous association network drug relocation schemes can integrate drug-disease adjacency matrices, drug similarity matrices, and disease similarity matrices to predict new drug-disease relationships through deep neural networks or association models. These schemes are suitable for generating candidate drugs at the disease level, but they cannot address pathological, transcriptomic, genomic, and clinical evidence from different patients or drug-resistant subgroups within the same disease. They also lack reference constraints, modality loss gating, conflict verification, and safe exit mechanisms for the output of large language model agents. This application registers the aforementioned heterogeneous association network model as a deterministic tool that can be invoked by drug generation agents, and adds a patient evidence phenotype layer and an auditable multi-agent coordination layer, thus upgrading the original drug relocation technology.

[0098] Existing multimodal prediction models mostly employ feature splicing, latent space alignment, or end-to-end deep fusion. These models can achieve good statistical performance on complete paired data, but their performance tends to degrade significantly when a modality is missing, of lower quality, or originates from different time windows. Furthermore, latent space results are often difficult to reconstruct to specific medical record segments, pathological regions, group acupoints, and drug evidence entries, making it difficult to verify the basis for candidate drug generation.

[0099] Large language models can understand clinical text and invoke external tools, but monolithic models, which integrate case understanding, visual analysis, omics analysis, drug generation, and safety verification into the same reasoning chain, are prone to unclear role boundaries, omission of specialty constraints, and generative illusions. Existing simple multi-agent systems often employ majority voting or free text dialogue, lacking a unified evidence data structure, citation whitelists, conflict quantification rules, abstention states, production version control, and a dedicated candidate scoring mechanism for drug repositioning.

[0100] Therefore, a new approach is needed to upgrade the existing static link of "molecular subtyping - differential expression - reverse regulation - candidate drugs" into a closed loop of "multi-source evidence standardization - specialist agent extraction - immune resistance status mapping - multi-mechanism candidate generation - dynamic consensus ranking - safety and counterfactual verification". This approach should be able to output drug relocation candidate information with source index, uncertainty and manual verification status even when the input is incomplete.

[0101] Based on this, this application proposes a drug relocation method based on multi-source, multi-modal and multi-agent systems.

[0102] It should be noted that "advanced non-small cell lung cancer" in this application may include locally advanced or metastatic lung adenocarcinoma, squamous cell carcinoma, and other types of non-small cell lung cancer confirmed by histopathology. "Immunotherapy response prediction" may include calculating at least one of objective response, disease stability, disease progression, progression-free survival risk, and primary drug resistance risk. During implementation, one or more outcome definitions may be selected according to the study protocol, and versions of the outcome definitions may be saved.

[0103] "Multi-source" emphasizes the independence of data sources, while "multimodal" emphasizes the differences in data representation. For example, medical record texts and CT images from the same hospital belong to two modalities from the same institutional source; public transcriptome cohorts and in-hospital sequencing results can belong to the same expression matrix modality from two different sources. This application allows for some cases to have only single-modality or bimodal data, but requires the system to explicitly record the missing modalities.

[0104] An EvidenceObject can be implemented using structured records, with fields including at least: evidence_id, patient_hash, time_window, source_id, source_version, modality, entity_id, observation, value, unit, direction, quality_score, raw_locator, agent_id, model_version, timestamp, interpretation_limit, and checksum. The raw_locator stores the original text character range, DICOM sequence and coordinates, full-slice image block coordinates, omics matrix row and column positions, and drug perturbation record number or knowledge base record number. The evidence_id is unique within the same system version; the checksum can be calculated using the SHA-256 hash of the evidence object after sorting by field name and excluding fields displayed in the interface.

[0105] The AgentOutput of a specialist agent can include at least the following: schema_version, agent_id, output_id, status, input_summary, findings, conflicts, uncertainty, confidence, requested_followups, used_evidence_refs, rejected_evidence_refs, limitations, contract_validated, model, and latency_ms. Each finding must include at least finding_id, statement, direction, strength, and evidence_refs. The system requires that all evidence_refs in a finding belong to the agent's allowed_evidence_refs and also appear in used_evidence_refs; when the status is completed, findings must not be empty. Outputs that do not meet the above constraints are not written to the shared evidence space.

[0106] CandidateProposals can include at least: candidate_drug_id, mechanism_targets, support_evidence_ids, oppose_evidence_ids, score_vector, conflict_index, safety_flags, missingness_flags, required_checks, and status. CoordinatorOutput can include at least: evidence_phenotype, summary, key_nodes, conflict_resolution, robustness_summary, confidence, absence, uncertainty_sources, recommended_next_measurements, and used_agent_output_ids; each key_node must reference one or more evidence objects and one or more agent outputs that have passed contract verification. The shared evidence space can be implemented using a combination of relational databases, graph databases, and object storage, and consistency of concurrent writes is guaranteed through transactions or message queues.

[0107] Please see Figures 1-7This application discloses a flowchart of a drug relocation method based on multi-source, multi-modal, and multi-agent approaches. This drug relocation method is used to predict the response to immunotherapy in advanced non-small cell lung cancer. Figure 1 As shown, the drug relocation method based on multi-source, multi-modal, and multi-agent technologies includes:

[0108] S101. Obtain multi-source, multi-modal data of the target object.

[0109] The multi-source multimodal data includes drug perturbation data and medical knowledge data, and also includes at least two types of patient data from clinical text data, medical imaging data, digital pathology data, and omics data.

[0110] For example, an anonymous patient identifier can be generated for each case, and an index time point can be set, such as the baseline date before the first immunotherapy. Clinical texts, laboratory test results, imaging, pathology, and omics data are arranged by relative time windows; drug and knowledge data are registered by version date.

[0111] S102. Perform data processing on the multi-source multimodal data to generate multiple evidence objects with unique evidence identifiers.

[0112] Each piece of evidence includes modality identifier, entity identifier, observation value, orientation identifier, quality score, source identifier, and original location index.

[0113] As an example, this application can perform entity recognition and negation, conditional, subject, and time attribute judgments on text; perform unit uniformity and anomaly range checks on structured data; perform resolution, staining, or scan quality checks on images; and perform sequencing depth, batch effect, and missing value checks on omics data. Data whose quality scores do not meet the threshold are not directly deleted but are saved as low-quality data to coordinate the agent's weight calculation. The system calculates the input hash for the normalized sequence of the case input and recalculates the hash after modality deletion or feature occlusion to prove the input state used in the operation.

[0114] S103. Distribute the evidence object to multiple specialized intelligent agents and control each specialized intelligent agent to output a structured evidence report.

[0115] The structured evidence report includes agent identifier, output identifier, state, discovery item, cited evidence identifier, uncertainty, and confidence level.

[0116] As an example, the medical record parsing agent generates pre-treatment summaries and longitudinal event sequences; the visual phenotype agent generates spatial features related to tumor burden, rate of change, immune infiltration, or immune rejection; and the omics mechanism agent generates features of differential expression, cell deconvolution, pathway enrichment, driver alterations, and immune resistance mechanisms. Each specialty agent only reads pre-assigned modalities and evidence identifiers; when a modality is missing, it returns a structured report with a status of insufficient_evidence, a confidence level of 0, and the reason for the missing information, instead of having the discovery item filled in by a large language model.

[0117] S104. Verify whether the evidence identifier referenced by each discovery item belongs to the set of evidence identifiers that the corresponding agent is allowed to read, and isolate the structured evidence reports that fail verification.

[0118] As an example, evidence from different agents can be mapped to a patient-time-cell-pathway-target-drug graph structure, with separate calculations for immune activation, adaptive checkpoints, inhibitory myeloid or matrix, genomic, and morphological evidence axes. For instance, lymphocyte enrichment at the tumor periphery but insufficient infiltration within the tumor nests in a pathological image can be mapped as a "spatial immune rejection" node; elevated related matrix pathways in the transcriptome form supporting edges; and if another source shows the opposite direction, opposing edges and conflict markers are simultaneously preserved. Different evidence axes are initially preserved independently, and their interaction directions are then determined by disease-, treatment-, and endpoint-specific rules or models.

[0119] S105. Based on the validated structured evidence reports, construct an immune resistance status map and evidence phenotype vector for the target subjects.

[0120] The immune resistance status map includes patient nodes, time nodes, immune status nodes, inhibitory microenvironment nodes, signaling pathway nodes, target nodes, and drug nodes. The evidence phenotype vector includes an immune activation axis, an inhibitory microenvironment axis, a genomic background axis, and a morphological background axis.

[0121] The immune resistance status map is constructed through the following steps:

[0122] Clinical phenotypes, visual phenotypes, and omics mechanisms are mapped to predefined medical ontology;

[0123] Connect evidence nodes of the same patient in different time windows using temporal edges;

[0124] Connecting cell states, signaling pathways, targets, and drugs through activation, inhibition, expression, binding, metabolism, or adverse reactions;

[0125] For each edge, store the source evidence set, direction, reliability score, and conflict marker;

[0126] Furthermore, evidence of immune activation and evidence of inhibitory microenvironment are preserved as independent evidence axes, and evidence of inhibitory microenvironment is not unconditionally treated as a fixed negative term of evidence of immune activation.

[0127] S106. Control the drug generation agent to invoke at least two of the following: drug-disease heterogeneous association network model, disease expression signature and drug perturbation signature reverse matching model, and drug target and drug resistance mechanism node network proximity model, to generate a drug relocation candidate set.

[0128] Here, the drug generation agent can begin screening from approved drugs or a set of drugs in a pre-defined development stage. First, it calculates Rsig(d) = -corr(zp,zd) based on the aberrant expression vector zp of the target patient or drug-resistant subgroup relative to the reference group and the drug perturbation vector zd, or uses a connection score based on gene ordering. Second, it calculates the shortest path, random walk, or diffusion distance between the candidate drug target set Td and the resistance mechanism node set Mp on a protein-protein interaction network or knowledge graph, and converts it to Rnet(d). Third, it calls existing heterogeneous association network tools, inputting the topological features corresponding to the drug-drug similarity matrix, disease-disease similarity matrix, and drug-disease adjacency matrix into the trained model to obtain Rhet(d). Fourth, it combines the direction of action, tissue accessibility, previous clinical evidence, and safety constraints to form candidate proposals.

[0129] S107. The control and coordination agent determines dynamic weights based on the availability, quality score, and calibration parameters of each modality, summarizes supporting evidence, opposing evidence, and uncertainty information for the candidate drug, and calculates the overall score and conflict index of the candidate drug.

[0130] Specifically, the drug-generating agent calculates the comprehensive score of candidate drug d through the following steps:

[0131] The transcription reversal score Rsig(d) is determined based on the degree of negative correlation between the abnormal expression vector of the patient or target drug resistance subgroup and the perturbation expression vector of the candidate drug.

[0132] The network proximity score Rnet(d) is determined based on the shortest path, random walk distance, or diffusion distance between the candidate drug target set and the drug resistance mechanism node set.

[0133] Based on the drug-drug similarity matrix, disease-disease similarity matrix, and drug-disease adjacency matrix, the heterogeneous association score Rhet(d) is determined;

[0134] The comprehensive score S(d) of candidate drug d is determined based on the transcription reversal score Rsig(d), network proximity score Rnet(d), heterogeneity association score Rhet(d), clinical compatibility score Rclin(d), evidence support score Revi(d), safety penalty Ptox(d), and evidence conflict penalty Pconf(d).

[0135] The comprehensive score S(d) of candidate drug d is calculated using the following formula:

[0136] ;

[0137] Among them, w1 to w7 are determined by the coordinating agent based on data completeness, quality score and calibration parameters, and the weights of available benefit items are normalized.

[0138] Specifically, Rclin(d) can be calculated based on the target organ function, comorbidities, previous treatments, and concomitant medications; Revi(d) can be calculated based on the level of evidence source, independence, version timeliness, and applicability to the target scenario; Ptox(d) can be calculated based on serious adverse reactions, organ function contraindications, and drug interactions; and Pconf(d) can be calculated based on the reliability distribution of supporting and opposing evidence. The weight wi is not a fixed constant but is determined by availability ai, quality qi, and calibration coefficient ci, i.e., wi = ai × qi × ci / Σj(aj × qj × cj). When no available benefit item exists, the system does not calculate the overall score and enters an insufficient evidence state.

[0139] The weights of mode m can be determined using the following formula:

[0140] ;

[0141] in, For modal availability, take either 0 or 1. This is the aggregated value of the quality scores of the modal evidence objects. These are calibration parameters obtained from independent validation data;

[0142] When any mode is missing, the corresponding Set to 0 and generate a modal missing mask; only generate a proxy feature with proxy evidence identification when the cross-modal substitution relationship reaches a preset reliability threshold on independent verification data; otherwise, do not fill in the corresponding feature and write the missing information into the uncertainty item.

[0143] S108. The control safety review agent performs checks on indication boundaries, contraindications, organ function limitations, drug interactions, and evidence consistency, and verifies the directional consistency between the candidate drug and the target immune resistance mechanism through a counterfactual verification process.

[0144] The counterfactual verification process temporarily adds the drug's action direction to the drug resistance status map and calculates whether key resistance nodes are changing in the expected direction. If deleting a single piece of low-reliability evidence causes a significant change in the candidate ranking, the candidate stability score is reduced. If the immune status axis or inhibitory background axis is "unknown," the key agent fails, or the candidate conflict index still exceeds the threshold after verification, the coordinated output's "abstain" is set to "true," and the status is set to "abstained" or "insufficient_evidence," with a confidence level not exceeding 0.50. The safety review agent sets hard thresholds based on drug labels, concomitant medications, organ function, allergy history, and research restrictions; candidates that trigger hard thresholds do not enter the automatic pass state.

[0145] For example, see Figure 5 The system generates a modality missing mask M during case initialization. For missing modalities m, their availability am is set to 0; for low-quality modalities, am remains 1 but the quality qm is reduced. Modality block deletion removes all evidence objects according to the specified modality; feature random occlusion uses a preset random seed to sample and remove evidence objects that can be occluded, saving the list of removed evidence, the input hash before occlusion, and the input hash after occlusion. The system generates surrogate features only when the mapping from the substitute modality to the target feature reaches a preset reliability on the independent validation set, and the surrogate features must be marked with a proxy identifier and cannot be confused with the measured features.

[0146] Conflicts of evidence can include opposing viewpoints within the same entity, inconsistent conclusions regarding the safety of the same drug, inconsistencies between patient evidence and the applicability of external knowledge, mismatches between different time windows, and inconsistencies between the mechanism of a candidate drug and its network proximity. The coordinating agent breaks down conflicts into verifiable issues, prioritizes searching independent sources, and invites agents not involved in generating the original conclusion to cross-verify. When a conflict cannot be resolved, the system retains two interpretations, sets the candidate state to "manual_review" or "abstained," and prohibits the large language model from eliminating conflict markers through free text.

[0147] S109. Based on the verification and validation results of the security review agent, output drug repositioning candidate information.

[0148] The drug repositioning candidate information includes candidate drug ranking, corresponding target or pathway, sub-score, supporting evidence identifier, opposing evidence identifier, risk identifier, confidence level, and operating status. The drug repositioning candidate information does not include automatic prescription or automatic dosing control instructions.

[0149] The term "multiple sources" refers to data originating from at least two of the following sources: hospital information system, electronic medical record system, image archiving and communication system, pathology information system, sequencing platform, public biomedical database, drug database, clinical trial database, and guideline or literature knowledge base.

[0150] The multimodal data includes at least two patient modalities from natural language text, structured tables, time series, medical images, whole slice images, nucleic acid or protein sequences, expression matrices, and graph structured data.

[0151] The evidence objects also include patient anonymity identifiers, time windows, units, processing agent identifiers, processing model versions, processing timestamps, interpretation boundaries, and verification values;

[0152] The original location index is used to locate medical record segments, image coordinate regions, pathological image blocks, omics matrix row and column positions, drug perturbation records, or knowledge base entries.

[0153] The verification value is calculated from the normalized sequence of evidence objects excluding variable display fields, so that the candidate drug score can be traced back to the corresponding original data and the evidence object can be verified as having been modified.

[0154] The multiple specialized intelligent agents include a medical record parsing intelligent agent, a visual phenotype intelligent agent, an omics mechanism intelligent agent, a drug generation intelligent agent, an evidence retrieval intelligent agent, a conflict review intelligent agent, and a security review intelligent agent;

[0155] Each discovery includes at least a discovery identifier, a statement, a direction of action, a strength of evidence, and one or more evidence identifiers, and all of the one or more evidence identifiers exist simultaneously in the used evidence identifier list of the specialized intelligent agent;

[0156] A structured evidence report in the "Completed" state includes at least one finding, while a structured evidence report in the "Insufficient Evidence" state records the missing modalities and requests for supplementation.

[0157] The multiple specialized intelligent agents and the coordinating intelligent agent communicate through structured messages. The structured messages include at least a run identifier, a task phase identifier, a list of input evidence identifiers, an output identifier, a candidate drug identifier, a support list, an opposition list, a score vector, items to be verified, and a response status. The system records the run start, phase start, phase completion, phase failure, and run completion events in the execution order, and records messages that fail the structure verification or citation verification in the isolation log instead of writing them to the shared evidence space.

[0158] For example, see Figure 6Raw data is mapped from evidence objects to mechanism nodes, and then to candidate proposals. Any candidate drug mechanism statement should be associated with the patient's original evidence object or a version-verified external knowledge entry; content that is solely computational inference must be marked as an inference to be verified. Discoveries involving the mapping between patients and external knowledge simultaneously reference both case evidence identifiers beginning with EV and knowledge evidence identifiers beginning with KB. Generative models cannot reference identifiers outside the permitted set, nor can they rewrite inferences to be verified as proven facts.

[0159] The search index can employ a hybrid approach of vector retrieval and keyword retrieval. The system first filters by disease type, treatment stage, drug name, and version date, then performs semantic search. Returned fragments must include document identifiers and their original locations. If the search results conflict with drug labels or safety rules, the safety rules take precedence, and the conflict is recorded and forwarded for manual review.

[0160] The steps for constructing the immune resistance status map include:

[0161] Clinical phenotypes, visual phenotypes, and omics mechanisms are mapped to predefined medical ontology;

[0162] Connect evidence nodes of the same patient in different time windows using temporal edges;

[0163] Connecting cell states, signaling pathways, targets, and drugs through activation, inhibition, expression, binding, metabolism, or adverse reactions;

[0164] For each edge, store the source evidence set, direction, reliability score, and conflict marker;

[0165] Furthermore, evidence of immune activation and evidence of inhibitory microenvironment are preserved as independent evidence axes, and evidence of inhibitory microenvironment is not unconditionally treated as a fixed negative term of evidence of immune activation.

[0166] Specifically, the evidence retrieval agent adopts a retrieval enhancement generation method, only writing content that has passed access permission verification, version verification, and document chunk quality verification into the retrieval index;

[0167] Search results include knowledge evidence identifiers, original text location, publication date or version, evidence level, and applicable conditions;

[0168] Mechanism findings involving cases will simultaneously cite at least one patient evidence identifier and at least one knowledge evidence identifier. External models that are not actually run will only be marked as reference knowledge and will not be written as case-level results.

[0169] The method further includes: performing offline updates based on expert feedback and follow-up outcomes;

[0170] Offline updates based on expert feedback and follow-up outcomes include:

[0171] In an update environment isolated from the production environment, adjust the agent prompt template, candidate drug score weights, calibration parameters, or search scope to generate candidate versions;

[0172] The candidate versions are subjected to fixed test set regression verification, evidence traceability verification, security gate verification, modal block deletion test, and feature random occlusion test.

[0173] Once the candidate version does not lower the preset security indicators and passes the version review, it will replace the production version, while retaining the model version, input data hash, test results, and rollback records.

[0174] Optionally, the method further includes:

[0175] If the key evidence phenotypic axis is unknown, the structured evidence report fails verification, or the conflict index exceeds a preset threshold, the corresponding running status will be set to abstention or manual review.

[0176] Specifically, you can determine whether to set the corresponding running status to abstention or manual review through the following steps:

[0177] Calculate the aggregated values ​​of supporting and opposing evidence for candidate drug d;

[0178] Based on the aggregated values ​​of supporting and opposing evidence for candidate drug d, calculate the conflict index C(d) of candidate drug d;

[0179] If C(d) is higher than a preset threshold, then independent source retrieval and at least one specialist intelligent agent that has not generated the original conclusion are invoked for cross-verification. If the cross-verification is still higher than the threshold, then the automatic passage of the corresponding candidate drug is stopped and it is marked as requiring manual verification.

[0180] The aggregate value of supporting evidence is calculated using the following formula:

[0181] ;

[0182] The aggregate value of opposing evidence is calculated using the following formula:

[0183] ;

[0184] Where r represents the reliability of the evidence and i represents the independence of the source of the evidence;

[0185] The conflict index is calculated using the following formula:

[0186] ;

[0187] in, To prevent positive numbers with a denominator of zero.

[0188] Here, the conflict index can be set as follows: calculate, Can be taken The closer C(d) is to 1, the closer the mutually independent and reliable supporting and opposing evidence is; in practice, 0.60 can be set as the initial threshold for triggering independent review and calibrated on independent verification data.

[0189] The coordinating agent can also employ Pareto front screening to prevent candidates with strong evidence support but weak mechanism inversion and candidates with strong mechanism matching but high safety risks from being masked by a single total score. Output Top Before K, the coordinating agent generates supporting reasons, opposing reasons, and unmet checks for each candidate.

[0190] In an alternative embodiment, see Figure 2 This application first reads electronic medical records, images, pathology data, omics data, drug perturbation spectra, medical knowledge, and public and in-hospital cohorts through a controlled interface. The data access and standardization module performs de-identification, access control, format conversion, entity mapping, time alignment, and quality annotation. Gene, drug, disease, imaging examination, and efficacy terms from different sources are mapped to stable identifiers; entities that fail to be mapped retain their original values ​​and enter a queue awaiting review.

[0191] After standardization, tasks are distributed to agents for medical record parsing, visual phenotype analysis, omics mechanisms, drug generation, evidence retrieval, conflict review, and security auditing. Each agent can be implemented using a combination of large language models, visual models, traditional machine learning models, bioinformatics tools, and rule engines. Numerical computation and database queries are performed by deterministic tools, while the large language model is responsible for tool selection, evidence organization, and constrained text generation. Agents are not allowed to bypass the shared evidence space to directly modify the final candidate list; their outputs first undergo structural verification, evidence citation whitelist verification, and boundary verification to prohibit automated treatment suggestions.

[0192] The coordinating agent maintains the task state machine. Task states include at least: pending, processing, pending supplementary evidence, pending conflict review, pending security review, pending manual review, completed, abandoned, and terminated. The coordinating agent invokes appropriate tools based on the state, executing dependent tasks sequentially or in parallel, including medical record, visual, and omics analyses. The system sequentially records the `run_started`, `stage_started`, `stage_completed`, `stage_failed`, and `run_completed` events. Each event stores the run identifier, sequence number, time, stage identifier, input evidence identifier, output identifier, state, and message. Tool execution results are written back to the shared evidence space as evidence objects.

[0193] In an alternative embodiment, see Figure 3 The medical record parsing agent extracts age range, pathological type, stage, physical condition, treatment series, medication regimen, imaging assessment, laboratory indicators, comorbidities, and concomitant medications by using a pre-defined tumor entity table and time reasoning rules. For semantics such as "excluded," "not seen," "considered," and "family history," it records negation, speculation, and subject attributes respectively, avoiding the inclusion of non-patient facts in patient evidence.

[0194] Visual phenotyping agents can invoke image segmentation models, radiomics tools, whole-slice image patching models, and pathological visual models. Their output is not a free-text report for inter-agent communication, but rather a visual evidence object including region coordinates, model version, probability, threshold, quality control results, and evidence identifiers. When the image quality threshold cannot be met, an unusable state is output instead of a forced prediction; principal components or latent space dimensions without semantic annotation cannot be automatically assigned specific morphological meanings by the large language model.

[0195] The omics mechanism agent can invoke tools for differential expression analysis, gene set enrichment, immune cell deconvolution, mutation annotation, copy number analysis, cell communication analysis, or graph network analysis. Its output includes the input matrix version, reference group definition, statistical thresholds, calibration methods, and significance information. For omics data from different platforms, platform-specific standardization is performed first, followed by batch calibration or ranking-based robust features to avoid directly concatenating uncalibrated values.

[0196] The drug generation agent queries drug-target, drug-pathway, and drug perturbation evidence based on drug resistance mechanism nodes, generating a candidate set and multi-target scores. The evidence retrieval agent is responsible for retrieving guidelines, tags, clinical trials, and literature, and returning the original text location, version, evidence level, and applicability. The safety review agent operates independently of the drug generation agent to reduce bias caused by the generator simultaneously acting as a reviewer.

[0197] The coordinating agent only accepts structured messages where `contract_validated` is true. A message must not enter the completed state if it does not contain an evidence index, score vector, or items to be verified; each final key node must list both the source agent identifier and the evidence identifier. For time-consuming tools, the coordinating agent can set a maximum number of calls, timeout, and resource quotas; when a tool fails, the reason for the failure is retained and the failure output is isolated; if a key tool fails, it is directly abandoned, and the failure output is not used to continue generating candidate conclusions.

[0198] In an alternative embodiment, please refer to Figure 7 This application can collect structured feedback from experts on candidate ranking, evidence correctness, security, and usability, and form training or calibration samples after obtaining follow-up results. The update process is performed in an isolated environment, allowing adjustment of prompt templates, task routing, scoring weights, retrieval filtering rules, and confidence calibrators.

[0199] Before a candidate version is released, at least the following must be performed: candidate consistency testing on a fixed case set; backtracking testing of the evidence index; security gate testing for known contraindications and interactions; stress testing with different modalities randomly masked; and a difference review with the current production version. A candidate version that fails any of these hard security tests may not be released. Each release must save the version number, changes, test results, approval records, and rollback point.

[0200] In a completed publicly available data embodiment, the system used TCGA-LUAD and TCGA-LUSC to construct a multimodal development set of lung cancer, totaling 929 cases, including 466 cases of lung adenocarcinoma and 463 cases of lung squamous cell carcinoma. Case-level data included clinical information, RNA sequencing, somatic mutations and copy number variations mainly derived from whole-exome sequencing, and diagnostic H&E whole-slice images. Whole-slice images were sampled at a target resolution of 0.5 micrometers / pixel, with a maximum of 64 224×224 pixel image blocks per slice. A pathological characterization model was used to generate 1024-dimensional image block representations; a total of 59,297 image blocks were obtained from the 929 cases, and 926 cases reached the quality threshold of at least 32 valid image blocks.

[0201] The embodiment described uses 16 pathological principal components, 9 RNA immune or tumor microenvironment programs, and 28 mutation and copy number features to form a 53-dimensional multimodal matrix. When evaluating the stability of repeated sampling for 2 to 6 groups, the bootstrap-adjusted Land index for 2 groups was 0.954, the intragroup consensus was 0.976, and the fuzzy clustering ratio was 0.072; however, the overall survival log-rank test p-value was 0.920. These results demonstrate that case-level multimodal alignment, quality gating, and stable phenotype calculation are achievable, and also indicate that the system should not automatically interpret internally stable groupings as prognostic groupings or treatment conclusions.

[0202] The external immunotherapy data examples include 581 cases from 6 publicly available cohorts with binary outcomes. The median AUROC for fixed coordination scores was 0.656, ranging from 0.495 to 0.855. Modality auditing revealed that 4 cohorts contained only RNA, 1 cohort contained only mutations or TMB, and only IMvigor210 showed cases with true RNA and TMB bimodality. Among the 150 complete bimodal cases in IMvigor210, the fusion AUROC was 0.807, RNA alone was 0.752, and TMB alone was 0.792. These results are intended to illustrate that the system must record the actual available modalities and should not misrepresent single-agent outputs as multimodal fusion results.

[0203] Further disease-specific validation was performed using the SU2C-MARK open cohort for advanced non-small cell lung cancer: 393 cases were clinically documented; 377 were evaluable under RECIST binary classification, 136 under RNA classification, 309 under WES classification, and 68 under both RNA and WES classification. When all evaluable cases were run according to the actual available modalities, the concordance score AUROC was 0.681, and the TMB-only AUROC was 0.704. In the 68 cases with complete RNA and WES classifications, the fusion AUROC was 0.755, the RNA-only AUROC was 0.707, and the TMB-only AUROC was 0.719. This embodiment limits the handling of missing modalities to a smooth degradation and abstention based on observed evidence, without claiming recovery of unmeasured modalities.

[0204] In a completed implementation of a traceable multi-agent platform, the case registry includes 2009 cases: 929 cases from TCGA multimodal development, 687 cases from open-label immunotherapy, and 393 cases from SU2C-MARK. These include 2009 clinical modalities, 1528 RNA modalities, 1628 genomic modalities, 929 copy number modalities, and 929 pathological modalities. The system registers 10 knowledge cards with source information and generates 56,034 unique Evidence IDs for all cases. The outcome field is sealed separately, and agent inputs do not include response, PFS, or OS. Outcome isolation and occlusion reproducibility checks all pass.

[0205] This embodiment uses seven access agents: clinical agent, RNA agent, genomic agent, pathology agent, knowledge agent, conflict agent, and coordination agent. The specialist agent, knowledge agent, and conflict agent are driven by a large language model and validated by a structural contract; the numerical evidence axis, occlusion list, and input hash are generated by a deterministic procedure. All generative discoveries must reference the actual Evidence ID; knowledge mapping discoveries reference both the case Evidence ID and the knowledge card ID; outputs that do not pass the contract are isolated.

[0206] TCGA regarding the same publicly disclosed case Run 05-4244 completed two end-to-end acceptance tests. The complete input run ID was RUN-20260713_154825-54B15EB8. All outputs from the six lower-level agents passed contract verification. A total of 17 traceability events and 7 key nodes were recorded. The final state was "completed," and the run time was 121.45 seconds. The second run completely deleted the RNA modality and used a random seed 20260713 to mask 20% of the features of the remaining allowed modalities, removing a total of 16 evidence objects. The run ID was RUN-20260713_160339. In ECB246F4, all six lower-level agents' outputs still passed contract verification, recording a total of 17 traceability events and 5 key nodes. Because the key immune axis became unknown, the coordinating agent set the final state to abstained, absolute to true, and confidence level to 0.50, with a runtime of 91.73 seconds. All Evidence ID references in both runs could be parsed to retrieve input evidence, proving that the system can preserve the traceability chain and execute a hard abstention when information is insufficient, rather than fabricating RNA results.

[0207] After the evidence phenotypes are formed in the above-described real-world multimodal implementation, the drug-generating agent receives structured evidence axes of immune activation, inhibitory microenvironment, driver changes, copy number changes, and morphological background, instead of directly receiving unverified natural language conclusions. The drug-generating agent first uses the applicant's existing heterogeneous relational network tool to obtain Rhet(d), then calculates Rsig(d) for candidates with drug perturbation signatures, and calculates Rnet(d) for candidates with drug target records. Candidates lacking a certain model input retain a missingness flag and have their corresponding availability set to 0, without being filled with constants or large language model inferences.

[0208] The scores of candidate drugs are normalized to a range of 0 to 1 and calculated according to the S(d) formula of this application. For each candidate, support_evidence_ids, opposition_evidence_ids, mechanism_targets, score_vector, conflict_index, safety_flags, and required_checks are generated simultaneously. If a candidate is only matched by a heterogeneous association network but lacks patient mechanism evidence or perturbation reversal evidence, it does not enter the automatic approval state; if a candidate simultaneously meets at least two independent candidate generation models, has a conflict index not higher than 0.60, and does not trigger a safety hard threshold, it enters the Top-K candidate information pending manual review. This embodiment outputs computer-generated research candidates and evidence chains, and does not assert that the candidate drugs have clinical efficacy.

[0209] Existing heterogeneous association network tools can generate drug similarity matrices and disease similarity matrices using drug-disease adjacency matrices, drug chemical structures, target proteins, drug interactions, side effects, gene expression profiles, disease ontology, disease phenotypes, and electronic medical record features, and obtain Rhet(d) through fully connected neural networks or association degree models. Registering this tool as a invoked, version-controlled candidate generation tool allows this application to add patient-level immune resistance evidence, agent contracts, missing modality control, conflict verification, and safe exit while retaining the original drug-disease association prediction capabilities.

[0210] On the other hand, please see Figure 8 This application also proposes a drug relocation system based on multi-source, multi-modal, and multi-agent technologies, which is used to predict the response to immunotherapy in advanced non-small cell lung cancer, including:

[0211] The data access and standardization module 101 is used to acquire multi-source multimodal data of the target object. The multi-source multimodal data includes drug perturbation data and medical knowledge data. The multi-source multimodal data also includes at least two types of patient data from clinical text data, medical imaging data, digital pathology data, and omics data.

[0212] The shared evidence space 102 is used to process the multi-source multimodal data and generate multiple evidence objects with unique evidence identifiers. Each evidence object includes a modality identifier, an entity identifier, an observation value, a direction identifier, a quality score, a source identifier, and an original location index.

[0213] Multiple specialized intelligent agents 103 are used to receive the evidence object and to output a structured evidence report, the structured evidence report including agent identifier, output identifier, state, discovery item, cited evidence identifier, uncertainty and confidence level;

[0214] The structured evidence verification module 104 is used to verify whether the evidence identifier referenced by each discovery item belongs to the set of evidence identifiers that the corresponding intelligent agent is allowed to read, and to isolate the structured evidence reports that fail verification.

[0215] The evidence report verification module 105 is used to construct an immune resistance status map and an evidence phenotype vector of the target object based on the verified structured evidence report. The immune resistance status map includes patient nodes, time nodes, immune status nodes, inhibitory microenvironment nodes, signaling pathway nodes, target nodes, and drug nodes. The evidence phenotype vector includes an immune activation axis, an inhibitory microenvironment axis, a genomic background axis, and a morphological background axis.

[0216] Coordinating agent 106 is used to control the drug generation agent to call at least two of the following: drug-disease heterogeneous association network model, disease expression signature and drug perturbation signature reverse matching model, and drug target and drug resistance mechanism node network proximity model, to generate a drug relocation candidate set.

[0217] The candidate drug ranking module 107 is used to control the coordinating agent to determine dynamic weights based on the availability, quality score and calibration parameters of each modality, summarize supporting evidence, opposing evidence and uncertainty information for candidate drugs, and calculate the comprehensive score and conflict index of candidate drugs.

[0218] The safety review module 108 is used to control the safety review agent to perform checks on indication boundaries, contraindications, organ function limitations, drug interactions, and evidence consistency, and to verify the directional consistency between the candidate drug and the target immune resistance mechanism through a counterfactual verification process.

[0219] The output module 109 is used to output drug repositioning candidate information based on the verification and validation results of the security review agent. The drug repositioning candidate information includes candidate drug ranking, corresponding target or pathway, sub-score, supporting evidence identifier, opposing evidence identifier, risk identifier, confidence level, and operating status. The drug repositioning candidate information does not contain automatic prescription or automatic dosing control instructions.

[0220] Here, system development data may include publicly available lung cancer omics, pathology, and imaging cohorts; publicly available or licensed immunotherapy cohorts; and ethically and access-authorized in-hospital real-world cohorts. Training, internal validation, and external validation should be separated by patient or center to avoid leakage of the same patient or image patch across collections. When drug knowledge and guidelines are segmented by time, version dates should be retained to test the system's ability to update to new evidence.

[0221] The performance of immunotherapy response prediction can be evaluated using the area under the receiver operating characteristic (ROC) curve, the area under the precision-recall curve, sensitivity, specificity, calibration error, and decision curve. The drug relocation module can be evaluated using known mechanism recovery, candidate stability, consistency of external evidence, and consistency of expert ranking. The agent system should also be evaluated for tool invocation success rate, evidence citation accuracy, unsubstantiated statement rate, conflict identification rate, manual escalation rate, abstention rate, and performance degradation under different missing proportions.

[0222] Ablation experiments can compare complete systems, remove coordinating agents, evidence retrieval, and security checks, perform fixed-weight fusion, and directly output large single models. Stress tests can mask medical records, visual or omics modalities at preset ratios, recording changes in candidate ranking, key nodes, confidence levels, and operational status. The above evaluations are used to verify the system's technical effectiveness and are not limited to specific large language models, databases, or hardware brands.

[0223] The system can be deployed locally, in a private cloud, or in a hybrid manner. Agents involving patient data and the shared evidence space can be deployed within a controlled network; external retrieval requests have patient identification information removed before being sent, and the retrieval fields are restricted by the access control module. All agent calls, tool inputs and outputs, version information, and error states are written to an immutable or integrity-verified audit log.

[0224] Compared with the prior art, this application has at least the following beneficial effects:

[0225] First, the original drug prediction centered on single transcriptomic subtyping is expanded into a multi-source, multi-modal computational chain involving clinical, imaging, pathology, omics, drug, and evidence-based knowledge, thereby improving the integrity of drug resistance state expression.

[0226] Second, by adopting specialized intelligent agents with division of labor and a shared evidence space, complex tasks are broken down into verifiable intermediate results; the coordinating agent does not directly replace specialized computation, but is responsible for dynamic weighting, conflict resolution and tool scheduling, thereby reducing role confusion.

[0227] Third, by defining the set of evidence identifiers that the agent can read and reference through evidence contracts, each discovery item references actual input evidence; outputs that fail to pass structural, citation, or medical boundary checks are isolated, reducing the probability that generative models will miswrite unmeasured information or external knowledge as patient facts.

[0228] Fourth, a traceable chain of evidence is formed by atomic evidence objects, original location indexes, model versions, and check values, enabling the ranking of candidate drugs to be traced back to medical record segments, imaging or pathological areas, group acupoints, drug perturbation records, and knowledge entries.

[0229] Fifth, by using modal missing masking, quality-perceived weights, restricted substitution relationships, and hard thresholds for waiving, we avoid filling in data without a basis when real-world data is incomplete; when reliable compensation is not possible, we explicitly output uncertainty and transfer it to manual review.

[0230] Sixth, existing heterogeneous association network models are combined with transcriptional reversal, network proximity, clinical compatibility, evidence-based support, and safety penalties to avoid candidate drugs being over-ranked due to hits by a single gene, a single database, or a single model.

[0231] Seventh, use expert feedback and outcome signals for offline, controlled, and rollbackable version updates, balancing system adaptability with auditability in the production environment.

[0232] Finally, it should be noted that although this specification contains many specific implementation details, these should not be construed as limiting the scope of any invention or the scope of the claims, but rather are primarily used to describe the features of specific embodiments of a particular invention. Certain features described in the various embodiments of this specification may also be implemented in combination in a single embodiment. On the other hand, various features described in a single embodiment may also be implemented separately in various embodiments or in any suitable sub-combination. Furthermore, while features may function in certain combinations as described above and even initially claimed in this way, one or more features from a claimed combination may be removed from that combination in some cases, and a claimed combination may refer to a sub-combination or a variation of a sub-combination.

[0233] Similarly, although the operations are depicted in a specific order in the accompanying drawings, this should not be construed as requiring these operations to be performed in the specific order shown or sequentially, or requiring all illustrated operations to be performed to achieve the desired result. In some cases, multitasking and parallel processing may be advantageous. Furthermore, the separation of various system modules and components in the above embodiments should not be construed as requiring such separation in all embodiments, and it should be understood that the described program components and systems can generally be integrated together in a single software product or packaged into multiple software products.

[0234] Thus, specific embodiments of the subject matter have been described. Other embodiments are within the scope of the appended claims. In some cases, the actions recited in the claims may be performed in a different order and still achieve the desired result. Furthermore, the processes depicted in the drawings are not necessarily shown in a specific order or sequence to achieve the desired result. In some implementations, multitasking and parallel processing may be advantageous.

[0235] The above description is merely a preferred embodiment of this disclosure and is not intended to limit this disclosure. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this disclosure should be included within the scope of protection of this disclosure.

Claims

1. A drug relocation method based on multi-source, multi-modal, and multi-agent systems, characterized in that, The drug relocation method based on multi-source, multi-modal, and multi-agent approaches is used to predict the response to immunotherapy in advanced non-small cell lung cancer. The method includes: Acquire multi-source multimodal data of the target object, wherein the multi-source multimodal data includes drug perturbation data and medical knowledge data, and the multi-source multimodal data also includes at least two types of patient data from clinical text data, medical imaging data, digital pathology data and omics data; The multi-source, multi-modal data is processed to generate multiple evidence objects with unique evidence identifiers. Each evidence object includes a modality identifier, entity identifier, observation value, direction identifier, quality score, source identifier, and original location index. The evidence objects are distributed to multiple specialized intelligent agents, and each specialized intelligent agent is controlled to output a structured evidence report, which includes an agent identifier, output identifier, state, discovery items, cited evidence identifier, uncertainty, and confidence level. Verify whether the evidence identifier referenced by each discovery item belongs to the set of evidence identifiers that the corresponding agent is allowed to read, and isolate the structured evidence reports that fail verification; Based on the validated structured evidence reports, an immune resistance status map and evidence phenotype vector for the target object are constructed. The immune resistance status map includes patient nodes, time nodes, immune status nodes, inhibitory microenvironment nodes, signaling pathway nodes, target nodes, and drug nodes. The evidence phenotype vector includes an immune activation axis, an inhibitory microenvironment axis, a genomic background axis, and a morphological background axis. The control agent for drug generation invokes at least two of the following: a drug-disease heterogeneous association network model, a disease expression signature and drug perturbation signature reverse matching model, and a drug target and drug resistance mechanism node network proximity model to generate a drug relocation candidate set. The control and coordination agent determines dynamic weights based on the availability, quality score, and calibration parameters of each modality, summarizes supporting evidence, opposing evidence, and uncertainty information for candidate drugs, and calculates the overall score and conflict index of candidate drugs. The control safety review agent performs checks on indication boundaries, contraindications, organ function limitations, drug interactions, and evidence consistency, and verifies the directional consistency between candidate drugs and target immune resistance mechanisms through a counterfactual verification process; Based on the verification and validation results of the security review agent, drug repositioning candidate information is output. The drug repositioning candidate information includes candidate drug ranking, corresponding target or pathway, sub-score, supporting evidence identifier, opposing evidence identifier, risk identifier, confidence level, and operating status. The drug repositioning candidate information does not contain automatic prescription or automatic dosing control instructions.

2. The method according to claim 1, characterized in that, The method further includes: If the key evidence phenotypic axis is unknown, the structured evidence report fails verification, or the conflict index exceeds a preset threshold, the corresponding running status will be set to abstention or manual review.

3. The method according to claim 1, characterized in that, The immune resistance status map is constructed using the following steps: Clinical phenotypes, visual phenotypes, and omics mechanisms are mapped to predefined medical ontology; Connect evidence nodes of the same patient in different time windows using temporal edges; Connecting cell states, signaling pathways, targets, and drugs through activation, inhibition, expression, binding, metabolism, or adverse reactions; For each edge, store the source evidence set, direction, reliability score, and conflict marker; Furthermore, evidence of immune activation and evidence of inhibitory microenvironment are preserved as independent evidence axes, and evidence of inhibitory microenvironment is not unconditionally treated as a fixed negative term of evidence of immune activation.

4. The method according to claim 1, characterized in that, The drug-generating agent calculates the comprehensive score of candidate drug d through the following steps: The transcription reversal score Rsig(d) is determined based on the degree of negative correlation between the abnormal expression vector of the patient or target drug resistance subgroup and the perturbation expression vector of the candidate drug. The network proximity score Rnet(d) is determined based on the shortest path, random walk distance, or diffusion distance between the candidate drug target set and the drug resistance mechanism node set. Based on the drug-drug similarity matrix, disease-disease similarity matrix, and drug-disease adjacency matrix, the heterogeneous association score Rhet(d) is determined; The comprehensive score S(d) of candidate drug d is determined based on the transcription reversal score Rsig(d), network proximity score Rnet(d), heterogeneity association score Rhet(d), clinical compatibility score Rclin(d), evidence support score Revi(d), safety penalty Ptox(d), and evidence conflict penalty Pconf(d). The comprehensive score S(d) of candidate drug d is calculated using the following formula: ; Among them, w1 to w7 are determined by the coordinating agent based on data completeness, quality score and calibration parameters, and the weights of available benefit items are normalized.

5. The method according to claim 4, characterized in that, The weights of mode m are determined using the following formula: ; in, For modal availability, take either 0 or 1. This is the aggregated value of the quality scores of the modal evidence objects. These are calibration parameters obtained from independent validation data; When any mode is missing, the corresponding Set to 0 and generate a modal missing mask; only generate a proxy feature with a proxy evidence identifier when the cross-modal substitution relationship reaches a preset reliability threshold on independent verification data; otherwise, do not fill in the corresponding feature and write the missing information into the uncertainty item.

6. The method according to claim 2, characterized in that, The following steps determine whether to set the corresponding running status to abstention or manual review: Calculate the aggregated values ​​of supporting and opposing evidence for candidate drug d; Based on the aggregated values ​​of supporting and opposing evidence for candidate drug d, calculate the conflict index C(d) of candidate drug d; If C(d) is higher than a preset threshold, then independent source retrieval and at least one specialist intelligent agent that has not generated the original conclusion are invoked for cross-verification. If the cross-verification is still higher than the threshold, then the automatic passage of the corresponding candidate drug is stopped and it is marked as requiring manual verification. The aggregate value of supporting evidence is calculated using the following formula: ; The aggregate value of opposing evidence is calculated using the following formula: ; Where r represents the reliability of the evidence and i represents the independence of the source of the evidence; The conflict index is calculated using the following formula: ; in, To prevent positive numbers with a denominator of zero.

7. The method according to claim 1, characterized in that, The term "multi-source" refers to data coming from at least two of the following sources: hospital information system, electronic medical record system, image archiving and communication system, pathology information system, sequencing platform, public biomedical database, drug database, clinical trial database, and guideline or literature knowledge base. The multimodal data includes at least two patient modalities from natural language text, structured tables, time series, medical images, whole slice images, nucleic acid or protein sequences, expression matrices, and graph structured data. The evidence objects also include patient anonymity identifiers, time windows, units, processing agent identifiers, processing model versions, processing timestamps, interpretation boundaries, and verification values; The original location index is used to locate medical record segments, image coordinate regions, pathological image blocks, omics matrix row and column positions, drug perturbation records, or knowledge base entries. The verification value is calculated from the normalized sequence of evidence objects excluding variable display fields, so that the candidate drug score can be traced back to the corresponding original data and the evidence object can be verified as having been modified. The multiple specialized intelligent agents include a medical record parsing intelligent agent, a visual phenotype intelligent agent, an omics mechanism intelligent agent, a drug generation intelligent agent, an evidence retrieval intelligent agent, a conflict review intelligent agent, and a security review intelligent agent; Each discovery includes at least a discovery identifier, a statement, a direction of action, a strength of evidence, and one or more evidence identifiers, and all of the one or more evidence identifiers exist simultaneously in the used evidence identifier list of the specialized intelligent agent; A structured evidence report in the "Completed" state includes at least one finding, while a structured evidence report in the "Insufficient Evidence" state records the missing modalities and requests for supplementation. The multiple specialized intelligent agents and the coordinating intelligent agent communicate through structured messages. The structured messages include at least a run identifier, a task phase identifier, a list of input evidence identifiers, an output identifier, a candidate drug identifier, a support list, an opposition list, a score vector, items to be verified, and a response status. The system records the run start, phase start, phase completion, phase failure, and run completion events in the execution order, and records messages that fail the structure verification or citation verification in the isolation log instead of writing them to the shared evidence space.

8. The method according to claim 1, characterized in that, The steps for constructing the immune resistance status map include: Clinical phenotypes, visual phenotypes, and omics mechanisms are mapped to predefined medical ontology; Connect evidence nodes of the same patient in different time windows using temporal edges; Connecting cell states, signaling pathways, targets, and drugs through activation, inhibition, expression, binding, metabolism, or adverse reactions; For each edge, store the source evidence set, direction, reliability score, and conflict marker; Furthermore, evidence of immune activation and evidence of inhibitory microenvironment are preserved as independent evidence axes, and evidence of inhibitory microenvironment is not unconditionally treated as a fixed negative term of evidence of immune activation.

9. The method according to claim 1, characterized in that, The evidence retrieval agent adopts a retrieval enhancement generation method, only writing content that passes access permission verification, version verification, and document chunk quality verification into the retrieval index; Search results include knowledge evidence identifiers, original text location, publication date or version, evidence level, and applicable conditions; Mechanism findings involving cases will simultaneously cite at least one patient evidence identifier and at least one knowledge evidence identifier. External models that are not actually run will only be marked as reference knowledge and will not be written as case-level results. The method further includes: performing offline updates based on expert feedback and follow-up outcomes; Offline updates based on expert feedback and follow-up outcomes include: In an update environment isolated from the production environment, adjust the agent prompt template, candidate drug score weights, calibration parameters, or search scope to generate candidate versions; The candidate versions are subjected to fixed test set regression verification, evidence traceability verification, security gate verification, modal block deletion test, and feature random occlusion test. Once the candidate version does not lower the preset security indicators and passes the version review, it will replace the production version, and retain the model version, input data hash, test results, and rollback records.

10. A drug relocation system based on multi-source, multi-modal, and multi-agent systems, characterized in that, The drug relocation system based on multi-source, multi-modal, and multi-agent technologies is used to predict the response to immunotherapy in advanced non-small cell lung cancer, including: The data access and standardization module is used to acquire multi-source multimodal data of the target object. The multi-source multimodal data includes drug perturbation data and medical knowledge data. The multi-source multimodal data also includes at least two types of patient data from clinical text data, medical imaging data, digital pathology data, and omics data. A shared evidence space is used to process the multi-source, multi-modal data and generate multiple evidence objects with unique evidence identifiers. Each evidence object includes a modality identifier, an entity identifier, an observation value, a direction identifier, a quality score, a source identifier, and an original location index. Multiple specialized intelligent agents are used to receive the evidence objects and to output a structured evidence report, which includes an agent identifier, an output identifier, a state, a discovery item, a cited evidence identifier, an uncertainty, and a confidence level. The structured evidence verification module is used to verify whether the evidence identifier referenced by each discovery item belongs to the set of evidence identifiers that the corresponding intelligent agent is allowed to read, and to isolate the structured evidence reports that fail verification. The evidence report verification module is used to construct an immune resistance status map and evidence phenotype vector of the target object based on the verified structured evidence report. The immune resistance status map includes patient nodes, time nodes, immune status nodes, inhibitory microenvironment nodes, signaling pathway nodes, target nodes, and drug nodes. The evidence phenotype vector includes an immune activation axis, an inhibitory microenvironment axis, a genomic background axis, and a morphological background axis. A coordinating agent is used to control the drug generation agent to call at least two of the following: a drug-disease heterogeneous association network model, a disease expression signature and drug perturbation signature reverse matching model, and a drug target and drug resistance mechanism node network proximity model, to generate a drug relocation candidate set. The candidate drug ranking module is used to control and coordinate the agent to determine dynamic weights based on the availability, quality score and calibration parameters of each modality, summarize supporting evidence, opposing evidence and uncertainty information for candidate drugs, and calculate the overall score and conflict index of candidate drugs. The safety review module is used to control the safety review agent to perform checks on indication boundaries, contraindications, organ function limitations, drug interactions, and evidence consistency, and to verify the directional consistency between candidate drugs and target immune resistance mechanisms through a counterfactual verification process. The output module is used to output drug repositioning candidate information based on the verification and validation results of the security review agent. The drug repositioning candidate information includes candidate drug ranking, corresponding target or pathway, sub-score, supporting evidence identifier, opposing evidence identifier, risk identifier, confidence level, and operating status. The drug repositioning candidate information does not contain automatic prescription or automatic dosing control instructions.