نموذج هجين ARIMA–LSTM محسن باستخدام مُقدّر بارزين هيكلي لشجرة لتعديل المعلمات التلقائي لتوقع بيانات الفلفل والمناخ في إندونيسيا A Hybrid ARIMA–LSTM Model Optimized with a Tree-Structured Parzen Estimator for Automatic Hyperparameter Tuning to Forecast Indonesia’s Chili and Climate Data

شارك:
المجلة: Engineering Technology & Applied Science Research، المجلد: 16، العدد: 3
DOI: https://doi.org/10.48084/etasr.15911
تاريخ النشر: 2026-06-06
المؤلف: Irwan Sembiring وآخرون
الموضوع الرئيسي: طرق التنبؤ بسوق الأسهم

نظرة عامة

تبحث هذه الدراسة في تقلبات أسعار الفلفل الأحمر في إندونيسيا، مقترحة إطار عمل هجين للتنبؤ يجمع بين نماذج المتوسط المتحرك التكاملي الذاتي (ARIMA) ونماذج الذاكرة طويلة وقصيرة المدى (LSTM). تدمج الدراسة متغيرات الطقس، وبشكل خاص هطول الأمطار ومدة أشعة الشمس، وتستخدم مُقدِّر بارزين الهيكلي (TPE) لتحسين المعلمات، مما يعزز من قدرات النموذج التنبؤية مقارنة بالطرق التقليدية مثل البحث الشبكي. تم تقييم النموذج الهجين ARIMA-LSTM على بيانات السلاسل الزمنية من شمال سومطرة، وجاوة الوسطى، وبالي (من مارس 2021 إلى ديسمبر 2023)، حيث حقق النموذج الهجين متوسط نسبة خطأ مطلق (MAPE) قدره 1.45% في التنبؤ بأسعار التجزئة، متفوقًا بشكل كبير على النماذج المستقلة مثل ARIMA (42.74%) وARIMA الموسمي (SARIMA) (32.41%).

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

مقدمة

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

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

النتائج

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

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

المناقشة

في قسم المناقشة من ورقة البحث، يقدم المؤلفون إطار تقييم شامل لنموذجهم الهجين ARIMA-LSTM، الذي تم تحسينه باستخدام مُقدِّر بارزين الهيكلي (TPE). يستخدمون ثلاثة مقاييس خطأ—متوسط الخطأ المطلق (MAE)، ومتوسط الخطأ التربيعي (MSE)، ومتوسط نسبة الخطأ المطلق (MAPE)—لتقييم أداء التنبؤ، مما يضمن تقييمًا متوازنًا من خلال التقاط الأخطاء المعتمدة على المقياس وغير المعتمدة على المقياس. بالإضافة إلى ذلك، يتم استخدام اختبار ديبولد-ماريانو (DM) للتحقق إحصائيًا من أهمية الفروق في الأداء بين النموذج الهجين ونماذج ARIMA المستقلة، مما يعزز من قوة نتائجهم.

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

Journal: Engineering Technology & Applied Science Research, Volume: 16, Issue: 3
DOI: https://doi.org/10.48084/etasr.15911
Publication Date: 2026-06-06
Author(s): Irwan Sembiring et al.
Primary Topic: Stock Market Forecasting Methods

Overview

This research investigates the volatility of red chili pepper prices in Indonesia, proposing a hybrid forecasting framework that combines Autoregressive Integrated Moving Average (ARIMA) and Long Short-Term Memory (LSTM) models. The study integrates weather variables, specifically rainfall and sunshine duration, and employs the Tree-Structured Parzen Estimator (TPE) for hyperparameter optimization, enhancing the model’s predictive capabilities compared to traditional methods like Grid Search. Evaluated on time-series data from North Sumatra, Central Java, and Bali (March 2021 to December 2023), the hybrid ARIMA-LSTM model achieved a Mean Absolute Percentage Error (MAPE) of 1.45% for retail price forecasting, significantly outperforming standalone models such as ARIMA (42.74%) and Seasonal ARIMA (SARIMA) (32.41%).

