Teaching Hidden Markov Models Through Multidimensional Trajectory Learning: A Hands-On MATLAB Journey
DOI:
https://doi.org/10.17979/ja-cea.2026.47.13849Keywords:
Hidden Markov Models, Education, Benchmark examples, Learning AlgorithmsAbstract
Hidden Markov Models (HMMs) are a tool widely used in robotics, language processing, speech recognition and signal processing, yet their instruction in engineering courses remains challenging due to the gap between mathematical formalism and
realistic applications. Existing resources either rely on abstract derivations or black-box software libraries that obscure the modeling pipeline, leaving students without the conceptual tools to adapt HMMs to novel problems. This paper presents an publicly
available MATLAB LiveScript tutorial that guides students through the complete HMM pipeline for trajectory learning: from synthetic data generation and noise augmentation, through geometric simplification and symbolic encoding, to model training
and Viterbi-based reconstruction. Each stage exposes one conceptual layer transparently, producing an inspectable intermediate result. The design is grounded in established engineering education principles, including guided instruction, reduction of unnecessary cognitive load, and active learning through parameter exploration. The tutorial is publicly available and immediately deployable in undergraduate and graduate courses in artificial intelligence, robotics, and data processing.
References
Bellas, F., Naya-Varela, M., Mallo, A., et al., 2024. Education in the AI era: a long-term classroom technology based on intelligent robotics. Humanities and Social Sciences Communications 11, 1425. DOI: 10.1057/s41599-024-03953-y
Blunsom, P., 2004. Hidden Markov models. Lecture Notes 15 (18–19), 48.
Galli, M., Barber, R., Garrido, S., Moreno, L., 2017. Learning robotics with ROS and MATLAB using real robotic platforms. In: Proceedings of ICERI2017. IATED, pp. 1519–1527.
Manrique-Cordoba, J., 2026. MultiDimensionalData HMM Implementation Example. MATLAB Central File Exchange, https://es.mathworks.com/matlabcentral/fileexchange/183205-multidimensionaldatahmmimplementationexample, accessed: June 2026.
Manrique-Cordoba, J., de la Casa-Lillo, M. A., Sabater-Navarro, J. M., 2025. N-dimensional reduction algorithm for learning from demonstration path planning. Sensors 25 (7), 2145. DOI: 10.3390/s25072145
MathWorks, 2024a. Create live scripts in the live editor — MATLAB & Simulink. https://es.mathworks.com/help/matlab/matlab_prog/create-live-scripts.html.
MathWorks, 2024b. Hidden Markov models (HMM) — MATLAB & Simulink. https://es.mathworks.com/help/stats/hidden-markov-models-hmm.html.
Prince, M., 2004. Does active learning work? A review of the research. Journal of Engineering Education 93 (3), 223–231.
Rossiter, J. A., Serbezov, A., Visioli, A., ˇZ´akov´a, K., Huba, M., 2020. A survey of international views on a first course in systems and control for engineering undergraduates. IFAC Journal of Systems and Control 13, 100092.
Sweller, J., 1988. Cognitive load during problem solving: Effects on learning. Cognitive Science 12 (2), 257–285.
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Juliana Manrique Cordoba, Marina Poveda Pérez, Miguel Ángel De La Casa Lillo, José María Sabater Navarro

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.