Acessibilidade / Reportar erro

Spectral temporal graph neural network for multivariate agricultural price forecasting

Rede neural de gráfico temporal espectral para previsão de preços agrícolas multivariados

ABSTRACT:

Multivariate time series forecasting has an important role in many real-world domains. Especially, price prediction has always been on the focus of researchers. Yet, it is a challenging task that requires the capturing of intra-series and inter-series correlations. Most of the models in literature focus only on the correlation in temporal domain. In this paper, we have curated a new dataset from the official website of Turkish Ministry of Commerce. The dataset consists of daily prices and trade volume of vegetables and covers 1791 days between January 1, 2018 and November 26, 2022. A Spectral Temporal Graph Neural Network (StemGNN) is employed on the curated dataset and the results are given in comparison to Convolutional neural networks (CNN), Long short-term memory (LSTM) and Random Forest models. GNN architecture achieved a state-of-the-art result such as mean absolute error (MAE): 1,37 and root mean squared error (RMSE): 1.94). To our knowledge, this is one of the few studies that investigates GNN for time series analysis and the first study in architecture field.

Key words:
Temporal GNN; time series; CNN; LSTM; forecasts

RESUMO:

A previsão multivariada de séries temporais tem um papel importante em muitos domínios do mundo real. Especialmente, a previsão de preços sempre esteve no foco dos pesquisadores. No entanto, é uma tarefa desafiadora que requer a captura de correlações intra-séries e inter-séries. A maioria dos modelos na literatura foca apenas a correlação no domínio temporal. Neste artigo, selecionamos um novo conjunto de dados do site oficial do Ministério do Comércio Turco. O conjunto de dados consiste em preços diários e volume comercial de vegetais e abrange 1.791 dias entre 1º de janeiro de 2018 e 26 de novembro de 2022. Uma Rede Neural de Gráfico Temporal Espectral é empregada no conjunto de dados curado e os resultados são fornecidos em comparação com CNN, LSTM e Modelos de Floresta Aleatória. A arquitetura GNN alcançou um resultado de ponta (MAE: 1,37, RMSE: 1,94). Até onde sabemos, este é um dos poucos estudos que investiga GNN para análise de séries temporais e o primeiro estudo na área de arquitetura.

Palavras-chave:
Temporal GNN; séries temporais; CNN; LSTM; previsões

INTRODUCTION:

Agricultural production is highly affected by natural conditions due to its general characteristics. As a natural consequence of this situation, farmers are faced with risks and uncertainties in the production process (GIRDŽIŪTĖ, 2012GIRDŽIŪTĖ, L. Risks in agriculture and opportunities of their integrated evaluation. Procedia-Social and Behavioral Sciences, v.62, p.783-790, 2012. Available from: <Available from: https://doi.org/10.1016/j.sbspro.2012.09.132 >. Accessed: Dec. 08, 2022. doi: 10.1016/j.sbspro.2012.09.132.
https://doi.org/10.1016/j.sbspro.2012.09...
). In particular, adverse climatic conditions, diseases, pests and price uncertainties affect production negatively (DONG, 2021DONG, L. Toward resilient agriculture value chains: challenges and opportunities. Production and Operations Management, v.30, n.3, p.666-675, 2021. Available from: <Available from: https://doi.org/10.1111/poms.13308 >. Accessed: Dec 08, 2022. doi: 10.1111/poms.13308.
https://doi.org/10.1111/poms.13308...
).

