Skip to main content
QUICK REVIEW

[Paper Review] Uncertainty-aware Evaluation of Time-Series Classification for Online Handwriting Recognition with Domain Shift

Andreas Klaß, Sven M. Lorenz|arXiv (Cornell University)|Jun 17, 2022
Time Series Analysis and ForecastingComputer Science5 citations
TL;DR

This paper evaluates uncertainty-aware time-series classification for online handwriting recognition under domain shift using SWAG and Deep Ensembles, demonstrating that entropy and mutual information correlate strongly with model accuracy and can detect out-of-distribution samples, especially when distinguishing between right- and left-handed writers.

ABSTRACT

For many applications, analyzing the uncertainty of a machine learning model is indispensable. While research of uncertainty quantification (UQ) techniques is very advanced for computer vision applications, UQ methods for spatio-temporal data are less studied. In this paper, we focus on models for online handwriting recognition, one particular type of spatio-temporal data. The data is observed from a sensor-enhanced pen with the goal to classify written characters. We conduct a broad evaluation of aleatoric (data) and epistemic (model) UQ based on two prominent techniques for Bayesian inference, Stochastic Weight Averaging-Gaussian (SWAG) and Deep Ensembles. Next to a better understanding of the model, UQ techniques can detect out-of-distribution data and domain shifts when combining right-handed and left-handed writers (an underrepresented group).

Motivation & Objective

  • To evaluate uncertainty quantification (UQ) techniques in online handwriting recognition (OnHW) under domain shift between right- and left-handed writers.
  • To assess the reliability of aleatoric and epistemic uncertainty estimates using confidence calibration, expected calibration error (ECE), and reliability diagrams.
  • To investigate whether uncertainty decomposition can detect out-of-distribution samples and improve model robustness in real-world deployment.
  • To compare the performance and computational cost of SWAG and Deep Ensembles for spatio-temporal MTS classification with domain shift.
  • To evaluate the generalizability of uncertainty measures across combined uppercase, lowercase, and mixed character classification tasks.

Proposed method

  • Applies Stochastic Weight Averaging-Gaussian (SWAG) and Deep Ensembles for Bayesian inference to estimate predictive uncertainty in OnHW models.
  • Uses uncertainty decomposition based on Kwon et al. (2018) and Smith et al. (2018) to separate aleatoric and epistemic uncertainty via entropy and mutual information.
  • Employs confidence calibration and expected calibration error (ECE) to evaluate model reliability and miscalibration.
  • Trains models on right-handed writer data and evaluates on left-handed writers to simulate domain shift.
  • Visualizes uncertainty via reliability diagrams and entropy distributions to assess thresholding strategies for uncertain predictions.
  • Uses multivariate time-series (MTS) data from sensor-enhanced pens (accelerometer, gyroscope, magnetometer, force sensors) as input to the classification models.

Experimental results

Research questions

  • RQ1How do SWAG and Deep Ensembles compare in uncertainty estimation for OnHW with domain shift?
  • RQ2To what extent do entropy and mutual information correlate with classification accuracy in OnHW tasks?
  • RQ3Can uncertainty decomposition effectively detect out-of-distribution samples, particularly from left-handed writers?
  • RQ4How does model performance and calibration vary when training on right-handed writers and testing on left-handed writers?
  • RQ5What are the practical implications of uncertainty thresholds for real-world deployment in handwriting recognition systems?

Key findings

  • SWAG and Deep Ensembles perform similarly in uncertainty estimation, but SWAG is computationally more efficient.
  • Entropy and mutual information show strong correlation with model accuracy, with samples above a 2.0-bit entropy threshold achieving ~82% accuracy and those below ~31% accuracy.
  • Models trained only on right-handed writers exhibit overconfidence and miscalibration when evaluated on left-handed writers, indicating domain shift impact.
  • The combined uppercase and lowercase character classification task shows lower accuracy and higher uncertainty compared to single-case tasks.
  • Uncertainty decomposition via entropy and mutual information does not clearly differentiate between aleatoric and epistemic uncertainty sources, limiting interpretability.
  • Pre-defining reliable uncertainty thresholds is challenging due to the complexity of sensor data interpretation and lack of direct link to writing style or motoric features.

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.