بهینه‌سازی توازن دقت و سرعت در پیش‌بینی قیمت سهام: یک چارچوب یادگیری آنلاین گروهی و تطبیقی مبتنی بر تکامل تفاضلی

نوع مقاله : علمی - پژوهشی

نویسندگان

1 گروه مدیریت مالی، واحد علوم و تحقیقات، دانشگاه آزاد اسلامی، تهران، ایران

2 استاد تمام ریاضی کاربردی، گروه ریاضی کاربردی، دانشکده علوم ریاضی، دانشگاه یزد، یزد، ایران

3 دانشیارگروه مدیریت مالی، واحد علوم و تحقیقات، دانشگاه آزاد اسلامی، تهران، ایران

4 دانشیار مهندسی کامپیوتر،گروه هوش مصنوعی و رباتیک، دانشکده مهندسی کامپیوتر، دانشگاه یزد، یزد، ایران

چکیده

چکیده

هدف: هدف اصلی این پژوهش، حل تقابل بنیادین و کلیدی میان دقت پیش‌بینی و کارایی محاسباتی در مدل‌های پیش‌بینی قیمت سهام است. علی‌رغم توانایی مدل‌های یادگیری عمیق پیشرفته، مانند LSTM و Transformer، در دستیابی به دقت بالا، هزینه‌های سنگین پردازشی و تأخیر زمانی بالای آن‌ها، استقرار عملی این مدل‌ها را در اکوسیستم‌های مالی آنلاین و حساس به زمان، با چالش جدی مواجه ساخته است. این مسئله یک شکاف تحقیقاتی مهم را نمایان می‌سازد: فقدان یک چارچوب یکپارچه که بتواند به صورت سیستماتیک و هوشمند، این دو هدف متعارض (دقت و سرعت) را همزمان بهینه سازد. در پاسخ به این نیاز، این پژوهش یک چارچوب ترکیبی، تطبیقی و خودبهینه‌ساز با نام DE-Optimized AT-M(OS-ELM) را معرفی می‌کند که به طور خاص برای یافتن توازنی بهینه میان این دو معیار طراحی شده است. هدف نهایی، ارائه راهکاری عملی و واقع‌گرایانه است که ضمن حفظ دقت آماری رقابتی، بتواند با سرعت بسیار بالا با داده‌های جریانی سازگار شود و مسیر را برای کاربردی‌سازی هوش مصنوعی در سیستم‌های معاملاتی الگوریتمی بلادرنگ هموار کند.



روش: روش‌شناسی این پژوهش بر پایه‌ی یک معماری چندلایه و هوشمند استوار است. چارچوب پیشنهادی، DE-Optimized AT-M(OS-ELM)، سه مؤلفه کلیدی را یکپارچه می‌سازد: (۱) یادگیرنده پایه (OS-ELM): از ماشین یادگیری حدی آنلاین و متوالی برای یادگیری سریع و تطبیق آنی با داده‌های جدید بدون نیاز به بازآموزی کامل استفاده می‌شود. (۲) ساختار گروهی تطبیقی (AT-M): برای افزایش پایداری و مدیریت نویز و پدیده «تغییر مفهوم»، چندین مدل OS-ELM در یک ساختار گروهی قرار گرفته‌اند و وزن هر مدل به صورت پویا بر اساس عملکرد اخیر آن در یک پنجره زمانی لغزان، با مکانیزم «وزن‌دهی مبتنی بر اعتماد» تنظیم می‌شود. (۳) موتور بهینه‌سازی (DE): از الگوریتم تکامل تفاضلی برای بهینه‌سازی خودکار و هوشمند ابرپارامترهای کلیدی مدل استفاده می‌گردد. نوآوری محوری این پژوهش، طراحی یک تابع هدف دوگانه برای الگوریتم DE است که به طور همزمان خطای پیش‌بینی (RMSE) و هزینه محاسباتی (زمان آموزش) را کمینه می‌کند. برای ارزیابی جامع عملکرد، از مجموعه داده‌های تاریخی ۱۴ ساله (۲۰۱۰-۲۰۲۳) پنج دارایی کلیدی بازار سهام آمریکا استفاده شد. مدل پیشنهادی با مدل‌های مبنای متنوعی شامل ARIMA، جنگل تصادفی، SVR، LSTM و Transformer مقایسه گردید. عملکرد مدل‌ها با معیارهای چندبعدی شامل دقت (RMSE, MAE, R²) و کارایی (زمان آموزش و پیش‌بینی) سنجیده و معناداری آماری نتایج با آزمون ناپارامتریک ویلکاکسون تأیید شد.



