Skip to content
View DiegoHurtad0's full-sized avatar

Block or report DiegoHurtad0

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. Markdown is supported. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
DiegoHurtad0/README.md
Diego Hurtado — Senior Data Scientist · AI/ML Engineer. Production AI systems since 2016, Mexico City working with U.S. teams. I design and ship production-scale AI systems — multi-agent LLM platforms, RAG retrieval, and large-scale ranking engines — for Fortune 500 companies. Proof of work — 8+ years in production · 5× Fortune 500 companies · Millions of users served · Billions of transactions ranked. Trusted in production at CVS Health, Walmart, Huawei, DHL, Baxter.

Visit Portfolio   Get in Touch     LinkedIn   Medium   Kaggle

01 ABOUT  ·  02 IMPACT  ·  03 TECH STACK  ·  04 EXPERIENCE  ·  05 FEATURED PROJECT  ·  06 EDUCATION


03 — About. Building AI that ships — and moves the business. Senior Data Scientist and AI/Machine Learning Engineer with 8+ years of experience building and deploying production-scale AI solutions for top Fortune 500 companies — as a contractor embedded with U.S. teams, delivering measurable impact through machine learning, recommendation systems, and Generative AI. Multi-agent LLM platforms serving millions of patients · Ranking systems trained on billions of transactions. Experience: 8+ years in production ML & AI · Focus: GenAI, Multi-Agent, RAG, RecSys, MLOps · Work model: contractor embedded with U.S. teams · Scale: millions of users, billions of transactions.

04 — Impact at a Glance. $40M incremental revenue — Geospatial Network Allocation model for site expansion, maximizing commercial ROI and NPS, at Huawei. −45% LLM latency and −60% token cost — deterministic middleware for a multi-agent IVR platform serving millions of patients, at CVS Health. +10% click-through rate — Learning-to-Rank objective in XGBoost across billions of historical transactions, at Walmart. +8% advertiser ROI — GenAI personalization engine with fine-tuned Transformers optimizing AdSense relevance, at OBMedia. +30% operational efficiency — predictive analytics for resource planning across North American logistics networks, at DHL. +25% cross-selling Recall@K — ML ranking architecture solving cold-start recommendations at catalog scale, at Walmart.

🛠 Tech Stack & Skills

🧠 GenAI & ML Stack LlamaIndex LangChain LangGraph Multi-Agent Orchestration RAG Embeddings SentenceTransformers Transformers Hugging Face LLMs Prompt Engineering Tunix vLLM Redis PostgreSQL Feast
☁️ Cloud & Orchestration GCP Snowflake Azure Databricks MLflow dbt Airflow Ray Docker Kubernetes Terraform Argo Prometheus / Grafana GitHub Actions Jenkins Git
💻 Languages & Frameworks Python SQL PySpark MySQL Bash FastAPI Postman Pytest
📚 Data & ML Libraries Pandas NumPy Scikit-Learn XGBoost PyTorch TensorFlow / Keras Spark MLlib SciPy NLP
🧪 Methodologies Recommendation Systems Collaborative Filtering A/B Testing EDA MLOps CI/CD
📊 Data Visualization Plotly Dash / Flask Streamlit Power BI Looker Tableau Matplotlib Seaborn React HTML

🔬 Featured Project — Gemma 3 1B Reasoning Fine-Tuning with Tunix

LoRA SFT → GRPO

Strict XML Output Contract • Kaggle TPU–stable • Judge-ready inference wrapper


Gemma 3 Tunix JAX LoRA SFT GRPO Kaggle TPU



View Repository

📋 Summary

Training dashboard (smoothed)

This project documents a production-grade reasoning fine-tuning pipeline for Gemma 3 1B Instruct using Tunix (JAX) on Kaggle TPUs. The core goal is judge robustness: ensure the model emits a machine-parseable output schema every time:

<reasoning>...</reasoning>
<answer>...</answer>
  • Stage 1 — LoRA SFT: Seeds strict XML format + instruction-following behavior.
  • Stage 2 — GRPO: Reinforcement learning with composite rewards (format + task quality + stability).
  • Judge-safe inference wrapper: Deterministic repair + escaping guarantees strict XML for evaluation.
  • Systems reliability: OOM-safe GRPO defaults, KV-cache sizing guarantees, and Tunix 0.1.6 concat-safe rollout batching.
  • Evaluation harness: Quant metrics, qualitative before/after, and TensorBoard-derived training curves.

