Ivan Reyes-Amezcua

PhD in Computer Science and AI/ML Engineer with 6+ years of experience building and deploying machine learning systems, conversational AI, and scalable MLOps/LLMOps pipelines. I obtained my PhD from the Center for Research and Advanced Studies (CINVESTAV), where I researched the robustness and security of deep learning models with a focus on medical imaging, under the supervision of Dr. Andres Mendez-Vazquez and Dr. Gilberto Ochoa-Ruiz at the CV INSIDE Lab.

I am currently a Postdoctoral Researcher at Tecnológico de Monterrey (ITESM), working with Dr. Gilberto Ochoa-Ruiz on deepfake detection in video calls and federated learning for credit fraud detection.

I also work as an AI Specialist at Layer7, leading the design and deployment of enterprise LLM and multi-agent architectures for conversational AI, speech pipelines, and scalable MLOps workflows. I also serve as Lead AI/ML Instructor at AnyoneAI and teach machine learning, deep learning, and data science at graduate and undergraduate levels at ITESO, ITESM, and UMG.

I actively contribute to the research community as Mentorship Chair at the LatinX in Computer Vision Workshop at CVPR and as a mentor in the Google ExploreCSR Program LATAM.

Email  /  Scholar  /  LinkedIn  /  Twitter  /  Github

Research

I'm interested in computer vision, deep learning, generative AI, and robust machine learning. In my postdoc, I work on detecting deepfakes in real-time video calls and on federated learning methods for credit fraud detection, where financial institutions can train models together without sharing sensitive data. During my PhD, I focused on the robustness of deep learning models against adversarial and natural corruptions, and on federated learning for privacy-aware medical imaging.

Publications

Enhancing Image Classification Robustness through Adversarial Sampling with Delta Data Augmentation (DDA)
Enhancing Image Classification Robustness through Adversarial Sampling with Delta Data Augmentation (DDA)
Ivan Reyes-Amezcua, Gilberto Ochoa-Ruiz, Andres Mendez-Vazquez
CVPR - LatinX in AI Workshop, 2024  (Oral Presentation)

A novel technique that boosts adversarial robustness by injecting perturbations from robust models into new tasks. Unlike traditional attacks, DDA enriches training with diverse, transferable adversarial signals, improving defenses across multiple datasets.

EndoDepth: A Benchmark for Assessing Robustness in Endoscopic Depth Prediction
EndoDepth: A Benchmark for Assessing Robustness in Endoscopic Depth Prediction
Ivan Reyes-Amezcua, Ricardo Espinosa, Christian Daul, Gilberto Ochoa-Ruiz, Andres Mendez-Vazquez
MICCAI - Data Engineering in Medical Imaging (DEMI) Workshop, 2024  (Oral Presentation)
Arxiv / Code / Dataset

A benchmark for evaluating the robustness of monocular depth estimation models in endoscopic scenarios, featuring real-world image corruptions. Alongside it, we propose a new metric, mDERS, and release SCARED-C, a dataset tailored to assess performance under challenging endoscopic conditions.

Leveraging Pre-trained Models for Robust Federated Learning for Kidney Stone Type Recognition
Leveraging Pre-trained Models for Robust Federated Learning for Kidney Stone Type Recognition
Ivan Reyes-Amezcua, Michael Rojas-Ruiz, Gilberto Ochoa-Ruiz, Andres Mendez-Vazquez, Christian Daul
MICAI, 2024  (Oral Presentation, Best Student Paper Award)
Arxiv

A robust Federated Learning framework that leverages pre-trained models to improve kidney stone diagnosis while preserving data privacy. Our two-stage method—Learning Parameter Optimization and Federated Robustness Validation—boosts both accuracy and resilience to image corruptions across decentralized datasets.

MACFE: A Meta-learning and Causality Based Feature Engineering Framework
MACFE: A Meta-learning and Causality Based Feature Engineering Framework
Ivan Reyes-Amezcua, Daniel Flores-Araiza, Gilberto Ochoa-Ruiz, Andres Mendez-Vazquez, Eduardo Rodriguez-Tello
MICAI, 2022  (Oral Presentation)
Arxiv / Code

A novel feature engineering method that combines meta-learning and causal analysis to automate the search for high-impact feature transformations. By encoding feature distributions and selecting causally relevant inputs, MACFE significantly improves prediction performance.

Robust Federated Anomaly Detection Using Dual-Signal Autoencoders: Application to Kidney Stone Identification in Ureteroscopy
Robust Federated Anomaly Detection Using Dual-Signal Autoencoders: Application to Kidney Stone Identification in Ureteroscopy
Ivan Reyes-Amezcua, Francisco Lopez-Tiro, Clement Larose, Christian Daul, Andres Mendez-Vazquez, Gilberto Ochoa-Ruiz
MICCAI - DEMI Workshop, 2025  (Best Paper Award)
Arxiv