In Turkey, farmers are faced with significant price uncertainties due to the small scale of agricultural enterprises, insufficient production planning and the lack of effective marketing organizations. For this reason, farmers usually take into account the prices of the previous year when making production decisions (KIZILTIĞ & DAĞISTAN, 2021KIZILTUĞ, T.; DAĞISTAN, E. Marketing Support of Small Family Businesses in The Agricultural Sector in Turkey on a Confidence Game. Turkish Journal of Agriculture-Food Science and Technology, v.9, n.1, p.98-105, 2021. Available from: <Available from: https://doi.org/ 10.24925/turjaf.v9i1.98-105.3735 >. Accessed: Dec. 08, 2022. doi: 10.24925/turjaf.v9i1.98-105.3735.
https://doi.org/ 10.24925/turjaf.v9i1.98...
). This situation creates fluctuations in the amount of production and prices in agricultural product markets. As a result, product supply is the main factor that determines the market equilibrium of products (PIOT-LEPETIT & M’BAREK, 2011PIOT-LEPETIT, I., M’BAREK, R. Methods to analyse agricultural commodity price volatility. Methods to Analyse Agricultural Commodity Price Volatility, p.1-11, 2011. Available from: <Available from: https://doi.org/10.1007/978-1-4419-7634-5_1 >. Accessed: Dec. 08, 2022. doi: 10.1007/978-1-4419-7634-5_1.
https://doi.org/10.1007/978-1-4419-7634-...
). This situation, which is called the Spider Web Theorem (Cobweb) in the economics literature, is frequently experienced in agricultural production (RAMADHANI et al., 2020RAMADHANI, F. et al. Forecasting of Paddy Grain and Rice’s Price: An ARIMA (Autoregressive Integrated Moving Average) Model Application. SOCA: Jurnal Sosial, Ekonomi Pertanian. v.14, n.2, p.224-239, 2020. Available from: <Available from: https://doi.org/10.24843/SOCA.2020.v14.i02.p04 >. Accessed: Dec. 08, 2022. doi: 10.24843/SOCA.2020.v14.i02.p04.
https://doi.org/10.24843/SOCA.2020.v14.i...
). A certain time must pass between the decision and the production of products. In the face of changes in product demand during this time, farmers cannot immediately increase their product supply. As a result, large fluctuations arise between the amount of product and its prices (XIE & WANG, 2017XIE, H.; WANG, B. An empirical analysis of the impact of agricultural product price fluctuations on China’s grain yield. Sustainability, v9, n.6, p.906, 2007. Available from: <Available from: https://doi.org/10.3390/su9060906 >. Accessed: Dec. 08, 2022. doi: 10.3390/su9060906.
https://doi.org/10.3390/su9060906...
).

As commodity prices affect global economic activity, accurate forecasting of commodity prices has become a very important issue for producers, intermediaries, exporting and importing countries (DUARTE et al., 2021DUARTE, A. M. A. et al. Commodity prices and global economic activity: a derived-demand approach. Energy Economics, v.96, n.105120, 2021. Available from: <Available from: https://doi.org/10.1016/j.eneco.2021.105120 >. Accessed: Dec 08, 2022. doi: 10.1016/j.eneco.2021.105120.
https://doi.org/10.1016/j.eneco.2021.105...
). Commodities continue to be an important source of export revenue in most countries, particularly in developing countries, and commodity price movements have a major impact on overall macroeconomic performance (ZAFAR, 2007ZAFAR, A. The growing relationship between China and Sub-Saharan Africa: Macroeconomic, trade, investment, and aid links. The World Bank Research Observer, v.22, n.1, p.103-130, 2007. Available from: <Available from: https://doi.org/10.1093/wbro/lkm001 >. Accessed: Dec. 08, 2022. doi: 10.1093/wbro/lkm001.
https://doi.org/10.1093/wbro/lkm001...
). Volatility and unexpected changes in agricultural commodity prices directly affect our daily lives. Fluctuations in agricultural commodity prices affect supply and demand; therefore, accurate estimation of prices helps to assess and protect the risks arising from price fluctuations (GU et al., 2022GU, Y. H. et al. Forecasting agricultural commodity prices using dual input attention LSTM. Agriculture, v.12, n.2, 256, p.1-18, 2022. Available from: <Available from: https://doi.org/10.3390/agriculture12020256 >. Accessed: Dec. 08, 2022. doi: 10.3390/agriculture12020256.
https://doi.org/10.3390/agriculture12020...
).

