01 / 06

MIGUELA. CASTRO

LawyerData & AI

Computer visionReinforcement learningNLPSports analytics
unitone of 368,640

Press BUILD to make one. Then click the robot for a new one, or a part to change it.

How it is made

Each robot is drawn on a 16 × 17 grid, one cell at a time, with no images. A seeded random generator (mulberry32) picks one option for each of ten slots, from antenna to colour, which gives 368,640 possible robots. The same robot is this tab's icon and the small one on the page, which treats lines of text as platforms and follows your cursor.

scroll
02 / 06
Portrait of Miguel Ángel Castro Torreslanda

Miguel Ángel Castro Torreslanda

Mexico City — MadridLawyer · Data & AI

LawLawyer with 14 years of experience in constitutional and administrative litigation and regulatory advisory in Mexico's energy and financial sectors. As a lawyer at Reyes Orona y Asociados, I handled more than 100 amparo proceedings, including landmark injunctions against major reforms in the energy sector.

AcademiaI studied Law and Economics at ITAM, where I graduated summa cum laude at the top of my class, went on to complete a Master's in Human Rights and Guarantees at ITAM and the University of Genoa, and finished a PhD in Law at Universidad Panamericana. For seven years I taught at ITAM and the Barra Nacional de Abogados, where my courses included Law of Obligations, Property Law, Contracts, and workshops in Legal Writing and Research.

Data & AII am completing an MSc in Data Science, Big Data & Business Analytics at Universidad Complutense de Madrid. My work spans machine learning, reinforcement learning, computer vision and generative AI: from systems that turn sports video into structured data to a RAG system over court rulings.

Competitions
6th of 8,000+Pump It Up · DrivenData
Top 5% · 37th of 759More than a Hack 2027 · Barça Innovation Hub, Mobile World Capital Barcelona (Talent Arena) and Metrica Sports
03 / 06

Work

01──NFLVISION2026
Computer vision · American football
Game video in, player tracking out: all 22 players placed on the field in yards, ten times a second.
Inputgame video, sideline and end-zone cameras
Output22 players · yards · 10 Hz · team and role
Built withPyTorch · RF-DETR · multi-object tracking · homography
Proofa public play it had never seen
Statuslive board · technical write-up on GitHub
93.4%players detected
0.56ydmedian position error
OPEN →
02──TENNISVISION2026
Computer vision · Tennis
Broadcast video in, shot-by-shot data out: every shot, every bounce, the ball rebuilt in 3D.
Inputone broadcast camera, 50–60 fps
Outputshots · bounces · ball in 3D · players in metres
Built withPyTorch · keypoint network · image + audio events · 3D physics
Proofthe 2026 ATP Finals championship point, never seen
Statusproduct demo · technical write-up on GitHub
96%of 3,199 shots and bounces detected
0.68pxcourt error vs the painted lines
OPEN →
Reinforcement learning · Simulation · Rust
A racing-drone simulator rebuilt in Rust from real flights, and an RL pilot trained in it that flies the real race.
Inputtelemetry recorded from real flights
Outputa simulator and a pilot policy that races
Built withRust · PyO3 · PPO · system identification · PyTorch
Prooflaps flown in the real game, in real time
Statuscase study on this site
1–3%lap-time error of the simulator
13.8sbest lap of the RL policy
OPEN →
Football analytics · Hackathon · 37th of 759
Who has the ball, frame by frame, when the tracking loses it 40 % of the time: a set-based temporal network, run blind.
Inputautomatic tracking, ball missing on ~40 % of frames
Outputhome / away / dead ball, every frame
Built withPyTorch · Deep Sets · temporal CNN · Viterbi
ProofFC Barcelona – Athletic, never used for training
Status37th of 759 · More than a Hack 2027
37/ 759final position
0.802spellF1 on held-out matches
OPEN →
Game AI · Search · Kaggle
An AlphaGo-style agent for a card game with hidden information: learned policy, learned evaluation, search over the turn.
Inputsimulator observation, hidden cards unknown
Outputthe best line of play for the turn
Built withbeam search · policy networks · PPO · self-play
Proofa bank of 28 opponents
StatusKaggle competition · case study on this site
53.4%win rate vs 28 opponents
38.0%best previous agent
OPEN →
NLP · RAG · Legal tech
Mexican federal court rulings made searchable with hybrid retrieval, answered with literal citations by a local model.
Inputpublic rulings from ten district courts
Outputanswers that cite the literal passage
Built withBM25 · bge-m3 · Qwen · llama.cpp · extraction
Proofa hand-labelled question set and gold cards
Statuscase study on this site
364,521indexed passages
100%local, no document leaves
OPEN →
07──AUGMENTED RAPPORT2026
Multimodal ML · Video + audio · Health tech
A local tool for online therapists: the non-verbal side of a session, described. It never diagnoses.
Inputtwo video + audio streams of a session
Outputtimeline, synchrony and a draft note
Built withMediaPipe · Whisper · signal processing · local LLM
Proofpre-registered validation, with controls
Statuscase study on this site
0.99AUC of the smile signal
0diagnoses, by design
OPEN →
Computer vision · Document AI
Flags which PDFs in a folder carry a handwritten signature or initials, tuned for recall, with a local VLM as a second opinion.
Inputa folder of scanned PDFs
Outputa CSV and a local gallery to review
Built withYOLOS · transformers · synthetic data · VLM
Proof400 hand-labelled real scans
Statuscase study on this site
0.984AUC, detector + verifier
96.6%of signatures caught
OPEN →
Remote sensing · Epidemiology
Turbidity and chlorophyll from Sentinel-2 where there are no labs, and whether it says anything about waterborne disease.
InputSentinel-2 imagery and lab matchups
Outputturbidity and chlorophyll maps
Built withEarth Engine · mixture density networks · Poisson regression
Proof25 countries, out of domain
Statuscase study on this site
42,500satellite–lab matchups
25countries for validation
OPEN →
04 / 06

