Shayan Mousavi
Shayan Mousavi
Shayan Mousavi, PhDSenior AI Engineer and tech lead at Sanofi R&D, Toronto

Agentic AI for accelerated scientific discovery.

I build AI agents, machine learning systems and products for drug and materials discovery, and I make them hold up outside the notebook. A PhD in applied AI for materials science, then AI research at NRCan optimizing materials refinement plants, autonomous labs at the National Research Council, and now AI and agentic platforms in pharma R&D.

  • Best Invention 2025, Clean Energy Innovation Awards
  • +20% efficiency, lithium refining now in industry
  • ~$60M programme, AI technical vision at the NRC
  • In production at Sanofi, GxP and non-GxP
Knowledge graphpapers, ELN, resultsModel registryversioned, evaluatedData + audit trailLIMS, lineage, GxPSelf-driving labrobots, schedulerGenerate01generative modelsPredict02GNN ensemble, μ ± σSelect03Bayesian optimizationMake04automated synthesisTest05assays, XRD, spectraLearn06retrain, recalibratescientist sign-offTOOLS · MEMORY · GUARDRAILS · EVALS · TRACESAI agentchoosing thenext batch
AI agentML modelsLab hardwareHuman decision

What I build

Five kinds of system, from grounded answers over the literature to the platform that keeps them running. Each tile links to the work where I built it, and the first one runs.

Grounded agentic RAG for scientific products

A planner agent routes each question across hybrid search, a knowledge graph and structured experiment data. Every claim in the answer must cite a passage, a grounding check verifies it claim by claim, and when evidence is missing the system retrieves again or declines. This is the pattern behind RE.Inform.ED and the platform at Sanofi.

evidence missing: re-retrieve, or abstain and say soQuestionPlanner agentdecomposes, routesHybrid searchBM25 + dense vectorsKnowledge graphontologies, entitiesStructured dataexperiments, assaysRerankerevidence setAnswer agentcites every claimGrounding checkclaim by claimGrounded answerwith sourceshuman review for GxPObservability on every step: traces, drift, token cost, latency, evaluation sets
Ask the corpus