Time series analyzes are successfully applied in estimating the possible future value based on historical data. It is used in various fields such as traffic density estimating (BHATIA et al., 2020BHATIA, J. et al. SDN-based real-time urban traffic analysis in VANET environment. Computer Communications, v.149, p.162-175, 2020. Available from: <Available from: https://doi.org/10.1016/j.comcom.2019.10.011 >, Accessed: Dec 08, 2022. doi: 10.1016/j.comcom.2019.10.011.
https://doi.org/10.1016/j.comcom.2019.10...
), air pollution predicting (WEN et al., 2019WEN, C. et al. A novel spatiotemporal convolutional long short-term neural network for air pollution prediction. Science of the Total Environment, v.654, p.1091-1099, 2019. Available from: <Available from: https://doi.org/10.1016/j.scitotenv.2018.11.086 >. Accessed: Dec. 08, 2022. doi: 10.1016/j.scitotenv.2018.11.086.
https://doi.org/10.1016/j.scitotenv.2018...
), supply chain management (ZHU et al., 2021ZHU, X. et al. Demand forecasting with supply‐chain information and machine learning: Evidence in the pharmaceutical industry. Production and Operations Management, v.30, n.9, p3231-3252, 2021. Available from: <Available from: https://doi.org/10.1111/poms.13426 >. Accessed: Dec. 08, 2022. doi: 10.1111/poms.13426.
https://doi.org/10.1111/poms.13426...
) and financial investment (LIVIERIS et al., 2020LIVIERIS, I. E. et al. A CNN-LSTM model for gold price time-series forecasting. Neural Computing and Applications, v.3, n.23, p.17351-17360, 2020. Available from: <Available from: https://doi.org/10.1007/s00521-020-04867-x >. Accessed: Dec. 08, 2022. doi: 10.1007/s00521-020-04867-x.
https://doi.org/10.1007/s00521-020-04867...
). If the future development of events or metrics can be accurately predicted, it helps people make important decisions. From this point of view, being able to predict the prices of agricultural products can be used to the benefit of all stakeholders in this field. Making consistent predictions based on historical datasets is a difficult task as it requires modeling both intra-series temporal models and inter-series correlations together. Multivariate time series with multi step and multiple outputs are quite difficult analyze. Conventional statistical analysis like ARIMA, SARIMAX have certain drawbacks in capturing inter series correlations and producing multiple outputs. New perspectives have been employed to solve this problem thanks to the rise of deep learning algorithms. LSTM and CNN are among the mostly researched neural network models in this respect. LSTM model’s architectural designs enable it to effectively predict sequence pattern information. CNN model enables filtering input data noise and extract more valuable features that will be more beneficial for the final prediction model (CASADO-VARA et al., 2021CASADO-VARA, R. et al. Web traffic time series forecasting using LSTM neural networks with distributed asynchronous training. Mathematics, v.9, n.4, p.1-21, 2021. Available from: <Available from: https://doi.org/10.3390/math9040421 >. Accessed: Dec 08, 2022. doi: 10.3390/math9040421.
https://doi.org/10.3390/math9040421...
). While LSTM networks are designed to handle temporal correlations, they only use the features that are present in the training set, unlike standard CNNs, which are well suited to handle spatial autocorrelation data but are typically not adapted to correctly manage complex and long temporal dependencies (BENGIO et al., 2013BENGIO, Y. et al. Representation learning: a review and new perspectives. IEEE Transactions on Pattern Analysis and Machine Intelligence, v.35, n.8, p.1798-1828, 2013. Available from: <Available from: https://doi.org/10.1109/TPAMI.2013.50 >. Accessed: Dec. 08, 2022. doi: 10.1109/TPAMI.2013.50.
https://doi.org/10.1109/TPAMI.2013.50...
).

Graph Neural Network has been the hot research topic in the recent years. It handles input data in graph structure and has been mostly employed in computer vision tasks and social network analysis. There are only few studies in literature that investigate the Graph Neural Networks for time series analysis. And, to our knowledge, it has not been previously applied on price prediction especially in agricultural domain.

In this paper, we curated a new dataset for time series analysis through manually scraping daily market prices and trade volumes of vegetables from the official market website of Turkish Ministry of Commerce (www.hal.gov.tr). A quite new Spectral Temporal Graph Neural Network (StemGNN) has been employed on the dataset which requires multivariate input, multi-step and multiple output time series analysis. Results are compared with CNN, LSTM and RandomForest models. Accordingly, Graph Neural Network achieved state-of-the-art results in all analysis. The main contribution of the paper is that a new time series dataset is publicly presented for the use of scientific research. Another important contribution of the study is that, to authors knowledge, this is the first study that employs Graph Neural Network on Agricultural Time Series analysis. Results of the study indicated the potential of GNN architectures in time series analysis.

