SEP-HMM: A Flexible Hidden Markov Model Framework for Asymmetric and Non-Mesokurtic Emission Patterns
Abstract
1. Introduction
2. Methods
2.1. Hidden Markov Model
2.2. Proposed Method: SEP-HMM
- The distribution is symmetric if and only if
- The distribution is positively skewed if and only if
- The distribution is negatively skewed if and only if
2.3. Parameter Estimation of SEP-HMM
| Algorithm 1. Baum-Welch algorithm for SEP-HMM |
| ) ) 3. Repeat until convergence is reached: // E-Step // M-Step // Convergence check and repeat step 3. |
2.4. Decoding Algorithm of SEP-HMM
| Algorithm 2. Viterbi algorithm for SEP-HMM |
) 1. Initialization and Recursion do do using Equation (21) using Equation (22) End For End For 2. Termination using Equation (23) 3. Backtracking do using Equation (24) End For |
2.5. Model Evaluation
2.6. Simulation Setup
3. Simulation Results
3.1. Evaluation of SEP-HMM Parameter Estimates
3.2. Model Fit Comparison
3.3. Hidden State Decoding Performance
4. Real-Case Implementation
5. Discussion
6. Conclusions
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
Appendix A
Appendix A.1. Proof of Proposition 1
- Non-negativity
- ii.
- Integrates to One
Appendix A.2. Proof of Proposition 2
Appendix A.3. Proof of Proposition 3
Appendix A.4. Proof of Proposition 4
Appendix B
Appendix B.1. Update for the Initial Distribution
Appendix B.2. Update for the Transition Probability Matrix
Appendix B.3. Update for the Emission Parameter
References
- Rabiner, L.; Juang, B. An Introduction to Hidden Markov Models. IEEE ASSP Mag. 1986, 3, 4–16. [Google Scholar] [CrossRef]
- Awad, M.; Khanna, R. Hidden Markov Model. In Efficient Learning Machines; Apress: Berkeley, CA, USA, 2015; pp. 81–104. ISBN 978-1-4302-5989-3. [Google Scholar]
- Cappé, O.; Moulines, E.; Rydén, T. Inference in Hidden Markow Models; Springer Series in Statistics; Springer: New York, NY, USA, 2005; ISBN 978-0-387-40264-2. [Google Scholar]
- Bhar, R.; Hamori, S. Hidden Markov Models: Applications to Financial Economics; Advanced Studies in Theoretical and Applied Econometrics; Kluwer Academic Publishers: Boston, MA, USA, 2004; Volume 40, ISBN 978-1-4020-7899-6. [Google Scholar]
- Ma, Y.; Chen, H.; Kang, J.; Guo, X.; Sun, C.; Xu, J.; Tao, J.; Wei, S.; Dong, Y.; Tian, H.; et al. The Hidden Markov Model and Its Applications in Bioinformatics Analysis. Genes Dis. 2026, 13, 101729. [Google Scholar] [CrossRef]
- Glennie, R.; Adam, T.; Leos-Barajas, V.; Michelot, T.; Photopoulou, T.; McClintock, B.T. Hidden Markov Models: Pitfalls and Opportunities in Ecology. Methods Ecol. Evol. 2023, 14, 43–56. [Google Scholar] [CrossRef]
- Visser, I.; Raijmakers, M.E.J.; Molenaar, P.C.M. Fitting Hidden Markov Models to Psychological Data. Sci. Program. 2002, 10, 185–199. [Google Scholar] [CrossRef]
- Mor, B.; Garhwal, S.; Kumar, A. A Systematic Review of Hidden Markov Models and Their Applications. Arch. Comput. Methods Eng. 2021, 28, 1429–1448. [Google Scholar] [CrossRef]
- Unggul, D.B.; Iriawan, N.; Irhamah, I. Parameter Estimation of MSNBurr-Based Hidden Markov Model: A Simulation Study. Symmetry 2025, 17, 1931. [Google Scholar] [CrossRef]
- Mohammadiha, N.; Kleijn, W.B.; Leijon, A. Gamma Hidden Markov Model as a Probabilistic Nonnegative Matrix Factorization. In Proceedings of the 21st European Signal Processing Conference (EUSIPCO), Marrakech, Morocco, 9–13 September 2013; pp. 1–5. [Google Scholar]
- Zhang, H.; Zhang, W.; Palazoglu, A.; Sun, W. Prediction of Ozone Levels Using a Hidden Markov Model (HMM) with Gamma Distribution. Atmos. Environ. 2012, 62, 64–73. [Google Scholar] [CrossRef]
- Nkemnole, E.B.; Bamigbode, J.O. Application of Weibull Distribution to Hidden Markov Model for Non-Negative Factorization Matrix. Eur. J. Theor. Appl. Sci. 2024, 2, 607–622. [Google Scholar] [CrossRef]
- Nigri, A.; Forti, M.; Shang, H.L. Extending Finite Mixture Models with Skew-Normal Distributions and Hidden Markov Models for Time Series. J. Stat. Comput. Simul. 2025, 1–28. [Google Scholar] [CrossRef]
- Azzalini, A. A Class of Distributions Which Includes the Normal Ones. Scand. J. Stat. 1985, 12, 171–178. [Google Scholar]
- Iriawan, N. Computationally Intensive Approaches to Inference in Neo-Normal Linear Models. Ph.D. Thesis, Curtin University of Technology, Perth, Australia, 2000. [Google Scholar]
- Fernández, C.; Steel, M.F. On Bayesian Modeling of Fat Tails and Skewness. J. Am. Stat. Assoc. 1998, 93, 359–371. [Google Scholar] [PubMed]
- Ammermann, P.A. Are Stock Return Dynamics Truly Explosive or Merely Conditionally Leptokurtic? A Case Study on the Impact of Distributional Assumptions in Econometric Modeling. J. Data Anal. Inf. Process. 2016, 4, 21–39. [Google Scholar] [CrossRef][Green Version]
- Kim, J.H.T.; Kim, H. Estimating Skewness and Kurtosis for Asymmetric Heavy-Tailed Data: A Regression Approach. Mathematics 2025, 13, 2694. [Google Scholar] [CrossRef]
- Kamath, A.; Poojari, S.; Varsha, K. Assessing the Robustness of Normality Tests under Varying Skewness and Kurtosis: A Practical Checklist for Public Health Researchers. BMC Med. Res. Methodol 2025, 25, 206. [Google Scholar] [CrossRef]
- Hutson, A.D. An Alternative Skew Exponential Power Distribution Formulation. Commun. Stat.-Theory Methods 2019, 48, 3005–3024. [Google Scholar] [CrossRef]
- Lu, Y.; Zeng, L. A Nonhomogeneous Poisson Hidden Markov Model for Claim Counts. ASTIN Bull. 2012, 42, 181–202. [Google Scholar] [CrossRef]
- Paroli, R.; Redaelli, G.L.M.; Spezia, L. Poisson Hidden Markov Models for Time Series of Overdispersed Insurance Counts. In Proceedings of the XXXI International ASTIN Colloquium; Cambridge University Press: Cambridge, UK, 2000. [Google Scholar]
- Sadeghifar, M.; Seyed-Tabib, M.; Haji-Maghsoudi, S.; Noemani, K.; Aalipur-Byrgany, F. The Application of Poisson Hidden Markov Model to Forecasting New Cases of Congenital Hypothyroidism in Khuzestan Province. J. Biostat. Epidemiol. (JBE) 2016, 2, 14–19. [Google Scholar]
- Orfanogiannaki, K.; Karlis, D. Modeling Earthquake Numbers by Negative Binomial Hidden Markov Models. In Proceedings of the EGU General Assembly 2020, Online, 4–8 May 2020. [Google Scholar]
- Spezia, L.; Cooksley, S.L.; Brewer, M.J.; Donnelly, D.; Tree, A. Modelling Species Abundance in a River by Negative Binomial Hidden Markov Models. Comput. Stat. Data Anal. 2014, 71, 599–614. [Google Scholar] [CrossRef]
- Baum, L.E.; Petrie, T.; Soules, G.; Weiss, N. A Maximization Technique Occurring in the Statistical Analysis of Probabilistic Functions of Markov Chains. Ann. Math. Stat. 1970, 41, 164–171. [Google Scholar] [CrossRef]
- Welch, L.R. Hidden Markov Models and the Baum-Welch Algorithm. IEEE Inf. Theory Soc. Newsl. 2003, 53, 10–13. [Google Scholar]
- Dempster, A.P.; Laird, N.M.; Rubin, D.B. Maximum Likelihood from Incomplete Data Via the EM Algorithm. J. R. Stat. Soc. Ser. B Stat. Methodol. 1977, 39, 1–22. [Google Scholar] [CrossRef]
- Forney, G.D. The Viterbi Algorithm. Proc. IEEE 1973, 61, 268–278. [Google Scholar] [CrossRef]
- Akaike, H. A New Look at the Statistical Model Identification. IEEE Trans. Autom. Control 1974, 19, 716–723. [Google Scholar] [CrossRef]
- Schwarz, G. Estimating the Dimension of a Model. Ann. Stat. 1978, 6, 461–464. [Google Scholar] [CrossRef]
- R Core Team. R: A Language and Environment for Statistical Computing; R Foundation for Statistical Computing: Vienna, Austria, 2023. [Google Scholar]
- Visser, I. Seven Things to Remember about Hidden Markov Models: A Tutorial on Markovian Models for Time Series. J. Math. Psychol. 2011, 55, 403–415. [Google Scholar] [CrossRef]








