AI’s Answer to Graphical Glitches

Video Game Data Science
3 min readJun 23, 2024

--

Imagine you’re playing the latest blockbuster video game, and suddenly, a character’s face is missing, replaced by a garbled mess of pixels. Graphical glitches like this can ruin the gaming experience and tarnish a game’s reputation. Detecting these bugs is traditionally a time-consuming, manual process, but a recent study suggests a promising new approach using Deep Convolutional Neural Networks (DCNNs). Let’s dive into how this technology can change the game-testing landscape.

Understanding Graphical Glitches

Graphical glitches are visual errors that happen during gameplay when textures don’t render correctly. These can include stretched textures, low-resolution textures, or completely missing textures, each of which disrupts the game’s visual quality. Traditionally, spotting these glitches requires extensive manual testing, which is both tedious and prone to human error.

The Promise of Deep Learning

Deep Convolutional Neural Networks (DCNNs) have made significant strides in fields like medical imaging and facial recognition. Applying this technology to video game testing could automate the detection of graphical glitches, making the process faster and more reliable.

The Study’s Approach

Researchers from KTH Royal Institute of Technology and Electronic Arts (EA) have developed a method using DCNNs to classify images from video games into one of five categories: normal, stretched, low resolution, missing, and placeholder textures. They trained a ShuffleNetV2 model on synthetic data generated from the Unity3D game engine.

Key Methods and Findings

  1. Data Generation: The team created a dataset with over 34,200 samples, including normal and glitch images, to train their model. This dataset was derived from various game environments, ensuring a diverse and comprehensive training set.
  2. Model Training: The DCNNs were trained using the Adam optimizer, a method that adjusts learning rates during training for better performance, with both random initialization and pre-trained weights on ImageNet to enhance performance. ShuffleNetV2 emerged as the most effective model, balancing accuracy and computational efficiency.
  3. Performance Metrics: The best performance was achieved using a recognizable pattern as a placeholder texture. The model reached an average accuracy of 86.8%, with a false positive rate of 6.7% and a recall rate of 88.1%.

Implications for Game Development

The introduction of DCNNs in graphical bug detection marks a significant leap forward in game development. By automating this process, developers can focus more on enhancing gameplay and less on the tedious task of manual testing. This method also highlights the potential for real-time assessment, where the model can run parallel to game rendering, providing instant feedback on graphical quality.

Future Directions

While the current model shows great promise, there’s still room for improvement. Future research could explore unsupervised and semi-supervised learning approaches to detect new types of glitches not present in the training data. Additionally, integrating logical testing with reinforcement learning could further enhance the efficiency and effectiveness of game testing.

Conclusion

The use of Deep Convolutional Neural Networks for detecting graphical glitches in video games is a promising development that can significantly streamline the testing process. As game environments become increasingly complex, such automated methods will be crucial in maintaining high standards of visual quality and player experience.

For more detailed insights, you can access the full study here.

García Ling, C., Tollmar, K., & Gisslén, L. (2024). Using Deep Convolutional Neural Networks to Detect Rendered Glitches in Video Games. arXiv. https://arxiv.org/abs/2406.08231

--

--

Video Game Data Science
Video Game Data Science

Written by Video Game Data Science

Hi! I’m Ben, a Data Scientist at a big video game company. I switched careers to explore gaming and data. Sharing cool research in DS, ML, and AI in gaming.