Related works

The development of machine learning and deep learning approaches for forecasting price and commodity movements has grown in favor among scientists and business people over the past ten years. These techniques produced some insightful results and findings regarding price behavior. In order to accurately forecast gold prices and movements, LIVIERIS et al. (2020LIVIERIS, I. E. et al. A CNN-LSTM model for gold price time-series forecasting. Neural Computing and Applications, v.3, n.23, p.17351-17360, 2020. Available from: <Available from: https://doi.org/10.1007/s00521-020-04867-x >. Accessed: Dec. 08, 2022. doi: 10.1007/s00521-020-04867-x.
https://doi.org/10.1007/s00521-020-04867...
) used CNN and LSTM models. The suggested CNN-LSTM models in two iterations were contrasted with two convolutional layers of cutting-edge deep learning algorithms, each with a different number of filters. In addressing regression-based issues, the CNN model had the lowest MAE and RMSE values and provided the most precise prediction outcomes. The LSTM model, on the other hand, performed better than the conventional time series models in predicting changes in the price of gold.

A multimodal graph neural network (MAGNN) was used by CHENG et al. (2022) to predict financial time series of equities. By employing a two-stage attention mechanism, it was made sure that the final beneficiaries carefully consider the value of internal modality and intermodal resources in order for this way to be properly interpreted. Experiments with real-world datasets have demonstrated that MAGNN is particularly effective in forecasting the financial markets. Investors now find it simpler to make more lucrative investments as a result.

GOPALI et al. (2021GOPALI, S. et al. A Comparative Study of Detecting Anomalies in Time Series Data Using LSTM and TCN Models. Arxiv Preprint Arxiv: 2112.09293, 2021. Available from: <Available from: https://doi.org/10.48550/arXiv.2112.09293 >. Accessed: Dec. 08, 2022. doi: 10.48550/arXiv.2112.09293.
https://doi.org/10.48550/arXiv.2112.0929...
) compared LSTM based on recurrent neural networks (RNN) and Temporal Convolutional Networks (TCN) based on CNN models, and their performance and training times are presented. Their experimental findings show that both modeling approaches perform similarly, with TCN-based models marginally outperforming LSTM. Additionally, compared to RNN-based LSTM models, the CNN-based TCN model constructs a stable model more quickly.

Research utilizing deep learning for time series prediction were described in detail by LARA-BENITEZ et al. (2021). Seven distinct deep learning models’ utility levels were contrasted. The LSTM and CNN models offered the most precise estimations out of the seven models that were tested. With equivalent performance and less result variability under various parameter setups, CNNs are more effective.

MATERIALS AND METHODS:

