Forecasting stock market anomalies in emerging markets: An OPTUNA-optimized isolation forest and K-means approach
Forecasting financial anomalies in emerging markets is critical for informed investment and risk management. This study proposes a novel machine learning framework that integrates an OPTUNA-optimized Isolation Forest algorithm with K-Means clustering to detect and classify stock market anomalies in Iran Khodro, one of Iran’s largest automotive firms. Leveraging daily stock data from 2001 to 2022, the model enhances anomaly detection accuracy by tuning hyperparameters through Bayesian optimization, significantly reducing false positives compared to standard implementations. The K-Means clustering algorithm further segments the detected anomalies into meaningful behavioral categories based on price and trading volume dynamics. Results reveal distinct periods of market disruption aligned with major political and economic events, including sanctions, currency volatility, and the COVID-19 pandemic. This hybrid approach demonstrates a robust, efficient, and interpretable method for forecasting abnormal market behavior in high-volatility, low-transparency environments. The framework holds promise for broader application in forecasting stock anomalies across other emerging financial markets.
Authors
- A Khani (ORCID: https://orcid.org/0000-0001-8798-2956)
- Jan Vang (ORCID: https://orcid.org/0000-0003-1606-4167)
- Seyed Pendar Toufighi (ORCID: https://orcid.org/0000-0002-9561-865X)
- Iman Ghasemian Sahebi (ORCID: https://orcid.org/0000-0001-9761-7434)
- Arman Rezasoltani (ORCID: https://orcid.org/0009-0003-6960-6713)
Institutions
- University of Southern Denmark (DK)
- University of Tehran (IR)
- Region of Southern Denmark (DK)
Publication Details
- Journal
- Machine Learning with Applications
- Published
- 2025-11-05
- DOI
- https://doi.org/10.1016/j.mlwa.2025.100770
- Citations
- 1
- Primary Topic
- Stock Market Forecasting Methods
- Type
- article
- Field-Weighted Citation Impact
- 2.11