AIToday
Large Language ModelsZenn AI/MLPublished: Oct 14, 2026, 10:00 JST

Handwritten digit recognition runs in Scratch

Handwritten digit recognition runs in Scratch

3 Key Points

  1. What happened

    A creator shared 文字認識.sb3, a Scratch project that recognizes handwritten digits 0~9. Users load it, draw a number, and press 認証.

  2. Why it matters

    It suggests a visual programming tool usually used for games can also host a working neural network, though the creator calls the accuracy neither good nor bad.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, in your inbox every morning.

Context & Analysis

The creator frames the project as a counter to the assumption that machine learning work happens in Python. Scratch is known as a visual language for beginners and for ambitious builds like 3D games, and this experiment places a fully connected neural network in that same environment.

The model uses 784x255=199920, a shape the creator says looks odd because it was fitted to Scratch's list limit of roughly 200,000 items. That constraint was later relaxed: after learning sprites could be generated automatically, the creator never tested whether 784x256=200704 would also work.

The digit recognizer is shared as 文字認識.sb3, and Python users can train the model and auto-generate the sprite locally or on Google Colab. Accuracy is described as neither good nor bad, and the creator notes the network's speed may be a separate question from whether chatbots could be built this way.

FAQ
How do I run it?
Download 文字認識.sb3, open Scratch, choose "Load from your computer", and select the file. Press the green flag, draw a digit 0~9, and press 認証.
Can I train my own version in Python?
Yes. The creator provides scripts that train with PyTorch and auto-generate a sprite, runnable locally via pip install torch torchvision numpy cattorch certifi or on Google Colab.
Why does the model have an unusual shape?
The creator says the layer sizes come from Scratch lists holding only about 200,000 items, so 784x255=199920 was chosen to fit, and 784x256 was not tested.

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleClaude AI gives itself more moral agency across 20 rounds of editing its own rules