Languages:  Python Python


📊 Key Visual Evidence (from the final run)

Token length engineering Before/after XML validity Before/after reasoning depth

Dataset mixture vibe check Sequence length analysis

Vibe shift density


✅ Results Snapshot (Smoke Test)

These are small-N smoke tests designed to catch regressions early (format breaks, empty outputs, instability). The key win is eliminating judge-visible format failures via deterministic strict-XML repair.

Metric Result Detail
Strict XML validity (raw generation) 🟡 40.00% 8 / 20
Strict XML validity (after deterministic repair) 🟢 100.00% 20 / 20
Math exact match (normalized, repaired) 15.00% 3 / 20

🏗 Production-Grade Engineering

Practice What it delivers
📐 Contract-first design Strict output schema enforced in prompt, rewards, and inference wrapper
🔧 Tunix 0.1.6 stability engineering Concat-safe rollout batching + KV-cache correctness guarantees
🛡 OOM-safe GRPO defaults Conservative microbatch/generations/kv-extra to finish reliably on Kaggle TPUs
⚖️ Judge-friendly evaluation Before/after tables + training curves + token budget proof
🔁 Reproducibility Config-driven pipeline + deterministic inference settings (INF_TOP_P=None for greedy)

🧪 Extra Evaluation Artifacts (selected) — click to expand


TensorBoard training curves 1 TensorBoard training curves 2

Winning training dashboard (smoothed trend)


🏁 Challenge Summary

Challenge / Track Base Model Training Strategy Output Contract Key Proof
Google Tunix Hackathon (Reasoning Traces) Gemma 3 1B IT LoRA SFT → GRPO (reward shaping) Strict XML: <reasoning> + <answer> 100% strict XML post-repair + full eval artifacts


Offline Multimodal Clinical Triage Copilot (MedGemma 1.5)

Evidence‑first • Offline‑first • Auditable PDF • Single T4‑class GPU

FieldScribe UI dashboard

Summary

FieldScribe is an offline‑first, evidence‑anchored triage copilot that: (1) localizes chest X‑ray findings, (2) detects interval change (Δ heatmap), (3) compresses FHIR‑shaped EHR context into auditable facts, and (4) exports a clinician‑readable triage report + tamper‑evident PDF.

  • Offline-first: Runs on-prem / edge once weights & assets are present (no cloud dependency at inference time).
  • Evidence-first UX: Always renders images + Δ heatmap + extracted facts alongside the narrative output.
  • MedGemma-powered: Uses MedGemma 1.5 4B IT for multimodal synthesis (CXR + EHR).
  • Safety guardrails: DICOM routing interlock prevents patient mismatches from entering synthesis.
  • Auditability: Structured JSON audit packet + Unicode-safe PDF export (ReportLab).
  • Feasibility instrumentation: Logs latency, peak VRAM, and token counts (ablation table in notebook).

Check it here

github kaggle youtube

Languages

python



GenAI / ML Stack



Key Visual Evidence (from the final run)

Clinical pipeline architecture Fact filter context compression CXR baseline/localization/delta heatmap

DICOM routing decision tree Edge vs cloud triage architecture


Impact Snapshot

  • Time saved per complex triage case: ~10–14 minutes (manual EHR review + prior comparison + note drafting → evidence-first workflow).
  • Capacity reclaimed (example): 40 cases/day × 10 min/case ≈ 6.7 clinician hours/day returned to care.
  • Access + privacy: Enables multimodal assistance in bandwidth-limited or sovereignty-restricted settings.

Challenge / Track Base Model Deployment Target Evidence / Audit Artifacts Key Proof
Kaggle MedGemma Impact Challenge MedGemma 1.5 4B IT Single T4‑class GPU (edge) Δ heatmap + fact bullets + JSON audit + PDF Offline-first, evidence-anchored triage workflow


Why this project matters (Problem : Product)

