Senior ML Engineer · Roche · Toronto

I build AI systems that make it from prototype to production.

I'm Milad (Milo). I ship deep-learning products for digital pathology and, increasingly, the agentic LLM systems built around them. PhD in Systems Design Engineering from the University of Waterloo, with papers in Nature journals, IEEE Transactions, MICCAI and ICCV.

H&E-stained whole-slide image of colon adenocarcinoma at about 5× magnification, showing irregular tumour glands in pink stroma (TCGA-AA-A01V).
TCGA-AA-A01V · colon adenocarcinoma · H&E
Experience
10+
years building software, from surgical navigation to AI products
Education
PhD
University of Waterloo · 4.0 / 4.0 GPA
Research
Nature
Sci. Reports, Comms. Biology, IEEE TMI, ICCV-W
Recognition
#1
national rank, Iranian Biomedical Engineering entrance exam
What I'm building now

Models that ship, and the agents that sit on top of them.

Digital-pathology AI, end to end

Training models on whole-slide images, packaging them as containerized inference services, and shipping them through versioned, automated pipelines into enterprise environments and to corporate partners.

  • Triton
  • ONNX Runtime
  • W&B
  • CUDA

Multi-agent LLM systems

Tool-using agents wired to real engineering data, such as Azure DevOps through MCP servers. Deterministic logic does the scoring; the LLM synthesizes and explains. Examples: PI-planning intelligence across SAFe backlogs, and a daily briefing agent for algorithm programs. In the open, I'm building concordat, which makes agents follow their protocols by construction.

  • MCP
  • LangChain
  • Claude
  • OpenAI

A pathology copilot

Pairing foundation models on whole-slide images with an LLM agent, so a pathologist can ask questions of a slide and get grounded, explainable answers.

  • Foundation models
  • ViT
  • Agents
About

Research depth, with a production habit.

I'm most motivated by AI that changes outcomes for patients, and by teams that ship.

Before machine learning took over my work, I spent years in modern C++, building a real-time surgical navigation system with clean architecture, design patterns, build systems, SQL and GLSL in an agile team. That background still shapes how I build ML: tests first, automated pipelines, and performance work that reaches down to Python, C++ and CUDA.

My PhD at Kimia Lab focused on getting deep networks to generalize to hospitals and data they have never seen, through domain generalization, meta-learning and federated learning.

  1. 01

    Find the bottleneck early

    I look for inefficiencies before they become bottlenecks, then automate them away.

  2. 02

    Prototype to production

    A model isn't done until it's containerized, versioned and deployed behind a pipeline someone else can run.

  3. 03

    Work across the table

    I'm comfortable across engineering, product and business, and I give stakeholders clear engineering insight to decide with.

  4. 04

    Deterministic where it matters

    In agentic systems, code does the scoring and the LLM does the explaining. Results stay auditable.

Experience

From surgical navigation to pathology AI.

  1. 2023 — Present

    Roche

    Senior Machine Learning EngineerJun 2025 — Present
    Algorithm EngineerAug 2023 — Jun 2025

    Own digital-pathology AI products end to end: model training on whole-slide images, containerized inference services on Triton with custom backends and ONNX Runtime, and versioned CI/CD deployment through GitLab/GitHub and W&B registries. Now building multi-agent LLM systems on top of engineering data.

    • PyTorch
    • Triton
    • ONNX
    • C++ / CUDA
    • CI/CD
    • MCP
  2. 2019 — 2023

    University of Waterloo · Kimia Lab

    PhD Researcher, Graduate Research AssistantSep 2019 — Aug 2023
    Sessional LecturerFall 2022 · BME 411 Optimization & Numerical Methods
    Graduate Teaching AssistantData Structures & Algorithms, Machine Intelligence, Data & Knowledge Modeling

    Research on generalizing deep networks to unseen, out-of-distribution hospitals in histopathology: meta-learning, domain generalization, federated learning and self-supervised representation learning.

    • Domain generalization
    • Meta-learning
    • Federated learning
    • TDD
  3. 2016 — 2019

    Parseh Intelligent Surgical System (Parsiss)

    C++ Software DeveloperSep 2016 — Sep 2019 · Tehran

    Built a real-time surgical navigation system in modern C++, with clean architecture, design patterns, build systems, SQL and GLSL, in an agile/scrum team.

    • Modern C++
    • GLSL
    • VTK
    • SQL
  4. 2010 — 2019

    Research Center for Biomedical Technology & Robotics

    Research AssistantAug 2014 — Sep 2019
    Research InternSep 2010 — Aug 2014

    GPU-based illustrative volume rendering for intraoperative virtual endoscopy, touchless gesture control of 3D pre-operative images in the OR, and neural data-acquisition tooling.

    • GPU rendering
    • Leap Motion
    • C#