The preset questions replay recorded runs over four of my open-access paper abstracts. The pipeline and its checks are the ones I build.

    • Agentic RAG
    • Hybrid retrieval
    • Knowledge graphs
    • Claim-level grounding
    • Abstention
    • Human in the loop

    Agents for scientific discovery

    Orchestrator-and-specialist agents that read the literature, plan experiments and drive lab hardware. A person approves every step that matters.

    Literature agentHybrid searchPlanning agentDesign toolsLab agentLab robotsAnalysis agentML modelsOrchestratorplans, delegatesHuman review
    • Multi-agent orchestration
    • Agentic RAG
    • Self-driving labs
    • Bedrock AgentCore

    Bayesian active learning

    Gaussian processes choose the next experiment by weighing what looks best against what is still uncertain, with expert feedback folded in. It lifted a lithium refining process by 20%.

    next experimentmodel ± 2σ and measurementsexpected improvement
    • Bayesian optimisation
    • Gaussian processes
    • Human in the loop

    Graph models for molecules and materials

    Molecules and crystals as graphs, and message-passing networks that predict their properties with an honest uncertainty: the model layer a discovery loop calls.

    moleculecrystalmessage passinggraph neural networkpropertymean ± σ
    • Graph neural networks
    • Molecular graphs
    • Crystal graphs

    Production AI for regulated R&D

    From notebook to monitored service: APIs, CI/CD and Terraform on AWS and Bedrock, with evaluations, GxP review and approval as gates, and monitoring that feeds the next iteration.

    NotebookexperimentAPIFastAPICI/CDtests, IaCCloudAWS, BedrockMonitordrift, costevalsGxP reviewapprovalmonitoring feeds the next iteration
    • Amazon Bedrock
    • Terraform
    • LLM observability
    • GxP and non-GxP

    Selected work

    Four chapters, most recent first: from electron microscopes and synchrotron beamlines to self-driving labs and pharma R&D.

    SanofiSenior Data and AI Engineer, tech lead
    2025 to now

    A multi-agent platform for scientific data

    I lead a team of three GenAI engineers building an orchestrator-and-specialist platform for bulk ingestion and analysis of scientific data, on Amazon Bedrock and Bedrock AgentCore. Hybrid retrieval, graph databases and domain ontologies do the semantic triage.

    An observability stack tracks drift, token cost and latency, and human-in-the-loop fallbacks are designed in for both GxP and non-GxP use. I also moved an active-learning discovery platform from experimental models into a product with real APIs and routing, and I advise the wider product portfolio through architecture decision records.

    Deployed in pharma R&D, in GxP and non-GxP settings
    Methods
    • Multi-agent orchestration
    • Agentic RAG
    • Hybrid search
    • Knowledge graphs
    • Domain ontologies
    • LLM observability
    • Human in the loop
    • Active learning
    • GxP and non-GxP
    Stack and domain
    • Amazon Bedrock
    • Bedrock AgentCore
    • AWS
    • Terraform
    • Pinecone
    • OpenSearch
    • Graph databases
    • FastAPI
    • CI/CD
    • Containers
    • Architecture decision records
    National Research Council CanadaProgram Technical Lead in AI; Lead Applied AI Scientist
    2024 to 2025

    The Digital Fabric: AutoMatOOr, RE.Inform.ED and SokeGraph

    I set the AI strategy for the Materials for Clean Fuels programme and architected the Digital Fabric, an ecosystem that connects autonomous AI systems to laboratory hardware across institutions.

    Inside it I was product owner and lead developer for two systems. AutoMatOOr is an agentic orchestrator that runs the design, make, test, analyze loop end to end. RE.Inform.ED is an agentic RAG system that reads scientific literature and returns structured knowledge, removing the human bottleneck in evidence review. I co-developed SokeGraph, which uses language models to build domain knowledge graphs so researchers can query by concept instead of keyword, and built Bayesian ML, active learning and NSGA-II workflows for battery material processes.

    AI technical vision for a ~$60M national programme
    SokeGraph: Best Invention of the Year, Clean Energy Innovation Excellence Awards 2025
    AutoMatOOr on GitHub SokeGraph preprint
    Methods
    • Self-driving labs
    • Agentic orchestration
    • Design, make, test, analyze
    • Agentic RAG
    • Knowledge graphs
    • Information extraction
    • Federated AI
    • Bayesian ML
    • Active learning
    • NSGA-II
    Stack and domain
    • LLMs
    • Lab hardware integration
    • Python
    • Clean fuels
    • Battery materials
    Natural Resources CanadaAI Researcher, Bayesian ML
    2022 to 2024

    Human-in-the-loop active learning for lithium

    A Bayesian active learning workflow that folds expert feedback into the model, for mineral composition spaces too sparse to search by brute force. It showed a lithium process could tolerate impurities 20 times beyond current standards, and an active-learning redesign of a high-throughput refinement step is now in industrial use.

    +20% efficiency, now running in an industry partner’s operations
    Impurity tolerance 20 times beyond current standards
    Two first-author papers in Digital Discovery, 2024 and 2025
    Active learning code High-throughput code
    Methods
    • Bayesian active learning
    • Bayesian optimisation
    • Human in the loop
    • High-throughput experimentation
    • Process optimisation
    Stack and domain
    • Python
    • Jupyter
    • Lithium carbonate
    • Battery materials
    • Mineral processing
    • CO₂ capture
    McMaster, CCEM, Canadian Light SourcePhD and MSc research
    2017 to 2022

    Deep learning for spectroscopy and imaging

    EELSpecNet, a U-shaped convolutional network for pixel-wise deconvolution of electron energy-loss spectra. Super-resolution of diffraction-limited hyperspectral images at a synchrotron infrared beamline. A Bayesian MCMC tool that tracks peak evolution in in-situ X-ray diffraction in real time. And SPDFEM, a finite element calculator for 3D electromagnetic fields.

    EELSpecNet: introduced in Microscopy and Microanalysis (2021), evaluated in Scientific Reports (2022)
    EELSpecNet on GitHub SPDFEM on GitHub
    Methods
    • Computer vision
    • Deep learning
    • U-shaped CNN
    • Spectral deconvolution
    • Super-resolution
    • Hyperspectral imaging
    • Bayesian MCMC
    • Probabilistic ML
    • Finite element method
    Stack and domain
    • TensorFlow
    • Python
    • Quasar
    • Electron microscopy
    • EELS
    • Synchrotron infrared
    • In-situ XRD

    Harnesses and loop engineering

    At Sanofi I build cross-product harnesses that put agents to work across the whole lifecycle of life sciences tools, from the backlog to production, where there is little room for mistakes. Each one is written once and reused across products and teams. The ones I can share are open source.

    Claude Code: scrumscribe

    > /scrumscribe:po Finance wants to export invoices without asking engineering

    ✓ Discover read Jira, Confluence and the repo, every fact source-linked context.md

    ✓ Gap check question bank marked Known, Inferred or Missing gaps.md

    ✓ Ask at most five questions per round, multiple choice answers.md

    ✓ Draft lean stories, test and eval tickets, red-team review draft/

    ✓ Approval 1 Product Owner approved the package

    ● Approval 2 waiting for the Scrum Master

    hook creating a Jira issue changes data. Ask a human first.

    Open source: ScrumScribe

    A Product Owner talks. The harness writes the backlog, with approvals.

    • Six read-only helper agents draft; only the orchestrator can write.
    • Nothing is posted until two people approve it.
    • A hook asks a human before any tool that can change Jira or Confluence.
    • Built on open Agent Skills, so it runs in Claude Code, Cursor and Codex.
    1. Product and scrumOpen source
    2. ArchitectureInternal
    3. InfrastructureInternal
    4. GenAI developmentInternal
    5. DeploymentInternal
    6. ProductionInternal

    Research and career

    Trained as a materials scientist, then spent nearly a decade teaching machines to read the instruments. The full story is on the about page.

    Selected publications

    All publications on Google Scholar

    Career

    • SanofiSenior Data and AI Engineer, tech lead, R&D AI products2025 to now, Toronto
    • National Research Council CanadaProgram Technical Lead in AI; Research Officer, AI/ML for accelerated discovery2024 to 2025
    • Natural Resources CanadaAI Researcher, Bayesian ML and human-in-the-loop systems2022 to 2024
    • Canadian Light SourceVisiting researcher, ML for synchrotron hyperspectral imaging2021 to 2022
    • McMaster UniversityPhD, applied AI in computational materials science; MSc, materials engineering2017 to 2022
    • Sharif University of TechnologyBSc, materials science, secondary stream in theoretical mathematics

    Working on AI for discovery?

    I am glad to compare notes on agents for science, active learning, and getting models out of the notebook and into the lab. LinkedIn is the fastest way to reach me.