Your new experience awaits. Try the new design now and help us make it even better

ORIGINAL RESEARCH article

Front. Bioinform.

Sec. Data Visualization

This article is part of the Research TopicAI in Data VisualizationView all articles

Machine Learning for N-Dimensional Spatial Reasoning Tasks on the Web

Provisionally accepted
Blake  MoodyBlake Moody*JieHyun  KimJieHyun KimSanghyuk  KimSanghyuk KimDaniel  HaehnDaniel Haehn
  • University of Massachusetts Boston, Boston, United States

The final, formatted version of the article will be published soon.

Spatial reasoning is essential for solving complex tasks in dynamic and high-dimensional environments. However, current training models for spatial tasks are computationally demanding and heavily reliant on human input. To address this gap, we present Snake-ML, a web-based simulation tool and proof-of-concept framework designed to demonstrate client-side training of spatial reasoning tasks. Snake-ML serves as an efficient and intuitive test bed for developing spatial navigation strategies in browser-based environments. We chose the Snake game as our test bed because it is well-suited for demonstrating spatial reasoning in low-dimensional visual spaces while remaining relevant to higher-dimensional tasks, compared to alternative methods. Through quantitative analysis, on the edge alone, Snake-ML achieves a 4.58x speedup in model inference. Additionally, we developed a direct TensorFlow.js GPU pipeline that achieves up to 32x speedup in training time without any CPU/GPU synchronization. This pipeline has the potential to improve many edge-based AI visualization projects. Snake-ML shows potential for adaptability to complex spatial tasks, such as autonomous systems, robotics, and AI-driven environments. Our code1 and web-based simulation tool2 are publicly available.

Keywords: artificial intelligence, Computer Vision, Edge computing, Genetic Algorithm, machine learning, spatial reasoning, tracking

Received: 28 Aug 2025; Accepted: 02 Feb 2026.

Copyright: © 2026 Moody, Kim, Kim and Haehn. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) or licensor are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

* Correspondence: Blake Moody

Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.