We present FedAgain, a federated learning algorithm for medical imaging anomaly detection across decentralized networks with heterogeneous data. The system uses a dual-signal trust mechanism based on reconstruction error and model divergence to downweight suspicious client contributions while maintaining privacy, achieving precision gains of up to +14.49% and F1 score improvements of up to +10.20% over traditional FedAvg.

Vision Transformers for Kidney Stone Image Classification: A Comparative Study with CNNs
Vision Transformers for Kidney Stone Image Classification: A Comparative Study with CNNs
Ivan Reyes-Amezcua, Francisco Lopez-Tiro, Clement Larose, Andres Mendez-Vazquez, Gilberto Ochoa-Ruiz, Christian Daul
MICAI, 2025  (Best Paper Award)
Arxiv

A comparative evaluation between Vision Transformers and CNNs for kidney stone classification from endoscopic images. The ViT-base model pretrained on ImageNet-21k significantly outperformed ResNet50, achieving 95.2% accuracy on complex endoscopic patches compared to ResNet50's 64.5%, demonstrating that ViT architectures are a superior alternative for this medical imaging task.

Adversarial Robustness on Artificial Intelligence
Adversarial Robustness on Artificial Intelligence
Ivan Reyes-Amezcua, Gilberto Ochoa-Ruiz, Andres Mendez-Vazquez
Book Chapter - What AI Can Do: Strengths and Limitations of Artificial Intelligence (CRC Press), 2023

This chapter explores the critical need for evaluating the robustness of deep learning models, especially in safety-sensitive applications. Focusing on adversarial attacks, we highlight the vulnerabilities of neural networks to small, targeted input changes and emphasize the importance of developing reliable techniques to ensure trustworthy AI systems.

Guided Deep Metric Learning
Guided Deep Metric Learning
Jorge Gonzalez-Zapata, Ivan Reyes-Amezcua, Daniel Flores-Araiza, Mauricio Mendez-Ruiz, Gilberto Ochoa-Ruiz, Andres Mendez-Vazquez
CVPR - LatinX in AI Workshop, 2022  (Best Paper Award)
Arxiv

A novel approach designed to improve generalization and manifold representation under distributional shifts. By combining a multi-branch master model with a student model in an offline distillation setup, our method achieves up to 40% performance gains in visual similarity tasks through more compact and robust clustering.

FedAgain: A Trust-Based and Robust Federated Learning Strategy for an Automated Kidney Stone Identification in Ureteroscopy
FedAgain: A Trust-Based and Robust Federated Learning Strategy for an Automated Kidney Stone Identification in Ureteroscopy
Ivan Reyes-Amezcua, Francisco Lopez-Tiro, Clement Larose, Christian Daul, Andres Mendez-Vazquez, Gilberto Ochoa-Ruiz
arXiv preprint, 2026
Arxiv

A trust-based federated learning strategy that weights each hospital's contribution using benchmark reliability and model divergence, reducing the impact of noisy or adversarial updates. Evaluated on MNIST, CIFAR-10, two private multi-institutional kidney stone datasets and MyStone, it consistently outperforms standard federated baselines.

Transfer Robustness to Downstream Tasks Through Sampling Adversarial Perturbations
Transfer Robustness to Downstream Tasks Through Sampling Adversarial Perturbations
Ivan Reyes-Amezcua, Gilberto Ochoa-Ruiz, Andres Mendez-Vazquez
Journal of LatinX in AI (LXAI) Research, 2023

We study how adversarial robustness learned by a robust source model can be carried over to downstream tasks by sampling its adversarial perturbations and using them during training of the new model.

Embedding Quality for Safety Classification: A Systematic Benchmark of Guard Models, Base Decoders, and Encoders
Embedding Quality for Safety Classification: A Systematic Benchmark of Guard Models, Base Decoders, and Encoders
Jose Ochoa-Sanchez, Rocio Carrasco-Navarro, Ivan Reyes-Amezcua
Advances in Soft Computing (Springer), 2026

A benchmark of frozen embeddings from 14 configurations (guard models such as LlamaGuard and WildGuard, base decoders, multilingual BERT encoders and commercial embedding APIs) across five safety tasks, including Spanish hate speech, prompt injection and jailbreaks, showing that cheap linear probes on embeddings can rival autoregressive guard models.

Boosting Kidney Stone Identification in Endoscopic Images Using Two-Step Transfer Learning
Boosting Kidney Stone Identification in Endoscopic Images Using Two-Step Transfer Learning
Francisco Lopez-Tiro, Daniel Flores-Araiza, Juan Pablo Betancur-Rengifo, Ivan Reyes-Amezcua, Jacques Hubert, Gilberto Ochoa-Ruiz, Christian Daul
MICAI, 2023
Arxiv

A two-step transfer learning approach that first learns kidney stone features from images acquired with a CCD camera and then transfers them to a classifier for endoscopic images, improving automated stone-type recognition during ureteroscopy.

