The problem

Players guess where the next safe zone will appear. I wanted to test, with real data, whether ML can actually predict it.

The solution

Collected real match telemetry, built a leakage-free dataset, trained and compared 7 models against a baseline, and shipped the results in an interactive dashboard.

How it works

Architecture & flow

  1. 1

    PUBG Developer API: 438 matches downloaded with an API client

  2. 2

    Zone extractor reads LogGameStatePeriodic telemetry into 3,737 validated zone circles

  3. 3

    Feature engineering builds 2,861 rows, split by match so no match appears in both train and test

  4. 4

    Baselines, Linear Regression, Random Forest, Extra Trees, Gradient Boosting and XGBoost, plus LSTM and GRU in TensorFlow/Keras

  5. 5

    Evaluation on 65 unseen matches, shown in a Streamlit + Plotly dashboard

Problems I hit

Challenges and how I solved them

Challenge 1

Rows from the same match in both train and test sets would leak information.

How I fixed it

Split the data by match, not by row.

Challenge 2

R2 = 0.99 looked like a great result.

How I fixed it

Compared every model with a simple baseline and showed the baseline scores the same, so R2 hid that there was no real skill for zone position.

Challenge 3

Users could mark zones out of order or skip one in the dashboard.

How I fixed it

The dashboard detects each zone number from the game's fixed zone sizes and blocks predictions when a zone is missing.

Results

  • The next zone's size is predicted almost perfectly (about 0.05 m off), because the game shrinks zones on a fixed schedule
  • Showed that the next zone centre behaves like a random point inside the allowed area, so no model beats the baseline
  • Interactive dashboard and 18 unit tests

What I learned

  • Building datasets from raw telemetry
  • Avoiding data leakage
  • Why baselines matter more than a high R2
  • Comparing classic ML with sequence models (LSTM, GRU)

Project Overview

Can machine learning predict where the next safe zone will appear in PUBG: BATTLEGROUNDS? This project answers that with 438 real PC matches from the official PUBG Developer API, 7 ML and deep learning models and an interactive dashboard.

Key features

  • Data pipeline from raw match telemetry to 3,737 validated zone circles and 2,861 leakage-free training rows, split by match.
  • 7 models compared: Linear Regression, Random Forest, Extra Trees, Gradient Boosting, XGBoost, LSTM and GRU.
  • Evaluation on 65 unseen matches against a simple baseline.
  • Streamlit + Plotly dashboard where users click on the map to mark zones; it detects the zone number from the fixed zone sizes and blocks predictions when a zone is missing.
  • 18 unit tests and 12 notebooks from data collection to final comparison.

Result in short

  • The next zone radius is predicted almost exactly (0.05 m error) because PUBG uses a fixed shrink schedule.
  • For the zone centre, no model beats the baseline. Every model reaches R2 = 0.99, but so does the baseline, so the project measures real skill against the baseline instead of trusting R2.

What's next

  • Add more maps and matches
  • Try map-aware features such as terrain and player density
Related

More machine learning projects