Open to research & industry collaborations

Hi, I'm Diego Villalba. Machine Learning · Physics · Production systems

I'm a physicist working at the intersection of machine learning and scientific computing. I came from cosmology — simulations, dark-matter fields, data that doesn't fit on a laptop — and today my research also spans LLMs and VLMs applied to medical imaging. I care about the whole arc: an idea, a model, and the unglamorous work of getting it into production.

Portrait of Diego Villalba
Diego Villalba Physicist & ML Engineer · UNAM
Research & teaching at
  • UNAM · Facultad de Ciencias
  • ICF-UNAM
  • DIPC · San Sebastián
  • LAPI · FI-UNAM
  • Tsinghua GHC
Playground

Gravity, live in your browser

A small N-body simulation, the same kind of physics behind the cosmological fields I model. Drag on the canvas to launch a planet and watch it fall into orbit.

★ Interactive N-body gravity simulation · Drag to launch

Industry

End to end: research, computer-vision models, LLM and agentic systems, packaged as APIs that hold up under real traffic.

Teaching

Adjunct professor of Data Warehousing & Mining at Facultad de Ciencias, UNAM — where I learn as much as I teach.

Research

Cosmological simulations and neural implicit fields, plus wavelet-scattering models for accelerated, interpretable MRI reconstruction.

01

Selected Projects

BSc Thesis: Machine Learning for Modelling Cosmological Fields

BSc Thesis: Machine Learning for Modelling Cosmological Fields

Undergraduate thesis (Physics, UNAM · ICF-UNAM): SIREN neural implicit representations and CNN-coupled super-resolution to reconstruct dark-matter density fields from a 768³-particle N-body simulation.

Thesis Cosmology Neural Implicit Representations SIREN Super-Resolution N-Body Simulations
Super Resolution on cosmology

Super Resolution on cosmology

Computational physics and cosmology super resolution research project developed at UNAM (ICF-UNAM).

Cosmology Super-Resolution N-Body Simulations ICF-UNAM Wavelets
Scattnet-MR

Scattnet-MR

Interpretable machine learning framework for accelerated MRI reconstruction based on wavelet scattering transforms.

Medical Imaging MRI Wavelet Scattering Deep Learning Physics-Informed ML
02

Teaching

I teach how data is stored, modelled and interrogated before any of it becomes a model, bringing examples straight from what I'm building that same week.

03

Publications & Talks

04

Trajectory

2021—2026
Physics, UNAM
Bachelor's degree; coursework in computational physics, machine learning and astrophysics.
2024—2025
Cosmological ML
Research internship at ICF-UNAM: GANs and diffusion models for super-resolution of N-body simulations.
2025
DIPC & Medical Imaging
Visiting researcher at DIPC (CODECS project) and associate student at LAPI, UNAM, on wavelet-scattering MRI reconstruction (ScattNet-MR).
2026—now
Industry & Teaching
ML Engineer Lead at PROSPERiA Salud, MSc at IIMAS-UNAM, and assistant professor of Data Mining and Fluid Mechanics at Facultad de Ciencias, UNAM.

Let's talk

If you're working on cosmological or medical-imaging ML, or on getting research into production, I'd like to hear about it. Read more about my background on the about page.

LocationMexico City, Mexico