بناء نموذج قوي لتوقع أسعار الأسهم باستخدام LSTM و VECM Building a Robust Stock Price Prediction Using LSTM and VECM

شارك:
المجلة: KSII Transactions on Internet and Information Systems، المجلد: 20، العدد: 4
DOI: https://doi.org/10.3837/tiis.2026.04.003
تاريخ النشر: 2026-04-30
المؤلف: Bidyutmala Saha وآخرون
الموضوع الرئيسي: طرق التنبؤ بسوق الأسهم

نظرة عامة

تقدم هذه البحث إطارًا هجينًا يدمج نموذج تصحيح الخطأ المتجه (VECM) مع شبكات الذاكرة طويلة وقصيرة المدى (LSTM) لتعزيز توقعات أسعار الأسهم. يستفيد هذا الجمع من نقاط القوة في كلا النموذجين: قدرة VECM على تحديد العلاقات التوازنية طويلة الأجل بين المتغيرات الاقتصادية وقدرة LSTM على التقاط الأنماط غير الخطية المعقدة في بيانات السلاسل الزمنية. تشير النتائج التجريبية إلى أن النموذج الهجين يحقق تقليصًا بنسبة 27% في متوسط الخطأ التربيعي الجذري (RMSE) مقارنة بتطبيقات LSTM التقليدية وتحسينًا بنسبة 43% مقارنة بتوقعات VECM المستقلة. بالإضافة إلى ذلك، يظهر النموذج دقة تنبؤية اتجاهية تبلغ 68.7% للحركات السعرية الكبيرة، مما يبرز فعاليته في التقاط ديناميات السوق.

تؤكد الدراسة على الدمج المبتكر بين النمذجة الاقتصادية والتعلم العميق، مما ينتج عنه إطار قوي لا يحسن فقط دقة التنبؤ ولكن أيضًا يوفر تفسيرات اقتصادية ذات مغزى. يتضمن الإطار آلية انتباه زمنية تكيفية لأخذ تغييرات نظام السوق وفرص التحكيم الديناميكية في الاعتبار. تؤكد التحقق الإحصائي من خلال اختبارات t المزدوجة وفترات الثقة المعادلة على أهمية تحسينات الأداء. تشمل اتجاهات البحث المستقبلية استكشاف امتدادات مدمجة مع المحولات وإطارات تعلم الميتا لتحسين أداء النموذج في تطبيقات المالية الكمية، لا سيما في تحديد سلوكيات تغيير النظام وديناميات السوق متعددة الفراكتلات.

مقدمة

تسلط مقدمة هذه الورقة البحثية الضوء على التحديات في تحقيق توقعات موثوقة لأسعار الأسهم ضمن المالية الكمية، مع التأكيد على التفاعل المعقد بين الأسس الاقتصادية، نفسية المستثمرين، الظروف الجيوسياسية، والصدمات التكنولوجية. بينما تمكنت الطرق الاقتصادية التقليدية من التقاط العلاقات التوازنية بفعالية، إلا أنها تعاني من قصور في معالجة السلوكيات غير الخطية الضرورية لفهم الهيكل الدقيق للسوق. بالمقابل، على الرغم من قدرة الأطر الحديثة للتعلم العميق على تحديد الأنماط المعقدة، إلا أنها غالبًا ما تتعرض للنقد بسبب نقص القابلية للتفسير، مما يؤدي إلى تطبيقها المحدود في مجال يقدر الأسس النظرية.

لمعالجة هذه الفجوات المنهجية، تقترح الدراسة نموذجًا هجينًا مبتكرًا يدمج نماذج تصحيح الخطأ المتجه (VECM) وشبكات الذاكرة طويلة وقصيرة المدى (LSTM). يؤسس مكون VECM قاعدة نظرية قوية للعلاقات التوازنية طويلة الأجل بين السلاسل الزمنية الاقتصادية المتكاملة، بينما يدير مكون LSTM بمهارة الديناميات غير الخطية المعقدة لحركات الأسعار قصيرة الأجل. تميز هذه البحث نفسها من خلال تطوير إطار تكامل إحصائي متسق، متجاوزة الأساليب السابقة التي دمجت ببساطة المخرجات الاقتصادية مع الشبكات العصبية. لا يحدد الأسلوب المقترح VECM كعنصر هندسة ميزات اقتصادية فحسب، بل يحدد أيضًا الديناميات غير الخطية قصيرة الأجل من نمذجة التوازن طويل الأجل، مما يوفر منهجية تقييم قابلة للتكرار تتضمن الجدوى الحاسوبية واختبار الأهمية الإحصائية.

طرق

