Skip to main content
QUICK REVIEW

[Paper Review] LeagueAI: Improving object detector performance and flexibility through automatically generated training data and domain randomization

Oliver Struckmeier|arXiv (Cornell University)|May 28, 2019
Advanced Neural Network ApplicationsComputer Science6 references3 citations
TL;DR

This paper proposes a synthetic data generation pipeline for object detection in video games using 3D model rendering and domain randomization, demonstrating that a YOLOv3 detector trained on automatically generated synthetic data outperforms one trained on hand-labeled data in mAP and tracking consistency, while reducing annotation effort by orders of magnitude.

ABSTRACT

In this technical report I present my method for automatic synthetic dataset generation for object detection and demonstrate it on the video game League of Legends. This report furthermore serves as a handbook on how to automatically generate datasets and as an introduction on the dataset generation part of the LeagueAI framework. The LeagueAI framework is a software framework that provides detailed information about the game League of Legends based on the same input a human player would have, namely vision. The framework allows researchers and enthusiasts to develop their own intelligent agents or to extract detailed information about the state of the game. A big problem of machine vision applications usually is the laborious work of gathering large amounts of hand labeled data. Thus, a crucial part of the vision pipeline of the LeagueAI framework, the dataset generation, is presented in this report. The method involves extracting image raw data from the game's 3D models and combining them with the game background to create game-like synthetic images and to generate the corresponding labels automatically. In an experiment I compared a model trained on synthetic data to a model trained on hand labeled data and a model trained on a combined dataset. The model trained on the synthetic data showed higher detection precision on more classes and more reliable tracking performance of the player character. The model trained on the combined dataset did not perform better because of the different formats of the older hand labeled dataset and the synthetic data.

Motivation & Objective

  • Address the high labor cost of collecting and labeling large-scale training data for object detection in video games.
  • Develop an automated pipeline to generate realistic, diverse, and precisely labeled synthetic training data from 3D game models.
  • Evaluate whether synthetic data alone can outperform or match hand-labeled data in object detection performance.
  • Investigate the impact of combining synthetic and hand-labeled data on detection mAP and robustness.
  • Enable real-time object detection for game AI agents using minimal human annotation.

Proposed method

  • Extract raw 2D masked image data from 3D game models of champions, minions, and structures in the game League of Legends.
  • Composite the masked object images with real in-game backgrounds to generate synthetic training images.
  • Apply randomized augmentations such as blur, noise, lighting variations, and color jitter to increase domain randomization.
  • Automatically generate precise bounding box and class labels for each object in the synthetic images.
  • Train YOLOv3 object detectors on synthetic data, hand-labeled data, and a combined dataset for comparison.
  • Use mAP and real-time tracking performance on video clips to evaluate model generalization and robustness.

Experimental results

Research questions

  • RQ1Can synthetic data generated from 3D game models achieve higher object detection mAP than hand-labeled data?
  • RQ2Does domain randomization in synthetic data improve model generalization and robustness to visual variations?
  • RQ3Can combining synthetic and hand-labeled data further improve detection performance compared to synthetic-only training?
  • RQ4What is the impact of differing image aspect ratios between synthetic and hand-labeled datasets on model performance?
  • RQ5How does the annotation time and data generation cost compare between synthetic and hand-labeled data pipelines?

Key findings

  • The model trained exclusively on synthetic data (S) achieved a higher mean average precision (mAP) than the model trained on hand-labeled data (H), detecting 5 classes compared to 3.
  • The synthetic data model demonstrated more consistent and reliable tracking of the player character in real-time video sequences.
  • The synthetic data generation pipeline reduced annotation time by approximately 90% compared to manual labeling.
  • The combined model (C) performed worse than the synthetic-only model (S), with detection failures on the player character, likely due to differing aspect ratios between the synthetic and hand-labeled datasets.
  • The model trained on synthetic data showed better generalization to unseen data, including overlapping and occluded objects, though it occasionally detected non-existent objects (e.g., dead minions).
  • Future improvements are expected by retraining with a new, consistent hand-labeled dataset for minions, which are frequently overlapping and hard to detect.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.