| Predicted State 1 | Predicted State 2 | |
|---|---|---|
| Actual State 1 | True Positive (TP) | False Negative (FN) |
| Actual State 2 | False Positive (FP) | True Negative (TN) |
| Scenario | Target Parameter | Intuitive Interpretation | |
|---|---|---|---|
| Emission 1 | Emission 2 | ||
| Scenario 1 | Symmetric, Mesokurtic | ||
| Scenario 2 | Slightly Asymmetric, Mesokurtic | ||
| Scenario 3 | Strongly Asymmetric, Mesokurtic | ||
| Scenario 4 | Symmetric, Leptokurtic | ||
| Scenario 5 | Slightly Asymmetric, Leptokurtic | ||
| Scenario 6 | Strongly Asymmetric, Leptokurtic | ||
| Scenario 7 | Symmetric, Platykurtic | ||
| Scenario 8 | Slightly Asymmetric, Platykurtic | ||
| Scenario 9 | Strongly Asymmetric, Platykurtic | ||
| Parameter | Scenario | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | ||
| Target | 0.500 | 0.500 | 0.500 | 0.500 | 0.500 | 0.500 | 0.500 | 0.500 | 0.500 | |
| Estimate | 0.508 | 0.512 | 0.510 | 0.510 | 0.510 | 0.514 | 0.514 | 0.512 | 0.514 | |
| Target | 0.500 | 0.500 | 0.500 | 0.500 | 0.500 | 0.500 | 0.500 | 0.500 | 0.500 | |
| Estimate | 0.492 | 0.488 | 0.490 | 0.490 | 0.490 | 0.486 | 0.486 | 0.488 | 0.486 | |
| Target | 0.800 | 0.800 | 0.800 | 0.800 | 0.800 | 0.800 | 0.800 | 0.800 | 0.800 | |
| Estimate | 0.799 | 0.798 | 0.798 | 0.800 | 0.800 | 0.797 | 0.798 | 0.798 | 0.798 | |
| Target | 0.200 | 0.200 | 0.200 | 0.200 | 0.200 | 0.200 | 0.200 | 0.200 | 0.200 | |
| Estimate | 0.201 | 0.202 | 0.202 | 0.200 | 0.200 | 0.203 | 0.202 | 0.202 | 0.202 | |
| Target | 0.200 | 0.200 | 0.200 | 0.200 | 0.200 | 0.200 | 0.200 | 0.200 | 0.200 | |
| Estimate | 0.200 | 0.201 | 0.201 | 0.199 | 0.199 | 0.202 | 0.201 | 0.201 | 0.201 | |
| Target | 0.800 | 0.800 | 0.800 | 0.800 | 0.800 | 0.800 | 0.800 | 0.800 | 0.800 | |
| Estimate | 0.800 | 0.799 | 0.799 | 0.801 | 0.801 | 0.798 | 0.799 | 0.799 | 0.799 | |
| Target | −2.000 | −2.000 | −2.000 | −2.000 | −2.000 | −2.000 | −2.000 | −2.000 | −2.000 | |
| Estimate | −1.989 | −1.986 | −2.076 | −1.973 | −1.986 | −2.628 | −2.013 | −2.012 | −2.180 | |
| Target | 2.000 | 2.000 | 2.000 | 2.000 | 2.000 | 2.000 | 2.000 | 2.000 | 2.000 | |
| Estimate | 2.027 | 2.019 | 2.104 | 1.993 | 2.025 | 2.746 | 2.018 | 2.026 | 2.178 | |
| Target | 1.000 | 1.000 | 1.000 | 1.000 | 1.000 | 1.000 | 1.000 | 1.000 | 1.000 | |
| Estimate | 0.990 | 0.982 | 1.171 | 1.000 | 0.998 | 2.332 | 0.974 | 0.981 | 1.148 | |
| Target | 1.000 | 1.000 | 1.000 | 1.000 | 1.000 | 1.000 | 1.000 | 1.000 | 1.000 | |
| Estimate | 0.983 | 1.000 | 1.221 | 0.994 | 1.013 | 2.464 | 0.973 | 0.989 | 1.153 | |
| Target | 0.500 | 0.700 | 0.900 | 0.500 | 0.700 | 0.900 | 0.500 | 0.700 | 0.900 | |
| Estimate | 0.504 | 0.705 | 0.891 | 0.507 | 0.703 | 0.826 | 0.495 | 0.697 | 0.876 | |
| Target | 0.500 | 0.300 | 0.100 | 0.500 | 0.300 | 0.100 | 0.500 | 0.300 | 0.100 | |
| Estimate | 0.508 | 0.303 | 0.113 | 0.497 | 0.304 | 0.187 | 0.510 | 0.307 | 0.124 | |
| Target | 0.000 | 0.000 | 0.000 | 0.500 | 0.500 | 0.500 | −0.500 | −0.500 | −0.500 | |
| Estimate | −0.016 | −0.013 | −0.186 | 0.476 | 0.478 | −0.328 | −0.520 | −0.509 | −0.458 | |
| Target | 0.000 | 0.000 | 0.000 | 0.500 | 0.500 | 0.500 | −0.500 | −0.500 | −0.500 | |
| Estimate | 0.006 | −0.010 | −0.196 | 0.487 | 0.489 | −0.340 | −0.509 | −0.509 | −0.463 | |
| Metric | Model | Scenario | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | ||
| Log-Likelihood | SEP-HMM | −934.77 (18.78) | −1039.36 (20.58) | −1437.17 (18.96) | −1102.21 (17.76) | −1246.26 (21.07) | −1524.25 (17.76) | −753.28 (18.77) | −840.55 (17.51) | −1265.30 (17.18) |
| SN-HMM | −936.55 (18.75) | −1048.52 (22.42) | −1464.38 (24.04) | −1110.66 (18.05) | −1269.27 (21.96) | −1548.24 (19.28) | −770.91 (18.70) | −861.62 (18.46) | −1300.50 (19.52) | |
| Gaussian-HMM | −936.90 (18.72) | −1056.87 (20.87) | −1481.04 (18.66) | −1111.62 (18.00) | −1276.60 (21.12) | −1553.13 (16.85) | −771.20 (18.70) | −865.34 (18.76) | −1306.56 (18.70) | |
| AIC | SEP-HMM | 1891.54 (37.57) | 2100.71 (41.16) | 2896.34 (37.91) | 2226.42 (35.52) | 2514.53 (42.14) | 3070.50 (35.52) | 1528.55 (37.54) | 1703.10 (35.02) | 2552.61 (34.35) |
| SN-HMM | 1891.10 (37.49) | 2115.04 (44.84) | 2946.76 (48.08) | 2239.32 (36.11) | 2556.53 (43.92) | 3114.47 (38.55) | 1559.83 (37.40) | 1741.25 (36.93) | 2619.00 (39.05) | |
| Gaussian-HMM | 1887.81 (37.44) | 2127.75 (41.73) | 2976.08 (37.32) | 2237.23 (35.99) | 2567.20 (42.24) | 3120.26 (33.7) | 1556.39 (37.40) | 1744.67 (37.53) | 2627.11 (37.40) | |
| BIC | SEP-HMM | 1937.90 (37.57) | 2147.08 (41.16) | 2942.70 (37.91) | 2272.78 (35.52) | 2560.89 (42.14) | 3116.86 (35.52) | 1574.91 (37.54) | 1749.46 (35.02) | 2598.97 (34.35) |
| SN-HMM | 1929.03 (37.49) | 2152.97 (44.84) | 2984.69 (48.08) | 2277.25 (36.11) | 2594.46 (43.92) | 3152.41 (38.55) | 1597.76 (37.40) | 1779.18 (36.93) | 2656.94 (39.05) | |
| Gaussian-HMM | 1917.31 (37.44) | 2157.25 (41.73) | 3005.58 (37.32) | 2266.74 (35.99) | 2596.70 (42.24) | 3149.77 (33.70) | 1585.90 (37.40) | 1774.18 (37.53) | 2656.61 (37.40) | |
| Dataset | Model | Evaluation Metric | ||
|---|---|---|---|---|
| Log-Likelihood | AIC | BIC | ||
| JCI | SEP-HMM | −3047.90 | 6117.79 | 6163.66 |
| SN-HMM | −3083.43 | 6184.85 | 6222.38 | |
| Gaussian-HMM | −3083.43 | 6180.85 | 6210.04 | |
| TEMP | SEP-HMM | 402.11 | −782.23 | −731.89 |
| SN-HMM | 339.53 | −661.06 | −619.87 | |
| Gaussian-HMM | 282.40 | −550.80 | −518.77 | |
| Dataset | Hidden State | Characteristics | ||||||
|---|---|---|---|---|---|---|---|---|
| Count (%) | Mean | SD | Max | Min | Skewness | Kurtosis | ||
| JCI | State 1 | 232 (48.54%) | 6830.40 | 105.23 | 7016.84 | 6565.73 | −0.40 | −0.73 |
| State 2 | 246 (51.46%) | 7323.01 | 206.00 | 7905.39 | 6970.74 | 0.87 | −0.02 | |
| TEMP | State 1 | 501 (69.68%) | −0.10 | 0.14 | 0.21 | −0.80 | −1.58 | 2.72 |
| State 2 | 218 (30.32%) | 0.24 | 0.19 | 0.88 | −0.41 | −0.52 | 1.63 | |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Unggul, D.B.; Iriawan, N.; Irhamah, I.; Prabowo, A.A. SEP-HMM: A Flexible Hidden Markov Model Framework for Asymmetric and Non-Mesokurtic Emission Patterns. Mathematics 2026, 14, 393. https://doi.org/10.3390/math14030393
Unggul DB, Iriawan N, Irhamah I, Prabowo AA. SEP-HMM: A Flexible Hidden Markov Model Framework for Asymmetric and Non-Mesokurtic Emission Patterns. Mathematics. 2026; 14(3):393. https://doi.org/10.3390/math14030393
Chicago/Turabian StyleUnggul, Didik Bani, Nur Iriawan, Irhamah Irhamah, and Andriyas Aryo Prabowo. 2026. "SEP-HMM: A Flexible Hidden Markov Model Framework for Asymmetric and Non-Mesokurtic Emission Patterns" Mathematics 14, no. 3: 393. https://doi.org/10.3390/math14030393
APA StyleUnggul, D. B., Iriawan, N., Irhamah, I., & Prabowo, A. A. (2026). SEP-HMM: A Flexible Hidden Markov Model Framework for Asymmetric and Non-Mesokurtic Emission Patterns. Mathematics, 14(3), 393. https://doi.org/10.3390/math14030393

