Active Learning for Process Monitoring
Overview
Implements the methodology introduced in Capezza, Lepore, and Paynabar (2025) doi:10.1080/00401706.2025.2561744 for process monitoring with limited labeling resources. The package provides functions to (i) simulate data streams with true latent states and multivariate Gaussian observations as done in the paper, (ii) fit partially hidden Markov models (pHMMs) using a constrained Baum-Welch algorithm with partial labels, and (iii) perform stream-based active learning that balances exploration and exploitation to decide whether to request labels in real time. The methodology is particularly suited for statistical process monitoring in industrial applications where labeling is costly.
Initial release:
simulate_stream()generates simulates data to perform stream-based active learning for process monitoring, as shown in the simulation study of Capezza, Lepore and Paynabar (2025).fit_pHMM()fits a partially hidden Markov model (pHMM) to the data, as described in Capezza, Lepore and Paynabar (2025).fit_pHMM_auto()fits a pHMM to the data with automatic selection of the number of hidden states and with automatic initialization, as shown in Capezza, Lepore and Paynabar (2025).active_learning_pHMM()performs stream-based active learning for process monitoring, as described in Capezza, Lepore and Paynabar (2025).
References:
- Capezza, C., Lepore, A., & Paynabar, K. (2025). Stream-Based Active Learning for Process Monitoring. Technometrics. <doi:10.1080/00401706.2025.2561744>.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-04-22
- ERROR13 OK, 1 ERROR2026-04-18
- OK14 OK2026-03-10
Documentation
- Help pages
- 5 (1 internal)includes a package overview page
- Examples that run
- 75%3 run in a plain check · 1 only when donttest examples are enabled (R CMD check --as-cran)
- Exported functions with examples
- 100%
- Documented parameters
- 94%
- Return-value docs
- 100%
- Help pages citing references
- 80%
Downloads
Dependencies
Installing ActiveLearning4SPM adds 16 packages (13 with compiled code, 24 MB of source tarballs). Heaviest: BH 14 MB, robustbase 2.2 MB, Rcpp 1.8 MB.
Code & Tests
People & History
- RR 4.6.0 released · 2026-04-24
- 0.1.0Latest2025-10-07 · current release
- RR 4.5.0 released · 2025-04-11
Package metadata
- First published
- 2025-10-07
- Total releases
- 1 / 1 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 4.2
- Download size
- 26 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("ActiveLearning4SPM")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.