In many clinical environments, the bottleneck isn’t “can AI answer medical questions?” — it’s last‑mile triage under severe operational constraints:

  • Intermittent connectivity: rural clinics, mobile units, disaster response, overcrowded EDs can’t rely on cloud uptime.
  • Strict data sovereignty: PHI often cannot leave the site or cross borders.
  • Fragmented evidence: images, EHR facts, and priors exist — but clinicians must fuse them under intense time pressure.

FieldScribe targets a concrete workflow: longitudinal chest X‑ray (CXR) interval change triage where a clinician must:

  1. detect what changed,
  2. localize it,
  3. reconcile with EHR context, and
  4. write an auditable note.

Status: Research / demo prototype.
Safety: Not a medical device. Outputs require clinician verification.


Demo visuals (place these under assets/)

This README expects the following files under assets/:

  • Multimodal_Triage.jpeg
  • Clinical_Pipeline_Architecture.png
  • Multimodal_Triage_Dashboard.png
  • Agent_Demo.jpeg
  • Longitudinal_CXR_Delta_Heatmap.png
  • Safety_Guardrails_and_Audit_Trace.jpeg
  • Auditable_Clinical_Summary_Report.pdf

Edge vs Cloud (why offline-first)

Edge vs Cloud

4‑step pipeline overview

Pipeline

Offline dashboard UI (Gradio)

Dashboard

Evidence panel (baseline → localization → delta heatmap)

CXR evidence panel

Fact filtering (EHR context compression)

Fact filter

Safety routing + audit posture (DICOM interlock)

Fact filter

Sample output artifact (PDF)

➡️ Download the example PDF: Auditable_Clinical_Summary_Report.pdf


What I built (Recruiter‑focused)

1) Data ingestion + Fact Filtering (EHR)

  • Accepts an offline FHIR‑shaped EHR bundle (JSON).
  • Runs a Fact Filter stage that compresses dense EHR into query‑relevant bullet facts (non‑inventive, audit‑friendly).
  • Goal: keep the LLM context window clean, reduce hallucinations, preserve traceability.

2) Visual comparison + Δ heatmap (CXR)

  • Computes an interval change heatmap (current vs prior CXR).
  • Produces a visual evidence panel clinicians can inspect immediately (value even before text generation).

3) MedGemma multimodal synthesis (AI reasoning engine)

  • Uses MedGemma 1.5 4B IT as the multimodal model for:
    • longitudinal imaging review
    • anatomical localization / grounding
    • EHR‑informed synthesis
  • Runs deterministic inference (do_sample=False) for reproducibility; optionally exposes a “glass‑box” trace in the UI.

4) Triage report + PDF export (paper trail)

  • Generates an executive triage summary and a FHIR‑shaped audit packet.
  • Exports a Unicode‑safe PDF (ReportLab) with evidence images, trace metadata, and disclaimers.

Engineering highlights

  • Offline‑first design: works without external service calls once weights/assets are present.
  • Run‑all notebook reproducibility: deterministic settings + auto‑reset YAML config pattern.
  • Safety interlock: DICOM header routing prevents mismatched patient context from entering synthesis.
  • Performance instrumentation: captures latency, output tokens, and peak VRAM across ablations.
  • Clinician-style UX: evidence surfaced alongside narrative output.

Performance & feasibility

  • Target: single Tesla T4‑class GPU (edge deployable).
  • Includes:
    • Warmup after model load to reduce first‑click latency spikes.
    • Fast Mode to cap tokens / reduce context while preserving evidence‑first outputs.
    • Ablation table logging: latency (s), output tokens, peak VRAM (MB)

Example observed in demo screenshot: Peak VRAM during visualization ≈ 3092 MB (heatmap + panel rendering).
Exact measurements depend on runtime + model caching; see the notebook’s feasibility section.


Disclaimer

FieldScribe is a demonstration prototype. It is not a regulated medical device and must not be used for definitive diagnosis or treatment decisions. Always defer to qualified clinical judgment and local protocols.




Linear Regression Model Representation & Implementation From Scratch in Python

Summary:

Linear Regression Model Representation & Implementation From Scratch using Python