تحدد قسم المنهجية النهج المنهجي المستخدم في البحث لتحقيق أهداف الدراسة. يتناول التصميم التجريبي، بما في ذلك اختيار المشاركين، تقنيات جمع البيانات، والأساليب التحليلية المستخدمة لتفسير النتائج. استخدمت الدراسة نهجًا كميًا، مستفيدة من الأدوات الإحصائية لتحليل البيانات المجمعة من مصادر متنوعة، مما يضمن موثوقية وصحة النتائج.

بالإضافة إلى ذلك، يصف القسم الأدوات والبروتوكولات المحددة المستخدمة للقياس، مع تسليط الضوء على أي نماذج رياضية أو معادلات ذات صلة تدعم التحليل. تؤكد المنهجية على الالتزام بالمعايير الأخلاقية طوال عملية البحث، مما يضمن الحفاظ على موافقة المشاركين وسرية المعلومات. بشكل عام، تم تصميم الإطار المنهجي لتوفير أساس قوي للاستنتاجات المستخلصة في الدراسة.

نتائج

يؤكد قسم “التنفيذ والنتائج” على الصلاحية التجريبية للنتائج المقدمة في الجداول 1 و 2، والتي تعكس أداء النموذج بناءً على التوقعات الفعلية بدلاً من الأمثلة التوضيحية. تستند النتائج إلى تدريب نموذج صارم وتقييمات خارج العينة، مما يضمن أن المقاييس المبلغ عنها تمثل بدقة قدرات النموذج تحت البروتوكول التجريبي المحدد.

تلخص الجداول مقاييس الأداء لفترات الاختبار المحفوظة بدقة، مع تعيين المعلمات الفائقة قبل الاختبار. القيم المبلغ عنها غير معدلة لأغراض توضيحية، مما يوفر انعكاسًا حقيقيًا لدقة النموذج وأدائه على البيانات غير المرئية. للحفاظ على العدالة في المقارنة بين النماذج المرجعية والمقترحة، تستند النتائج إلى تقنيات معالجة البيانات المتسقة، وتكوينات مماثلة لنافذة التمرير، ومعايير تقييم موحدة.

مناقشة

ت outlines قسم المناقشة في الورقة البحثية إطارًا نظريًا شاملاً لتحليل السلاسل الزمنية المالية، مع التأكيد على دمج النماذج الاقتصادية وتقنيات التعلم العميق. يبدأ بتناول قيود فرضية السوق الفعالة (EMH) ويبرز وجود عدم الكفاءة في الأسواق المالية، لا سيما في الأطر الزمنية القصيرة، والتي يمكن استغلالها لنمذجة التنبؤ. يتناول القسم نموذج تصحيح الخطأ المتجه (VECM)، الذي يتقن التعامل مع السلاسل الزمنية المتكاملة، مما يسمح بتحليل العلاقات التوازنية طويلة الأجل بين المتغيرات المالية مع استيعاب الديناميات قصيرة الأجل. تلتقط الصياغة الرياضية لـ VECM كل من عمليات التوازن والتكيف، مما يجعلها مناسبة للتنبؤ المالي.

تقدم الورقة أيضًا شبكات الذاكرة طويلة وقصيرة المدى (LSTM) كأداة قوية لنمذجة الاعتماد الزمني المعقد في البيانات المالية. تعالج LSTMs مشكلة تلاشي التدرج الموجودة في الشبكات العصبية التكرارية التقليدية (RNNs) وتكون فعالة بشكل خاص في التقاط كل من الاستجابات الفورية وطويلة الأجل للأحداث السوقية. يجمع النموذج الهجين المقترح بين VECM و LSTM، مستفيدًا من نقاط القوة في كلا المنهجين. يسمح هذا الدمج بتحديد العلاقات التوازنية طويلة الأجل مع نمذجة التقلبات غير الخطية قصيرة الأجل في الوقت نفسه. يضمن الإطار التوافق الإحصائي من خلال الانتباه الدقيق إلى الاستقرارية، والتطبيع، وانتشار الخطأ، مما يحافظ على سلامة كل من المكونات الاقتصادية والتعلم العميق. بشكل عام، يمثل النهج المقترح تقدمًا كبيرًا في مجال التنبؤ المالي، مقدمًا منهجية منظمة وصحيحة نظريًا للتطبيقات التجريبية.

Journal: KSII Transactions on Internet and Information Systems, Volume: 20, Issue: 4
DOI: https://doi.org/10.3837/tiis.2026.04.003
Publication Date: 2026-04-30
Author(s): Bidyutmala Saha et al.
Primary Topic: Stock Market Forecasting Methods

Overview

This research introduces a hybrid framework that integrates a Vector Error Correction Model (VECM) with Long Short-Term Memory (LSTM) networks to enhance stock price forecasting. The combination leverages the strengths of both models: VECM’s ability to identify long-term equilibrium relationships among economic variables and LSTM’s capacity to capture complex nonlinear patterns in time series data. Empirical results indicate that the hybrid model achieves a 27% reduction in Root Mean Squared Error (RMSE) compared to traditional LSTM applications and a 43% improvement over standalone VECM forecasts. Additionally, the model demonstrates a directional prediction accuracy of 68.7% for significant price movements, highlighting its effectiveness in capturing market dynamics.