یافته‌ها: نتایج ارزیابی کمی و کیفی نشان داد که چارچوب پیشنهادی با موفقیت به اهداف خود دست یافته است. در بُعد دقت، مدل پیشنهادی عملکردی بسیار رقابتی کسب کرد که از نظر آماری برتر یا کاملاً هم‌تراز با پیشرفته‌ترین مدل‌های یادگیری عمیق (LSTM و Transformer) بود (p < 0/05). برتری این مدل به ویژه در معیار دقت جهت‌دار (DA) که برای معاملات الگوریتمی حیاتی است، با میانگین 1/66% مشهودتر بود. برجسته‌ترین یافته، در بُعد کارایی محاسباتی نمایان شد؛ مدل پیشنهادی با میانگین زمان آموزش کمتر از یک ثانیه، سرعتی را به ثبت رساند که صدها برابر سریع‌تر از مدل‌های پیشرفته یادگیری عمیق بود. این کاهش چشمگیر هزینه محاسباتی، یک برتری قاطعانه و تعیین‌کننده برای کاربردهای عملی محسوب می‌شود. . تحلیل‌های بصری نیز این یافته‌ها را تأیید کرد؛ نمودار تحلیل توازن، مدل پیشنهادی را به تنهایی در «نقطه بهینه» (دقت بالا، هزینه پایین) قرار داد و تحلیل خطای لغزان نشان داد که این مدل پایداری عملکرد بالاتری را، به خصوص در دوره‌های پرنوسان بازار، حفظ می‌کند.



نتیجه‌گیری: این پژوهش با موفقیت نشان داد که راهکار غلبه بر چالش دقت-سرعت در پیش‌بینی مالی، لزوماً در پیچیدگی بیشتر معماری‌ها نهفته نیست، بلکه در یک رویکرد مهندسی سیستم هوشمند و بهینه‌سازی هدفمند قرار دارد. چارچوب DE-Optimized AT-M(OS-ELM) با یکپارچه‌سازی هوشمندانه یادگیری آنلاین، پایداری گروهی تطبیقی و بهینه‌سازی دوهدفه، یک توازن سیستماتیک و مؤثر میان دقت و کارایی برقرار کرد. این مدل نه تنها به دقتی هم‌سطح یا برتر از مدل‌های پیشرفته دست یافت، بلکه این کار را با هزینه‌ای محاسباتی که چندین مرتبه مقیاس کمتر است، به انجام رساند. این دستاورد، رویکرد غالب مبنی بر تمرکز انحصاری بر مدل‌های پیچیده را به چالش می‌کشد و اهمیت طراحی راهکارهای عملی و کارآمد را برجسته می‌سازد. چارچوب ارائه شده به عنوان یک ابزار قدرتمند، پتانسیل بالایی برای پیاده‌سازی در سیستم‌های معاملاتی الگوریتمی و تحلیل‌های مالی بلادرنگ دارد و گامی مهم در جهت کاربردی‌سازی عملی هوش مصنوعی در امور مالی محسوب می‌شود.

کلیدواژه‌ها


عنوان مقاله [English]

Optimizing the trade-off between accuracy and speed in stock price forecasting: An online adaptive ensemble learning framework based on differential evolution

نویسندگان [English]

  • saeed Alamchi meybodi 1
  • ali delavarkhalfi 2
  • Maryam Khalili araghi 3
  • Mehdi Yazdian Dehkordi 4
1 Department of Financial management, SR.C., Islamic Azad University, Tehran, Iran
2 Full Professor of Applied Mathematics, Department of Applied Mathematics, Faculty of Mathematical Sciences, Yazd University, Yazd, Iran
3 Associate Professor of Department of Financial management, SR.C., Islamic Azad University, Tehran, Iran
4 Associate Professor of Computer Engineering, Artificial Intelligence and Robotics Group, Faculty of Computer Engineering, Yazd University, Yazd, Iran.
چکیده [English]

