Abstract
Access to life-saving drugs is often hampered by fragile supply chains and the short shelf-life of finished pharmaceuticals. On-demand manufacturing—storing stable chemical precursors and synthesizing drugs as needed—offers a potential solution, but managing the vast inventory of required chemicals remains a logistical challenge. This study introduces a computational framework that integrates AI-driven retrosynthesis with mixed-integer linear programming (MILP) to minimize the unique chemical footprint required for a broad set of medicines. By optimizing for shared precursors across multiple synthetic pathways, the researchers demonstrated that the chemical inventory needed for 99 WHO essential medicines could be reduced by approximately 25%.
The Inventory Problem in On-Demand Manufacturing
In many low-income regions, stockpiling finished medicines is a high-risk strategy; if drugs are not used before they expire, they become expensive waste. On-demand manufacturing could mitigate this by allowing for the local synthesis of drugs from stable, versatile starting materials. However, storing thousands of different chemicals is logistically impractical. This research addresses the "inventory problem": how to select specific synthetic pathways for a large list of drugs to minimize the total number of unique chemicals kept in stock.
Methodology: A Multi-Stage Optimization Pipeline
The researchers developed a multi-stage pipeline to solve the inventory problem:
- Retrosynthetic Planning: Using the machine learning platform ASKCOS, the team performed retrosynthetic analysis on 127 target molecules from the WHO Model List of Essential Medicines (EML). The AI explored thousands of potential "recipes" for each drug, breaking them down into simpler building blocks.
- Pathway Evaluation: To ensure the suggested reactions were realistic, they used an "in-scope filter" (a neural network trained on millions of reactions) and a condition recommendation model to predict necessary solvents, catalysts, and reagents.
- Mixed-Integer Linear Programming (MILP): This core optimizer evaluates the entire set of drugs simultaneously. Instead of picking the easiest route for each drug individually, the MILP selects a combination of pathways that maximizes the overlap of chemicals across different drugs.
- Complexity and Trade-off Analysis: The model used a Synthetic Complexity Score (SCScore) to bias the selection toward simpler, more readily available starting materials. A weighting parameter ($\lambda$) was introduced to balance the goal of minimizing inventory size against the chemical feasibility of the pathways.
Key Insights: The Power of Overlap
The study highlights that the "best" route for a single drug (e.g., the shortest or highest yield) might be the "wrong" route for a global inventory. A slightly longer or more difficult route may be preferable if it utilizes a starting material already required for several other medicines. By treating chemicals as versatile building blocks, the researchers showed that 187 starting materials could theoretically produce 99 different essential medicines. For instance, the optimizer successfully repurposed 1-bromo-4-chlorobenzene as a precursor for three different targets: pyrimethamine, haloperidol, and chlorpromazine.
Results and Impact
The AI successfully identified viable synthetic pathways for 112 out of 127 targets (an 88.2% success rate). In a baseline analysis where each drug was optimized individually, 371 unique chemicals were required. However, using the combined MILP optimization, this requirement dropped to 286 chemicals—a ~25% reduction. Common chemicals like methanol were utilized across 10 different drug syntheses. Even when applying stricter quality filters, the framework achieved a 17% reduction in inventory for a subset of 78 targets, demonstrating the robustness of the approach.
Limitations and Future Directions
Despite its success, the "AI chemist" approach has limitations. The models currently lack the ability to account for critical workup steps or ambiguous selectivity in complex reactions. Furthermore, because the AI is trained on published literature, it may favor "one-step" transformations that are actually multi-step processes in practice. Future work will explore graph-based optimization on a single massive network of chemicals and address practical hurdles such as chemical quantities, reactor costs, and regulatory requirements for on-demand manufacturing.
Summary updated