I build forecasting models, biostatistical analyses and machine-learning systems, and I care most about the part that usually gets skipped: checking whether the result holds up.
I collaborate with the BIOST3 research group at the University of Barcelona on machine-learning flood forecasting, and I'm doing the MSc in Data Science at the UOC. Before that I spent seven years as a financial data and tax advisor, so I'm used to messy real-world data, deadlines and people who need a clear answer rather than a model.
How I work
- The baseline is the null hypothesis. A model counts only if it beats a simple alternative out of sample.
- Uncertainty is part of the result. Intervals, seed variability, simulations and sensitivity checks.
- Negative results get reported. "The method does not work" is a finding, not a failure.
- Reproducible by default. Tests, CI, pinned environments and reports generated from code.
Probabilistic streamflow forecasts and flood early warning, 1 to 24 hours ahead, for a 4,908 km² Mediterranean basin that floods suddenly: in the November 2024 DANA the river at Sant Joan Despí rose from about 25 to 536 m³/s, just upstream of the plant that supplies drinking water to much of Barcelona. Trained on 26 years of Catalan Water Agency (ACA) data, the system runs in the cloud every 30 minutes and publishes its forecasts, intervals and warnings on a live forecast page.
- Better than persistence at every lead time, both in cross-validation (block-bootstrap intervals of the difference exclude zero) and on a two-year hold-out evaluated only once, after the whole system was frozen.
- Warnings with time to act. In 29 of 32 hold-out high-flow episodes the pre-alert came before the river crossed the threshold, a median of 3.5 hours earlier.
- Calibrated uncertainty. The 80 % and 90 % intervals covered 86–90 % and 94–96 % of the hold-out observations.
- The limits are reported too. Beyond a few hours the forecast peaks come late and low, and Ridge alone did better than the chosen ensemble on the hold-out. I kept the ensemble, because switching now would mean using the hold-out to choose the model.
Repositories: model and validation · Catalan version, with the comparison with my thesis · live app · guide to ACA open data (in Catalan, with scripts)
Developed with the BIOST3 research group (University of Barcelona) and supervised by Antonio Monleón-Getino, Pere López Brosa and Javier Méndez-Viera. It extends my bachelor's thesis, which forecast the same station 1–6 h ahead; the thesis models still run live in the cloud (code). I'm first author of a paper on the thesis work, in preparation for Ingeniería del Agua with my supervisors and Àlex Rodríguez Molla, who also contributed to the thesis work.
Full project summary: data, modelling, validation and results
Data. 5-minute flows at Sant Joan Despí and upstream gauges, reservoir outflows and volumes, and 5-minute ACA rain gauges, 2000–2026 (including storm Gloria, January 2020). The inputs are chosen by a coverage rule, not by hand: 6 upstream gauges, 3 reservoirs and 9 rain gauges.
Quality control. Rules derived from reviewed real cases: isolated spikes, dropouts, stuck and saturated sensors, and stretches stored in L/s instead of m³/s, checked against the official daily flow.
Modelling. For each lead time, an equal-weight ensemble of LightGBM (on the relative flow change) and Ridge (on the absolute change). Inputs are kept only if shuffling them makes the validation error worse. Prediction intervals come from LightGBM quantile regression calibrated with conformalized quantile regression on a log scale. Pre-alert: the upper bound of the 90 % interval exceeds the threshold; alert: the forecast itself does.
Validation. Forward chaining by hydrological year (five folds, test years 2020–2024) with gaps so that no lagged feature crosses a block, then a two-year hold-out (October 2024 – September 2026) evaluated once, by a command that locks itself. All models are scored on the same rows and compared with a block bootstrap and the Diebold–Mariano test. Unit tests check for temporal leakage.
Results at Sant Joan Despí (Nash–Sutcliffe efficiency, hold-out)
| Lead time | +1 h | +3 h | +6 h | +12 h | +24 h |
|---|---|---|---|---|---|
| Forecast (ensemble) | 0.966 | 0.803 | 0.585 | 0.441 | 0.272 |
| Persistence | 0.936 | 0.608 | 0.219 | −0.026 | −0.244 |
What did not work, and is reported. The Tweedie loss of my thesis model (trees cannot extrapolate above the largest training flow), flood-oriented sample weights, linear trees, a short-record variant with all the stations, and adaptive conformal inference.
Operational system. Every 30 minutes, GitHub Actions downloads the new real-time ACA readings, rebuilds the inputs exactly as in training, forecasts the five lead times with their intervals, archives every forecast for later verification and publishes a bilingual page. It is an experimental research project, not an official warning system.
Next. More forecast stations in the basin, each with its own configuration, and verification on new years from 2027.
Six-class toxicity detection on multilingual game chat, from TF-IDF to character-level networks written from scratch and a fine-tuned XLM-RoBERTa, with an evaluation built on uncertainty: bootstrap intervals, seed variability and paired tests. Then applied to another game without retraining. Finding: generic toxicity models fail on game chat (AUROC 0.80–0.83 vs 0.93–0.95 when trained on it), but game-specific training barely transfers to another game.
|
How well do contaminant-removal methods work when the right answer is known? A benchmark on a public mock-community dilution series and a simulation study (48 scenarios × 20 studies), ending in a decision guide and a reusable workflow. An independent study on public data, prompted by my experience with low-biomass samples. Finding: DNA quantification matters more than the method: 75% of the contamination removed with precise quantification, 7% with imprecise.
|
|
Part 1: the Cookie Cats A/B test (about 90,000 players) analysed under a pre-registered plan, with blind validity checks, Holm correction, a Bayesian reading of the decision and simulations of peeking and post-treatment bias. Part 2: a regression discontinuity design on Steam data. Finding: moving the first gate lowered 7-day retention by 0.82 pp [−1.33, −0.31]; daily peeking would have raised false positives from 5% to 22%.
|
Walk-forward backtest on four ETFs, 2010–2026, with buy & hold as the null hypothesis: ARIMA, GARCH and VAR forecasts, direction classifiers and volatility-managed portfolios, after costs and on five consecutive test windows. Finding: no strategy beats buy & hold's Sharpe ratio after Holm correction, and no return forecast is significantly more accurate than a random walk.
|
A geography game on open country statistics: is each country closer to A or to B? An explicit difficulty model, games reproducible from a seed, and a versioned data pipeline (195 countries) built to log answers for later analysis. Try it: play in the browser.
|
Which product categories are worth importing from China into Spain? An end-to-end pipeline on official Eurostat trade data, from API ingestion to a configurable scoring model. Finding: the top-ranked category was a false positive, a tiny market with noisy growth: the score shortlists, judgement decides.
|
Research Collaborator · BIOST3 research group (Statistics, Bioinformatics and Data Science),
Dept. of Genetics, Microbiology and Statistics, University of Barcelona · Nov 2025 – present
Extended my bachelor's thesis into a probabilistic flood-forecasting system for the Llobregat
(Python, LightGBM and Ridge, conformal intervals, live on GitHub Actions), now leading its
extension to more stations. First author of a paper on the thesis work, in preparation.
Financial Data and Tax Advisor · Assessoria 21 · Segurzon · 2019 – 2025
Managed and analysed financial and tax data for 60+ clients; built data models to detect
inconsistencies; turned complex regulation into clear reports for non-technical clients.
Data Science Intern · Vall d'Hebron Research Institute (VHIR) · 2018
Data cleaning and statistical analysis in a biomedical research setting, including 16S
microbiome data.
MSc in Data Science · Universitat Oberta de Catalunya (UOC) · 2026 – 2027
Electives: Deep Learning, Natural Language Processing
BSc in Statistics · Universitat de Barcelona / Universitat Politècnica de Catalunya · 2026
Thesis: machine learning for flood-risk prediction in the Llobregat basin
Methods: regression and GLMs · time series (ARIMA, GARCH, VAR) · hypothesis testing and multiple comparisons · bootstrap · simulation studies · Bayesian methods · A/B testing and experimental design · causal inference · imbalanced data · temporal cross-validation · calibration
Languages: Catalan and Spanish (native) · English (C1, IELTS 7.0) · Mandarin (HSK 2 level, studying toward HSK 4)
Open to data science, biostatistics and ML roles in Barcelona or remote, and to relocation.
[email protected] ·
LinkedIn