Improving Automatic Endoscopic Stone Recognition Using a Multi-View Fusion Approach Enhanced with Two-Step Transfer Learning
Improving Automatic Endoscopic Stone Recognition Using a Multi-View Fusion Approach Enhanced with Two-Step Transfer Learning
Francisco Lopez-Tiro, Elias Villalvazo-Avila, Juan Pablo Betancur-Rengifo, Ivan Reyes-Amezcua, Jacques Hubert, Gilberto Ochoa-Ruiz, Christian Daul
ICCV Workshops (ICCVW), 2023
Arxiv

A deep learning method that fuses surface and section views of kidney stone fragments, mimicking morpho-constitutional analysis. With two-step transfer learning and attention blocks, feature fusion improves classification accuracy by more than 6% over single-view models.

Evaluation of Few-Shot Learning Methods for Kidney Stone Type Recognition in Ureteroscopy
Evaluation of Few-Shot Learning Methods for Kidney Stone Type Recognition in Ureteroscopy
Carlos Salazar-Ruiz, Francisco Lopez-Tiro, Ivan Reyes-Amezcua, Clement Larose, Gilberto Ochoa-Ruiz, Christian Daul
IEEE International Symposium on Computer-Based Medical Systems (CBMS), 2025
Arxiv

A few-shot learning approach that produces discriminative features for identifying kidney stone types in endoscopic images when only a handful of labeled samples are available.

Evaluating the Plausibility of Synthetic Images for Improving Automated Endoscopic Stone Recognition
Evaluating the Plausibility of Synthetic Images for Improving Automated Endoscopic Stone Recognition
Ruben Gonzalez-Perez, Francisco Lopez-Tiro, Ivan Reyes-Amezcua, Eduardo Falcon-Morales, Rosa-Maria Rodriguez-Gueant, Jacques Hubert, Michel Daudon, Gilberto Ochoa-Ruiz, Christian Daul
IEEE International Symposium on Computer-Based Medical Systems (CBMS), 2024
Arxiv

We assess whether synthetic kidney stone images are plausible enough to augment scarce training data and improve AI models for endoscopic stone recognition, especially for rare stone classes.

SuSana Distancia is All You Need: Enforcing Class Separability in Metric Learning via Two Novel Distance-Based Loss Functions for Few-Shot Image Classification
SuSana Distancia is All You Need: Enforcing Class Separability in Metric Learning via Two Novel Distance-Based Loss Functions for Few-Shot Image Classification
Mauricio Mendez-Ruiz, Jorge Gonzalez-Zapata, Ivan Reyes-Amezcua, Daniel Flores-Araiza, Francisco Lopez-Tiro, Andres Mendez-Vazquez, Gilberto Ochoa-Ruiz
arXiv preprint, 2023
Arxiv / SSRN

Two distance-based loss functions, including the Proto-Triplet Loss, that enforce intra-class compactness and inter-class separation of embeddings to improve metric-learning methods for few-shot image classification.

Análisis de impacto en clasificadores CNNs ante la evaluación de imágenes con perturbaciones naturales
Análisis de impacto en clasificadores CNNs ante la evaluación de imágenes con perturbaciones naturales
Robin A. Rojas-Alvarez, Ivan Reyes-Amezcua, Andres Mendez-Vazquez
Research in Computing Science, vol. 153(7), 2024

An analysis of how pretrained CNN classifiers respond to natural image corruptions from CIFAR-C, identifying architectural factors that improve robustness.

Explorando la robustez adversaria ante el ataque adversario PGD de los modelos AlexNet, VGG y ResNet
Explorando la robustez adversaria ante el ataque adversario PGD de los modelos AlexNet, VGG y ResNet
María Fernanda Castro-Sandoval, Ivan Reyes-Amezcua, Andres Mendez-Vazquez
Research in Computing Science, vol. 153(7), 2024

An evaluation of the adversarial robustness of AlexNet, VGG and ResNet trained with PGD adversarial training on CIFAR-10 and CIFAR-100, showing the key role of the optimizer and learning rate.

A Novel Framework for Fast Feature Selection Based on Multi-Stage Correlation Measures
A Novel Framework for Fast Feature Selection Based on Multi-Stage Correlation Measures
Ivan-Alejandro Garcia-Ramirez, Arturo Calderon-Mora, Andres Mendez-Vazquez, Susana Ortega-Cisneros, Ivan Reyes-Amezcua
Machine Learning and Knowledge Extraction (MDPI), Journal, 2022

A cascade framework for fast feature selection in high-dimensional supervised datasets that combines approximated and simulated-annealing versions of the Maximal Information Coefficient (MIC) to remove irrelevant and redundant features.

Projects

Awesome MLOps End-to-End (2025)
End-to-end MLOps system for predicting trip durations in Guadalajara's MiBici bike-sharing system using MLflow, DVC, FastAPI, Docker, and automated retraining.
MACFE Framework (2022)
Meta-learning + causality automated feature engineering framework published at MICAI 2022 with reproducible open-source Python implementation.
PyCUDAcov (2020)
Highly optimized covariance matrix computation library using CUDA parallel programming, released as a PyPI package.
Machine Learning Projects Repository
Actively maintained repository featuring ML, DL, and Data Science projects aligned with state-of-the-art architectures and evaluation practices.