paper-with-me

홈 › Papers

libhmm: A Modern C++20 Library for Hidden Markov Models with Correct MLE Emission M-Steps

2026-05-28 · Gary Wolfman arxiv

We describe libhmm, a C++20 library for Hidden Markov Model parameter estimation, sequence decoding, and model selection. libhmm addresses two gaps in existing software: the absence of a well-maintained, zero-dependency C++ HMM library suitable for embedding in production systems, and the widespread use of method-of-moments (MOM) approximations in the emission distribution M-step of the Baum-Welch algorithm. The library implements correct maximum likelihood estimators for sixteen scalar emission distributions, including an ECME algorithm for the location-scale Student-t distribution, Newton-Raphson maximization for Gamma, Beta, Weibull, and Negative Binomial distributions, and the von Mises distribution for circular data. All forward-backward and Viterbi calculations operate in full log-space. SIMD acceleration is provided for AVX-512, AVX2, SSE2, and ARM NEON via compile-time dispatch with scalar fallback. Version 4 adds multivariate observation support via the BasicHmm<Obs> template, with three multivariate emission families (diagonal Gaussian, full-covariance Gaussian, and independent components) each with correct weighted MLE M-steps. Python bindings are available via the companion package pylibhmm. We compare libhmm against established C and C++ HMM libraries and against published R reference packages on seven real-data benchmarks, and discuss the architectural tradeoffs made in the design.

📄 PDF Abstract BibTeX arXiv:2605.29208

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Augmentation of base classifier performance via HMMs on a handwritten character data set

2021-11-17 · Hélder Campos, Nuno Paulino

This paper presents results of a study of the performance of several base classifiers for recognition of handwritten characters of the modern Latin alphabet. Base classification performance is further enhanced by utilizi…

Classification

Deeptime: a Python library for machine learning dynamical models from time series data

2021-10-28 · Moritz Hoffmann, Martin Scherer, Tim Hempel, Andreas Mardt 외

Generation and analysis of time-series data is relevant to many quantitative fields ranging from economics to fluid mechanics. In the physical sciences, structures such as metastable and coherent sets, slow relaxation pr…

Time SeriesTime Series Analysis

MISeval: a Metric Library for Medical Image Segmentation Evaluation

2022-01-23 · Dominik Müller, Dennis Hartmann, Philip Meyer, Florian Auer 외

Correct performance assessment is crucial for evaluating modern artificial intelligence algorithms in medicine like deep-learning based medical image segmentation models. However, there is no universal metric library in …

Image SegmentationMedical Image SegmentationSegmentationSemantic Segmentation

Online Stroke and Akshara Recognition GUI in Assamese Language Using Hidden Markov Model

2014-07-09 · SRM Prasanna, Rituparna Devi, Deepjoy Das, Subhankar Ghosh 외

The work describes the development of Online Assamese Stroke & Akshara Recognizer based on a set of language rules. In handwriting literature strokes are composed of two coordinate trace in between pen down and pen up la…

valid

A Spectral Algorithm for Inference in Hidden Semi-Markov Models

2014-07-12 · Igor Melnyk, Arindam Banerjee

Hidden semi-Markov models (HSMMs) are latent variable models which allow latent state persistence and can be viewed as a generalization of the popular hidden Markov models (HMMs). In this paper, we introduce a novel spec…