Skip to main content
QUICK REVIEW

[Paper Review] Improving Accuracy and Explainability of Online Handwriting Recognition

Hilda Azimi, Steven Chang|arXiv (Cornell University)|Sep 14, 2022
Handwritten Text Recognition TechniquesComputer Science5 citations
TL;DR

This paper improves online handwriting recognition accuracy on the OnHW-chars dataset using optimized machine learning (ML) and deep learning (DL) models, achieving up to 23.56% higher accuracy than prior ML models and 7.01% improvement over prior DL models. It enhances model interpretability through attention-based explanation methods and justifies ensemble learning by demonstrating that models attend to different signal features, leading to complementary failure patterns and improved robustness.

ABSTRACT

Handwriting recognition technology allows recognizing a written text from a given data. The recognition task can target letters, symbols, or words, and the input data can be a digital image or recorded by various sensors. A wide range of applications from signature verification to electronic document processing can be realized by implementing efficient and accurate handwriting recognition algorithms. Over the years, there has been an increasing interest in experimenting with different types of technology to collect handwriting data, create datasets, and develop algorithms to recognize characters and symbols. More recently, the OnHW-chars dataset has been published that contains multivariate time series data of the English alphabet collected using a ballpoint pen fitted with sensors. The authors of OnHW-chars also provided some baseline results through their machine learning (ML) and deep learning (DL) classifiers. In this paper, we develop handwriting recognition models on the OnHW-chars dataset and improve the accuracy of previous models. More specifically, our ML models provide $11.3\%$-$23.56\%$ improvements over the previous ML models, and our optimized DL models with ensemble learning provide $3.08\%$-$7.01\%$ improvements over the previous DL models. In addition to our accuracy improvements over the spectrum, we aim to provide some level of explainability for our models to provide more logic behind chosen methods and why the models make sense for the data type in the dataset. Our results are verifiable and reproducible via the provided public repository.

Motivation & Objective

  • To improve the state-of-the-art accuracy of online handwriting recognition models on the OnHW-chars dataset.
  • To provide model explainability by analyzing feature importance through attention-based explanation methods.
  • To justify and demonstrate the effectiveness of ensemble learning through complementary failure patterns and attention maps across models.
  • To ensure reproducibility by releasing all code and trained models in a public repository.

Proposed method

  • Trained and optimized multiple ML models (e.g., SVM, Random Forest, XGBoost) using feature engineering and hyperparameter tuning on multivariate time series data from the OnHW-chars dataset.
  • Developed and fine-tuned deep learning architectures (LSTM, InceptionTime, XceptionTime) with attention mechanisms to improve temporal modeling and prediction accuracy.
  • Applied gradient-based saliency methods to generate attention maps that highlight which sensor channels and time steps contribute most to model predictions.
  • Used ensemble learning by combining predictions from 16 diverse models, leveraging their complementary failure patterns and attention distributions to boost overall accuracy.
  • Performed writer-independent and writer-dependent evaluations across 30 splits (5 folds × 6 datasets) to ensure robustness and generalization.
  • Validated model performance and explainability using visualizations of attention maps on correct and incorrect predictions, comparing model behavior across architectures.

Experimental results

Research questions

  • RQ1Can optimized ML and DL models achieve higher accuracy than previous state-of-the-art models on the OnHW-chars dataset?
  • RQ2To what extent can attention-based explanation methods reveal the rationale behind model predictions in online handwriting recognition?
  • RQ3Do different deep learning models attend to different parts of the multivariate time series, indicating complementary predictive strengths?
  • RQ4Can ensemble learning effectively combine diverse models to improve overall recognition accuracy, and is this justified by their distinct failure patterns and attention distributions?

Key findings

  • The proposed ML models improved accuracy by 11.3% to 23.56% over the baseline models reported in [27].
  • The optimized DL models, when combined via ensemble learning, achieved a 3.08% to 7.01% accuracy improvement over the prior state-of-the-art DL models reported in [26].
  • Attention-based explanations revealed that different models assign importance to distinct sensor channels and time segments, indicating complementary behavior.
  • Visual analysis of correct and incorrect predictions showed that models like InceptionTime and XceptionTime made different errors, with unique attention patterns across channels and time steps.
  • The ensemble of 16 models demonstrated improved robustness, as failure cases were distributed across different models, supporting the effectiveness of ensemble learning.
  • All results are reproducible and publicly available through a dedicated repository, ensuring transparency and verifiability.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.