Coursework

Master's in Data Science, Big Data & Business Analytics, Universidad Complutense de Madrid. The code is public.

01Pump It Up: Data Mining the Water TableCode ↗Predicting which water pumps in Tanzania work, need repair or are broken. Gradient-boosting ensemble with careful encoding of high-cardinality features.Peaked at #6 on the public leaderboard (0.8304); reproducible model 0.8280 02Do city events pull taxis?Code ↗Three months of New York yellow-taxi trips joined in space and time with the city's 511 event feed, processed with PySpark on Databricks.Taxi demand around events compared with normal hours 03How data and rules changed the NFL, 1999–2025Code ↗Advanced visualisation project over 27 seasons of play-by-play data.A 76-page visual essay: fourth downs, kicking, two-point tries, scoring by minute 04Does the NFL draft get it right?Code ↗College stats, the combine and draft position against NFL careers; data stored and queried in MongoDB.Draft precision by round and position 05Data miningCode ↗Cleaning and modelling a salary dataset full of impossible values; stationarity tests and forecasts on a stock price series.Regression, classification, ARIMA / SARIMAX / Holt–Winters 06SQL on Snowflake: Smart DeskCode ↗Business questions for a sales company answered in SQL: sales, targets, forecasts and accounts.Profit by category, targets, forecast accuracy, account rankings 07Text miningCode ↗Detecting mentions of professions in Spanish tweets (ProfNER shared task).Fine-tuned BETO, a Spanish BERT
08Tableau: Easy LoansTableauOperations dashboard for a lending business: volume, refunds and merchants on a map.Interactive dashboard
Other experiments
01Behaviour cloning for a farm-management agentBehaviour cloning · PPOKaggle simulation competition (30 in-game days, 720 turns, two farms sharing one market). Cloned the top players from 8.9 M state–action pairs in their replays. The first clone hit 98.8% action accuracy and still passed every turn: replaying the games showed the replay format stores the action that produced each observation, one turn late. Fixed, plus an opening book and a cleaner corpus, the agent went from 2,422 to 96,332 coins and won 6 of 12 games against top-10 agents. A Bradley–Terry ranking rebuilt the official top 10 (8 of 9) without seeing it.Not submitted in the end; kept as a study in verifying data by replaying it
02Sports prediction modelsRegression · CalibrationNFL: weekly projections per player built as a chain (targets → receptions and yards, touchdowns apart), turned into calibrated probabilities and joint outcomes with a copula. Tennis: Elo ratings for 20+ years of ATP and WTA matches, benchmarked against the sharpest public forecasts.WR model: MAE 4.89 fantasy points out of sample (2022–2025), calibration within ±2 pp. Tennis Elo within 0.018–0.025 log-loss of the benchmark, and adding it on top adds nothing
05 / 06

Skills

Tools I use in the projects above.

01Machine learningPyTorch · scikit-learn · XGBoost / CatBoost · PPO · ensembles · calibration
02Computer visionRF-DETR · tracking · homography · keypoints · OCR · MediaPipe
03DataPython · SQL · Spark · Snowflake · MongoDB · DuckDB · Earth Engine
04SystemsRust · PyO3 · ROCm/CUDA · llama.cpp · Git
05CommunicationTableau · data visualisation · technical writing in English and Spanish
06 / 06

Contact

mtorreslanda@gmail.com
Miguel Ángel Castro Torreslanda — 2026Madrid, Spain