The study emphasizes the innovative merging of econometric modeling with deep learning, resulting in a robust framework that not only improves predictive accuracy but also provides meaningful economic interpretations. The framework incorporates a temporal-adaptive attention mechanism to account for market regime changes and dynamic arbitrage opportunities. Statistical validation through paired t-tests and bootstrap confidence intervals confirms the significance of performance improvements. Future research directions include exploring transformer-integrated extensions and meta-learning hyperparameter frameworks to further enhance model performance in quantitative finance applications, particularly in identifying regime-switching behaviors and multifractal market dynamics.

Introduction

The introduction of this research paper highlights the challenges in achieving reliable stock price predictions within quantitative finance, emphasizing the complex interplay of economic fundamentals, investor psychology, geopolitical conditions, and technological shocks. While traditional econometric methods have effectively captured equilibrium relationships, they fall short in addressing the non-linear behaviors crucial for understanding market microstructure. In contrast, modern deep learning frameworks, despite their ability to identify intricate patterns, are often criticized for their lack of interpretability, leading to their limited application in a field that values theoretical grounding.

To address these methodological discrepancies, the study proposes an innovative hybrid model that integrates Vector Error Correction Models (VECM) and Long Short-Term Memory networks (LSTM). The VECM component establishes a robust theoretical foundation for long-run equilibrium relations among cointegrated economic time series, while the LSTM component adeptly manages the complex non-linear dynamics of short-term price movements. This research distinguishes itself by developing a statistically consistent integration framework, moving beyond previous approaches that merely combined econometric outputs with neural networks. The proposed method not only defines VECM as an econometric feature engineering module but also delineates the short-term non-linear dynamics from long-term equilibrium modeling, offering a repeatable assessment methodology that incorporates computational viability and statistical significance testing.

Methods

The methodology section outlines the systematic approach employed in the research to achieve the study’s objectives. It details the experimental design, including the selection of participants, data collection techniques, and analytical methods utilized to interpret the results. The study employed a quantitative approach, utilizing statistical tools to analyze the data collected from various sources, ensuring the reliability and validity of the findings.

Additionally, the section describes the specific instruments and protocols used for measurement, highlighting any relevant mathematical models or equations that underpin the analysis. The methodology emphasizes adherence to ethical standards throughout the research process, ensuring that participant consent and confidentiality were maintained. Overall, the methodological framework is designed to provide a robust basis for the conclusions drawn in the study.

Results

The section on “Implementation and Results” emphasizes the empirical validity of the findings presented in Tables 1 and 2, which reflect the model’s performance based on actual predictions rather than illustrative examples. The results are derived from rigorous model training and out-of-sample assessments, ensuring that the reported metrics accurately represent the model’s capabilities under the defined experimental protocol.

The tables summarize the performance metrics for strictly held-out test intervals, with hyperparameters set prior to testing. The reported values are not adjusted for illustrative purposes, providing a true reflection of the model’s accuracy and performance on unseen data. To maintain fairness in the comparison between benchmarked and proposed models, the results are based on consistent data preprocessing techniques, similar configurations of the rolling window, and uniform evaluation criteria.

Discussion

The discussion section of the research paper outlines a comprehensive theoretical framework for analyzing financial time series, emphasizing the integration of econometric models and deep learning techniques. It begins by addressing the limitations of the Efficient Market Hypothesis (EMH) and highlights the presence of inefficiencies in financial markets, particularly in short time frames, which can be exploited for predictive modeling. The section elaborates on the Vector Error Correction Model (VECM), which is adept at handling cointegrated time series, allowing for the analysis of long-run equilibrium relationships among financial variables while accommodating short-run dynamics. The mathematical formulation of VECM captures both equilibrium and adjustment processes, making it suitable for financial forecasting.

The paper further introduces Long Short-Term Memory (LSTM) networks as a powerful tool for modeling complex temporal dependencies in financial data. LSTMs address the vanishing gradient problem inherent in traditional recurrent neural networks (RNNs) and are particularly effective in capturing both immediate and long-term responses to market events. The proposed hybrid model combines VECM and LSTM, leveraging the strengths of both methodologies. This integration allows for the identification of long-term equilibrium relationships while simultaneously modeling short-term nonlinear fluctuations. The framework ensures statistical compatibility through careful attention to stationarity, normalization, and error propagation, thereby maintaining the integrity of both econometric and deep learning components. Overall, the proposed approach represents a significant advancement in the field of financial forecasting, offering a structured and theoretically sound methodology for empirical applications.