CALLIGRAPHY AI · COMPUTER VISION · 2025—2026

Can balance be measured?

We built a webcam prototype that scores individual Chinese characters and the composition of the entire page. The goal is faster, more explainable practice feedback, not a replacement for a calligraphy teacher.

Eight calligraphy samples with human scores and model predictions
Human scores and model predictions on the original random validation split. The close fit is real, but the split is too optimistic for a claim about new writers.
Team
Xihe Ding · Bowen Deng · Ricky Jin
My focus
Page-layout methodology, integration, and evaluation
Tools
ResNet18 · OpenCV · PyTorch · Tkinter
990labeled character crops
516-Dhybrid feature vector
2scales of feedback
CPUlaptop prototype
01 · The problem

Good individual characters do not always add up to a balanced page.

Calligraphy teachers read at two scales. They look at the form of each character, but they also read 章法: the spacing, rhythm, tilt, and balance of the complete page.

Previous research offers many ways to score an isolated character, but almost no comparable work examines the composition of an entire page. We wanted one camera frame to return both kinds of feedback while still showing the student what the score was based on.

MICRO · 单字

Character quality

Visual form, ink density, and position inside each crop.

One score per character
MACRO · 章法

Page composition

Rows, spacing, tilt, and size across the complete page.

One score for the layout
02 · How it works

One image, two kinds of feedback.

The detector finds the characters once. Their image crops feed the character model; their positions and sizes feed the page model.

  1. 01Capture

    Webcam frame or uploaded page

  2. 02Detect

    Find and crop each character

  3. 03Score twice

    Character model + page geometry

  4. 04Return feedback

    Color-coded characters + overall score

CHARACTER MODEL

512 learned features + 4 explicit measurements

A grayscale ResNet18 describes the visual form. We append ink density, horizontal stroke gradient, and the x/y center of mass before the final 0–100 regression score.

512 + 4 = 516 dimensions
PAGE MODEL

A label-free score built from visible geometry

Detected characters are grouped into rows. Four interpretable subscores measure row entropy, spacing, tilt, and size consistency.

40% entropy · 30% spacing · 20% tilt · 10% size
Calligraphy worksheet with detected-character boxes
Detected characters
The same worksheet with color-coded character scores
Score overlay
WHAT THE STUDENT SEES

Feedback while the page is still in front of them

Green, orange, and red boxes point to stronger and weaker characters. A separate 章法 score keeps the page-level problem visible instead of hiding everything inside one number.

Green
score ≥ 70
Orange
40 to 69
Red
below 40
Runtime
a few frames per second on laptop CPU
03 · What the tests showed

The useful experiments did not all make the model look good.

One test showed a very close fit, one made the prediction worse, and one checked whether the page score moved in the right direction.

Predicted character score plotted against human ground-truth score
01
Close fit on the random augmented split

MAE = 0.3457 across 1,386 validation instances. Because related augmentations can appear on both sides of the split, this is not new-writer performance.

THE IMPRESSIVE NUMBER0.3457 MAE

The model closely reproduces labels inside the current augmented data distribution.

THE FAILED EXPERIMENT6.7986 MAE

Rotation plus horizontal flipping made the error almost twenty times larger. A flipped stroke is not the same character, and the explicit features no longer match the CNN view.

THE NEXT FAIR TESTSplit by source image

Every transformed version of one original must stay on the same side of the evaluation.

Composition score declining under position noise, row tilt, and character-size jitter
02
Does the page score react when the layout is damaged?

Synthetic position noise, alternating row tilt, and size jitter all reduce the score. Correlations range from −0.78 to −0.99 across 20 trials per setting.

What this supports

The per-character model closely reproduces the available expert-derived grading labels within the current augmented validation split.

What it still does not prove

That expert calligraphers would give the same scores to real student work.

04 · What comes next

Better evidence matters more than a larger model.

The current prototype is enough to reveal the important gaps. Each next experiment answers one of them directly.

  1. 01

    Test new writers fairly

    Keep every augmentation of one source image together, then add writer-disjoint evaluation where identity is available.

  2. 02

    Ask teachers to rank real pages

    Compare expert judgments with the overall score and each visible 章法 subscore.

  3. 03

    Put it in a real practice session

    Profile a mobile model and test whether the feedback actually helps a student revise the next page.

  4. 04

    Chinese patent awaiting approval

    The application passed preliminary examination and is awaiting a final decision.

  5. 05

    Expand the scored-character database

    The model still depends heavily on the CHAED dataset introduced in the original paper ↗. New expert-scored data would let it learn more characters and respond across a wider range of student work.

HOW THE PROJECT GREW

It began as a Shanghai mathematical-modeling project, became an interactive science-fair prototype, and then developed into the current ACM manuscript. The model changed, but the original question stayed: how can a subjective judgment become more transparent without pretending it is objective?

RESEARCH TAKEAWAY

Computing an aesthetic judgment does not make it objective. It forces us to state what we measured, so a teacher can see those assumptions and disagree.