Labelled Cursive Handwriting Synthesis with Context Style Variability

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing ML-based systems for handwriting recognition face challenges in handling cursive writing, touching strokes, and complex shapes, leading to high computational costs and resource exhaustion due to the vast range of handwriting styles, especially in languages with many characters like Chinese, making training datasets prohibitively expensive and time-consuming.

Innovation Solution

A GAN-based apparatus and method introduce context style variability into cursive handwritten text generation by encoding input text and handwriting context style descriptions, using a generator and discriminator in an adversarial training process to create diverse synthetic images with annotated context styles, optimizing the generator to produce realistic samples.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If a wide range of handwriting styles are included in the training dataset to improve recognition robustness, then the system becomes more adaptable to different writing styles, but the computing resources, time consumption, and financial expenditure increase prohibitively

Engineering Contradiction:
Improvehandwriting style recognition coverageVSAvoidtraining time
Core Design Contradiction:
Adaptability or versatilityVSLoss of time

Solution Approach 1:

The patent pre-encodes multiple handwriting styles using GANs before the actual recognition task. Style embeddings are generated in advance and stored, allowing the system to quickly combine them with character embeddings during inference without performing expensive style transfers at recognition time. This preliminary preparation reduces real-time computational burden while maintaining style diversity.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent uses GANs to generate synthetic handwriting samples that copy and replicate real handwriting styles. The generator creates artificial training data that mimics the statistical properties and visual characteristics of authentic handwritten text, reducing the need to collect and process vast amounts of real-world handwriting data across all possible styles.

Inventive Principle:
Principle #26Copying

2Quantity of substance

If more handwriting samples are collected to cover diverse writing styles, then the training dataset becomes more comprehensive and robust, but the data collection and processing cost increases exponentially

Engineering Contradiction:
Improvetraining data volumeVSAvoiddata preparation cost
Core Design Contradiction:
Quantity of substanceVSEase of manufacture

Solution Approach 1:

The patent employs GANs to synthesize realistic handwriting training samples that copy the visual and statistical properties of real handwriting. The generator network creates artificial images of handwritten text that are indistinguishable from authentic samples, providing unlimited diverse training data without the need for expensive manual data collection and annotation processes.

Inventive Principle:
Principle #26Copying

Solution Approach 2:

The patent transforms the approach from collecting diverse physical handwriting samples to manipulating style parameters in the digital domain. By encoding styles as embeddable vectors and adjusting these parameters computationally, the system generates varied training samples through parameter transformation rather than physical data collection, dramatically reducing manufacturing costs.

Inventive Principle:
Principle #35Parameter changes

3Reliability

If conventional GANs are used to generate training data from existing datasets, then the generation process is constrained to produce only similar styles, but this limits the variability and context style diversity of the generated samples

Engineering Contradiction:
Improvegeneration stabilityVSAvoidstyle variability
Core Design Contradiction:
ReliabilityVSAdaptability or versatility

Solution Approach 1:

The patent creates a universal style embedding space that can represent multiple handwriting styles simultaneously. The system trains a single GAN model to handle diverse styles by encoding them in a unified latent space, allowing the generator to produce samples across the full spectrum of handwriting variations from one model rather than requiring separate models for each style.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Solution Approach 2:

The patent introduces a new dimension for style representation by creating style embeddings as separate vector representations. Instead of relying on the generator to implicitly learn style variations, the system explicitly adds a style dimension to the latent space, allowing independent control and combination of style characteristics with character content to achieve greater variability.

Inventive Principle:
Principle #17Another dimension (Dimensionality change)

Data Source

PatentUS12444223B2Apparatus and method for producing labelled cursive handwritten text samples with context style variability suitable for forming training data for training machine learning neural networks for cursive handwriting recognition
Publication Date: 2025.10.14 HONG KONG APPLIED SCI & TECH RES INST
  • US12444223B2 patent drawing
  • US12444223B2 patent drawing
  • US12444223B2 patent drawing

AI summary

The present invention provides an apparatus for producing labelled cursive handwritten text samples with context style variability, and method of training and using the same. The apparatus comprises: a word embedding units configured for encoding an input text to obtain an input text word embedding; a word embedding unit configured for encoding a handwriting context style description into a context style description embedding; a transformer configured for transforming the context style description embedding to obtain a handwriting context style feature embedding; a feature embedding combiner configured for combining the handwriting context style feature embedding and the input text word embeddings to form a combined feature embedding; a generator configured for generating a synthetic image containing characters occurred in the input text with the handwriting context style defined in the handwriting context style description and context style variability introduced by the generator.