Interactive Parts Model: An Application to Recognition of On-line Cursive Script

Predrag Neskovic, Philip C. Davis, Leon N. CooperNeurIPS 2000

Introduction

For decades, Hidden Markov Models (HMMs) have served as the gold standard for speech and handwriting recognition. However, the Interactive Parts (IP) model offers a compelling, physics-inspired alternative for recognizing cursive handwriting. By treating letters as "interacting particles" governed by spatial potentials, the IP model achieves recognition accuracy comparable to HMMs while elegantly handling complex letter-duration modeling without the typical spike in computational complexity.

The Limitations of HMMs

Despite their widespread use, standard HMMs suffer from two major architectural flaws in sequential modeling:

  1. Training Paradigm: They are typically trained using Maximum Likelihood Estimation (MLE), which is often less effective at discriminating between similar classes than a Maximum a Posteriori (MAP) approach.
  2. The "Forgetful" Nature: Standard HMMs assume the probability of staying in a state (like a specific letter) follows an exponential decay. In reality, the "duration" or width of a letter in handwriting follows a more complex, Poisson-like distribution. While "explicit duration HMMs" exist to fix this, they are computationally expensive.

The Interactive Parts (IP) Model

To solve these sequential modeling issues more naturally and efficiently, the researchers propose the IP model, which breaks the recognition problem into two distinct layers:

System Architecture
  1. The Letter Detector (The "Charge"): A Time Delay Neural Network (TDNN) scans the handwritten input. This network outputs a "detection matrix," where each value represents the confidence that a specific letter exists at a specific spatial location. In the authors' physics analogy, these confidence scores act like the "charge" of a particle.
  2. The Objective Function (The "Potential"): Instead of HMM transition probabilities, the IP model uses an energy function. It models a word as a set of local parts (letters) arranged at specific spatial locations. The "interaction terms" (potentials) between these letters define where they should be relative to one another.
  3. Optimization: To recognize a word, the system looks for the configuration of letters that minimizes the total energy. The authors use Dynamic Programming (DP) to find an optimal segmentation for each word in the dictionary.

A key innovation of this approach is that interaction potentials can represent any arbitrary probability distribution of letter widths (duration) without increasing search time. Furthermore, treating a word as a system of interacting particles makes the model "translation invariant." Because every letter serves as a reference point for every other letter, the system is robust against shifts in where the word starts or ends.

Experimental Setup

The study utilizes a dataset originally obtained from David Rumelhart, featuring 100 different writers providing 1,000 words each, based on a 1,000-word vocabulary. The neural network was trained on 70 writers (70,000 words), with a separate group used for cross-validation, and a final group of 10 writers reserved for a head-to-head comparison between the IP model and HMMs.

Results and Insights

The IP model was tested head-to-head against a standard HMM implementation. The overall performance was nearly identical:

  • IP Model Accuracy: 79.89%
  • HMM Accuracy: 79.44%
Comparison Between IP Model and HMMs

While the aggregate accuracy was similar, the models performed differently on individual writers, often varying by several percentage points. This suggests that the IP model is not merely a clone of HMM logic; it captures different nuances of handwriting. Consequently, it is a strong candidate for "ensemble" systems where both models work together to improve overall accuracy.

Another highly practical insight is that the IP model features zero-retraining for new words. As long as the system knows the order of letters in a new dictionary word, it can calculate the necessary interaction potentials on the fly based on previously learned letter-width statistics.

Limitations and Future Work

The authors acknowledge that their current implementation uses a simplified "square well" approximation for the interaction potentials—assuming a letter has a strict "allowed" region and a "forbidden" region. They suggest that using more precise, smooth interaction terms that reflect the true statistical distribution of letter shapes and spacings would likely yield significantly better results. Additionally, while this paper focuses on one-dimensional sequences (lines of text), the framework is general enough to be extended to two-dimensional problems, such as face or object recognition.

Summary updated

BibTeX
@inproceedings{neskovic2000interactive,
  author = {Predrag Neskovic and Philip C. Davis and Leon N. Cooper},
  title = {{Interactive Parts Model: An Application to Recognition of On-line Cursive Script}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2000},
}
Figure