HIS-based ra biological preparation efficacy-risk assessment method and system
By constructing an evidence package and calculating a net benefit index, the problem of inaccurate efficacy-risk assessment of RA biologics caused by uniform rules in existing technologies is solved, enabling personalized efficacy-risk assessment and intervention recommendations, and improving the accuracy and adaptability of the assessment.
Patent Information
- Application Number
- CN202611711399.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-11-02
- Publication Date
- 2026-11-27
AI Technical Summary
In existing technologies, candidate drugs are processed according to uniform preset rules, which makes it difficult to distinguish the differences in the individual baseline conditions of different patients, resulting in low accuracy in the efficacy-risk assessment of RA biologics.
By acquiring structured and unstructured patient data from hospital information systems, evidence packages are constructed to predict efficacy, assess risks, and match contraindications. Net benefit indices are calculated, and personalized candidate ranking and intervention recommendations are output.
This improves the accuracy of efficacy-risk assessment for RA biologics, ensuring that pre-prescription review can provide appropriate candidate treatment ordering and intervention recommendations based on the patient's own condition, and reducing treatment deviations caused by misjudging the cause of failure.
Smart Images

Figure CN123182899A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of medical artificial intelligence technology, and in particular to a method and system for efficacy-risk assessment of RA biological agents based on HIS. Background Technology
[0002] Rheumatoid arthritis is a chronic, systemic autoimmune disease. Biologics and targeted synthetic antirheumatic drugs have become important treatment options for moderate to severe patients. However, there is significant heterogeneity in the response of different patients to the same drug, and biologics generally have safety risks such as infection and cardiovascular events. How to match the best treatment plan in terms of efficacy and risk among many candidate drugs is a key challenge in clinical drug decision-making.
[0003] Currently, most clinical decision support methods in hospital information systems rely on pre-set rule bases to review and intercept medical orders, or on single-dimensional efficacy or risk prediction models to provide results. Risk assessment and efficacy assessment belong to two independent and incommensurable output systems, making it difficult to weigh and rank candidate drugs under a unified dimension. At the same time, existing methods generally conflate the patient's inherent underlying disease risks with the incremental risks brought by the drug itself, and it is also difficult to further distinguish whether the failure of treatment to meet expectations is due to different mechanisms such as insufficient drug effect, abnormal immune response, or insufficient exposure. As a result, the output of the decision support system is difficult to translate into actionable clinical procedures.
[0004] Patent publication number CN118888078A discloses a drug combination risk management system based on a knowledge graph. This system constructs a clinical drug interaction knowledge graph and combines it with machine learning algorithms to predict the risk of drug interactions. Based on this, it eliminates candidate drugs layer by layer according to preset medication recommendation rules, and adjusts the dosage of components by selecting neutralizers or inhibitors. Finally, a decision support module generates medication risk alerts and decision recommendations. However, the disclosed technical solution of this system eliminates candidate drugs layer by layer according to uniform preset rules. The same rules apply to all patients, without considering the differences in the underlying conditions of different patients. For patients with different underlying conditions and inherently different risk levels, this rule-based elimination method easily leads to the same treatment conclusion, resulting in limited adaptability of the output medication recommendations to the individual patient's actual situation. Summary of the Invention
[0005] In view of this, the present invention provides a method and system for efficacy-risk assessment of RA biologics based on HIS, in order to solve the technical problem that the existing technology deals with candidate drugs according to uniform preset rules, which makes it difficult to distinguish the differences in the individual baseline conditions of different patients, resulting in low accuracy of efficacy-risk assessment of existing RA biologics.
[0006] The technical solution of this invention is implemented as follows: On the one hand, this invention provides a method for efficacy-risk assessment of RA biologics based on HIS, comprising the following steps: S1. Obtain structured diagnosis and treatment data and unstructured medical record text of the target patient from the hospital information system. Extract and process information based on the structured diagnosis and treatment data and unstructured medical record text to obtain an evidence package. The evidence package includes patient baseline characteristics, test indicators, disease activity score, medication records, drug concentration, anti-drug antibody test results, and concomitant medication records. S2. Obtain a pre-defined set of candidate drugs, each associated with a corresponding accessibility cost; based on the evidence package, predict the efficacy of each candidate drug in the pre-defined set of candidate drugs to obtain the corresponding efficacy gain; based on the dosing records, drug concentrations, and anti-drug antibody detection results, assess the exposure status and immunogenicity of each candidate drug, and determine the treatment failure type of each candidate drug in conjunction with the corresponding efficacy gain, wherein the treatment failure type includes pharmacodynamic failure, immunogenic failure, insufficient exposure failure, and mechanism uncertainty; S3. Based on the evidence package, for each candidate drug in the candidate drug set and multiple preset risk dimensions, calculate the probability of occurrence of the first risk within a preset time window after superimposing the candidate drug, and the probability of occurrence of the second risk within a preset time window after superimposing the preset reference scheme. Based on the difference between the probability of occurrence of the first risk and the probability of occurrence of the second risk, obtain the attributable risk increment of the corresponding risk dimension of the candidate drug. S4. Based on the preset taboo conditions, each candidate drug in the candidate drug set is matched and verified with the evidence package to obtain the matching results. The matching results include forced interception, pending review, and retention of the original judgment status. S5. Based on the efficacy gain, attributable risk increment, and accessibility cost of the candidate drugs, calculate the net benefit index for each candidate drug in the candidate drug set, and sort the candidate drug set according to the net benefit index to obtain a candidate protocol list; based on the numerical range of the net benefit index, the matching results, and the treatment failure type of the candidate drugs, match a corresponding graded intervention action for each candidate drug in the candidate protocol list, and output the evaluation results, which include the candidate protocol list and the corresponding graded intervention action.
[0007] Based on the above technical solutions, preferably, step S1 specifically includes: S11. An information extraction model is used to perform entity recognition on unstructured medical record text. The information extraction model includes an encoding unit, a span recognition unit, an attribute determination unit, and a pairing unit. The encoding unit is used to encode the unstructured medical record text character by character to obtain the feature representation of each character position in the character sequence of the unstructured medical record text. Based on the feature representation, the span recognition unit calculates the entity type score corresponding to each entity type for candidate segments determined by arbitrary start and end positions in the character sequence. Candidate segments with entity type scores greater than zero are determined as candidate entities. The attribute determination unit is used to determine the conclusion polarity, temporality, and subject attributes of the candidate entities. The pairing unit is used to determine the pairing relationship between test items, values, units, and time in the candidate entities. Based on the pairing relationship, conclusion polarity, temporality, and subject attributes, the candidate entities and structured diagnosis and treatment data are assembled into candidate evidence items. S12. Perform character normalization, alias matching and drug category label mapping on the drug entities in the candidate evidence entries in sequence to map the drug entities to standard entity identifiers and obtain the mapped candidate evidence entries. S13. Label the detection time for the mapped candidate evidence items, calculate the time interval between the detection time and the current time, determine the evidence freshness weight corresponding to the mapped candidate evidence items based on the time interval, and obtain the evidence package.
[0008] Based on the above technical solutions, preferably, step S13, which determines the evidence freshness weight corresponding to the mapped candidate evidence items according to the time interval to obtain the evidence package, specifically includes: S131. Obtain the strong evidence window and weak evidence window corresponding to the indicator type of the mapped candidate evidence item. The strong evidence window is smaller than the weak evidence window. S132. Compare the time interval with the strong evidence window. If the time interval does not exceed the strong evidence window, reset the evidence freshness weight to 1. If the time interval exceeds the strong evidence window, compare the time interval with the weak evidence window. If the time interval does not exceed the weak evidence window, calculate the attenuation coefficient based on the preset residual weight and the difference between the weak evidence window and the strong evidence window. Then calculate the evidence freshness weight based on the attenuation coefficient and the part of the time interval that exceeds the strong evidence window. If the time interval exceeds the weak evidence window, reset the evidence freshness weight to 0 and mark the corresponding mapped candidate evidence item as missing. S133. The freshness weight of the evidence is used as the confidence attribute of the corresponding mapped candidate evidence item, and written into the evidence package together with the mapped candidate evidence item.
[0009] Based on the above technical solutions, preferably, step S2 specifically includes: S21. Using the patient baseline characteristics in the evidence package as input, call the response prediction model to output the response probability and expected duration for each candidate drug in the candidate drug set, and combine the response probability and expected duration to obtain the efficacy gain corresponding to the candidate drug. S22. Based on the dosing records and drug concentrations in the evidence package, retrieve the population pharmacokinetic model corresponding to the candidate drug from the population pharmacokinetic model library. The population pharmacokinetic model is used to describe the relationship between drug pharmacokinetic parameters and patient covariates. Using the dosing records and drug concentrations as input, call the population pharmacokinetic model to estimate the steady-state trough concentration of the candidate drug. Compare the steady-state trough concentration with the lower limit of the treatment window corresponding to the candidate drug to obtain the exposure target achievement probability. When the drug concentration is missing, estimate the exposure distribution based on the patient's baseline characteristics and calculate the exposure target achievement probability based on the exposure distribution. S23. Based on the anti-drug antibody test results in the evidence package and the molecular characteristics of the candidate drug, call the immunogenicity prediction model to obtain the positive probability of anti-drug antibody. When the anti-drug antibody test results are missing, predict the positive probability of anti-drug antibody based on the molecular characteristics and the records of combined medication. S24. Based on the exposure target achievement probability, the positive probability of anti-drug antibody and the therapeutic gain, determine the treatment failure type of the candidate drug.
[0010] Based on the above technical solutions, preferably, step S21, which calls the response prediction model to output the response probability and expected duration for each candidate drug in the candidate drug set, specifically includes: the response prediction model includes a feature encoding unit, a response head, and a duration head. The feature encoding unit is used to determine the leaf node in each tree of the gradient boosting decision tree where the patient's baseline features fall, taking the patient's baseline features as input, and encodes the leaf node index corresponding to each tree into a shared feature representation; the response head calculates the logistic regression output value based on the shared feature representation and maps the logistic regression output value to the response probability; the duration head calculates the individual survival function of the proportional hazards model based on the shared feature representation, integrates the individual survival function within a preset time limit, and obtains the expected duration.
[0011] Based on the above technical solutions, preferably, step S24 specifically includes: The exposure compliance probability is compared with a preset first exposure threshold and a preset second exposure threshold. The preset first exposure threshold is higher than the preset second exposure threshold. When the exposure compliance probability is not lower than the first exposure threshold, it is determined to be in compliance state. When it is not higher than the second exposure threshold, it is determined to be in non-compliance state. When it is between the first exposure threshold and the second exposure threshold, it is determined to be in gray zone state. The positive probability of anti-drug antibody is compared with a preset first antibody threshold and a preset second antibody threshold. The preset first antibody threshold is higher than the preset second antibody threshold. When the positive probability of anti-drug antibody is not lower than the first antibody threshold, it is determined to be a positive state. When it is not higher than the second antibody threshold, it is determined to be a negative state. When it is between the first antibody threshold and the second antibody threshold, it is determined to be a gray zone state. When the therapeutic gain is lower than the preset therapeutic threshold and is in the target state and negative state, the treatment failure type is determined to be pharmacodynamic failure; when the therapeutic gain is lower than the preset therapeutic threshold and is in the non-target state and positive state, the treatment failure type is determined to be immunogenicity failure; when the therapeutic gain is lower than the preset therapeutic threshold and is in the non-target state and negative state, the treatment failure type is insufficient exposure failure; in all other cases, the treatment failure type is determined to be mechanism uncertain.
[0012] Based on the above technical solutions, preferably, step S3 specifically includes: S31. Based on the medication records and combined medication records in the evidence package, determine the reference scheme according to the preset priority rules; S32. Obtain historical patient records of the reference treatment from the hospital information system, calculate the propensity score based on the baseline characteristics of the target patient and the baseline characteristics of the historical patients in the evidence package, match the target patient with the historical patients based on the propensity score, and obtain the baseline risk probability corresponding to each risk dimension based on the occurrence of the corresponding event of the matched historical patients in each risk dimension. S33. Identify the interaction pathways between candidate drugs and combined medication records based on a pre-defined drug knowledge graph. The interaction pathways include common targets, common metabolic enzymes, common transporters, common pathways, and common indications. Calculate the association strength and determine the first effect size for the interaction pathways corresponding to the candidate drugs. Add the first effect size to the baseline risk probability to obtain the first risk probability after adding the candidate drugs. Calculate the association strength and determine the second effect size for the interaction pathways corresponding to the reference protocol. Add the second effect size to the baseline risk probability to obtain the second risk probability after adding the reference protocol. S34. Calculate the difference between the probability of occurrence of the first risk and the probability of occurrence of the second risk to obtain the attributable risk increment on the risk dimension corresponding to the candidate drug.
[0013] Based on the above technical solutions, preferably, step S4 specifically includes: S41. Construct a contraindication rule base based on preset contraindication conditions. Each rule in the contraindication rule base corresponds to a contraindication condition. Each rule includes a triggering condition, a corresponding feature field in the evidence package, and a judgment condition. The triggering condition is that the candidate drug belongs to the drug range applicable to the contraindication condition. The judgment condition is that the value of the feature field meets the criteria for the establishment of the contraindication condition. The contraindications include untreated active tuberculosis, active severe infection, positive hepatitis B surface antigen and no initiation of antiviral prophylaxis, planned live vaccine administration and concurrent immunosuppression, previous severe hypersensitivity reaction, severe heart failure combined with anti-tumor necrosis factor treatment, contraindication during pregnancy, and severe liver and kidney dysfunction exceeding the dose adjustment range. S42. Match each candidate drug in the candidate drug set with each rule in the prohibition rule base. If the candidate drug meets the triggering condition and the value of the corresponding feature field in the evidence package meets the judgment condition, mark the matching result as forced interception. If the candidate drug meets the triggering condition but the corresponding feature field in the evidence package is missing, mark the matching result as pending review. If the candidate drug meets the triggering condition but the value of the corresponding feature field in the evidence package does not meet the judgment condition, or if the candidate drug does not meet the triggering condition, mark the matching result as retaining the original judgment status.
[0014] Based on the above technical solutions, preferably, step S5, which involves matching corresponding graded intervention actions for each candidate drug in the candidate solution list, includes: When the matching result is forced interception, the forced interception action will be used as the graded intervention action corresponding to the candidate drug; When the matching result is pending review, the action to be blocked pending review will be used as the graded intervention action corresponding to the candidate drug; When the matching result retains the original judgment state, the basic graded intervention action is determined based on the numerical range of the net benefit index. The basic graded intervention action includes a silent release action, an information prompt action, and an interception pending review action. Among them, when the preset first net benefit threshold is higher than the preset second net benefit threshold and the net benefit index is not lower than the first net benefit threshold, the basic graded intervention action is a silent release action; when the net benefit index is lower than the first net benefit threshold but not lower than the second net benefit threshold, the basic graded intervention action is an information prompt action; when the net benefit index is lower than the second net benefit threshold, the basic graded intervention action is an interception pending review action. On this basis, when the treatment failure type is uncertain, the basic graded intervention action is downgraded by one level and used as the graded intervention action corresponding to the candidate drug; if the basic graded intervention action is already an interception pending review action, the interception pending review action remains unchanged; when the treatment failure type is pharmacodynamic failure, immunogenicity failure, or insufficient exposure failure, the basic graded intervention action is used as the graded intervention action corresponding to the candidate drug.
[0015] On the other hand, the present invention also provides an HIS-based efficacy-risk assessment system for RA biologics, comprising: The evidence acquisition module obtains structured medical data and unstructured medical record text of the target patient from the hospital information system, extracts and processes information from the structured medical data and unstructured medical record text to obtain an evidence package. The evidence package includes the patient's baseline characteristics, test indicators, disease activity score, medication records, drug concentration, anti-drug antibody test results and concomitant medication records. The efficacy assessment module obtains a pre-defined set of candidate drugs, each of which is associated with a corresponding accessibility cost. Based on the evidence package, the module predicts the efficacy of each candidate drug in the set and obtains the corresponding efficacy gain. Based on the dosing records, drug concentrations, and anti-drug antibody test results, the module assesses the exposure status and immunogenicity of each candidate drug. Combining the efficacy gain of the candidate drug, the module determines the treatment failure type of each candidate drug. Treatment failure types include pharmacodynamic failure, immunogenic failure, insufficient exposure failure, and mechanism uncertainty. The risk attribution module, based on the evidence package, calculates the probability of occurrence of the first risk within a preset time window after superimposing the candidate drug and multiple preset risk dimensions for each candidate drug in the candidate drug set, and the probability of occurrence of the second risk within a preset time window after superimposing the preset reference scheme. Based on the difference between the probability of occurrence of the first risk and the probability of occurrence of the second risk, the attributable risk increment of the candidate drug on the corresponding risk dimension is obtained. The contraindication verification module matches and verifies each candidate drug in the candidate drug set with the evidence package based on preset contraindication conditions, and obtains matching results. The matching results include forced interception, pending review, and retention of the original judgment status. The net benefit assessment module calculates the net benefit index for each candidate drug in the candidate drug set based on efficacy gain, attributable risk increment, and accessibility cost of candidate drugs. The candidate drug set is then sorted according to the net benefit index to obtain a candidate protocol list. Based on the numerical range of the net benefit index, the matching results, and the treatment failure type of the candidate drug, a corresponding graded intervention action is matched for each candidate drug in the candidate protocol list, and the assessment results are output. The assessment results include the candidate protocol list and the corresponding graded intervention action.
[0016] The present invention has the following advantages over the prior art: (1) This invention obtains structured and unstructured patient data from the hospital information system to form an evidence package, and sequentially completes efficacy assessment, risk attribution, contraindication matching and net benefit calculation. It incorporates efficacy, risk and accessibility costs into a unified net benefit index for ranking, and outputs graded intervention actions according to the ranking results and contraindication matching. This changes the way candidate drugs are treated indiscriminately according to a unified preset rule, and enables pre-prescription review to provide candidate scheme ranking and intervention suggestions that are appropriate to the patient's own condition, thereby improving the accuracy of efficacy-risk assessment.
[0017] (2) This invention determines the freshness weight of evidence based on the interval between the detection time and the current time, and writes this weight into the evidence package as a confidence level and uses it as a discount factor in subsequent fusion. Compared with the approach of not distinguishing the timeliness of evidence and treating new and old test results equally, this approach can avoid making judgments that are inconsistent with the patient's current state due to the acceptance of expired test results, and at the same time triggers a supplementary test prompt for items that exceed the evidence window.
[0018] (3) Based on the combined relationship between the exposure target achievement probability, the positive probability of anti-drug antibody, and the therapeutic gain, this invention classifies treatment failure into pharmacodynamic failure, immunogenic failure, insufficient exposure failure, or uncertain mechanism failure, and provides corresponding treatment directions. Compared with the general approach that only outputs the general conclusion of poor efficacy, this classification method can provide a basis for different treatment paths such as changing drugs, adjusting dosage, or using other drugs in combination, reducing treatment deviations caused by misjudging the cause of failure.
[0019] (4) This invention constructs two virtual trajectories for the same patient: one for the candidate drug and one for the reference regimen. The difference between the probabilities of occurrence of the two trajectories is taken as the attributable risk increment. This ensures that the risk assessment results reflect the increment brought by the candidate drug relative to the reference regimen, rather than the patient's existing baseline risk. Compared with the approach that directly uses the absolute probability of occurrence of the candidate drug as the assessment basis, this approach can distinguish between baseline risk and the risk brought by the drug itself, reducing assessment bias caused by baseline differences between patients. Attached Figure Description
[0020] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0021] Figure 1 This is a flowchart of the efficacy-risk assessment method for RA biological agents of the present invention; Figure 2 This is a flowchart illustrating the construction process of the evidence package for this invention. Figure 3 This is a structural diagram of the efficacy prediction model of the present invention; Figure 4 This is a diagram illustrating the net benefit index calculation and tiered intervention decision-making process of the present invention. Figure 5 This is a structural diagram of the efficacy-risk assessment system for RA biological agents of the present invention. Detailed Implementation
[0022] The technical solutions of the present invention will be clearly and completely described below with reference to the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present invention.
[0023] like Figure 1 As shown, this invention provides a method for efficacy-risk assessment of RA biologics based on HIS, comprising the following steps: S1. Obtain structured diagnosis and treatment data and unstructured medical record text of the target patient from the hospital information system. Extract and process information based on the structured diagnosis and treatment data and unstructured medical record text to obtain an evidence package. The evidence package includes patient baseline characteristics, test indicators, disease activity score, medication records, drug concentration, anti-drug antibody test results, and concomitant medication records. S2. Obtain a pre-defined set of candidate drugs, each associated with a corresponding accessibility cost; based on the evidence package, predict the efficacy of each candidate drug in the pre-defined set of candidate drugs to obtain the corresponding efficacy gain; based on the dosing records, drug concentrations, and anti-drug antibody detection results, assess the exposure status and immunogenicity of each candidate drug, and determine the treatment failure type of each candidate drug in conjunction with the corresponding efficacy gain, wherein the treatment failure type includes pharmacodynamic failure, immunogenic failure, insufficient exposure failure, and mechanism uncertainty; S3. Based on the evidence package, for each candidate drug in the candidate drug set and multiple preset risk dimensions, calculate the probability of occurrence of the first risk within a preset time window after superimposing the candidate drug, and the probability of occurrence of the second risk within a preset time window after superimposing the preset reference scheme. Based on the difference between the probability of occurrence of the first risk and the probability of occurrence of the second risk, obtain the attributable risk increment of the corresponding risk dimension of the candidate drug. S4. Based on the preset taboo conditions, each candidate drug in the candidate drug set is matched and verified with the evidence package to obtain the matching results. The matching results include forced interception, pending review, and retention of the original judgment status. S5. Based on the efficacy gain, attributable risk increment, and accessibility cost of the candidate drugs, calculate the net benefit index for each candidate drug in the candidate drug set, and sort the candidate drug set according to the net benefit index to obtain a candidate protocol list; based on the numerical range of the net benefit index, the matching results, and the treatment failure type of the candidate drugs, match a corresponding graded intervention action for each candidate drug in the candidate protocol list, and output the evaluation results, which include the candidate protocol list and the corresponding graded intervention action.
[0024] It should be noted that the hospital intranet deploys a shadow FHIR mapping layer, which extracts raw data from the hospital information system's HIS (Hospital Information System), laboratory system, EMR (Electronic Medical Record System), image reporting system, vaccination records, and drug catalog through one of three methods: views, message subscriptions, or interface adaptation. This raw data is then mapped to a unified internal virtual resource object. For systems with standard data interfaces, the data is read directly according to preset field mapping rules via an interface adapter. For systems with only read-only database access, materialized views are created and incremental extraction is performed at preset intervals. For systems that only provide a message bus, incremental data is obtained by subscribing to the hospital integration platform or HL7 v2 messages. Virtual resource objects include patient demographic resources, disease activity resources (DAS28-ESR, DAS28-CRP, CDAI, SDAI), medication resources (including generic name, brand name, biosimilar identifier, dosage, route of administration, dosing interval, start and end times, and actual administration records), laboratory resources (CRP, ESR, liver and kidney function tests, complete blood count, immunoglobulins, HBV serological panel, HBV-DNA, T-SPOT or IGRA, tuberculin skin test, autoantibody profile, drug trough concentration, and anti-drug antibody titer), comorbidities and surgical history resources, and vaccination and scheduled vaccination resources. Hospital information systems without standard interfaces are adapted at the field level, ensuring all patient data remains within the hospital. Structured medical data includes patient gender, age, weight, diagnostic codes, laboratory test results, disease activity score records, medication orders, and cost information. Unstructured medical record text includes outpatient records, inpatient medical records, progress notes, discharge summaries, and free text in imaging descriptions.
[0025] Patient baseline characteristics refer to the set of features that reflect the pre-treatment status of the target patient before the assessment time point, including age, sex, body mass index, disease duration, rheumatoid factor, anti-cyclic citrullinated peptide antibody, baseline disease activity, history of previous use and failure of biologics or targeted synthetic drugs, concomitant medications such as methotrexate, comorbidities, and smoking status. Baseline disease activity and comorbidities are taken from the baseline time point values of the corresponding categories of disease activity scores, laboratory test indicators, and concomitant medication records in the evidence package. For historical patients, the most recent record before the start of treatment with the reference protocol constitutes the patient's baseline characteristics, with fields, units, and definitions consistent with those of the target patient, and subjected to the same information extraction and standardization processing as in step S1.
[0026] In one embodiment of the present invention, such as Figure 2 As shown, step S1 specifically includes: S11. An information extraction model is used to perform entity recognition on unstructured medical record text. The information extraction model includes an encoding unit, a span recognition unit, an attribute determination unit, and a pairing unit. The encoding unit is used to encode the unstructured medical record text character by character to obtain the feature representation of each character position in the character sequence of the unstructured medical record text. Based on the feature representation, the span recognition unit calculates the entity type score corresponding to each entity type for candidate segments determined by arbitrary start and end positions in the character sequence. Candidate segments with entity type scores greater than zero are determined as candidate entities. The attribute determination unit is used to determine the conclusion polarity, temporality, and subject attributes of the candidate entities. The pairing unit is used to determine the pairing relationship between test items, values, units, and time in the candidate entities. Based on the pairing relationship, conclusion polarity, temporality, and subject attributes, the candidate entities and structured diagnosis and treatment data are assembled into candidate evidence items.
[0027] Specifically, the encoding unit employs a pre-trained encoder in the Chinese medical domain, with implementations such as RoBERTa-wwm-ext-large or ERNIE-Health available. It encodes the medical record text character by character, outputting the feature representation of each character position. Dictionary priors are injected before entering the encoding unit: a controlled vocabulary of drug generic names, brand names, and test item names is compiled into character-level matching results. For each character, a learnable embedding of its corresponding dictionary label is generated and concatenated with the character vector before being fed into the encoding unit. The core parameters can be frozen; only low-rank bypasses with rank 8 are added to the query projection and value projection matrices of the self-attention layer. The trainable parameters account for approximately 0.3% of the total model. The span recognition unit uses a typed span pointer structure, with a length of... The character sequence is an unstructured medical record text encoded character by character by the encoding unit. When the medical record text is long, it can be first divided into text segments of no more than the maximum input length of the encoder by paragraphs or sentences. The character sequence corresponding to each text segment is used as the input sequence, where n is the length of the character sequence. The model pairs each start and end position... Output the first Scoring of entity classes: ; in , For the coding unit at position , Feature representation, For the first Query projection of class entities, For the first Key projection of class entities, For the type bias corresponding to the t-th type entity, t is the projection dimension, and t is the category index of the entity type. When the value is greater than zero, the fragment will be... Determined as the first Candidate entities are categorized into several types. Entity types include test items, test results, test values, units, test time, disease activity metrics and values, drugs, dosages, routes of administration, dosing intervals, and past events. A pointer structure is used to handle the numerous nested and discontinuous entities present in medical records and test reports. For example, "anti-HBc positive" may contain both the test item and the test result, and discontinuous expressions may include "T-SPOT and IGRA are both negative." The attribute determination unit feeds the span-pooled vector of each candidate entity into three independent classifiers to determine the polarity, temporality, and subject attribute. The polarity is defined as positive, negative, or uncertain; the temporality as current, past, or planned; and the subject attribute as self, family, or others. The pairing unit uses a dual affine scoring method to calculate pairwise scores for each candidate entity. ; in , Candidate entities , Feature representation, It is a learnable biaffine weight matrix. Two candidate entities with a pairing score greater than a preset pairing threshold are considered to be paired, which is used to determine the correspondence between test items, values, units, and time, assembling scattered representations into a structured record. The span recognition unit, attribute determination unit, and pairing unit share the encoding unit parameters, and the total loss is... , The loss corresponding to the span recognition unit, The loss corresponding to the attribute determination unit. The loss corresponding to the pairing unit, , These are the weighting coefficients for the corresponding loss terms. and Select from the validation set.
[0028] Based on pairing relationships, conclusion polarity, temporality, and subject attributes, candidate entities are merged and deduplicated with similar fields in structured medical data, assembling them into candidate evidence entries. Each candidate evidence entry outputs a fixed five-tuple of source information: report identifier, start and end character offsets, original text fragment, model version number, and post-calibration confidence score. Span scores are converted into probabilities after temperature calibration; those below a preset extraction confidence threshold... The extraction results are not written to the virtual resource object, but are marked as unconfirmed and treated as missing, triggering a supplementary inspection suggestion or manual confirmation. The score is determined on the validation set according to the cost-sensitivity criterion, defaulting to the score corresponding to a precision of 0.95. Entries with confidence scores below the threshold are not allowed to be directly output as definitive conclusions.
[0029] S12. Perform character normalization, alias matching and drug category label mapping on the drug entities in the candidate evidence entries in sequence to map the drug entities to standard entity identifiers, and obtain the mapped candidate evidence entries.
[0030] The mapping process employs a three-layer standard coding system. The active ingredient layer uses the fifth-level code of the Anatomical Therapeutic Chemistry Classification. The molecular identifier layer assigns molecular identifiers to the original drug and each biosimilar under the same active ingredient; these molecular identifiers are derived from the approval number or import registration certificate number. A many-to-one mapping relationship is established between the hospital's drug dictionary entries and the above three layers, and the mapping table version is incorporated into the dependency element fingerprint. Character normalization sequentially performs NFKC-compatible decomposition, full-width / half-width folding, traditional to simplified Chinese conversion, Greek and Roman numeral folding, uppercase / lowercase folding, and whitespace and punctuation merging. Then, regular expressions are used to strip dosage form, specifications, packaging, and manufacturer suffixes to obtain a standardized string. The stripped dosage form and specification information is not discarded but converted into structured fields for candidate scoring. Alias matching aims at recall and is performed in parallel using three methods: Aho-Corasick automata built from an alias dictionary is used for multi-pattern exact matching; BM25 retrieval is performed using a character triple inverted index to select the top 20 candidates; and fuzzy matching using Chinese Pinyin string comparison and Damerau-Levenshtein edit distance not exceeding 2 is used to supplement recall, handling typos and homophone substitutions. The three candidate sets are then merged and deduplicated to obtain the candidate set. Each candidate in the candidate set... A candidate standard drug entry is an entry in the hospital's drug dictionary that can be mapped to standard entity identifiers at the active ingredient layer, marketed product layer, and molecular identifier layer via a many-to-one mapping relationship. For each candidate in the candidate set... Calculate its combined score with the entity of the drug to be mapped: ; in, as a candidate The overall score, For string similarity, the drug entity specification string is compared with the candidate string. The mean of the "1 minus normalized edit distance" between the names or aliases and the Jaccard coefficient of the character triples. To ensure structural consistency, the values of the drug entity side in the four structural fields of dosage form, strength, route of administration, and manufacturer are compared with those of the candidate drugs. The proportion of corresponding fields with consistent values. For context consistency, select candidates. Empirical co-occurrence probability of the ATC class under the conditions of this department, this indication, and the frequency of this prescription. , as a candidate Log normalized value of prescription volume in the hospital over the past 12 months; , , , These are the coefficients of the corresponding terms. The four coefficients satisfy... The mappings were determined using a grid search on a manually labeled mapping set within the institute, and then relabeled according to the dictionary version. The candidate with the highest score was selected. Not less than Then it will be accepted automatically; if Falling Within the interval, where, To automatically accept the threshold, The threshold for unidentified judgment is... > If the score difference between the top two candidates is less than 0.05, it is considered ambiguous, and the corresponding drug entry is frozen for automatic evaluation and enters the pharmacist manual confirmation queue; if Below If it is not recognized, the corresponding entry will be treated as missing and a prompt will be triggered. and The cost ratio of mismapping to omission is determined on the annotation set. The cost of mismapping is set according to the grade of possible erroneous interception or erroneous release, with the default value being 5 times the cost of omission. Mechanism terms such as "TNF," "IL-6," "JAK," and "CD20," as well as category terms such as "inhibitor," "antagonist," and "monoclonal antibody," are included in the mechanism term stop set, so that they only participate in drug category label mapping and not in string similarity calculation, avoiding mismatches between entities like "tocilizumab" and "tofacitinib" that share literal fragments but have different mechanisms of action. The original drug and various biosimilars are mapped to the same active ingredient node, and response prediction and class effect risk share the same model and evidence on the active ingredient node. Each product also retains an independent molecular identifier node, and the probability of anti-drug antibody formation and injection site reaction and infusion reaction are labeled separately according to the molecular identifier node. The two layers are connected by edges of different molecules of the same component, which is used to determine which cached results can be reused when switching to biosimilars.
[0031] S13. Label the detection time for the mapped candidate evidence items, calculate the time interval between the detection time and the current time, determine the evidence freshness weight corresponding to the mapped candidate evidence items based on the time interval, and obtain the evidence package.
[0032] Specifically, the strong evidence window and weak evidence window corresponding to the indicator type of the mapped candidate evidence item are obtained, with the strong evidence window being smaller than the weak evidence window. The window length is preset according to the clinical stability of the indicator and can be adjusted according to departmental configuration. The strong evidence window for T-SPOT or IGRA is no more than 3 months, and the weak evidence window is 3 to 12 months. An interval exceeding 12 months is considered missing, and conclusions of no tuberculosis risk are prohibited based on this. The strong evidence window for HBsAg or anti-HBc serology is no more than 6 months, and the weak evidence window is 6 to 24 months. If the window exceeds the window, the weight is reduced and a retest is suggested. The strong evidence window for HBV-DNA in HBsAg-positive individuals is no more than 3 months. The strong evidence window for blood routine or liver and kidney function is no more than 1 month, and the weak evidence window is 1 to 3 months. If the window exceeds the strong evidence window, the weight is reduced and a retest before medication is suggested. The strong evidence window for DAS28 disease activity is no more than 6 weeks, and the weak evidence window is 6 weeks to 3 months. If the window exceeds the window, the confidence level for efficacy prediction is lowered and marked. Strong evidence windows for drug trough concentrations or anti-drug antibodies are no more than 3 months, weak evidence windows are 3 to 6 months, and those exceeding the window are not included in the exposure attribution determination but are instead recommended for testing.
[0033] Time interval With strong evidence window Comparison. When the time interval does not exceed the strong evidence window, the freshness of the evidence is weighted. Set to 1. The time interval exceeds the strong evidence window but does not exceed the weak evidence window. At that time, based on the preset residual weight The decay coefficient is calculated based on the difference between the weak evidence window and the strong evidence window. Then, the freshness weight of the evidence is calculated based on the decay coefficient and the portion of the time interval that exceeds the strong evidence window. ; ; in The preset residual weight represents the minimum weight that is retained after the time interval reaches the weak evidence window. For weak evidence time window threshold, For strong evidence time window threshold, The time interval is the interval between the detection time of the mapped candidate evidence item and the current time. The detection time is the specimen collection time or examination implementation time corresponding to the evidence; the current time is the moment that triggered this evaluation, the batch calculation moment when the slow channel is used for batch pre-calculation, and the moment when the fast channel is used to issue a medical order. This is the attenuation coefficient, representing the decrease in the weight of evidence freshness per unit time after the time interval exceeds the strong evidence window. Different types of evidence can be configured with separate triples. For example, tuberculosis infection screening uses 90 days, 365 days, and 0.15; hepatitis B serology uses 180 days, 730 days, and 0.20; HBV-DNA in HBsAg-positive individuals uses 90 days, 180 days, and 0.30; complete blood count and liver and kidney function use 30 days, 90 days, and 0.25; immunoglobulin quantification uses 90 days, 365 days, and 0.25; drug trough concentration and anti-drug antibody titer use 90 days, 180 days, and 0.30; autoantibody profiles are considered quasi-constant features, with a strong evidence window of 1825 days, no upper limit for the weak evidence window, and a constant evidence freshness weight of 1. When the time interval exceeds the weak evidence window, the evidence freshness weight is reset to 0, and the corresponding mapped candidate evidence item is marked as missing. Missing items trigger a retest prompt. For indicators that can change rapidly with the disease, including DAS28, CRP, ESR, and white blood cell count, an equivalent aging correction is introduced: if the rate of change between the two most recent measurements of the corresponding indicator is... Then: ; Substituting the weights into the above calculation, where To use the rate of change as a reference, the median of the absolute values of the rates of change of this indicator in the hospital cohort was taken. The coefficient representing the rate of change is set to 0.5 by default and is fitted using data from within the hospital. Indicates the equivalent time interval. This indicates the rate of change of the indicator between the two most recent measurements.
[0034] In another embodiment of the present invention, the disease activity score DAS28, CDAI, and SDAI are calculated using half-life to determine the evidence freshness weights. ; In the formula, The half-life parameter is used to calculate the weight of the disease activity score every [period]. The day's decay is reduced to half of its original value, then... sky, sky, For each day exceeding the strong evidence window, the weight is halved every 42 days; after 90 days, the result is considered missing and the confidence level for predicting efficacy is lowered. This represents the evidence freshness weight in this embodiment.
[0035] The freshness weight of the evidence is used as the confidence attribute of the corresponding mapped candidate evidence item and is written into the evidence package along with the mapped candidate evidence item. The freshness weight is not used to scale the point estimation of the evidence, but rather to scale the precision of the corresponding evidence in posterior inference. The precision is calculated according to... Reduction, where, For the reduced Bayesian accuracy, To achieve the original Bayesian accuracy before reduction, Let be the freshness weight of the j-th piece of evidence, and j be the index of the evidence number. When the value approaches 0, the evidence completely exits the likelihood, and the point estimate shrinks towards the prior as the evidence becomes older, while the confidence interval widens synchronously.
[0036] In one embodiment of the present invention, such as Figure 3 As shown, step S2 specifically includes: S21. Using the patient baseline characteristics in the evidence package as input, call the response prediction model to output the response probability and expected duration for each candidate drug in the candidate drug set, and combine the response probability and expected duration to obtain the efficacy gain corresponding to the candidate drug.
[0037] Specifically, input features include age, sex, body mass index, disease duration, rheumatoid factor, anti-cyclic citrullinated peptide antibody, baseline DAS28, previous exposure to and failure of biologics or targeted synthetic drugs, methotrexate usage, comorbidities, and smoking status. The response prediction model includes feature encoding units, a response head, and a survival head. The feature encoding units employ gradient boosting decision trees, and the implementation method can be LightGBM, with the number of trees... The default depth is 300, and the maximum depth is 5. Using the patient's baseline features as input, the leaf node where the patient's baseline features fall in each tree is determined. The leaf node indices corresponding to each tree are encoded into sparse one-hot vectors and then concatenated to obtain the shared feature representation. ,in For the first The number of leaf nodes in each tree. Tree construction was stratified according to drug mechanism category, with separate trees constructed for TNF-α inhibitors, IL-6 receptor antagonists, JAK inhibitors, and anti-CD20 and CTLA4-Ig. Molecular identifiers were included in the model as intra-class features. Patient-side features shared definitions and preprocessing pipelines across the four groups to ensure... The semantics are comparable. The response header is defined in The L2 regularized logistic regression above outputs the probability of low disease activity or remission over 6 months. And calibrated by isotonic regression. The surviving header is defined in the same way. The elastic net regularized Cox proportional hazards model defines an event as discontinuation of the drug due to inadequate efficacy, adverse reactions, or patient-related reasons, and outputs an individual survival function. Then give the duration of the restricted mean. : ; in The preset time window for efficacy evaluation is 24 months by default. Let be the individual survival function corresponding to candidate drug d. This is the patient's baseline feature vector. Shared by both heads. They do not share head parameters. Training is divided into two phases. The first phase jointly trains the tree structure, and the objective function is the weighted sum of the losses from the two tasks. ,in The negative logarithm of the Cox partial likelihood of the surviving task is used, and its gradient is calculated using the first-order approximation backpropagation to the split gain of the tree. The validation set is selected from {0, 0.25, 0.5, 1.0}. This represents the logarithmic loss of the response task, i.e., the binary cross-entropy of the response probability output by the response head relative to the binary classification label. In the second stage, the tree structure and leaf node partitions are fixed, and the parameters of the two heads are fitted separately. The calculation is performed on the validation set. and Spearman rank correlation . The above joint training results are adopted when the value is not lower than 0.4; If the score is below 0.4, the two tasks are deemed incompatible for the corresponding drug category, and the model is reverted to two independently trained models. The interval estimate of the efficacy gain for that drug category is then widened by a preset factor. The test results are recorded in the evidence package along with the model version. The efficacy gain is obtained by combining the response probability and the expected duration of treatment. The expected effective treatment time is recorded. , Given the calibrated response probability output by the response header, then: ; in As a preset reference scheme, Calculate the reference scheme using the same formula. This is the preset time window for efficacy evaluation. A dimensionless quantity means that it is relative to a reference scheme, within a time window. The percentage increase in effective treatment time per unit time for the corresponding candidate drug. Response probability and expected duration are not included in the treatment failure type classification; they are only used as trigger conditions for initiation judgment and as inputs for calculating efficacy gain.
[0038] S22. Based on the dosing records and drug concentrations in the evidence package, retrieve the population pharmacokinetic model corresponding to the candidate drug from the population pharmacokinetic model library. The population pharmacokinetic model is used to describe the relationship between drug pharmacokinetic parameters and patient covariates. Using the dosing records and drug concentrations as input, call the population pharmacokinetic model to estimate the steady-state trough concentration of the candidate drug. Compare the steady-state trough concentration with the lower limit of the treatment window corresponding to the candidate drug to obtain the exposure target achievement probability. When the drug concentration is missing, estimate the exposure distribution based on the patient's baseline characteristics and calculate the exposure target achievement probability based on the exposure distribution.
[0039] For monoclonal antibody biologics, the built-in population pharmacokinetic model library is invoked. Using the dose, interval, and actual execution time from the actual dosing records, along with existing measured trough concentrations as input, maximum a posteriori Bayesian estimation is employed to estimate individual clearance and steady-state trough concentration exposure, which are then compared with the lower limit of the corresponding drug's therapeutic window. Compare and output the probability of meeting the exposure criteria. The population pharmacokinetic model consists of a structural model (such as a one- or two-compartment linear model and absorption and elimination processes), a statistical model (inter-individual variation and residual variation), and a covariate model (the effects of body weight, serum albumin, CRP, and whether methotrexate was used concurrently on clearance and volume of distribution). When a measured trough concentration with a suitable freshness weight exists, The results are given directly from the measured value and the detection uncertainty; the measured value is not less than... When taken as 0.95, it is lower than When the value is 0.05, and there is no measured value, Calculated from the posterior distribution estimated by maximum a posteriori Bayes: ; In the formula, For steady-state valley concentration, This is the lower limit of the therapeutic window (i.e., the preset exposure target concentration threshold). This represents the probability of achieving the target exposure. Covariates for cases without measured concentrations include body weight, serum albumin, CRP, whether methotrexate was used concurrently, and route of administration. Each drug is individually labeled and versioned. Adalimumab is set to 5 μg / ml by default, but can be prepared at 4 μg / ml according to hospital standards. Infliximab, golimumab, and sertuzumab are labeled according to hospital testing methods and literature treatment windows. For small molecule drugs, the exposure distribution is predicted a priori based on covariate outputs, and then the probability of achieving the exposure target is calculated accordingly. A probability of achieving the exposure target of not less than 0.70 is considered as achieving the target, not more than 0.30 is considered as not achieving the target, and anything in between is considered as being in the gray zone.
[0040] S23. Based on the anti-drug antibody test results and the molecular characteristics of the candidate drug in the evidence package, the immunogenicity prediction model is called to obtain the positive probability of anti-drug antibody. When the anti-drug antibody test results are missing, the positive probability of anti-drug antibody is predicted based on the molecular characteristics and the records of combined medication.
[0041] The model can employ logistic regression or a gradient boosting tree structure. Input features include chimeric antibodies, fully human antibodies, fusion proteins, or small molecule categories; route of administration and interval; presence or absence of methotrexate; history of immunogenicity with previous biologics; and autoantibody status. The output is the cumulative probability curve of anti-drug antibody formation during the treatment period. When a freshness-weighted measured titer exists, a value of 0.95 is assigned to a positive result and 0.05 to a negative result, and low-titer versus medium-high titers are distinguished based on whether the titer is below three times the lower limit of quantitation of the hospital's detection method. When anti-drug antibody test results are missing, prediction is performed using only molecular characteristics and concomitant medication records as input features; for treatment-naïve patients, the cumulative value over 12 months of treatment is used. Different biosimilars are labeled separately at the molecular marker node.
[0042] S24. Based on the exposure target achievement probability, the positive probability of anti-drug antibody and the therapeutic gain, determine the treatment failure type of the candidate drug.
[0043] The probability of meeting the exposure standard is compared with a preset first exposure threshold and a preset second exposure threshold. More preferably, the first exposure threshold is set to 0.70 and the second exposure threshold is set to 0.30. When the probability of meeting the exposure standard is not lower than the first exposure threshold, it is determined to be in a qualified state; when it is not higher than the second exposure threshold, it is determined to be in a non-qualified state; and when it is between the first exposure threshold and the second exposure threshold, it is determined to be in a gray zone state.
[0044] The positive probability of anti-drug antibodies is compared with preset first antibody threshold and preset second antibody threshold. More preferably, the first antibody threshold is set to 0.60 and the second antibody threshold is set to 0.25. A positive state is determined when the positive probability of anti-drug antibodies is not lower than the first antibody threshold, a negative state is determined when it is not higher than the second antibody threshold, and a gray zone state is determined when it is between the first antibody threshold and the second antibody threshold.
[0045] If the therapeutic gain is below the preset therapeutic threshold, but the treatment is within the target range and negative, the treatment failure type is determined to be pharmacodynamic failure. The appropriate course of action is to change the target, for example, from a TNF inhibitor to an IL-6 receptor antagonist or a JAK inhibitor. If the therapeutic gain is below the preset therapeutic threshold, but the treatment is not within the target range and positive, the treatment failure type is determined to be immunogenicity failure. The appropriate course of action is to change the drug molecule or use an immunosuppressant in combination. If the therapeutic gain is below the preset therapeutic threshold, but the treatment is not within the target range and negative, the treatment failure type is insufficient exposure failure. The appropriate course of action is to increase the dosage or shorten the dosing interval, and to verify adherence and dosing records. All other cases are determined to be treatment failure type with an uncertain mechanism.
[0046] In one embodiment of the present invention, when the therapeutic gain is lower than a preset therapeutic threshold, instead of rigidly dividing the probability of achieving the exposure target and the probability of positive anti-drug antibody as the sole basis, the posterior probabilities of four attributable scenarios are calculated by multiplying the two probabilities: ; ; ; ; in Corresponding to pharmacodynamic failure, Corresponding to immunogenicity failure, The corresponding exposure is insufficient and therefore fails. In the other case where the test results are positive, the criteria are met. This represents the probability of a positive anti-drug antibody test. The case with the highest posterior probability is taken as the mechanism label, and the corresponding probability value is output simultaneously. If the highest posterior probability is below 0.50, or the probability difference between the two highest probabilities is less than 0.15, it is labeled as an uncertain mechanism, and the action is downgraded to a recommendation to complete therapeutic drug monitoring before further analysis; the confidence level is labeled as low. When neither the exposure dimension nor the antibody dimension has a qualified measured value, and the sum of the binary entropies of the two predicted probabilities is... If the value exceeds 1.6 bits, or if both fall within the gray area of approximately 0.30 to 0.70, it is directly determined that the mechanism is uncertain, and a treatment drug monitoring detection suggestion is output.
[0047] When one dimension is in the gray area and the other is clear, the system outputs the scenario with the highest probability and simultaneously provides the second-best scenario; the action taken is the intersection of the two. For example, if the exposure is in the gray area and the antibody is negative, the action taken is to first check compliance and medication records and detect the trough concentration to avoid giving the opposite recommendation for switching medication when the mechanism is unclear. If neither exposure nor antibody has been detected, the system outputs recommendations for monitoring therapeutic drugs, without recommending switching medication, and the confidence level is marked as low.
[0048] In one embodiment of the present invention, in step S3, the preset multiple risk dimensions include at least severe infection, latent tuberculosis reactivation, HBV reactivation, herpes zoster, major adverse cardiovascular events, venous thromboembolism, malignancy, hypogammaglobulinemia, hepatotoxicity, hematologic toxicity, and vaccination conflict. The preset time window is 12 months by default, but can be configured to 3 months or 24 months, and multiple time window results can be output simultaneously. When the length of the risk time window is inconsistent with the efficacy assessment time window, the probability of risk occurrence is converted to a 12-month caliber. Specifically, this includes: S31. Based on the medication and concomitant medication records in the evidence package, determine the reference regimen according to the preset priority rules. If the patient is currently using a biologic or targeted synthetic drug, use the currently used drug as the reference regimen. If not, use the first-line drug with the highest usage rate among similar patients in this hospital as the reference regimen.
[0049] S32. Obtain historical patient records of the reference treatment from the hospital information system, calculate propensity score based on the baseline characteristics of the target patient and the baseline characteristics of the historical patients in the evidence package, match the target patient with the historical patients based on the propensity score, and obtain the baseline risk probability corresponding to each risk dimension based on the occurrence of the corresponding event of the matched historical patients in each risk dimension.
[0050] Historical patient cohorts were formed by retrieving records of patients treated according to the reference protocol and diagnosed with rheumatoid arthritis from the hospital information system. Propensity score was calculated based on the baseline characteristics of the target patient and the historical patients in the evidence package. Baseline characteristics included age, disease duration, disease activity, past medication history, and comorbidities. The propensity score model employed logistic regression, reflecting the likelihood that a historical patient had a similar clinical background to the target patient given the baseline characteristics. The target patient and historical patients were matched according to the proximity principle of the propensity score, with calipers set at 0.2 times the standard deviation of the scores. The baseline risk probability for each risk dimension was obtained based on the occurrence of events corresponding to each risk dimension in the matched historical patients. . Defined as the patient's first day under the reference protocol. The cumulative probability of occurrence of the target event within the time window is given by a competitive risk model trained on the in-hospital historical cohort. The competitive risk model employs a Fine-Gray partial distribution hazard model, with all-cause mortality as the competing event. Covariates include age, sex, comorbidity spectrum, history of similar events, current daily and cumulative dose of glucocorticoids, DAS28, serum albumin, eGFR, and history of hospitalization for infection. The number of in-hospital samples successfully matched with the target patient is denoted as . Preset minimum sample size The default value is 30, and the first... The number of cases must be no less than 5. Not less than If the number of events meets the requirements, intra-hospital matching estimation is used directly. . Below The regression should proceed in the following order, with the actual level used recorded in the evidence package. Level 1 still uses in-hospital data, progressively relaxing from exact matching of covariates to propensity score caliper matching and then to coarse exact matching. The caliper should still be 0.2 times the log-standard deviation of the propensity score. If Level 2 is still insufficient, a published baseline risk model from a public cohort or registry study should be used, with overall recalibration within the hospital: the coefficients of the linear predictors of the original model should be fixed, and only the intercept should be re-estimated to ensure that the overall observed event rate in the hospital matches the predicted event rate. If necessary, the slope should be adjusted using probability scaling. Level 3, if the number of events available for recalibration within the hospital is still insufficient, uses the crude in-hospital incidence rate stratified by age, sex, and comorbidity burden as the basis for recalibration. The evidence level for this dimension is lowered, and the prior variance and confidence interval for this dimension are widened in subsequent fusions. Effect size transfer in the public cohort only transfers relative effects, not absolute risks. If the original study reported subgroup stratification effects, the relative effect and its interval for the patient's subgroup are taken. If the patient's key covariates fall outside the original study's inclusion range (e.g., age, eGFR, or history of malignancy exceeding the inclusion criteria), the Mahalanobis distance between the patient's covariate vector and the original study population's covariate distribution is calculated. If the distance falls within the preset quantile, it is used with normal discount; otherwise, the discount factor for that source is lowered. If the overlap of propensity score between the target patient and the original study population is less than a preset threshold, that source is not included in the numerical calculation but is only written into the evidence package as a qualitative indication.
[0051] S33. Identify the interaction pathways between candidate drugs and combined medication records based on a pre-defined drug knowledge graph. The interaction pathways include common targets, common metabolic enzymes, common transporters, common pathways, and common indications. Calculate the association strength and determine the first effect size for the interaction pathways corresponding to the candidate drugs. Add the first effect size to the baseline risk probability to obtain the first risk probability after adding the candidate drugs. Calculate the association strength and determine the second effect size for the interaction pathways corresponding to the reference protocol. Add the second effect size to the baseline risk probability to obtain the second risk probability after adding the reference protocol.
[0052] The drug knowledge graph uses drugs as nodes, with node attributes including target, metabolic enzyme, transporter, pathway, and indication. Interaction pathways include common targets, common metabolic enzymes, common transporters, common pathways, and common indications. Common metabolic enzymes include CYP3A4, CYP2C19, and CYP2C9, and common transporters include P-gp, OATP, and OAT3. The association strength of the interaction pathways corresponding to candidate drugs is calculated, and the first effect size is determined. Calculate the correlation strength and determine the second effect size for the interaction paths corresponding to the reference scheme. The effect size is taken as the logarithmic relative effect, i.e. It is further broken down into main drug effect and patient effect modifiers: ; in For candidate drug d in the From the perspective of risk dimensions, for patients The log-relative effect scale, The main effect of the candidate drug on the k-th risk dimension. For the m-th patient side, modify the variable. Let be the regression coefficient corresponding to the m-th patient-side modified variable, where m is the index of the modified variable and k is the index of the risk dimension. Modified variables include age at least 65 years, smoking status, and pre-existing atherosclerotic cardiovascular disease. JAK inhibitors amplify the effect size in the major adverse cardiovascular event dimension for patients aged at least 65 years, current or past smokers, and those with pre-existing atherosclerotic cardiovascular disease.
[0053] The correlation strength is fused from three evidence pathways. The structured knowledge pathway retrieves common metabolic enzymes, common transporters, and common pathways between candidate drugs and concomitant medications from the drug knowledge graph, identifying pharmacokinetic and pharmacodynamic interaction pathways. The evidence-based literature pathway retrieves effect size estimates corresponding to drugs, risk dimensions, and population characteristics from literature and guideline databases, including odds ratios, hazard ratios, and their confidence intervals, and sorts them by evidence level. The real-world signal pathway calculates the proportional-to-report ratio and report-odds ratio from the spontaneous adverse event reporting database and extracts actual outcomes from similar patients in the hospital's historical cohort. Since the original outputs of the three pathways have different dimensions, the evidence available for estimating effect size is first uniformly converted to a logarithmic relative effect scale. Then, posterior-based fusion is performed; spontaneously reported data is used to construct the prior structure. The in-hospital cohort provides absolute risk for both arms. and When converted according to the complementary double logarithmic relationship, it is: ; In the formula, Logarithmic relative effect scale, For candidate solutions, the absolute risk is... The absolute risk is used as a reference arm. Variance is propagated using the delta method. The hazard ratio and risk ratio reported in the literature are directly calculated as logarithms under the proportional hazards assumption. Odds ratios reported in the literature were processed separately according to whether the outcome was rare: (reference group event rate) When it is below 0.10, take As Approximate; otherwise, proceed as follows: ; In the formula, This is the ratio of the reported ratios in the literature. As the reference group event rate, This represents relative risk. The logarithm is then taken, and the variance is propagated using the delta method. For literature reporting only incidence rates, the event rates in the reference group are first converted back to relative values before further calculation. The fully converted values are... Its variance, original dimensions, reference group event rate, and conversion path are all written into the evidence package for review.
[0054] The proportional reporting ratio (proportional reporting ratio) is a measure of imbalance at the reporting level, with the number of reports as the denominator. Spontaneous reports are used to construct a prior probability of a real association between the drug and the event. The positive signal criterion is determined by an information content lower bound greater than 0 using the Evans criterion or a Bayesian confidence propagation neural network. The Evans criterion requires a proportional-to-report ratio greater than 2, a chi-square value greater than 4, and at least 3 reports. Signal strength is then categorized and mapped. A score of 0.9 is used for a positive signal with high intensity, 0.7 for a positive signal, and 0.3 for a signal that does not meet the criteria. Enter The peak-slab prior, the mixed distribution is: ; in , Let the prior mean and variance be the values of the signal when it is valid. This represents a degenerate distribution at the zero point. When only spontaneously reported signals exist and cohort or documentary evidence is lacking, the posterior is compressed to near zero and has a wide interval.
[0055] Let the first The estimate given by the evidence is The fusion model is a hierarchical random effects model with a bias term: ; in For the fusion correlation strength to be estimated, This is the design bias corresponding to the source of this evidence. The sampling error is given by a mean of zero and a variance of 1 / 2. The normal distribution This represents the sampling variance of this piece of evidence after dimension unification. This is the discount factor. Randomized controlled trials and their meta-analyses Always equal to 0. Forward-looking queue. Follows a pattern with a mean of zero and a variance of . The normal distribution. Retrospective electronic medical record studies. Follow the mean variance is It follows a normal distribution. The prior was estimated from a calibration subset of risk dimensions already available within the hospital, possessing both randomized controlled and retrospective evidence, to characterize the systematic bias direction of the hospital's retrospective data. Heterogeneity among sources was determined by the variance of random effects. Absorption. Discount factor. It is not directly specified by humans, but obtained by multiplying three measurable factors: ; in Based on the level of evidence mapping, randomized controlled trials and high-quality meta-analyses are assigned a value of 1.0, prospective cohorts are assigned a value of 0.6, retrospective cohorts are assigned a value of 0.4, case series and case reports are assigned a value of 0.15, and spontaneous reports are assigned a value of 0, i.e., they are not included in the likelihood. As a weighting factor for the freshness of evidence, the median year of the data collection period is used to calculate the weighting for documentary evidence; The population transferability score is calculated by taking the propensity score overlap coefficient between the study population and the target patients' covariate distributions and mapping it to 0 to 1. Multiplying the three factors means that if any one step fails, the entire piece of evidence is invalidated. Offline calculation is performed using Hamilton-Monte Carlo sampling. The posterior distribution is calculated using four chains, each with 1000 valid samples, outputting the posterior mean and a 95% confidence interval. Online sampling is performed without resampling, with incremental updates based only on the offline-saved posterior moments. Collision detection is implemented: when heterogeneity indicators between sources are considered... More than 75%, or the posterior prediction of a certain source under leave-one-out cross-validation. When the value is less than 0.05, the evidence level for that dimension is lowered, and the corresponding range of attributable risk increment is widened by a preset multiple. If the ranges of attributable risk increment for two candidate solutions overlap on this dimension, then this dimension will not participate in the ranking determination between the two, but will only be output as a prompt.
[0056] The first effect size is summed to the baseline probability of occurrence to obtain the first probability of occurrence after summing the candidate drugs; the second effect size is summed to the baseline probability of occurrence to obtain the second probability of occurrence after summing the reference protocol. The summing is performed on a complementary double logarithmic scale to ensure that the results fall within the 0-1 range and are consistent with the proportional hazards assumption. ; The equivalent form is: ; ; in, The probability of the first risk occurring. This represents the probability of the second risk occurring. Let x be the baseline hazard probability for patient x in the k-th risk dimension. When the baseline hazard probability has already been estimated under the reference protocol, the second effect size is zero, and the second hazard probability equals the baseline hazard probability. Sampling uncertainty and The posterior uncertainty is propagated through Monte Carlo sampling, with 1000 offline samplings to obtain an interval estimate of the attributable risk increment.
[0057] S34. Calculate the difference between the probability of occurrence of the first risk and the probability of occurrence of the second risk to obtain the attributable risk increment for the candidate drug on the corresponding risk dimension: ; And simultaneously output relative dimensions , This represents the risk multiple of the candidate regimen relative to the reference regimen. This difference indicates the additional risk change resulting from using the candidate drug compared to the reference regimen, above the patient's existing baseline risk. Immunotherapy-related risks are also modeled using a state machine with time windows. The state machine includes a prophylactic treatment window, a B-cell regeneration window, a vaccine window, and a perioperative window, with the risk status within each window updating over time.
[0058] In one embodiment of the present invention, step S4 specifically includes: S41. Construct a contraindication rule base based on preset contraindication conditions. Each rule in the contraindication rule base corresponds to a contraindication condition. Each rule includes a triggering condition, a corresponding feature field in the evidence package, and a judgment condition. The triggering condition is that the candidate drug belongs to the drug range applicable to the contraindication condition. The judgment condition is that the value of the feature field meets the criteria for the establishment of the contraindication condition. Contraindications include untreated active tuberculosis, active severe infection, positive hepatitis B surface antigen and no initiation of antiviral prophylaxis, planned live vaccine administration and concurrent immunosuppression, previous severe hypersensitivity reaction, severe heart failure combined with anti-tumor necrosis factor treatment, contraindication during pregnancy, and severe liver and kidney dysfunction exceeding the dose adjustment range.
[0059] The contraindication for a positive hepatitis B surface antigen test without initiating antiviral prophylaxis includes checking the hepatitis B viral load at the time of assessment. A high hepatitis B viral load without initiating antiviral prophylaxis constitutes this contraindication. Another contraindication includes planned live vaccine administration and a state of immunosuppression, including B-cell clearance therapy and severe immunosuppression. Finally, a history of severe hypersensitivity reactions is considered based on the history of severe hypersensitivity reactions to the candidate drug.
[0060] S42. Match each candidate drug in the candidate drug set with each rule in the prohibition rule base. If the candidate drug meets the triggering condition and the value of the corresponding feature field in the evidence package meets the judgment condition, mark the matching result as forced interception. If the candidate drug meets the triggering condition but the corresponding feature field in the evidence package is missing, mark the matching result as pending review. If the candidate drug meets the triggering condition but the value of the corresponding feature field in the evidence package does not meet the judgment condition, or if the candidate drug does not meet the triggering condition, mark the matching result as retaining the original judgment status.
[0061] The contraindication check is performed independently of the net benefit index calculation. Candidate drugs that trigger mandatory blocking are immediately marked as currently unavailable, providing a single compliant treatment path. For example, latent tuberculosis must be treated with the prescribed course of preventive therapy before initiation. This determination cannot be overridden by net benefit levels or any generated documentation. During mandatory blocking and pending review, an appealable evidence package is generated, including a list of evidence sources, the rule-hitting path, the numerical calculation process, and the confidence interval.
[0062] In one embodiment of the present invention, such as Figure 4 As shown, step S5 calculates the net benefit index for each candidate drug in the candidate drug set based on the efficacy gain, the attributable risk increment, and the accessibility cost of the candidate drugs: ; in as a candidate drug The therapeutic gain relative to the reference regimen, as a candidate drug In the Attributable risk increments across risk dimensions For the first Each risk dimension corresponds to a clinical severity utility weight for a risk event, graded according to the degree of irreversibility of the consequence, with fatal events having the highest weight and monitorable and reversible events having the lowest weight. The accessibility cost of candidate drugs includes drug price, status in the national health insurance catalog, ease of administration, and monitoring burden. , , These are the dimensional weights of efficacy items, risk dimensions, and cost items, which are pre-configured by medical institutions according to departmental strategies, converting efficacy gains, risk increments, and costs to the same utility scale.
[0063] The therapeutic gain is composed of both the probability of response and the expected duration of treatment. First, these two are combined into an intermediate quantity with a time dimension, then normalized to a dimensionless quantity so that it can be weighted on the same utility scale as the attributable risk increment. The expected effective treatment time is defined as: ; in For the survival curve in the time window The restricted mean within, The default value is 24 months, and it can be configured together with the risk time window. as a candidate drug The corresponding individual survival function, This represents the response probability after exposure and immunogenicity correction. The dimension of the unit is month, meaning that in The expected duration for which the patient is still using the drug and its effectiveness is determined. Response probability is adjusted for exposure and immunogenicity. ; ; ; in, The reduction factor for the response to insufficient exposure. This is the reduction factor for immunogenicity in response. The calibrated response probability is output by the response header. To expose the probability of meeting the standard, To assess the sensitivity of the reduction factor for insufficient exposure to response, the parameter was calibrated by drug in the in-hospital therapeutic drug monitoring sub-cohort. For monoclonal antibodies, a default value of 0.5 was used; for subcutaneous fusion proteins and small molecules, an even smaller value was applied. This represents the cumulative probability of anti-drug antibody formation at 6 months of treatment. Sensitivity parameters for the reduction factor of immunogenicity response are calibrated separately according to molecular marker nodes. This is the time point for immunogenicity assessment; the default treatment duration is 6 months. This is the calibrated response probability output by the response header. For newly diagnosed candidate drugs, and Use the prior predicted value; for drugs in use, use the posterior value after incorporating the measured value. The baseline persistence function output by the persistence header. Then, adjust for accelerated failure based on the probability of drug-resistant antibody accumulation: ; in, Let be the individual survival function of candidate drug d at time t after immunogenicity correction. This is the individual survival function without immunogenicity modification, i.e., the survival function directly output by the survival head. as a candidate drug At any moment The probability of positive antidote antibodies. The positive coefficients fitted to the in-hospital cohort are shown. Higher immunogenicity risk leads to a faster decline in the survival curve, a shorter expected survival time, and consequently, a smaller therapeutic gain. The therapeutic gain is defined as: ; in, The therapeutic effect gain ranges from -1 to 1. This represents the expected effective treatment time for candidate drug d. For reference, This refers to the expected effective treatment time for the reference protocol. It is a dimensionless quantity, and its range of values is 1. arrive The meaning is relative to the reference scheme, within the time window. The percentage of effective treatment time gained per unit of time. When the lengths of the risk time window and the efficacy assessment time window are inconsistent, both are converted to a 12-month caliber before being substituted into the net benefit index to ensure... and Comparability. The interval is given by the calibrated prediction interval. The variance is calculated using the integral form of the Greenwood formula with the delta method, and then propagated along with the interval of attributable risk increments using Monte Carlo sampling. After 1000 offline samplings, an interval estimate of the net benefit index is obtained. When the survival curves of the candidate and reference options approach saturation within the window, i.e. When it approaches 1, The survival curve of candidate drug d within the time window The constrained mean duration within the range, the above formula degenerates into That is, the difference in response probabilities. Let be the response probability of candidate drug d after mechanism correction. The response probability is the mechanism-corrected version of the reference protocol. When the expected duration of the candidate drug is significantly shorter than... In some cases, such as with chimeric antibodies that have a high risk of immunogenicity, or regimens with a high rate of discontinuation due to adverse reactions, the efficacy gain given by the above formula is lower than the difference in response probability alone.
[0064] The candidate drug set is sorted from highest to lowest according to the net benefit index to obtain a candidate protocol list. After calculation, within a preset reasonable range... , , , Perturbations are applied, and the net benefit index is recalculated. Weighted perturbations are superimposed on the interval estimate of the net benefit index. If the two top-ranked candidate options swap positions under the perturbation, the result is marked as a trade-off decision, indicating a need for collaborative decision-making with the patient, rather than providing a single recommendation. All numerical calculations are performed and logged by the deterministic computation module; the generative model does not participate in any numerical generation.
[0065] For each candidate drug in the candidate treatment list, a corresponding graded intervention action is matched. When the matching result is mandatory interception, the mandatory interception action is used as the graded intervention action corresponding to the candidate drug. When the matching result is pending review, the interception pending review action is used as the graded intervention action corresponding to the candidate drug. When the matching result is to retain the original judgment status, the basic graded intervention action is determined based on the numerical range of the net benefit index. The basic graded intervention actions include silent release action, information prompt action, and interception pending review action. A preset first net benefit threshold is higher than a preset second net benefit threshold. When the net benefit index is not lower than the first net benefit threshold, the basic graded intervention action is silent release action. When the net benefit index is lower than the first net benefit threshold but not lower than the second net benefit threshold, the basic graded intervention action is information prompt action. When the net benefit index is lower than the second net benefit threshold, the basic graded intervention action is interception pending review action. Furthermore, when the treatment failure type is of uncertain mechanism, the basic graded intervention action is reduced by one level and used as the graded intervention action corresponding to the candidate drug. Lowering the treatment level by one refers to moving down one level in descending order of the three levels: silent release, information prompt, and interception pending review. If interception pending review is already at the lowest level, no further reduction is made. When the treatment failure type is pharmacodynamic failure, immunogenicity failure, or insufficient exposure failure, the basic graded intervention action is used as the graded intervention action corresponding to the candidate drug. It should be noted that the basic graded intervention action is the initial action obtained based on the net benefit range, while the graded intervention action corresponding to the candidate drug is the final action adjusted for the treatment failure type.
[0066] Silent intervention actions do not disrupt the workflow, leaving only a trace in the medical record. Information prompts are presented as non-blocking cards, with a sorted list and a one-click access to the evidence package. Interception actions awaiting review are routed to the pharmacist's workbench, accompanied by a complete evidence package and suggested communication. Forced interception actions block prescription submission, providing a single compliant handling path and appeal channel, such as requiring completion of the prescribed course of latent tuberculosis prevention treatment before initiation. Each interception awaiting review and forced interception generates an appealable evidence package, including a list of evidence sources, the rule-hitting path, the numerical calculation process, and the confidence interval. The four-level intervention actions align with the two-review, two-interception prescription review model commonly used in medical institutions. The candidate treatment list and the corresponding tiered intervention actions for each candidate drug are output as evaluation results.
[0067] The net benefit index ranks the efficacy gain, attributable risk increments in each dimension, and accessibility costs for the same patient on the same utility scale. When a contraindication is met, the treatment path is directly given and is not included in the net benefit comparison. If the rankings are interchanged after the weights are perturbed within a reasonable range, a trade-off decision is output, rather than treating the unstable ranking as the sole recommendation.
[0068] In one embodiment of the present invention, steps S1 to S5 are executed using a dual-phase scheduling approach. During periods of low computing power, the slow channel performs batch calculations of evidence packages, efficacy gains, treatment failure types, attributable risk increments, contraindication matching results, and net benefit indices for managed patients. The net benefit index, attributable risk increments, treatment failure types, contraindication matching results, evidence package pointers, and dependency element fingerprints are cached according to patient identifiers, candidate drug identifiers, and knowledge base versions. The fast channel compares dependency element fingerprints when issuing prescriptions; if they match, the cached results are returned directly; otherwise, only the changed elements are recalculated. For example, when adding a concomitant medication, only the risk dimension affected by the interaction path involved in that drug is recalculated. Event-driven failures are executed according to priority: tuberculosis positive, HBV-DNA positive, severe infection, and pregnancy are recalculated immediately; therapeutic drug monitoring and concomitant medications are recalculated on a minute-by-minute basis; the rest proceed to the next batch. Failures and recalculations are written to the audit log.
[0069] In one embodiment of the invention, all numerical calculations are performed by the deterministic computation module. The large model orchestrator in the orchestration layer only performs process orchestration, assembling numerical results into mechanism interpretations. When evidence is not found, a conservative qualitative suggestion is given and the confidence level is lowered. Rewriting numerical values, overriding taboo decisions, and introducing new factual assertions outside the evidence package are strictly prohibited. These constraints are validated a second time after assembly by the output pattern validator; any factual assertions without a source pointer are intercepted and reverted to a templated expression.
[0070] The present invention will be further illustrated by specific embodiments below.
[0071] Example 1 The target patient was a 58-year-old female with a 6-year history of rheumatoid arthritis, a DAS28-ESR of 5.6, and insufficient response to methotrexate 15 mg weekly. She also had type 2 diabetes, hypertension, a history of one episode of herpes zoster, a negative T-SPOT test conducted 2 months prior, negative HBsAg, positive anti-HBc, and dyslipidemia. The predicted probabilities of low disease activity at 6 months for the three candidate regimens were adalimumab 0.52, tocilizumab 0.58, and utpatinib 0.61, respectively, with efficacy gains relative to continuing the current regimen of 0.31, 0.37, and 0.40. Within the 12-month window, the attributable risk increments for severe infection were 1.8 percentage points for adalimumab, 2.1 percentage points for tocilizumab, and 2.4 percentage points for utpatinib, and 0.6 percentage points for herpes zoster reactivation, respectively. Upatinib amplifies the attributable risk increment for both herpes zoster and major adverse cardiovascular events due to age, history of herpes zoster, and dyslipidemia. The weighted net benefit index ranking is tocilizumab > adalimumab > utpatinib. The top two rankings do not change under weight perturbation. Tocilizumab is recommended as the first-line treatment, with a breakdown of the net benefits of the three regimens. Due to anti-HBc positivity, baseline HBV-DNA testing and monitoring every 3 months during treatment are recommended. If utpatinib is ultimately chosen, recommendations for recombinant herpes zoster vaccination and its timing with treatment initiation are provided. Matching results retain the original assessment status, and tiered intervention actions are informational prompts.
[0072] Example 2 The target patient was a 46-year-old male with a 9-year history of rheumatoid arthritis. He had been treated with adalimumab 40 mg every two weeks for 14 months, showing a good response in the first 6 months, with his DAS28 decreasing from 5.4 to 2.9. However, his disease activity rebounded to 4.8 in the last 3 months. Methotrexate had been discontinued 6 months prior due to elevated transaminases. Population pharmacokinetic estimations showed that the individual clearance rate was higher than the typical population value. The measured trough concentration was 0.7 μg / mL, below the lower limit of the therapeutic window, with a target exposure probability of 0.08. Anti-drug antibody testing was positive and at a medium-to-high titer. Treatment failure was classified as immunogenic failure. The output indicated that the failure mechanism was accelerated drug clearance mediated by anti-drug antibodies. Simply increasing the adalimumab dose would have limited benefit; switching to another molecule was recommended, and immunosuppressive background medications should be reinstated or replaced when conditions permit. Due to the hepatotoxicity of methotrexate, alternative background medication options and liver function monitoring protocols were simultaneously provided. The tiered intervention action was an information prompt action.
[0073] Example 3 The target patient is a 34-year-old female diagnosed with rheumatoid arthritis two years ago, and adalimumab is to be initiated. She is T-SPOT.TB positive, and chest CT shows no active lesions, indicating latent tuberculosis infection. She has already started isoniazid prophylaxis 10 days ago. The contraindication rule library matches the requirement that prophylactic anti-tuberculosis treatment before initiating TNF inhibitor therapy in patients with latent tuberculosis infection must meet the prescribed course; the match result is a mandatory interception, and adalimumab is currently unavailable, not proceeding to the generated protocol rewriting. The tiered intervention action is a mandatory interception action; the only compliant handling path is to complete the prescribed prophylactic treatment duration before initiation, and an appeal channel and a package of appealable evidence are provided.
[0074] Example 4 A rheumatologist at a top-tier hospital prescribed tofacitinib to a patient with rheumatoid arthritis, triggering a real-time hook. The previous morning, the slow-channel system had pre-calculated the patient's combination with all candidate biologics, including dependency fingerprints from 3 weeks prior (blood routine and liver / kidney function tests), 2 months prior (T-SPOT), 6 weeks prior (DAS28), the current medication list (methotrexate, folic acid, metformin), and the knowledge base version number). That morning, the blood lipid test results were reported, and the system detected a dependency on the major adverse cardiovascular event risk dimension related to tofacitinib, triggering a targeted failure. The system entered a priority queue and underwent asynchronous recalculation, taking approximately 4.2 seconds in non-blocking execution. That afternoon, the doctor prescribed the medication; the fast-channel system matched the fingerprint and directly returned the recalculated cached decision card.
[0075] In another embodiment of the present invention, to verify the above method, out-of-time validation was performed on historical medical data of rheumatoid arthritis patients in the rheumatology and immunology departments of multiple medical institutions. A rule-based pre-prescription review system used in the hospital, a generative zero-sample method, a machine learning model that only outputs efficacy predictions, and a tool-calling control method were used as controls. The comparison results are shown in Table 1.
[0076] Table 1 Overall comparison with control methods In Table 1, “—” indicates that the corresponding method does not have this output. Rule-based systems do not provide candidate solution ranking or mechanism explanation; machine learning efficacy models do not output risk interception results.
[0077] After being implemented in a tertiary-level hospital, the system was observed for 6 consecutive months, and the results are shown in Table 2.
[0078] Table 2 Observation results after 6 months of launch In summary, this invention integrates candidate drug efficacy evaluation, treatment failure mechanism identification, risk attribution, and contraindication verification into a unified quantitative process. The risk attribution stage calculates the probability of risk occurrence for the same patient under both candidate drug and reference regimens, distinguishing between the patient's baseline risk and the incremental risk after drug introduction. The efficacy attribution stage, through joint discrimination of exposure target achievement probability and anti-drug antibody positivity probability, categorizes insufficient efficacy into dosing-related, immune-related, and drug mechanism-related factors. The net benefit index uniformly calculates and weights the efficacy gain, risk increment, and accessibility cost, and combines contraindication verification results with treatment failure type to determine graded intervention actions. Dual-phase scheduling allows for direct return of cached or recalculated results at the time of order issuance. Contraindication verification has a veto function; the value is calculated by a deterministic module, and the scheduling layer does not rewrite the value or override contraindication judgments. Compared to methods that only handle candidate drugs according to uniform preset rules, this process can provide differentiated treatment recommendations based on the individual patient's baseline condition.
[0079] like Figure 5 As shown, the present invention also provides a HIS-based efficacy-risk system for RA biologics, comprising: The evidence acquisition module obtains structured medical data and unstructured medical record texts of the target patient from the hospital information system. It extracts and processes information from the structured medical data and unstructured medical record texts to obtain an evidence package. The evidence package includes the patient's baseline characteristics, laboratory test indicators, disease activity score, medication records, drug concentration, anti-drug antibody test results, and records of concomitant medications.
[0080] The efficacy assessment module acquires a pre-defined set of candidate drugs, each associated with a corresponding accessibility cost. Based on the evidence package, it predicts the efficacy of each candidate drug in the set and obtains the corresponding efficacy gain. Based on the dosing records, drug concentrations, and anti-drug antibody test results, it assesses the exposure status and immunogenicity of each candidate drug. Combining the efficacy gain of the candidate drug, it determines the treatment failure type of each candidate drug. Treatment failure types include pharmacodynamic failure, immunogenic failure, insufficient exposure failure, and mechanism uncertainty.
[0081] The risk attribution module, based on the evidence package, calculates the probability of occurrence of the first risk within a preset time window after superimposing the candidate drug and multiple preset risk dimensions for each candidate drug in the candidate drug set, and the probability of occurrence of the second risk within a preset time window after superimposing the preset reference scheme. Based on the difference between the probability of occurrence of the first risk and the probability of occurrence of the second risk, the attributable risk increment of the candidate drug on the corresponding risk dimension is obtained.
[0082] The contraindication verification module matches and verifies each candidate drug in the candidate drug set with the evidence package based on preset contraindication conditions, and obtains matching results, including forced interception, pending review, and retention of the original judgment status.
[0083] The net benefit assessment module calculates the net benefit index for each candidate drug in the candidate drug set based on efficacy gain, attributable risk increment, and accessibility cost of candidate drugs. The candidate drug set is then sorted according to the net benefit index to obtain a candidate protocol list. Based on the numerical range of the net benefit index, the matching results, and the treatment failure type of the candidate drug, a corresponding graded intervention action is matched for each candidate drug in the candidate protocol list, and the assessment results are output. The assessment results include the candidate protocol list and the corresponding graded intervention action.
[0084] The system implementing the above methods is deployed within the hospital's intranet, employing a four-layer architecture, ensuring all patient data remains within the hospital. The access layer includes a shadow FHIR mapping layer, a message subscription gateway, and a real-time hook service endpoint, connecting to the hospital information system, laboratory system, and electronic medical record system. It masks heterogeneous data differences, receives medical orders and events, and returns decision cards within the latency budget. The computation layer includes a efficacy failure attribution engine, a counterfactual risk attribution engine, a hard constraint arbitrator, a net benefit calculator, and a deterministic numerical module, handling all quantitative calculations and outputting reproducible numerical results and evidence packages. The knowledge layer includes a drug knowledge graph, a RA immunotherapy agent risk ontology, an evidence-based literature library, a real-world signal library, a population pharmacokinetic model library, and an in-hospital historical cohort library, providing three channels of evidence and supporting version management and canary updates. The orchestration layer includes a large model orchestrator, a mechanism interpretation assembler, a cache scheduler, and an event failure scheduler, responsible for process orchestration, natural language mechanism interpretation assembly, and bi-temporal scheduling, but not involved in numerical generation or safety assessment. The interaction layer presents a list of candidate treatments and corresponding tiered intervention actions to physicians and pharmacists using decision cards.
[0085] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A method for efficacy-risk assessment of RA biologics based on HIS, characterized in that, Includes the following steps: S1. Obtain structured diagnosis and treatment data and unstructured medical record text of the target patient from the hospital information system. Extract and process information based on the structured diagnosis and treatment data and unstructured medical record text to obtain an evidence package. The evidence package includes patient baseline characteristics, test indicators, disease activity score, medication records, drug concentration, anti-drug antibody test results, and concomitant medication records. S2. Obtain a pre-defined set of candidate drugs, each associated with a corresponding accessibility cost; based on the evidence package, predict the efficacy of each candidate drug in the pre-defined set of candidate drugs to obtain the corresponding efficacy gain; based on the dosing records, drug concentrations, and anti-drug antibody detection results, assess the exposure status and immunogenicity of each candidate drug, and determine the treatment failure type of each candidate drug in conjunction with the corresponding efficacy gain, wherein the treatment failure type includes pharmacodynamic failure, immunogenic failure, insufficient exposure failure, and mechanism uncertainty; S3. Based on the evidence package, for each candidate drug in the candidate drug set and multiple preset risk dimensions, calculate the probability of occurrence of the first risk within a preset time window after superimposing the candidate drug, and the probability of occurrence of the second risk within a preset time window after superimposing the preset reference scheme. Based on the difference between the probability of occurrence of the first risk and the probability of occurrence of the second risk, obtain the attributable risk increment of the corresponding risk dimension of the candidate drug. S4. Based on the preset taboo conditions, each candidate drug in the candidate drug set is matched and verified with the evidence package to obtain the matching results. The matching results include forced interception, pending review, and retention of the original judgment status. S5. Based on the efficacy gain, attributable risk increment, and accessibility cost of the candidate drugs, calculate the net benefit index for each candidate drug in the candidate drug set, and sort the candidate drug set according to the net benefit index to obtain a candidate protocol list; based on the numerical range of the net benefit index, the matching results, and the treatment failure type of the candidate drugs, match a corresponding graded intervention action for each candidate drug in the candidate protocol list, and output the evaluation results, which include the candidate protocol list and the corresponding graded intervention action.
2. The HIS-based efficacy-risk assessment method for RA biological agents as described in claim 1, characterized in that, Step S1 specifically includes: S11. An information extraction model is used to perform entity recognition on unstructured medical record text. The information extraction model includes an encoding unit, a span recognition unit, an attribute determination unit, and a pairing unit. The encoding unit is used to encode the unstructured medical record text character by character to obtain the feature representation of each character position in the character sequence of the unstructured medical record text. The span recognition unit calculates the entity type score corresponding to each entity type for each candidate segment in the character sequence determined by any start and end position based on the feature representation. Candidate segments with entity type scores greater than zero are judged as candidate entities. The attribute determination unit is used to determine the conclusion polarity, temporality, and subject attributes of the candidate entities. The pairing unit is used to determine the pairing relationship between test items, values, units, and time in the candidate entities. Based on the pairing relationship, conclusion polarity, temporality, and subject attributes, the candidate entities and structured diagnosis and treatment data are assembled into candidate evidence items. S12. Perform character normalization, alias matching and drug category label mapping on the drug entities in the candidate evidence entries in sequence to map the drug entities to standard entity identifiers and obtain the mapped candidate evidence entries. S13. Label the detection time for the mapped candidate evidence items, calculate the time interval between the detection time and the current time, determine the evidence freshness weight corresponding to the mapped candidate evidence items based on the time interval, and obtain the evidence package.
3. The HIS-based efficacy-risk assessment method for RA biological agents as described in claim 2, characterized in that, Step S13, which determines the evidence freshness weights corresponding to the mapped candidate evidence items based on the time interval to obtain the evidence package, specifically includes: S131. Obtain the strong evidence window and weak evidence window corresponding to the indicator type of the mapped candidate evidence item. The strong evidence window is smaller than the weak evidence window. S132. Compare the time interval with the strong evidence window. If the time interval does not exceed the strong evidence window, reset the evidence freshness weight to 1. If the time interval exceeds the strong evidence window, compare the time interval with the weak evidence window. If the time interval does not exceed the weak evidence window, calculate the attenuation coefficient based on the preset residual weight and the difference between the weak evidence window and the strong evidence window. Then calculate the evidence freshness weight based on the attenuation coefficient and the part of the time interval that exceeds the strong evidence window. If the time interval exceeds the weak evidence window, reset the evidence freshness weight to 0 and mark the corresponding mapped candidate evidence item as missing. S133. The freshness weight of the evidence is used as the confidence attribute of the corresponding mapped candidate evidence item, and written into the evidence package together with the mapped candidate evidence item.
4. The HIS-based efficacy-risk assessment method for RA biologics as described in claim 1, characterized in that, Step S2 specifically includes: S21. Using the patient baseline characteristics in the evidence package as input, call the response prediction model to output the response probability and expected duration for each candidate drug in the candidate drug set, and combine the response probability and expected duration to obtain the efficacy gain corresponding to the candidate drug. S22. Based on the dosing records and drug concentrations in the evidence package, retrieve the corresponding population pharmacokinetic models for the candidate drugs from the population pharmacokinetic model library. Using the dosing records and drug concentrations as inputs, estimate the steady-state trough concentration of the candidate drugs using the population pharmacokinetic model. Compare the steady-state trough concentration with the lower limit of the treatment window corresponding to the candidate drugs to obtain the exposure target achievement probability. When drug concentration is missing, estimate the exposure distribution based on the patient's baseline characteristics and calculate the exposure target achievement probability based on the exposure distribution. S23. Based on the anti-drug antibody test results in the evidence package and the molecular characteristics of the candidate drug, call the immunogenicity prediction model to obtain the positive probability of anti-drug antibody. When the anti-drug antibody test results are missing, predict the positive probability of anti-drug antibody based on the molecular characteristics and the records of combined medication. S24. Based on the exposure target achievement probability, the positive probability of anti-drug antibody and the therapeutic gain, determine the treatment failure type of the candidate drug.
5. The HIS-based efficacy-risk assessment method for RA biological agents as described in claim 4, characterized in that, Step S21, which calls the response prediction model to output the response probability and expected duration for each candidate drug in the candidate drug set, specifically includes: The response prediction model includes a feature encoding unit, a response head, and a duration head. The feature encoding unit is used to determine the leaf node in each tree of the gradient boosting decision tree where the patient's baseline features fall, taking the patient's baseline features as input, and encodes the leaf node index corresponding to each tree into a shared feature representation; The response head calculates the logistic regression output value based on the shared feature representation and maps the logistic regression output value to the response probability; The duration head calculates the individual survival function of the proportional hazards model based on the shared feature representation, integrates the individual survival function within a preset time limit, and obtains the expected duration.
6. The HIS-based efficacy-risk assessment method for RA biologics as described in claim 4, characterized in that, Step S24 specifically includes: The exposure compliance probability is compared with a preset first exposure threshold and a preset second exposure threshold. The preset first exposure threshold is higher than the preset second exposure threshold. When the exposure compliance probability is not lower than the first exposure threshold, it is determined to be in compliance state. When it is not higher than the second exposure threshold, it is determined to be in non-compliance state. When it is between the first exposure threshold and the second exposure threshold, it is determined to be in gray zone state. The positive probability of anti-drug antibody is compared with a preset first antibody threshold and a preset second antibody threshold. The preset first antibody threshold is higher than the preset second antibody threshold. When the positive probability of anti-drug antibody is not lower than the first antibody threshold, it is determined to be a positive state. When it is not higher than the second antibody threshold, it is determined to be a negative state. When it is between the first antibody threshold and the second antibody threshold, it is determined to be a gray zone state. When the therapeutic gain is lower than the preset therapeutic threshold and is in the target state and negative state, the treatment failure type is determined to be pharmacodynamic failure; when the therapeutic gain is lower than the preset therapeutic threshold and is in the non-target state and positive state, the treatment failure type is determined to be immunogenicity failure; when the therapeutic gain is lower than the preset therapeutic threshold and is in the non-target state and negative state, the treatment failure type is insufficient exposure failure; in all other cases, the treatment failure type is determined to be mechanism uncertain.
7. The HIS-based efficacy-risk assessment method for RA biologics as described in claim 1, characterized in that, Step S3 specifically includes: S31. Based on the medication records and combined medication records in the evidence package, determine the reference scheme according to the preset priority rules; S32. Obtain historical patient records of the reference treatment from the hospital information system, calculate propensity score based on the patient baseline characteristics of the target patient and the patient baseline characteristics of the historical patients in the evidence package, match the target patient with the historical patients based on the propensity score, and obtain the baseline risk probability corresponding to each risk dimension based on the occurrence of the corresponding event of the matched historical patients in each risk dimension. S33. Identify the interaction pathways between candidate drugs and combined medication records based on a pre-defined drug knowledge graph. The interaction pathways include common targets, common metabolic enzymes, common transporters, common pathways, and common indications. Calculate the association strength and determine the first effect size for the interaction pathways corresponding to the candidate drugs. Add the first effect size to the baseline risk probability to obtain the first risk probability after adding the candidate drugs. Calculate the association strength and determine the second effect size for the interaction pathways corresponding to the reference protocol. Add the second effect size to the baseline risk probability to obtain the second risk probability after adding the reference protocol. S34. Calculate the difference between the probability of occurrence of the first risk and the probability of occurrence of the second risk to obtain the attributable risk increment on the risk dimension corresponding to the candidate drug.
8. The HIS-based efficacy-risk assessment method for RA biologics as described in claim 1, characterized in that, Step S4 specifically includes: S41. Construct a contraindication rule base based on preset contraindication conditions. Each rule in the contraindication rule base corresponds to a contraindication condition. Each rule includes a triggering condition, a corresponding feature field in the evidence package, and a judgment condition. The triggering condition is that the candidate drug belongs to the drug range applicable to the contraindication condition. The judgment condition is that the value of the feature field meets the criteria for the establishment of the contraindication condition. The contraindications include untreated active tuberculosis, active severe infection, positive hepatitis B surface antigen and no initiation of antiviral prophylaxis, planned live vaccine administration and concurrent immunosuppression, previous severe hypersensitivity reaction, severe heart failure combined with anti-tumor necrosis factor treatment, contraindication during pregnancy, and severe liver and kidney dysfunction exceeding the dose adjustment range. S42. Match each candidate drug in the candidate drug set with each rule in the prohibition rule base. If the candidate drug meets the triggering condition and the value of the corresponding feature field in the evidence package meets the judgment condition, mark the matching result as forced interception. If the candidate drug meets the triggering condition but the corresponding feature field in the evidence package is missing, mark the matching result as pending review. If the candidate drug meets the triggering condition but the value of the corresponding feature field in the evidence package does not meet the judgment condition, or if the candidate drug does not meet the triggering condition, mark the matching result as retaining the original judgment status.
9. The HIS-based efficacy-risk assessment method for RA biological agents as described in claim 1, characterized in that, Step S5, which involves matching each candidate drug in the candidate protocol list with a corresponding tiered intervention, includes: When the matching result is forced interception, the forced interception action will be used as the graded intervention action corresponding to the candidate drug; When the matching result is pending review, the action to be blocked pending review will be used as the graded intervention action corresponding to the candidate drug; When the matching result retains the original judgment state, the basic graded intervention action is determined based on the numerical range of the net benefit index. The basic graded intervention action includes a silent release action, an information prompt action, and an interception pending review action. Among them, when the preset first net benefit threshold is higher than the preset second net benefit threshold and the net benefit index is not lower than the first net benefit threshold, the basic graded intervention action is a silent release action; when the net benefit index is lower than the first net benefit threshold but not lower than the second net benefit threshold, the basic graded intervention action is an information prompt action; when the net benefit index is lower than the second net benefit threshold, the basic graded intervention action is an interception pending review action. On this basis, when the treatment failure type is uncertain, the basic graded intervention action is downgraded by one level and used as the graded intervention action corresponding to the candidate drug; if the basic graded intervention action is already an interception pending review action, the interception pending review action remains unchanged; when the treatment failure type is pharmacodynamic failure, immunogenicity failure, or insufficient exposure failure, the basic graded intervention action is used as the graded intervention action corresponding to the candidate drug.
10. A HIS-based efficacy-risk assessment system for RA biologics, characterized in that, The system is used to implement the method as described in any one of claims 1-9, comprising: The evidence acquisition module obtains structured medical data and unstructured medical record text of the target patient from the hospital information system, extracts and processes information from the structured medical data and unstructured medical record text to obtain an evidence package. The evidence package includes the patient's baseline characteristics, test indicators, disease activity score, medication records, drug concentration, anti-drug antibody test results and concomitant medication records. The efficacy assessment module obtains a pre-defined set of candidate drugs, each of which is associated with a corresponding accessibility cost. Based on the evidence package, the module predicts the efficacy of each candidate drug in the set and obtains the corresponding efficacy gain. Based on the dosing records, drug concentrations, and anti-drug antibody test results, the module assesses the exposure status and immunogenicity of each candidate drug. Combining the efficacy gain of the candidate drug, the module determines the treatment failure type of each candidate drug. Treatment failure types include pharmacodynamic failure, immunogenic failure, insufficient exposure failure, and mechanism uncertainty. The risk attribution module, based on the evidence package, calculates the probability of occurrence of the first risk within a preset time window after superimposing the candidate drug and multiple preset risk dimensions for each candidate drug in the candidate drug set, and the probability of occurrence of the second risk within a preset time window after superimposing the preset reference scheme. Based on the difference between the probability of occurrence of the first risk and the probability of occurrence of the second risk, the attributable risk increment of the candidate drug on the corresponding risk dimension is obtained. The contraindication verification module matches and verifies each candidate drug in the candidate drug set with the evidence package based on preset contraindication conditions, and obtains matching results. The matching results include forced interception, pending review, and retention of the original judgment status. The net benefit assessment module calculates the net benefit index for each candidate drug in the candidate drug set based on efficacy gain, attributable risk increment, and accessibility cost of candidate drugs. The candidate drug set is then sorted according to the net benefit index to obtain a candidate protocol list. Based on the numerical range of the net benefit index, the matching results, and the treatment failure type of the candidate drug, a corresponding graded intervention action is matched for each candidate drug in the candidate protocol list, and the assessment results are output. The assessment results include the candidate protocol list and the corresponding graded intervention action.
Citation Information
Patent Citations
Drug combination risk management system based on knowledge graph
CN118888078A
