The HR-Calculus: Enabling Information Processing with Quaternion Algebra

Danilo P. Mandic, Sayed Pouria Talebi, Clive Cheong Took, Yili Xia, Dongpo Xu, Min Xiang, Pauline Bourigault · DOI

Abstract

From their inception, quaternions and their division algebra have proven to be advantageous in modelling rotation/orientation in three-dimensional spaces and have seen use from the initial formulation of electromagnetic filed theory through to forming the basis of quantum filed theory. Despite their impressive versatility in modelling real-world phenomena, adaptive information processing techniques specifically designed for quaternion-valued signals have only recently come to the attention of the machine learning, signal processing, and control communities. The most important development in this direction is introduction of the HR-calculus, which provides the required mathematical foundation for deriving adaptive information processing techniques directly in the quaternion domain. In this article, the foundations of the HR-calculus are revised and the required tools for deriving adaptive learning techniques suitable for dealing with quaternion-valued signals, such as the gradient operator, chain and product derivative rules, and Taylor series expansion are presented.

Introduction

In fields such as robotics, signal processing, and computer graphics, data often exists in three-dimensional space. Traditional approaches using real-valued vectors or complex numbers face significant drawbacks, including gimbal lock in Euler angle representations, numerical instability in rotation matrices, and a lack of a natural 3D phase representation. The $\mathbb{HR}$-calculus addresses these gaps by providing the derivative rules needed to apply standard machine learning and control techniques, such as gradient descent, directly to quaternions.

Mathematical Framework

The $\mathbb{HR}$-calculus is established as an extension of the $\mathbb{CR}$-calculus used for complex numbers. To make quaternion functions differentiable, the framework employs an "augmented" representation that includes the quaternion $q$ and its three involutions (rotations around the $i, j,$ and $k$ axes). This allows these components to be treated as algebraically independent variables.

Summary of notation and operators used to define the HR-calculus.

By defining a gradient operator that relates derivatives of quaternion-valued functions to their underlying real-valued components, the authors derive quaternion versions of the Chain Rule and Product Rule. These derivations must account for the non-commutative nature of quaternion multiplication ($ij \neq ji$).

Geometric Advantages and 3D Phase

Quaternions possess an inherent geometric structure that mirrors 3D space. Algorithms derived in this domain, such as the Quaternion Least Mean Square (QLMS), outperform real-valued counterparts because they preserve the relationship between dimensions rather than treating them as independent channels.

Geometric interpretation of a rotation in the quaternion domain.

This "natural phase" advantage is critical in applications like three-phase power systems, where frequency tracking in unbalanced grids is often error-prone with standard algebras. Furthermore, because quaternions form a division algebra, they allow for elegant formulations of normalization and sensor fusion that are mathematically impossible in standard vector algebra.

Adaptive Algorithms and Experimental Validation

The paper reformulates several classic algorithms into the quaternion domain:

  • QLMS (Quaternion Least Mean Square): For adaptive signal tracking.
  • Quaternion Kalman Filter: For state estimation in physical systems.
  • Quaternion Backpropagation: For training deep neural networks.

These methods were validated through various experiments. In body motion tracking, the QLMS filter showed significantly higher accuracy in phase estimation than quadrivariate real-valued LMS filters. In power systems, the Quaternion Frequency Estimator (QFE) achieved lower Mean Square Error (MSE) and nearly zero bias compared to complex-valued techniques. Additionally, in sensor network simulations, the quaternion-based approach provided robust trajectories for maneuvering targets even with minimal node connectivity.

Conclusion

The $\mathbb{HR}$-calculus provides a powerful mathematical engine for 3D information processing. While challenges remain, such as the computational overhead of quaternion multiplication and the need for a formal framework for quaternion integration, the ability to perform gradient-based optimization directly in the quaternion domain opens new avenues for aerospace control, power system monitoring, and quantum computing.

Summary updated

BibTeX
@misc{mandic2023hr,
  author = {Danilo P. Mandic and Sayed Pouria Talebi and Clive Cheong Took and Yili Xia and Dongpo Xu and Min Xiang and Pauline Bourigault},
  title = {{The HR-Calculus: Enabling Information Processing with Quaternion Algebra}},
  year = {2023},
  eprint = {2311.16771},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.16771},
}
Figure