Basketball Action Simulator
- Python
- LSTM
- MDN
- XGBoost
- FastAPI
- Docker
- AWS EC2
- Built an end-to-end ML pipeline over 632 NBA games of 25 Hz SportVU player-tracking data, from raw JSON through feature engineering to a deployed REST API across 13 pipeline stages.
- Designed an LSTM autoencoder compressing 400-step tracking sequences into 32-dimensional embeddings, clustered with K-means into 6 offensive strategy archetypes.
- Converged on a Mixture Density Network for movement generation after diagnosing 8 failure modes, including gradient masking, identity tracking (Hungarian assignment) and mode collapse.
Show 6 more highlightsShow less
- Found a data-segmentation bug where 92% of one strategy cluster was fragmented possessions; a corrective filter left 71,793 verified possessions out of 92,438.
- Trained an XGBoost shot-quality model (11 spatial/defensive features) as the expected-value function, and a situation classifier at 99.7% cross-validation accuracy.
- Engineered a two-team simulation combining 6 strategy-specific movement models with a defensive-response model and 4 configurable defensive schemes.
- Designed an expected-value action planner that weighs shoot / dribble / pass at each step, replacing pure imitation learning with auditable decision logic.
- Built a synthetic verification suite to validate each architectural fix (e.g. pass-completion rates to open teammates) before applying it to real data.
- Shipped a FastAPI backend and interactive frontend where users set court positions and get animated play recommendations; deployed with Docker on AWS EC2.