Research

Making models hold up at hospitals they've never seen.

Selected publications. Thesis: Meta-Learning and Domain Generalization, University of Waterloo, 2023.

  1. 2023

    ALFA: Leveraging All Levels of Feature Abstraction for Enhancing the Generalization of Histopathology Image Classification Across Unseen Hospitals

    ICCV 2023 Workshop (CVAMD) · Paris · Sikaroudi, Hosseini, Rahnamayan

  2. 2023

    Generalization of vision pre-trained models for histopathology

    Scientific Reports · Nature Portfolio

  3. 2023

    Learning to predict RNA sequence expressions from whole slide images with applications for search and classification

    Communications Biology · Nature Portfolio

  4. 2023

    Proportionally Fair Hospital Collaborations in Federated Learning of Histopathology Images

    IEEE Transactions on Medical Imaging

  5. 2022

    Hospital-Agnostic Image Representation Learning in Digital Pathology

    IEEE EMBC · 44th Annual International Conference of the IEEE Engineering in Medicine & Biology Society

Research interests
  • Domain generalization
  • Few-shot & meta-learning
  • Federated learning
  • Multimodal learning
  • Vision transformers
  • Weakly / self-supervised learning
Open source

Selected code.

Toolkit

What I reach for.

Languages

  • Python
  • C / C++
  • TypeScript
  • SQL
  • Shell

Deep learning

  • PyTorch / Lightning
  • TensorFlow
  • scikit-learn
  • CUDA

Inference

  • Triton (custom backends)
  • ONNX Runtime
  • FastAPI

LLMs & agents

  • MCP
  • LangChain / LangSmith
  • Claude API
  • OpenAI API

GCP

  • Cloud Run
  • Cloud SQL
  • GPU Compute
  • Artifact Registry
  • Terraform

AWS & Azure

  • Bedrock
  • S3
  • Textract
  • ECR
  • EC2 / SSM
  • Azure DevOps

MLOps

  • W&B
  • GitLab / GitHub CI/CD
  • Docker
  • Kafka

Practices

  • TDD
  • CI/CD
  • Clean architecture
  • Scrum / SAFe
Education & recognition

Along the way.

Education

  • PhD, Systems Design EngineeringUniversity of Waterloo · 2019 — 2023 · GPA 4.0 / 4.0
  • M.Sc., Biomedical EngineeringTehran University of Medical Sciences · 2013 — 2016

Awards

  • Waterloo.AI Graduate Scholarship2021 · merit-based
  • PhD Fellowship, University of Waterloo2019 · $96K over four years
  • Best M.Sc. Student Award2016 · Tehran University of Medical Sciences
  • Ranked 1st nationally2013 · Biomedical Engineering entrance exam, 5,000+ candidates

Service & teaching

  • Session Chair, Digital PathologyIEEE EMBC 2022 · Glasgow
  • Sessional LecturerBME 411 · Optimization & Numerical Methods
  • Exam FacilitatorUWaterloo AccessAbility Services · 2022 — 2023
  • LanguagesEnglish (professional) · Persian (native)
Contact

Building something where AI has to actually work? Let's talk.

LinkedIn GitHub