Abstract



Purpose:The primary objective of this research is to resolve the fundamental and critical trade-off between prediction accuracy and computational efficiency in stock price forecasting models. Despite the ability of advanced deep learning models, such as LSTM and Transformer, to achieve high accuracy, their heavy processing costs and high latency present serious challenges for their practical deployment in online, time-sensitive financial ecosystems. This issue highlights a significant research gap: the absence of an integrated framework capable of systematically and intelligently optimizing these two conflicting objectives (accuracy and speed) simultaneously. In response to this need, this study introduces a hybrid, adaptive, and self-optimizing framework named DE-Optimized AT-M(OS-ELM), specifically designed to find an optimal balance between these two metrics. The ultimate goal is to provide a practical and realistic solution that maintains competitive statistical accuracy while adapting to streaming data with extremely high speed, paving the way for the operationalization of artificial intelligence in real-time algorithmic trading systems.



Methodology:The methodology of this research is based on a multi-layered and intelligent architecture. The proposed framework, DE-Optimized AT-M(OS-ELM), integrates three key components: (1) Base Learner (OS-ELM): The Online Sequential Extreme Learning Machine is utilized for fast learning and instantaneous adaptation to new data without requiring complete retraining. (2) Adaptive Ensemble Structure (AT-M): To enhance stability and manage noise and "concept drift," multiple OS-ELM models are placed in an ensemble structure. The weight of each model is dynamically adjusted based on its recent performance within a sliding time window, using an "Adaptive Trust-weighted" mechanism. (3) Optimization Engine (DE): The Differential Evolution algorithm is employed for the automatic and intelligent optimization of the model's key hyperparameters. The core innovation of this research is the design of a dual-objective function for the DE algorithm, which simultaneously minimizes prediction error (RMSE) and computational cost (training time). For a comprehensive performance evaluation, a 14-year historical dataset (2010-2023) of five key assets from the US stock market was used. The proposed model was benchmarked against a diverse set of models, including ARIMA, Random Forest, SVR, LSTM, and Transformer. Model performance was assessed using multi-dimensional metrics for both accuracy (RMSE, MAE, R²) and efficiency (training and prediction time), and the statistical significance of the results was confirmed using the Wilcoxon non-parametric test.

.

Findings:The quantitative and qualitative evaluation results demonstrated that the proposed framework successfully achieved its objectives. In terms of accuracy, the proposed model delivered highly competitive performance, proving to be statistically superior or entirely on par with state-of-the-art deep learning models (LSTM and Transformer) (p < 0/05). Its superiority was particularly evident in the Directional Accuracy (DA) metric, which is critical for algorithmic trading, with an average of 66/1%. The most prominent finding emerged in the dimension of computational efficiency; with an average training time of less than one second, the proposed model registered a speed that was hundreds of times faster than advanced deep learning models. This dramatic reduction in computational cost represents a decisive and definitive advantage for practical applications. Visual analyses also confirmed these findings; the trade-off analysis plot uniquely positioned the proposed model in the "sweet spot" (high accuracy, low cost), and the rolling error analysis revealed that the model maintains higher performance stability, especially during periods of high market volatility.

.

Conclusion:This research successfully demonstrates that the solution to the accuracy-speed challenge in financial forecasting does not necessarily lie in greater architectural complexity but rather in a smart and targeted system engineering approach. The DE-Optimized AT-M(OS-ELM) framework, by intelligently integrating online learning, adaptive ensembling, and dual-objective optimization, establishes a systematic and effective balance between accuracy and efficiency. The model not only achieved accuracy on par with or superior to state-of-the-art models but did so at a computational cost that is orders of magnitude lower. This achievement challenges the paradigm of focusing exclusively on complex models and highlights the importance of designing practical and efficient solutions. The proposed framework, as a powerful tool, holds significant potential for implementation in algorithmic trading systems and real-time financial analytics, marking an important step toward the practical operationalization of artificial intelligence in finance.

کلیدواژه‌ها [English]

  • Keywords: Stock Price Prediction
  • Online Ensemble Learning
  • Accuracy-Efficiency Trade-off
  • Multi-Objective Optimization
  • Extreme Learning Machine (ELM)