In this paper, a new dataset has been manually curated from the official site of Marketplace Registration System, which is a state website maintained by Ministry of Commerce of Turkey. The dataset contains daily price and trading volume of green pepper, tomato, pumpkin and cucumber (all conventional products). The dataset covers the period between January 1, 2018 and November 26, 2022, which sums up to 1791 days. The curated dataset and codes of the applied models are shared in the Github repository (https://github.com/cevher/Time-Series-Analysis).

The dataset used in this paper consists of multivariate time series and the problem we try to solve requires the determination of intra-series and inter-series correlations simultaneously in order to forecast multiple target timeseries as outcome. In order to achieve this purpose, dataset is formulated as multivariate temporal graph.

G = X , X - , Y , Y - , Z , Z - , H , H , - W . X , X - , Y , Y - , Z , Z - , H , H , - = X i t , X - i t , Y i t , Y - i t , Z i t , Z - i t , H i t , H - i t R N x T

N is the number of time series (nodes), T is the number of timestamps, x t , y t , z t , h t are the observed prices and x-t,y-t,z-t,h-tare the trade volumes of 4 variables at timestamp t, w, is the adjacency matrix where w ij > 0 indicates the presence and strength of an edge between i and j. Given the previous K timestamps of the observed variables, the task is to forecast future node values.

Statistical methods such as ARIMA, SARIMA, ARIMAX and SARIMAX fall short in producing multiple target forecasting. Various machine learning and deep learning methods are being researched in literature for this problem type. CNN, LSTM and RNN based deep learning methods have been used on various time series studies in literature. We have employed Random Forest, CNN and LSTM models on our dataset in order to provide a benchmark. One of the latest hot topic in literature is Graph Neural Networks, which handles input data in Graph structure. Graph Neural Networks (GNNs) are a type of neural network that can process graph-structured data. They have been widely used in various applications such as social network analysis, recommendation systems, and computer vision. In recent years, there has been growing interest in using GNNs for time series analysis, particularly for modeling temporal dependencies in graph-structured data.The basic idea behind using GNNs for time series analysis is to represent the temporal dependencies between different nodes in a graph as edge weights. This allows the GNN to learn how the time series evolves over time by propagating information through the graph. One approach to achieve this is to use a Graph Convolutional Network (GCN) architecture with a temporal convolutional layer, which allows the network to capture the temporal dependencies in the graph.

The overall structure of StemGNN is given in figure 1. The original paper is proposed by the researchers in Microsoft and gives more detailed information about the network (CAO et al, 2020CAO, D. et al. Spectral temporal graph neural network for multivariate time-series forecasting. Advances in Neural Information Processing Systems, v.33, p.17766-17778, 2020. Available from: <Available from: https://proceedings.neurips.cc/paper/2020/file/cdf6581cb7aca4b7e19ef136c6e601a5-Paper.pdf >. Accessed: Dec. 08, 2022. doi: 10.48550/arXiv.2103.07719.
https://proceedings.neurips.cc/paper/202...
). However, we briefly emphasize the core points and mechanism of the network. The model structure starts with a latent correlation layer, which takes multivariate time-series input and produces associated weight matrix. Next, the graph data obtained from the latent correlation layer is given as input to StemGNN layer that consists of two residual StemGNN blocks. StemGNN blocks models the structural and temporal dependencies among multivariate time series jointly in spectral domain. The sequence of operations in this block is as follows: first a Graph Furrier Transform operator transforms the graph data into a spectral matrix in which univariate time series for each node becomes linearly independent. A discrete furrier transformation is applied to each univariate time series and produces frequency domain. In this domain, each independent layer is fed into 1D convolution and Gated Linear Units (GLU) captures the feature patterns before transforming data back into the time domain through inverse discrete furrier transformation. Then, graph convolution is applied on the produced spectral matrix and inverse graph furrier transformation is performed. Following the StemGNN blocks, an output layer consisting of GLU and fully connected layers produces two types of outputs, which are forecast Yi and outputs Xiˇ to backstage for increasing the representation of multivariate time series input during training. Time stamps inputs are fed in sliding window and rolling strategy is employed for multi-step forecasting.

Figure 1
Structure of the Spectral Temporal Graph Neural Network.

We have employed a simple CNN architecture to forecast multi target outputs in this paper. The model consists of Conv1D (kernel size=2), MaxPooling1D (pool_size=2), Conv1D (kernel_size=3), MaxPooling1D, Flatten, Dense (activation=ReLU), Dense (output layer) with adam optimizer and ‘mse’ loss function. We have trained the network with 200 epochs.

The LSTM model has a simple architecture as well. It consists of LSTM and Dense layers with adam optimizer and ‘mse’ loss function. We similarly trained the model for 200 epochs.

RESULTS:

The dataset contains daily prices and trade volumes of four vegetables that are major vegetable products cultivated in Turkey. The dataset covers a total of 1791 days between January 1, 2018 and November 26, 2022 and has no missing value. Prices and volumes are standardized by min-max scaler for eliminating any possible bias. Only a few outlier values are detected and cleansed from the dataset. First difference of the dataset provided non-stationarity. The dataset before and after taking first difference is shown in figure 2. Then, data is preprocessed into 28 days of 8 columns as input with a utility function. Dataset is separated into 90% training (1612 days) and 10% test sets (179 days). All models are evaluated for 5 days and 10 days multistep forecasts for 4 price outputs.

Figure 2
Before and after pre-processing data.

The evaluation is performed on a computer with Intel(R) Core(TM) i7-7500U CPU, 2.70GHz. Mean Absolute Error (MAE), Root Mean Square Error (RMSA) and Mean Absolute Percentage Error (MAPE) metrics are used to evaluate performances.

xi,yi → actual and target count of grains for ith image; N = number of image:

MAE= ixi-yiN(3)

RMSE= i(xi-yi)2N(4)

The most popular metrics for evaluating accuracy for continuous variables are MAE and RMSE. Both metrics are indifferent to the direction of error and can range between 0 and ∞. The lower scores mean better prediction.

The evaluation results the models are summarized in table 1. StemGNN outperformed all other models with state-of-the-art results for both multistep forecast periods. StemGNN does not require prior knowledge of data topology and the results demonstrate the feasibility of automatic learning of latent correlations within time series. The drawback of other models is that they cannot establish the correlations among multiple-time series explicitly, which limits their performance on multivariate and multi target time series predictions. The results are quite persuasive that data-driven latent correlation layer works better than human defined priors. Similar findings have been reported on traffic prediction, Electricity Consumption prediction and covid-19 case prediction studies. This paper supports these findings and broadens the efficacy of latent layer on agricultural price prediction.

Table 1
Forecasting results for 5 days and 10 days.

DISCUSSION:

This paper investigates the applicability of the latest research hot-topic Graph Neural Networks on agricultural price prediction tasks. Spectral Temporal Graph Neural Network is used for this purpose on a manually collected datasets that consist of multiple inputs and targets. The results of the StemGNN has been tested and compared against the CNN, RandomForest and LSTM models commonly used in literature for solving the same problem type. StemGNN outperformed all other models with both 5 days and 10 days future forecasts. The results demonstrated the efficacy of latent correlation layers included before the StemGNN blocks. This layer enables the capture of both inter series and intra series correlations effectively. There is no study in literature that employs Temporal Graph Neural Network on agricultural price forecast. Therefore, we will give its application on other domains for discussion purposes. CAO et al. (2020CAO, D. et al. Spectral temporal graph neural network for multivariate time-series forecasting. Advances in Neural Information Processing Systems, v.33, p.17766-17778, 2020. Available from: <Available from: https://proceedings.neurips.cc/paper/2020/file/cdf6581cb7aca4b7e19ef136c6e601a5-Paper.pdf >. Accessed: Dec. 08, 2022. doi: 10.48550/arXiv.2103.07719.
https://proceedings.neurips.cc/paper/202...
), a research team in Microsoft, proposed StemGNN model for time series predictions. In their study, they tested the performance of StemGNN against various other models like Fully Connected Neural Network, LSTM and CNN. As a result of their experiments, the researchers emphasized the obvious superiority of the StemGNN model over other models for 7-14 and 28-day predictions. YANG et al (2021YANG, H. et al. Approach and Landing Safety Early Warning Based on Spectral Temporal Graph Neural Network. In: ISCTT 2021; 6th International Conference on Information Science, Computer Technology and Transportation. p.1-7, 2021. Available from: <Available from: https://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=9738958 >. Accessed: Dec. 08, 2022.
https://ieeexplore.ieee.org/stamp/stamp....
) applied the StemGNN architecture to contribute safer flights in the field of civil aviation by processing The Quick Access Recorder (QAR) data with time series predictions. The main purpose of the model is to effectively extract the inter-series correlation and increase the accuracy of accident warning predictions. As a result of their experiments, the authors stated that the StemGNN model gave better results than LSTM and CNNLSTM and that this model could be used easily in civil aviation. In order to do combined orbital sequence modeling and spatial graph convolution modeling in the frequency domain, CAO et al. (2021) CAO, D. et al. Spectral temporal graph neural network for trajectory prediction. In 2021 IEEE International Conference on Robotics and Automation (ICRA), p.1839-1845, 2021. Available from: <Available from: https://doi.org/10.1109/ICRA48506.2021.9561461 >. Accessed: Dec. 08, 2022. doi: 10.1109/ICRA48506.2021.9561461.
https://doi.org/10.1109/ICRA48506.2021.9...
suggested SpecTGNN. A tailored version of StemGNN, in order to improve how well embedded orbital data may be used to leverage long-term temporal dependence. The usefulness of the SpecTGNN in predicting pedestrian and vehicle trajectory has been established as a consequence of the comparison of these two models. These findings are consistent with the findings in our study. Based on previous energy usage, KIM & CHO (2019KIM, T. Y.; CHO, S. B. Predicting residential energy consumption using CNN-LSTM neural networks. Energy, v.182, p.72-81, 2019. Available from: <Available from: https://doi.org/10.1016/j.energy.2019.05.230 >. Accessed: Mar. 25, 2023. doi: 10.1016/j.energy.2019.05.230.
https://doi.org/10.1016/j.energy.2019.05...
) predicted residential energy consumption using a CNN-LSTM neural network. The CNNLSTM algorithm, which combines convolutional neural network (CNN) and long short-term memory (LSTM), was able to forecast the intricate characteristics of energy consumed in households, according to the experimental findings. The LSTM layer was able to model temporal information regarding the irregular trends in the time series components, while the CNN layer determined the characteristics of various factors influencing energy consumption. A group solar radiation neural network was reportedly suggested by JIAO et al. (2021JIAO, X. et al. A graph neural network based deep learning predictor for spatio-temporal group solar irradiance forecasting. IEEE Transactions on Industrial Informatics, v.18, n.9, p.6142-6149, 2021. Available from: <Available from: https://doi.org/10.1109/TII.2021.3133289 >. Accessed: Mar. 25, 2023. doi: 10.1109/TII.2021.3133289.
https://doi.org/10.1109/TII.2021.3133289...
) to estimate solar radiation. In the research, CNN architecture was used to test data obtained from the US National Renewable Energy Laboratory. In comparison to other estimation techniques, the experimental results indicated that the CNN architecture would have the best accuracy for estimating solar radiation. ENGEN et al. (2021ENGEN, M. et al.. Farm-scale crop yield prediction from multi-temporal data using deep hybrid neural networks. Agronomy, v.11, n.12, p.2576, 2021. Available from: <Available from: https://doi.org/10.34133/2022/9757948 >. Accessed: Mar. 24, 2023. doi: 10.34133/2022/9757948.
https://doi.org/10.34133/2022/9757948...
) employed deep learning methods in order to produce a sizable, reusable dataset of farm-scale agricultural yield production that could serve as farm-scale ground truth prediction targets. In order to estimate efficiency, the study compared the results using the DNN, CNN-RNN, and LSTM architectures. The LSTM algorithm produced the best outcomes among the three artificial algorithms in terms of accuracy. In order to forecast wheat yield, SUN et al. (2022SUN, Z. et al. Simultaneous prediction of wheat yield and grain protein content using multitask deep learning from time-series proximal sensing. Plant Phenomics, 2022. Available from: <Available from: https://doi.org/10.34133/2022/9757948 >. Accessed: March 24, 2023. doi: 10.34133/2022/9757948.
https://doi.org/10.34133/2022/9757948...
) systematically compared various deep learning models in terms of data fusion, time series feature extraction, and multitasking learning. With R2 values of 0.817 and 0.809, experimental findings demonstrated that time series data aggregation greatly increased the accuracy of wheat yield prediction. Deep learning techniques can be used today in many areas to forecast the future with high accuracy, according to studies in the literature. Especially the LSTM architecture that we used in our study produces effective outcomes. Additionally, we believed that this architecture can be effectively applied to forecast future agricultural product prices. Future studies could investigate the effectiveness of the Temporal Graph Neural Networks with latent correlation layer on different time series analysis fields such as stock price, supply-demand predictions and oil price scenarios.

ACKNOWLEDGEMENTS

The study was not supported by any institution or project. All processes were carried out by the authors on their own initiative.

REFERENCES

  • CR-2022-0677.R1

Edited by

Editors: Leandro Souza da Silva (0000-0002-1636-6643) Silviu Beciu (0000-0002-1722-8664)

Publication Dates

  • Publication in this collection
    03 July 2023
  • Date of issue
    2024

History

  • Received
    14 Dec 2022
  • Accepted
    21 Apr 2023
  • Reviewed
    25 May 2023
Universidade Federal de Santa Maria Universidade Federal de Santa Maria, Centro de Ciências Rurais , 97105-900 Santa Maria RS Brazil , Tel.: +55 55 3220-8698 , Fax: +55 55 3220-8695 - Santa Maria - RS - Brazil
E-mail: cienciarural@mail.ufsm.br