The findings underscore the effectiveness of the hybrid model in capturing both linear and nonlinear patterns in agricultural data, providing a robust tool for farmers and policymakers to enhance production planning and price stabilization strategies amid climate variability. The study also highlights the importance of data quality, particularly for weather variables, and suggests avenues for future research, including extending datasets and exploring other deep learning architectures like Gated Recurrent Units (GRU) or Transformer models to further improve forecasting accuracy.

Introduction

The introduction of the research paper highlights the critical role of red chili peppers in Indonesia’s agriculture, emphasizing their significance for household consumption and food price stability. However, the volatility of chili prices, driven by factors such as climate variability and seasonal production patterns, complicates agricultural planning and market interventions. To address these challenges, the paper discusses the use of Autoregressive Integrated Moving Average (ARIMA) models, which effectively capture linear dependencies in time-series data related to chili prices, production, and climate variables. Previous studies have demonstrated the efficacy of ARIMA in forecasting these dynamics, although limitations such as manual parameter selection and sensitivity to evaluation metrics have been noted.

To enhance forecasting accuracy and address the nonlinear dynamics inherent in agricultural and climatic data, the study proposes a hybrid forecasting framework that integrates ARIMA with Long Short-Term Memory (LSTM) networks. LSTM networks are adept at learning nonlinear relationships and long-term dependencies, making them suitable for this context. The paper outlines the mathematical formulations of both ARIMA and LSTM models and describes the normalization process employed to prepare the data. The final predictions are derived from a weighted average of the outputs from both models, and the forecasting performance is evaluated using multiple error metrics, including Mean Absolute Error (MAE), Mean Squared Error (MSE), and Mean Absolute Percentage Error (MAPE). This hybrid approach aims to improve the robustness and generalizability of forecasts in the face of complex agricultural dynamics.

Results

The analytical results demonstrate that the integration of robust preprocessing, TPE-based hyperparameter tuning, and a hybrid ARIMA-LSTM modeling approach significantly enhances forecasting accuracy for chili price, production, rainfall, and sunshine duration. The ARIMA component effectively captures linear patterns, while the LSTM component addresses nonlinear and long-term dependencies, leading to reduced forecasting errors. Notably, weather variables, especially rainfall and sunshine duration, are critical in influencing production and price dynamics. However, the model’s effectiveness is contingent upon data quality, particularly for volatile weather data, and the granularity of production data. While the hybrid model performs well in the studied provinces, its applicability to other regions or commodities may vary due to differing climatic and market conditions.

The results indicate that the hybrid model closely tracks observed values for retail price and production, reflecting its capability to capture market dynamics and seasonal production cycles essential for supply planning and price stabilization. The dominance of the LSTM component suggests that nonlinear temporal patterns, such as demand shocks, are significant in shaping outcomes. Confidence intervals reveal that narrower bands for price and sunshine duration indicate lower uncertainty, making them suitable for short-term planning, whereas wider intervals for production and rainfall highlight increased uncertainty due to volatile climatic conditions. The findings underscore the importance of interpreting forecasts through both point predictions and confidence intervals, providing a comprehensive perspective on accuracy and uncertainty in agricultural forecasting.

Discussion

In the discussion section of the research paper, the authors present a comprehensive evaluation framework for their hybrid ARIMA-LSTM model, optimized using the Tree-structured Parzen Estimator (TPE). They utilize three error metrics—Mean Absolute Error (MAE), Mean Squared Error (MSE), and Mean Absolute Percentage Error (MAPE)—to assess forecasting performance, ensuring a balanced evaluation by capturing both scale-dependent and scale-independent errors. Additionally, the Diebold-Mariano (DM) test is employed to statistically validate the significance of performance differences between the hybrid model and standalone ARIMA models, reinforcing the robustness of their findings.

The study’s key contributions include the development of an automated hyperparameter optimization pipeline via TPE, which enhances computational efficiency and reduces manual intervention. The hybrid ARIMA-LSTM framework integrates the strengths of linear statistical modeling and nonlinear deep learning, effectively addressing the complexities of agricultural and climatic time series data. Empirical evaluations across multiple Indonesian provinces demonstrate the model’s scalability and practical applicability, particularly in forecasting red chili prices and production volumes influenced by climate variability. Overall, the research highlights the effectiveness of the hybrid approach in capturing both linear and nonlinear dynamics, thereby improving predictive accuracy compared to traditional methods.