We developed our approach through three connected design–build–test–learn cycles: improving drug–drug interaction (DDI) prediction with DDIAgents, organizing mechanism evidence with ECoPI, and investigating a selected epithelial-barrier hypothesis in Caco-2 cells. Each cycle addressed a different scientific question and exposed a limitation that informed the next design decision.
Our engineering approach
Our engineering work connected three questions: how to predict interaction types for emerging drug pairs, how to examine the evidence behind a mechanism hypothesis, and how to test a selected biological step. Each cycle produced a design choice and identified what the next stage needed to resolve. DDIAgents provided the prediction research foundation; ECoPI developed explicit mechanism paths and evidence records; a focused Caco-2 experiment examined an exploratory epithelial-barrier question.
Cycle 01 · Predict
DDIAgents
Coordinate specialist agents and adapt their knowledge inputs to improve interaction-type prediction for emerging drug pairs.
Retain adaptive expertise, selective knowledge allocation and bounded feedback; examine explanation support separately.
These connections trace our research questions and design priorities. The Project Timeline documents the development chronology.
Cycle 01 · Predict
Improving DDI prediction with DDIAgents
Scientific question
Can complementary pharmacological expertise and dynamically allocated molecular, relational and textual knowledge improve the classification or ranking of DDI types for drug pairs involving emerging drugs, compared with existing prediction methods and less adaptive agent workflows under approval-time-based evaluation settings?
DDesign
Our initial objective was to improve DDI prediction for drugs with limited interaction histories. Exposure-related interactions may require knowledge about metabolism or elimination, while pharmacodynamic interactions may require information about targets, pathways and physiological effects. We therefore designed a workflow that could combine specialist perspectives and adapt the information supplied to each one.
Our design hypothesis was that matching expertise and knowledge to the current drug-pair question would improve prediction. Approval-time-based evaluation separated earlier-approved and later-approved drugs: S1 contains known–new combinations, and S2 contains new–new combinations. These settings test pairs involving drugs outside the earlier drug set.
BBuild
DDIAgents coordinates a Planner, expert agents and a Conclusion agent. A candidate-filtering model first narrows the interaction types for the queried pair. The initial experts contribute pharmacist, pharmacokinetic and pharmacological perspectives. The Planner selects knowledge sources for each expert, and retrieval supplies relevant entries from those sources.
The catalog brings together molecular structure, biomedical relationships and textual descriptions. After experts analyze their assigned context, the Conclusion agent synthesizes their reports. Unresolved questions can trigger feedback that revises both expert roles and knowledge-source assignments for another analysis round, as shown in Figure 1.
Figure 1DDIAgents: dynamic knowledge flow and feedback
For each queried drug pair, candidate retrieval narrows the interaction types available to the agents. The Planner coordinates expert roles and routes molecular, network and textual knowledge to their analyses. Solid purple links depict current knowledge assignments; dashed white links retain earlier assignments. The Conclusion agent synthesizes the reports, and feedback can revise the roles and knowledge flow in another round. Prediction performance is evaluated against benchmark labels. Open image.
The reported reference configuration uses Qwen2.5-7B, three experts per round and a maximum of three analysis rounds. These rounds refine an individual prediction question; the three project-level engineering cycles on this page describe the broader development process.
TTest
We evaluated DrugBank interaction-type classification and TWOSIDES label ranking. Table 1 compares DDIAgents with the strongest reported baseline for each selected metric in S1 and S2. The main comparison reports mean ± standard deviation across five independent runs.
Table 1. Selected prediction results in S1 and S2.
Evaluation
DDIAgents
Strongest compared baseline for this metric
DrugBank S1 · Macro-F1
45.52 ± 0.89
AgentVerse: 41.17 ± 1.21
DrugBank S2 · Macro-F1
18.17 ± 0.51
MDAgents: 15.97 ± 0.42
TWOSIDES S1 · NDCG@5
21.21 ± 0.48
MDAgents: 20.07 ± 1.36
TWOSIDES S2 · NDCG@5
14.08 ± 0.15
AgentVerse: 13.14 ± 0.24
Source: the DDIAgents main comparison, reproduced on Results. Scores measure agreement with benchmark labels; the standard deviations describe variation across runs.
Testing adaptive allocation. Fixed expert roles, all-source access and a single analysis round each performed below the full workflow in the reported comparisons. The all-source variant supplied every source type to each expert while retaining retrieval. Its lower performance supported keeping knowledge-source selection specific to each expert and question. The fixed-expert comparison supported allowing specialist roles to change as unresolved issues emerged.
Testing the feedback limit. The single-round comparison supported retaining feedback. Most improvement in the iteration study occurred within the first three rounds; later changes were smaller and not consistently positive. This supported a short refinement process with a three-round limit. It remains a tested configuration rather than a universal optimum.
Design retained. The tests supported adaptive expert roles, selective knowledge allocation and a bounded feedback process. These choices determine how the system revises its analysis of a drug pair. Qwen2.5-7B remains the reference backbone for the reported comparisons.
Question carried forward. Improved label agreement does not establish every mechanism claim in an explanation. Important drug properties, role assignments and supporting sources still need to be examined individually.
Design decision carried into Cycle 2: represent proposed interactions as explicit mechanism paths, with evidence and uncertainty attached to their transitions.
Cycle 02 · Explain
Making mechanism hypotheses inspectable with ECoPI
Scientific question
Can the pharmacological properties of two drugs be assembled through explicit role assignments and reusable mechanism patterns into a directed DDI hypothesis, with evidence and uncertainty recorded for each transition, so researchers can identify unsupported steps and select a biologically appropriate question for experimental investigation?
DDesign
Cycle 1 left the support for an explanation as a separate research problem. Information about a single drug, a general mechanism and an observed combination provides different kinds of evidence. ECoPI was designed to preserve these distinctions while showing how a pair-specific hypothesis was assembled.
Turning development problems into requirements. The development records describe difficulties with labels that mixed mechanisms, pharmacological outcomes and clinical risks. This motivated clearer definitions of drug properties, interaction roles and downstream effects. Later work organized the analysis into explicit layers and selected one internal record as the basis for researcher, clinician and patient explanations.
These decisions established three requirements: inspectable two-drug mechanism conditions, evidence attached to specific claims, and a shared result for downstream use. An experimental proposal should also identify the measurable node and the question its assay can answer. ECoPI implements its own deterministic candidate-selection core; DDIAgents provides the earlier prediction research foundation.
BBuild
Making mechanism conditions explicit. We organized the current library into nine relation packages containing property schemas, mechanism patterns, matching rules and representative cases. Comparable drug profiles supply the required properties: known–known queries use two stored profiles, while new–known queries combine a runtime profile with a stored partner. Here, “new” identifies the profiling route, separately from Cycle 1's approval-time split.
The core checks both assignments of the drugs to a pattern's required roles. A metabolic hypothesis, for example, needs a relevant enzyme effect from one drug and substrate evidence for its partner. Before matching, profile sentences naming the counterpart are masked. Missing properties remain distinguishable from negative evidence. These choices make it possible to inspect why a two-drug path matches or remains incomplete.
Figure 2ECoPI: properties, mechanisms, and one shared result
Swipe or scroll horizontally to inspect the figure.
Mechanism rules combine properties from both drugs into candidate paths. A shared Core Result retains the selected path, alternatives, evidence and uncertainty for downstream audit, assay mapping and communication. Incomplete two-drug support can leave the primary relation empty.
Retaining evidence with the path. Candidate paths connect drug properties → interaction roles → mechanisms → candidate DDI relations. Ranking orders support within the implemented rule system, while evidence gates check whether the required two-drug conditions are met. A high score alone does not guarantee a displayed primary relation.
The Evidence Audit examines each transition, including the later link from a DDI relation to a possible effect. It retains source references, inference status, gaps and conflicts. Supported upstream facts can therefore remain visible when a downstream consequence has only partial support.
Using one result across modules. The Core Result stores the prediction status, selected and alternative paths, evidence, uncertainty and testable nodes. Evidence Audit, Experiment Mapping and Communication all use this record. Generated outputs are checked for valid references, eligible assay identifiers and preservation of the prediction anchor, with repair or deterministic fallback when checks fail.
The decision to develop a rule-based public Demo also responded to inference-cost constraints recorded during development. The deterministic preview provides the core workflow without an API call; agentic modes add constrained downstream analysis. Separate audience views change the explanation's wording and detail while preserving its underlying result.
Defining the experimental question. The Experiment module links eligible nodes to a curated assay catalog. Entries specify biological models, readouts, controls and interpretation limits. A CYP3A4 branch and an IKr branch lead to different measurements; absent catalog coverage remains visible. The full method and configuration are documented in Model / ECoPI.
TTest
Benchmark45 is a curated 45-pair evaluation: 35 base cases and five external in-scope cases form the 40 cases within catalog scope, while five coverage probes examine its boundary. Table 2 retains the aggregate values reported for ECoPI and the context-matched LLM comparison.
Table 2. Reported Benchmark45 results.
Evaluation measure
ECoPI
Context-matched LLM
Mechanism grounding
42/45 (93.3%)
42/45 (93.3%)
Valid assay match
41/45 (91.1%)
38/45 (84.4%)
Cross-view consistency
45/45
Not reported
Mechanism grounding checks agreement with the reference mechanism family; assay match checks measurement eligibility; cross-view consistency checks preservation of the shared result. ECoPI matched the reported mechanism-grounding count and produced three additional valid assay matches. No baseline cross-view consistency value was supplied.
Evaluation scope. These are reported aggregate results. Complete per-case comparison outputs and the matching experiment version are needed to reproduce the panel. The current direct-LLM baseline schema does not include assay recommendations or audience views. Base-case curation also referred to existing system coverage, so the set does not establish generalization to an independently sampled population. Results explains the scoring and reproduction limits.
Inspecting saved cases. The Semaglutide–Metformin record retains a Type 8 candidate through an additive antidiabetic pattern. Its audit supports the first three transitions while leaving the clinical-effect link partially supported. The Semaglutide–Disulfiram record withholds the primary relation because two-drug mechanism support is incomplete. These cases show how the same representation can retain a candidate or expose an evidence gap. The saved-case comparison provides their recorded fields and limits.
LLearn
Design retained. Explicit role requirements, transition-level evidence and a shared result make it possible to locate a missing condition or a tentative downstream claim. Keeping an incomplete path visible gives researchers a specific question for further evidence collection.
Question carried forward. Mechanism-family agreement, assay eligibility and consistency across views answer different questions. Biological measurements are needed to examine a selected hypothesis under defined conditions.
Design decision carried into Cycle 3: specify the biological node, matched comparisons, complementary readouts and interpretation boundary before testing. The semaglutide–disulfiram study examined an earlier team-recorded exploratory barrier hypothesis; the current saved insufficient-evidence result remains a separate record.
Cycle 03 · Investigate
Investigating an epithelial-barrier hypothesis
Scientific question
Under the selected exposure conditions, does combined semaglutide and disulfiram treatment produce a local epithelial-barrier-associated response in polarized Caco-2 Transwell monolayers relative to the solvent control and corresponding single agents, and how do tracer passage, membrane-injury-related measurements and an inflammatory-marker observation constrain its interpretation?
DDesign
Discussions with a pharmaceutical-development professional helped establish a GLP-1 testing direction. The team subsequently selected semaglutide and developed the combination experiment. Interest in semaglutide for alcohol use disorder also motivated consideration of disulfiram as a partner.
The experimental report records an exploratory semaglutide–disulfiram barrier hypothesis. We selected a measurable local node: whether combined exposure changes epithelial tracer passage relative to the solvent control and the corresponding single agents. Polarized Caco-2 Transwell monolayers provided a model for examining that question.
The main combination was SD: semaglutide 200 nM plus disulfiram 25 µM. SM, semaglutide 200 nM plus metformin 5 mM, served as an exploratory comparison.
BBuild
The experiment combined drug exposure with matched treatment groups. A 0.1% DMSO solvent control established the baseline, corresponding single agents supported interpretation of the combinations, and EGTA provided a positive control for barrier-related passage.
FITC-dextran passage was the primary barrier-related readout. LDH supplied a complementary membrane-injury-related measurement, and TNF-α supplied an inflammatory-marker observation. Together, these measurements allowed us to examine whether the barrier-related pattern was accompanied by other local cellular responses.
Figure 3A focused epithelial-barrier experiment
Swipe or scroll horizontally to inspect the figure.
SD is the main combination; SM is an exploratory comparison. Matched single agents and the solvent control support interpretation of the combination response, while EGTA serves as a barrier positive control. FITC-dextran, LDH and TNF-α address different aspects of the local epithelial response. Detailed sampling and assay records are provided on Wet Lab.
Detailed procedures, sample allocation, calibration and individual-well records are provided on Wet Lab. Sampling identity, timing and normalization need to remain attached to the corresponding assay when comparing these records.
TTest
The reported SD FITC-dextran summary was higher than the solvent control and the corresponding single-agent groups. Figure 4 retains the individual measurements and shows how the SD summary changes when the third well is included.
Figure 4Barrier-related passage and sensitivity to well selection
Swipe or scroll horizontally to inspect the figure.
Points show individual FITC-dextran measurements and white lines show the displayed means. The SD mean of 26.88 µg/mL uses two retained wells; the third well is shown separately, and the mean including all three wells is 80.63 µg/mL. The effect magnitude therefore depends on well selection and requires review of the exclusion basis. These are descriptive observations; well counts do not establish independent biological replication.
Interpreting the complementary readouts. The report describes an LDH pattern that did not parallel the barrier signal and SD TNF-α summaries above the solvent control. Differences in sampling and assay calibration limit stronger comparisons. We therefore use these observations to frame follow-up questions without inferring a temporal injury trend or a TNF-α-mediated mechanism. SM did not show the same direction of barrier and TNF-α response.
Strength of the observation. The comparisons are descriptive. Well selection affects the estimated response magnitude, and independent biological replication and inferential statistics are not established by the displayed wells. The observations support further investigation of a local barrier response under the tested conditions.
LLearn
Interpretation revised. We narrowed the conclusion to a preliminary barrier-associated response in the epithelial model. The measurements leave tight-junction changes, oxidative stress and the causal contribution of inflammation unresolved. They do not establish synergy, whole-body pharmacokinetics or clinical co-administration safety.
Measurement priorities. The next iteration should first reconcile well exclusions, sampling identity, calibration and independent experimental units. Repeated tracer measurements and transepithelial electrical resistance (TEER) would then test the reproducibility of the barrier response with complementary measurements.
Mechanism priorities. Follow-up junctional staining, reactive oxygen species (ROS) measurements and injury-related assays should address the specific branches left open by a reproducible barrier response. Their selection should depend on which alternative explanations remain plausible after the repeated assessment.
Design decision for the next iteration: retain the local observation with its exposure conditions and limitations, strengthen the barrier assessment, and return new measurements to the particular claim they address. Software-rule revision and a repeat check remain subsequent engineering work.
What we learned across the cycles
Each cycle produced a specific design choice and a question for the next stage.
Table 3. Evidence informing the next design decision.
Cycle
Learning from tests and records
Design decision
DDIAgents
Adaptive roles, selective knowledge and feedback improved the tested prediction workflow.
Retain these features and make explanation support inspectable in the next modeling effort.
ECoPI
Explicit paths locate evidence gaps; assay eligibility and audience consistency require separate interpretation.
Retain the shared evidence record and define the biological node before testing.
Caco-2 experiment
A preliminary barrier-associated pattern leaves reproducibility and mechanism unresolved.
Resolve measurement uncertainties, repeat the barrier assessment and select mechanism-specific follow-up assays.
Model documents the methods, Results presents the computational comparisons, and Wet Lab provides experimental procedures and observations. Reusable resources are described in Contribution.