Data Scientist · Machine Learning and Deep Learning · Santiago, Chile
Data scientist from Universidad Mayor. For 1 year and 4 months I was a data analyst at Buses Vule S.A., an operator in Santiago’s public bus network, where I automated fuel control and supply reporting for a fleet of 2,094 buses across 20 depots, building Python and SQL pipelines, AppSheet apps and Power BI dashboards. Before that, in 2022, I coordinated the Python course of MIT’s MISTI program with Universidad Mayor, teaching programming fundamentals to more than 100 students in English and Spanish.
In my projects I build models that forecast, detect fraud and anomalies, anticipate equipment failures and measure the real effect of a decision. I also work on computer vision for low-cost devices and on agents built on local language models. I work on Chilean public data, with Python, SQL, dbt, DuckDB, FastAPI and Docker.
24 years of daily unit values, in UF. Switching to Fund E at the bottom of a crash costs 1.9 points of real return a year; switching earlier gets the same Sharpe as a static mix: there is no timing, there is less equity.
Did the maintenance program work, and on which trucks? On real sensor data from 60,000 Scania trucks, the default DRLearner collapses (r = −0.01); the cause was isolated and it recovers to 0.61–0.79.
3,000,888 sales rows. A quarter of the "zero demand" was stores that had not opened yet, and the model with the best metric leaves a stockout on 41% of store-days.
An agent with Qwen 2.5 running on CPU, over real plant and ChileCompra data, measured on 100 queries: it picks the right tool 99 times but miscopies large amounts; returning them in millions lifts grounded answers from 67 to 86.
Panel from 128 CMF Excel files. Stress test with lag and signs chosen without look-ahead: only consumer and commercial beat no change (0.73 and 0.85). Per-bank LightGBM does not; SHAP shows it learns the regime.
4 years of real hourly data read from the vector charts of the grid coordinator's daily reports (0.04 USD/MWh residual). Price by bus: 17.88% WAPE vs 21.88% naive; blending with persistence fixes Puerto Montt.
Real hourly SEN demand, solar and wind: LightGBM with a holiday calendar forecasts the next day at 2.48% MAPE vs 3.61% naive; ARIMA and TBATS lose over the holidays; real wind has half the volatility the reconstruction implied.
14 years of real LME prices: GARCH(1,1) has the best QLIKE and only HAR-X, with the VIX and the dollar, ties it. CatBoost re-tuned in every fold does not beat it.
BG/NBD and Gamma-Gamma coded from the likelihood. Predicting 26 weeks: -2% error on total purchases, against +68% for the naive rate and +24% for LightGBM.
Minute by minute: Nasdaq futures predict 3.4-3.7 of BTC's 5.1-point fall; a market-data alarm fired 42 minutes before the theft was admitted; 36 hacks since 2011 show no average effect; news and war data do not improve forecasts.
Four techniques, all with real data: the e-commerce pipeline drops from a synthetic PR-AUC of 0.993 to 0.052 on IEEE-CIS, and the unsupervised AML ensemble falls below random on Elliptic (ROC-AUC 0.17-0.33) because illicit flows are typical, not anomalous.
19 detectors on PaySim and on real fraud (ULB cards, IEEE-CIS e-commerce): the ranking barely transfers (Spearman 0.28-0.38) and on e-commerce no detector exceeds PR-AUC 0.22.
13.7 M ChileCompra order lines: Compra Ágil orders pile up under the cap and the pile moved with the law, but there is little sign of split purchases. Isolation Forest finds 38.8% of planted anomalies reviewing 5%.
The same C + Ruby + Python engine on 590,540 real transactions (IEEE-CIS): PR-AUC 0.098 against the synthetic 1.000, and its layers add nothing over the native features.
On real IEX and Binance tapes the detector alerts on 1.4-24% of windows, not 0.27%, and does not anticipate price; the Apr 2023 lithium news day was a volume event (12x), not an imbalance one.
NAB scorer reimplemented and validated 9/9 against published results. Reporting only the onset of each excursion lifts a seasonal detector from 2.4 to 41, and calibrating each series against its own history lifts industrial failures from 29 to 50. The best detector scores 49.0 cross-validated, but once the choice of detector is cross-validated too, the honest number is 42.8.
4 public datasets (2 real Scania truck sets, a metro compressor, NASA's simulated turbofans), 8 model families and a Docker demo: SCANIA rescales each variable differently across train, validation and test (adversarial AUC 1.00); fixing it cuts predicted risk from 16.9% to 4.2% (2.7% actual). On APS, cost 9,150 vs the IDA 2016 winner's 9,920.
Bearings (NASA IMS), earthquakes (LANL) and 23,550 real SCANIA trucks: spectral boosting beats a CNN by 2.5×, and the multi-task network that tied on the synthetic fleet loses on real trucks, even after correcting the validation scale (AUC 0.62 vs 0.71).
Sample size, SRM, CUPED, multiple testing and an mSPRT you can check daily, verified in simulation and on Criteo's real 14M-user experiment: SRM passes, but covariate adjustment moves the effect by 39%.
96k real orders. Arriving late causes -1.97 review points (AIPW), with most of the damage in the first week. Filtering out pre-delivery reviews would have dropped 74% of late orders.
580 products, 2,500 real households. Ignoring display and mailer overstates elasticity by 40%; double ML gives -1.50. A 10% discount only pays for itself above 50% gross margin, even for beer.
Real iron-ore plant: R² 0.83 on a random split is -0.43 in time order; only recent lab results beat persistence, and four models prescribe opposite pH moves.
Multi-depot routing with time windows on real population (Kontur rescaled to Censo 2017) and real roads (OSRM): a plan built on simulated distances is 46% longer once driven.
10,000 real bank customers: the complaints column was a leak (AUC 1.00 vs 0.85); a value-based threshold recovers US$189,930 contacting 42%, vs US$143,842 contacting everyone.
1.18M real parts: failures come in lots (11x next to a failed part). Shuffled CV overstates (0.40 vs 0.21 on later parts). Inspecting the riskiest 5% catches 61% of failures.
26 techniques on simulated books (R+Python+C scorecard at 270.6M rows/s, IFRS 9 PD, shadow/canary/retraining lifecycle) and a 27th that tests them on 621k real Lending Club loans: the monotonic constraint is still free and the scorecard no longer wins.
C++20 engine tested on 30 years of LME prices: 90% bands cover 83-87%; Heston, jumps and regimes gain at most 1.1%, the same as no model, and Schwartz reversion cannot be told from chance.
Real Cochilco yearbook 2000-2025 and real SEN marginal cost by bus in dbt + DuckDB: at the spot price copper mining's electricity fell from USD 518 to 262 per tonne (2022-2024); 131 tests, simulated site layer.
dbt + DuckDB + GitHub Actions: nine public series (UF, dollar, copper, CPI, policy rate, IMACEC, unemployment, pension funds, CMF delinquency) are downloaded, tested and published every day; if mindicador is down, the UF and the dollar come from the SII.
ML.NET + ONNX in a desktop app; on 97 real published blasts the model explains 0.76 with a random split but -0.59 at a new mine, against the synthetic 0.957.
99k real hospital encounters. Counting future visits inflates AUC from 0.67 to 0.80. Calibrated model with net benefit at 5-39% thresholds; no racial gap, but weaker for patients over 70.
A family-group rule (0.799 on Kaggle) beats every ML model (0.775). The model bets against the rule are right 79% in CV and 56% on test; a leak through the passenger's own label gives CV 0.99 and Kaggle 0.64.
Kaggle competition on synthetic data: the same models score 0.994 on the real 130k-passenger survey; ~3% flipped labels explain the gap. Some popular tricks only exploit the generator. Final private 0.96144, in the same order as CV.
Agent over real plant and ChileCompra data, measured on 100 queries with local Qwen: right tool 99 times, and reporting amounts in millions lifts grounded answers from 67 to 86.
Evaluated on 100 real flotation-plant cases: listing tool arguments cuts invalid calls from 69 to 16, and auditing the request gives 25 of 25 correct safety decisions.
Segmentation on GOES-16 without downloading 451 GB: remote reads of the Kaggle zip and OpenContrails. Upsampling the input 2x is worth +0.05 Dice; stacking frames hurts. 0.597 on Kaggle private.
Buses Vule S.A.Santiago public bus network (Red)January 2025 – April 2026
As a data analyst at Buses Vule S.A., an operator in Santiago’s public bus network, I automated fuel control and supply reporting for a fleet of 2,094 buses across 20 depots, building Python and SQL pipelines, AppSheet apps and Power BI dashboards.
Each of the 20 depots tracked fuel in its own Excel file. First I wrote a Python script that merges the sheets, compresses them into consolidated tables by depot, day and month, computes each bus's km per litre against its previous load and flags the ones outside their model's range. Then an AppSheet app that replaced the sheets: operators record loads, pump readings and tanks from their phone, and the app computes per-pump consumption, theoretical stock and AdBlue. Reviewing the code, I fixed three bugs: dates sorted wrongly across months, buses left without a range because of how the standard was written, and every bus's first load flagged by mistake.
For 2 years I have been an enduro instructor at the Ecobike Training school. Classes run on Saturday mornings, and each month combines technique, fitness, circuits and a ride on a different hill around Santiago.
A Python library that downloads Chile's reference data, clean and in a DataFrame: 17 official Central Bank series with no key (dollar, policy rate, IMACEC, GDP, unemployment, reserves), UF, UTM, CPI, copper and other metals from Cochilco, pension funds, CMF bank delinquency, legal holidays, business days, all 346 communes with their CUT code and the 2024 Census by commune (it adds up exactly to the 18,480,432 people published). It fixes real source errors, like the dollar leaking into the UF in 2014, the CPI's four base changes (without chain-linking, 12-month inflation is off by up to 25.8 points) or mindicador's IMACEC, which keeps the first published figure and matches the current one on only 3.8% of months. It publishes an interactive dashboard that updates every week.
import datoschile as dc
dc.resumen() # 9 indicadores con su fuente
dc.bcentral.serie("imacec") # serie oficial, sin clave
dc.cochilco.cobre(desde=2024) # cobre LME del día
dc.convertir.deflactar(1_000_000, "2015-01")