Check it here:

diegohurtadoo diegohurtadoo

Languages:

diegohurtadoo

Data Science Tools:

plotly

seaborn scikit_learn plotly plotly seaborn plotly bootstrap

Challenge Models Ranking People Ranking
House Price Prediction Stacking Models Top 3% Top 97 / 4651
House Price Prediction XGBoost, LightGBM Top 12%



Summary:

▪️ Predict whether a customer will churn using machine learning models

Check it here:

diegohurtadoo diegohurtadoo

Languages:

diegohurtadoo

Data Science Tools:

plotly

seaborn plotly plotly2 html bootstrap2


Challenge Models Score Link
Custumer Churn Prediction LSTM 96% Repository
Telco Customer Churn LSTM 81% Repository

Summary:

Linear Regression Model Representation & Implementation From Scratch using Python

Check it here:

diegohurtadoo

Languages:

diegohurtadoo

Data Science Tools:

plotly

seaborn scikit_learn plotly plotly seaborn plotly bootstrap

Summary:

▪️ Covid 19 — Data Analyst Mexico Overview

▪️ Explanation model of death cases in Mexico

▪️ Mexico Counties Covid Cases Correlation

▪️ Mexico`s Mobility pattern behaviour

▪️ Mexico Counties Clustering

Check it here:

diegohurtadoo

Languages:

diegohurtadoo

Data Science Tools:

plotly

seaborn plotly plotly2 html bootstrap2

Summary:

An in-depth look at the spread of covid-19 in North America

Check it here:

diegohurtadoo

Languages:

diegohurtadoo diego o'hurtado

Data Science Tools:

plotly seaborn scikit_learn plotly

Data Visualization Tools:

plotly seaborn plotly bootstrap

Data Exploration on Amsterdam Airbnb

Summary:

Data Exploration on Amsterdam Airbnb

Check it here:

diegohurtadoo

Languages:

diegohurtadoo diego o'hurtado

Data Science Tools:

plotly seaborn scikit_learn plotly

Data Visualization Tools:

plotly seaborn plotly bootstrap

Traveling Salesperson Problem

Summary:

Efficient route planning for travelling salesman problem for 48 USA States

Check it here:

diegohurtadoo

Languages:

diegohurtadoo diego o'hurtado

Data Science Tools:

plotly seaborn scikit_learn plotly

Data Visualization Tools:

plotly seaborn plotly bootstrap

Machine Learning Regression Models From Scratch in Python

Summary:

▪️ XGBoostRegressor

▪️ RandomForestRegressor

▪️ DecisionTreeRegressor

Check it here:

diegohurtadoo diegohurtadoo

Languages:

diegohurtadoo

Data Science Tools:

Numpy

plotly



Summary:

▪️ Long Short-Term Memory (LSTM) Classifier

Check it here:

diegohurtadoo

Languages:

diegohurtadoo

Data Science Tools:

Numpy

plotly




▪️ How to Make a Covid-19 Choropleth Map in Mapbox

Check it here:

diegohurtadoo diegohurtadoo

Languages:

diegohurtadoo

Data Visualization Tool:

plotly







Popular repositories Loading

  1. Linear-Regression-Model-Representation-Implementation-From-Scratch-using-Python Linear-Regression-Model-Representation-Implementation-From-Scratch-using-Python Public

    Jupyter Notebook 1

  2. Machine-Learning-Regression-From-Scratch Machine-Learning-Regression-From-Scratch Public

    regression machine learning models from scratch

    Python 1

  3. Machine-Learning-Classifiers-From-Scratch Machine-Learning-Classifiers-From-Scratch Public

    Machine Learning Classifiers From Scratch

    Python 1

  4. DataSciencePortfolio DataSciencePortfolio Public

    Applying Data Science and Machine Learning to Solve Real World Business Problems

    Jupyter Notebook 1

  5. Covid-19-Choropleth-Map Covid-19-Choropleth-Map Public

    Make a Covid-19 Choropleth Map in Mapbox

    HTML

  6. Covid-19-Dataset-Mexico Covid-19-Dataset-Mexico Public

    Coronavirus (Covid-19) Data in Mexico

    1