Skip to main content
Scientific Reports logoLink to Scientific Reports
. 2022 Dec 16;12:21787. doi: 10.1038/s41598-022-26449-8

A robust and resilience machine learning for forecasting agri-food production

Reza Lotfi 1,2,✉, Amin Gholamrezaei 3, Marta Kadłubek 4, Mohamad Afshar 5, Sadia Samar Ali 6, Kiana Kheiri 7
PMCID: PMC9756930  PMID: 36526681

Abstract

This research proposes a new framework for agri-food capacity production by considering resiliency and robustness and paying attention to disruption and risk for the first time. It is applied robust stochastic optimization by adding robustness to the constraint's objective function and resiliency situation. This research minimizes the mean absolute deviation and coefficient of standard deviation errors by linear function in the agri-food capacity production. This study suggests agri-food managers and decision-makers use this mathematical method to forecast and improve production management. The results of this research lead to better decision-making and are compared with other sine functions. The main model's Robust and Resiliency Mean Absolute Deviation (RRMAD) value is 1.28% lower than other sine-type functions. The conservativity coefficient, confidence level, weight factor, resiliency coefficient, and probability of the scenario vary. The main model's RRMAD value is 1.28% lower than other sine-type functions. Growing the weight factor will result in an increase in RRMAD and a smooth decline in R-squared. Additionally, as the resilience coefficient rises, the RRMAD function increases while the R-squared declines. By altering the probability of the scenario, the RRMAD function drops, and the R-squared goes up.

Subject terms: Applied mathematics, Computational science

Introduction

Forecasting the amount of production is a critical factor for business life1–3. In addition, predicting the production volume can manage production capacity and tackle disruptions like COVID-19, natural disasters, and man-made carefully4,5.

Regarding the complex situation in Iran (including COVID-19, natural disasters, and natural man-made), this issue causes the supply of the material to have a problem for production. As a result, the production number decreases, and many unsatisfied demands exist in the supply chain6,7. Eventually, researchers need to predict production by considering the complex situation to help all supply chains to decrease costs and move toward producing without disruption and estimate the actual situation8,9.

The literature review applies tools and methods to forecast data11,12. Machine learning (ML) is a cutting-edge methodology rapidly gaining popularity. This study plan to use ML tools to predict the total agri-food production in Iran (cf. Fig. 1). These tools help supply chain managers and government policymakers forecast production capacity and demand13. In this investigation want to use a new robust regression approach to tackle uncertainty and generate a suitable model to predict the volume of production in the country until policymakers manage the hard situation.

Figure 1.

Figure 1

Agri-food production10.

Accordingly, the main contributions of this research are given as follows:

  • A new Robust and Resilience ML (RRML) approach,

  • Projecting production by using a new robust regression approach,

  • Considering hard and complex conditions for predicting resilience against disruption.

The remaining sections are organized as follows. In Section "Survey on related work", various models for complex events are analyzed. Section "Problem description" explains the problem and develops the proposed regression-based robust optimization model. The actual case study and computational results are presented in Section "Results and discussion". Managerial insights and practical implications of the study are discussed in Section "Managerial insights and practical implications", and finally, Section "Conclusions and outlook" concludes the main achievements and limitations and provides a helpful outlook for the research.

Survey on related work

Numerous methods are used in the literature review to forecast the volume of production and demand. Every tool has advantages and disadvantages. Before finding the best solution, researchers should carefully choose the best model to predict. After reviewing and surveying the ML approach, there is no paper to contribute to the RRML. As a result, this study is likely the first to examine RRML. However, using ML for forecasting has been the subject of extensive research. As a result, the following are looked to model types:

Simple model

This section examines the simple model for forecasting using ML. Simple models only utilize one method to predict and show trends. Kantasa-Ard, Nouiri14 utilized ML for demand forecasting on the physical internet. They embedded this model in agricultural products in Thailand. They used a Long Short-Term Memory (LSTM) with a hybrid Genetic Algorithm (GA) and Scatter Search (SS) to tune the parameters of the LSTM. Pereira and Cerqueira15 applied ML regression methods for forecasting hotel demand to manage revenue. They employed 22 methods for determining short-term demand forecasting with a 14-day lead time. They proposed Arbitrating ML as a meta-learning approach by combining the dynamic ensemble method. They found that using the ML method decreased the mean square error by 54%.

Kohli, Godwin16 applied a linear and KNN regression for forecasting sales. Using this method, they can predict sales and plan for resilience against disruption and fluctuation. Ali et al.17 measure green supply chain management's environmental and sustainable impact by using manufacturing organization survey data. The authors developed a sustainability framework using machine learning-based CHAID analysis to reduce environmental damage and improve the organization's business performance. However, they used the PLS-SEM package with 380 data responses from various manufacturers. Item Response Theory post hoc analysis is used to confirm the scope and effectiveness of the measurement model after additional robustness of the proposed model is validated using various ML (machine learning) techniques18.

Papacharalampous and Langousis19 presented Quantile Regression Algorithms (QRA) for water demand forecasting. They used probabilistic thinking to cope with uncertainty and compared the method with quantile regression, linear boosting, generalized random forest, gradient boosting machine, and quantile regression neural network algorithms. In addition, They applied this model to urban water flow.

BV and Dakshayini20 applied machine learning tools to the project market, used Multiple Linear Regression (MLR) and an ANN model, and attempted to forecast demand in agriculture. They found the proposed helpful model reliable and quiet for planning and producing agri-food. Baryannis, Dani21 surveyed supply chain risks and presented the ML approach to predict supply chain risks. They establish to define a trade-off between performance and interpretability. They used Data-Driven Artificial Intelligence (AI) techniques to estimate supply chain risks. Lotfi, Kheiri22 developed a novel approach based on robust regression to predict the number of patients with COVID-19 in Iran. They utilized robust convex optimization and Mean Absolute Deviation (MAD) to forecasting patients of COVID-19. They compared the model with the well-known model and showed that the new model's performance was better than the previous model.

Hybrid model

This section describes the hybrid model for forecasting in the ML approach. The hybrid model applies several methods to predict and show trends. The results show that the hybrid model is usually more efficient than the simple model. Carbonneau, Laframboise23 suggested using ML techniques for supply chain demand forecasting. They proposed Neural Networks (NN), Recurrent Neural Networks (RNN), and Support Vector Machines (SVM) for predicting demand in the supply chain. Fradinata, Kesuma24 used a Support Vector Regression (SVR) and Adaptive Neuro-Fuzzy (ANFIS) to measure the Bullwhip Effect (BE) in the supply chain. They used the model described above to reduce the impact of the bullwhip effect and discovered that ANFIS performed better than SVR in terms of Mean Square Error (MSE) and Bias Error (BE).

Al-Musaylh, Deo25 reviewed multiple-horizon forecasting for electricity demand. They implemented a novel strategy for Queensland, Australia that involved combining a two-phase Particle Swarm Optimized SVR (PSOSVR) hybrid model with enhanced empirical mode decomposition and adaptive noise.

For demand forecasting at the retail stage for a few vegetables, Priyadarshi, Panigrahi26 used a Box–Jenkins-based auto-regressive integrated moving average model along with ML-based algorithms like Long Short-Term Memory (LSTM) networks, SVR, random forest regression, Gradient Boosting Regression (GBR), and extreme GBR (XGBoost/XGBR).

Kilimci, Akyuz27 proposed a deep learning strategy and decision integration approach for demand forecasting in the supply chain. They proposed an innovative method based on Deep Learning (DL) techniques, the SVR algorithm, and time series and employed this methodology to forecast demand.

Phyo and Jeenanunta28 demonstrated daily load forecasting using a combination of Classification and Regression Tree (CART) and Deep Belief Network (DBN). They applied this model for load data in the Electricity Generating Authority of Thailand (EGAT). Yucesan, Pekel29 proposed regression, time series, and ML-based methods for forecasting daily natural gas consumption. They applied the Seasonal Autoregressive Integrated Moving Average with Exogenous Regressors (SARIMAX) and Artificial Neural Networks (ANN). A novel ML approach for demand forecasting and supply chain performance was developed by Feizabadi30. In this research, ARIMAX and NN are developed and applied by steel manufacturers.

Research gap

Based on the application of the ML approach, the relevant works are organized and reviewed in Table 1. As is evident, our goal is to design RRML, which has not yet been developed. The most pertinent research in the literature is categorized in Table 1, along with comparisons of the methodology, case study(s) or scenarios, and goal.

Table 1.

Related works.

Reference Type Methodology Predicting Case study
23 Hybrid NN, RNN, SVM Demand Canada
24 Hybrid SVR, ANFIS Demand Tin milk industry
25 Hybrid PSOSVR Electricity demand Queensland, Australia
21 Simple Data-driven AI Supply chain risks Numerical Example (NE)
27 Hybrid DL, SVR, time series Demand forecasting SOK Market in Turkey
26 Hybrid LSTM, SVR, XGBoost/XGBR Demand forecasting Vegetables
28 Hybrid CART, DBN Load data EGAT
14 Hybrid LSTM, GA, SS Demand agricultural products Thailand
15 Simple Regression Hotel revenue South of Europe
29 Hybrid SARIMAX, ANN Natural gas consumption NE
16 Simple KNN regression Sale NE
22 Simple Robust regression COVID-19 Iran
19 Simple QRA Urban water flow NE
30 Hybrid ARIMAX, ANN Demand Steel manufacturer
20 Hybrid MLR, ANN Demand Agri-food
This research Simple RRML Forecast production Agri-food production, Iran

Significant values are in bold.

Given the research gap in Table 1, the main novelty of this study is RRML for predicting production in the future and considering supply problems. In other words, it is necessary to design a model to predict production under its complicated uncertainty that can be efficiently utilized in future decision-making processes.

Figure 2 is a flow chart that is drawn to describe the research methodology and the steps of the suggested method. The significance of this research can be summed up as a novel approach for production projection called Robust and Resilience ML (RRML), which considers hard and complex conditions for disruption resilience by using a robust regression approach.

Figure 2.

Figure 2

Research methodology.

The contribution of this research is as follows:

  • A new Robust and Resilience ML (RRML) approach,

  • Projecting production by a new robust regression approach,

  • Considering hard and complex conditions for resilience against disruption.

Problem description

This study attempt to forecast the quantity of agri-food production based on the years. The aim of research plan and forecast agri-food production until those in charge of decision-making in the agri-food sector can enable good decisions and define policy. Despite data uncertainty, the forecast between year (xi) and production (yis) for various scenarios is estimated (cf. Fig. 3). Although there is uncertainty in data, it is estimated to forecast production (yis′) under scenarios. This section introduces the proposed model for long-term forecasting. Therefore, relative years and number of production are considered for projecting the production. This research uses robust stochastic optimization to predict the volume of production in Agri-food production. Eventually, it is suggested RRML based on this scope:

  • Robust approach: Robust stochastic programming for regression-based,

  • Resiliency: considering the resiliency coefficient depend on the scenario as a resiliency approach against disruption.

Figure 3.

Figure 3

RRML for forecasting production.

Mathematical model

Consequently, it is necessary to make the following assumption:

Assumption:

  • There is a stochastic nature (uncertainty) in the data.

  • There is no dependence between the data.

In the following, the indices, parameters, and variables to develop the proposed model are defined first:

Notations:

Indices

i

Index of years; i∈I={1,2,...,i¯}

k

Index of regression degree; k∈{1,...,k¯}

s

Index of scenario s∈S={1,2,...,s¯}

Parameters

xi

Year counter (Year i),

yis

Number of production in year i under scenario s

ps

Probability of scenario s

ρs

Resiliency coefficient under scenario s

β

Conservatitvity coefficient

wi

Weight factor of error i

α

Confidence level

λ

Weight factor of old and new data

ω

Cycle period

Variables

yis′

Number of forecasted production in year i under scenario s

Γis

Absolute deviation between real and forecasted production in year i under scenario s

Γ¯i

Mean deviation between real and forecasted production in year i

σ¯i

Standard deviation between real and forecasted production in year i

fs(xi)

Proposed function forecasted production in year i under scenario s

RRMAD

Robust and Resilience Mean Absolute Deviation (RRMAD)

Model 1 RRML for production forecasting:

minRRMAD=β∑iwiΓ¯i+(1-β)-2ln(α)∑iwiσ¯i, 1

subject to

Distance and risk constraint:

Γis=yis′-yis∀i,s 2
Γ¯i=∑spsΓis,∀i,s 3
σ¯i=∑spsΓis-Γ¯i,∀i 4

Resiliency constraint:

yis′=ρsfs(xi),∀i,s 5
fs(xi)=∑kakxik-1∀i,s 6

Weight constraint:

∑iwi=1, 7
wi=λiI(I+1)/2+(1-λ)I-(i-1)I(I+1)/2,∀i 8

The objective function (1) tries to minimize the RRMAD. The RRMAD includes the mean absolute deviation and coefficient of standard deviation between real and forecasted production in all years. Constraint (2) represents the deviation between real and forecasted production in year i under scenario s. Constraint (3) states the mean forecasted production in year i. Constraint (4) states the standard deviation of forecasted production in year i. Constraint (5) shows the amount of forecasted production in year i under scenario s. Constraint (6) presents linear regression function that must be fitted. Therefore, polynomial regression is suggested. Constraint (7) considers the summation of weight factors must be one. Constraint (8) offers a new form of weight factor that is tuned by old and new data.

Linearization of the proposed model

Given the absolute function in Model 1, it should be linearized using the following equations. Therefore, two new positive variables are employed to linearize the absolute function.

If k=Ωs, therefore, the following replacements can be considered in the model:k=αs+βs,Ωs=αs-βs,αs,βs≥0,∀s.

Linearization of RRML:

minRRMAD=β∑iwiΓ¯i+(1-β)-2ln(α)∑iwiσ¯i,

subject to

Γis=vais+vbis,∀i,s 9
yis′-yis=vais-vbis, 10
σ¯i=∑sps(vais′+vbis′,),∀i 11
Γis-Γ¯i=vais′-vbis′,∀i,s 12
vais,vbis,vais′,vbis′≥0,∀i,s 13

Constraints (3), (5)–(8)

Complexity of the problem

The complexity of linearization of RRML includes numbers of binary, positive and free variables and constraints as indicated in Eqs. (14) to (17). As can be seen, one of the essential factors for constraints, positive and free variables, is scenario sets. Positive, free variables and constraints are linear in the relation between scenarios:

Binaryvariables number=0, 14
Positivevariables number=4IS, 15
Freevariables number=2I+3IS+K+1, 16
Constraints number=5IS+2I+1. 17

This model has no binary variable and is completely LP. As a result, the large scale of this problem is solved in polynomial time. Consequently, increasing scenarios make to increase time polynomially.

Correlation coefficient of the proposed model

After estimating the parameters of polynomial regression, it is needed to measure dependency and quality of response. Then, the scenario-based correlation coefficient (R2) is employed to measure the quality of response (RRMAD). Finally, the scenario-based correlation coefficient is calculated according to Eqs. (18), (19):

RSs2=1-∑i(yis-yis′)2∑i(yis-1I∑iyis)2, 18
R2=∑spsRSs2,-1≤R2≤1. 19

Comparing with other functions

To compare the proposed model's performance, the function type is replaced with the sine type function for constraint (6). Changing the constraint is still the model becomes Linear Programming (LP). As a result, this type of function is generated to control the performance of the main model:

minRRMAD=β∑iwiΓ¯i+(1-β)-2ln(α)∑iwiσ¯i,

subject to

fs(xi)=∑kaksin(ωxi)k-1Type 2Sine type function1∀i,s, 20

Or

fs(xi)=∑kak(xisin(ωxi))k-1Type 3Sine type function 2∀i,s, 21

Or

fs(xi)=∑kak(xi+sin(ωxi))k-1Type 4Sine type function 3∀i,s, 22

Constraints (3), (5)–(13).

Results and discussion

This research's case study concerns agri-food in Iran. Through conversations with agricultural managers, the value of the parameters was determined and is presented in Table 2. The configuration that is applied for solving models with GAMS (CPLEX solver) is as follows: Intel(R), Core(TM) i5-4210U, CPU @ 1.70 GHz, 2.40 GHz, 6.00 GB RAM, and a 64-bit operating system. The number of sets is determined in Table 3. The probability of scenario includes pessimistic, possible, and optimistic scenarios with the same value. So, the volume of agri-food production with uncertainty is shown in Iran (cf. Fig. 4). After obtaining the optimal solution for the model, The RRMAD function is 4.698 in Table 3, and the final function coefficients are determined in Table 4 and Fig. 5. Finally, it is obtained optimal polynomial regression with degree seven in Fig. 6.

Table 2.

Determining the value of parameters.

Parameters Value Unit Parameters Value Unit
xi [2001–2021] Year β 95 %
yis Based on chart Million Ton α 5 %
ps 1/S % λ 50 %
ρs 85 + 5.(s − 1) % ω 2π12 –

U uniform function

Table 3.

Sets, variables, and constraints, for the case study.

Problem I.K.S Variable Constraint RRMAD Time solution (s)
Binary Positive Free
P1 21.7.3 0 252 239 358 4.748 0.135

Figure 4.

Figure 4

Agri-food production.

Table 4.

Amount of coefficient, RRMAD, and R-squared for agri-food production.

K a1 a2 a3 a4 a5 a6 a7 a8 RRMAD R2 Feasibility
2 78.22 3.07 5.607 0.829 Yes
3 82.09 2.09 0.04 5.506 0.831 Yes
4 69.78 7.56 −0.52 0.02 4.998 0.838 Yes
5 60.99 12.64 −1.49 0.09 −2.0E−03 4.793 0.852 Yes
6 58.37 16.25 −2.62 0.22 −9.0E−03 1.3E−04 4.748 0.856 Yes
7 58.19 16.56 −2.78 0.26 −1.2E−02 2.8E−04 −2.7E−06 4.748 0.855 Yes
8 66.69 2.84 3.47 −0.86 7.6E−02 −3.0E−03 2.8E−05 2.8E−07 2.632 0.911 No

Significant values are in bold.

Figure 5.

Figure 5

Agri-food production with polynomial regression.

Figure 6.

Figure 6

Amount of RRMAD for Agri-food production.

Comparing models

In this section, the main model is compared with other sine types that are defined in section "Comparing with other functions". The amount of RRMAD and R-squared is determined in Table 5 and Fig. 7. As shown, the value of RRMAD of the main model is 1.28% less than other sine types. This mathematical model is better than linear and polynomial degree two regression in RRMAD and R-squared.

Table 5.

Comparing main models with other models.

Reference Model K ω RRMAD Variation R2
This research Base model 7 – 4.748 – 0.855
Type 2-Sine type 1 7 2π1 4.748 0.00% 0.855
Type 3-Sine type 2 7 2π0.5 4.809 1.28% 0.852
Type 4-Sine type 3 7 2π2 4.749 0.02% 0.854
31

Linear

β=100%,λ=50%

2 – 8.58 80.7% 0.673
32

Polynomial degree two

β=100%,λ=50%

3 – 8.56 80.2% 0.681

Significant values are in bold.

Figure 7.

Figure 7

Comparing models.

Analyzing the conservativity coefficient

The conservativity coefficient (β) is the preference of decision-makers. It is varied in the range of 95%-100%. When this factor increases to 100%, the RRMAD function decreases in Table 6 and Fig. 8 and if this factor increases by 5%, the RRMAD function will change by about −1.05%, and R-squared will fluctuate in Fig. 9, too.

Table 6.

Analyzing of conservativity coefficient.

Problem Conservativity coefficient (β) RRMAD Variation R2
P1 95% 4.793 0.95% 0.856
P1 96% 4.782 0.72% 0.857
P1 97% 4.768 0.42% 0.857
P1-main model 98% 4.748 0.00% 0.855
P1 99% 4.723 -0.53% 0.855
P1 100% 4.698 -1.05% 0.855

Significant values are in bold.

Figure 8.

Figure 8

RRMAD for conservativity coefficient.

Figure 9.

Figure 9

R-squared for conservativity coefficient.

Analyzing the confidence level

The confidence level of decision-maker is denoted by confidence level (α). It is varied between 1 and 5%. If it decreases, the cost function will change to up (cf. Table 7 and Fig. 10). By reducing it to 1%, the cost function grows 0.70%, and R-squared is not changed significantly.

Table 7.

Analyzing the confidence level.

Problem Confidence level RRMAD Variation R2
P1 1% 4.781 0.70% 0.857
P1 2% 4.768 0.42% 0.855
P1 3% 4.760 0.25% 0.855
P1 4% 4.753 0.11% 0.855
P1-main model 5% 4.748 0.00% 0.855

Significant values are in bold.

Figure 10.

Figure 10

Analyzing the confidence level.

Analyzing weight factor for old and new data

The weight factor (λ) is a significant factor for each data. This weight factor is changed between 0 and 100%. When the significant factor is 0%, the substantial factor for all data are wi=I-(i-1)I(I+1)/2. It means that old data is more important than new data. When the weight factor is 100%. The significant factor of all data is wi=iI(I+1)/2, that new data are more important than old data. If this coefficient grows, the RRMAD will increase, and R-squared will move down smoothly (cf. Figs. 11, 12, and Table 8).

Figure 11.

Figure 11

RRMAD for weight factor.

Figure 12.

Figure 12

R-squared for weight factor.

Table 8.

Analyzing weight factor.

Problem Weight factor (λ) RRMAD Variation R2
P1 0% 4.618 −2.74% 0.858
P1 25% 4.7 −1.01% 0.856
P1-main model 50% 4.748 0.00% 0.855
P1 75% 4.765 0.36% 0.855
P1 100% 4.745 -0.06% 0.855

Significant values are in bold.

Analyzing the resiliency coefficient

The resiliency coefficient (ρs) as a significant factor for the resiliency situation in the proposed model is analyzed. The RRMAD function increases and the R-squared decreases by increasing the resiliency coefficient (cf. Table 9). When the resiliency coefficient increases by 5%, the RRMAD function rises by 3.69% (cf. Figs. 13 and 14).

Table 9.

Analyzing the resiliency coefficient.

Problem Resiliency coefficient (ρs) RRMAD Variation R2
P1 (70, 75, 80) % 4.149 −12.62% 0.878
P1 (75, 80, 85) % 4.362 −8.13% 0.872
P1 (80, 85, 90) % 4.558 −4.00% 0.864
P1-main model (85, 90, 95) % 4.748 0.00% 0.855
P1 (90, 95, 100) % 4.923 3.69% 0.848

Significant values are in bold.

Figure 13.

Figure 13

RRMAD for resiliency coefficient.

Figure 14.

Figure 14

R-squared for resiliency coefficient.

Analyzing the probability of scenario

The probability of scenario (ps) as the probability occurring is analyzed in the regression model. The RRMAD function moves down, and R-squared increases by changing the scenario possibility (cf. Table 10). When the scenario possibility increases by 67%, the RRMAD function moves down by 53%, and R-squared moves up by 5.6% (cf. Figs. 15 and 16).

Table 10.

Analyzing the probability of scenario.

Problem Probability of scenario (ps) RRMAD Variation
RRMAD
R2 Variation
R2
P1-main model (33.3, 33.3, 33.3) % 4.748 0.00% 0.855 0.00%
P1 (25, 50, 25) % 4.140 −12.81% 0.865 1.17%
P1 (12.5, 75, 12.5) % 3.197 −32.67% 0.883 3.27%
P1 (5, 90, 5) % 2.615 −44.92% 0.893 4.44%
P1 (0, 100, 0) % 2.210 −53.45% 0.900 5.26%

Significant values are in bold.

Figure 15.

Figure 15

RRMAD for the probability of scenario.

Figure 16.

Figure 16

R-squared for the probability of scenario.

Discussion

This study examined a RRML for forecasting agri-food production and is the first to combine the concepts of robustness and resiliency for this problem. To deal with uncertainty, this study employed a scenario-based approach. Furthermore, this problem considers disruption-based flexibility as resiliency in ML for forecasting and compares the proposed model to other functions to demonstrate the model's performance.

After solving the model, the model obtains the coefficient of the proposed function in the RRML approach. The proposed model is compared with other sine-type functions and found that the model's performance is better than types of sine functions, and RRMAD is less than them. Eventually, by embedding robustness and resiliency concepts, this research considers uncertainty that did not pay attention to previous research in the ML model. This research tries to develop previous work22 robustness and resiliency concepts with a scenario-based approach. Resiliency concepts were not considered in previous work, but this research considers this concept to survey uncertainty disruption in the ML model. In addition, the main model is compared with sine types that are defined in section "Comparing with other functions". The amount of RRMAD and R-squared is determined in Table 5 and Fig. 7. As can be seen, the value of RRMAD of the main model is 1.28% less than other sine-type. The conservativity coefficient is varied in the range of 95–100%. When this factor increases to 100%, the RRMAD function decreases in Table 6, Fig. 8. When this factor increases by 5%, the RRMAD function will change by about −1.05%, and R-squared will fluctuate in Fig. 9, too. The confidence level is varied between 1 and 5%. If it decreases, the cost function will change to up (cf. Table 7 and Fig. 10). By reducing it to 1%, the cost function grows 0.70%. As can be seen, R-squared is not changed significantly. The significant factor is changed from 0 to 100%. When the significant factor is 0%, old data is more important than new data. When the significant factor is 100%, new data is more important than old data. If this coefficient grows, the RRMAD will increase, and R-squared will move down smoothly (cf. Figs. 11, 12, and Table 8). The resiliency coefficient is analyzed as a significant factor for the resiliency situation in the regression model. The RRMAD function increases and R-squared decreases by increasing the resiliency coefficient (cf. Table 9). When the resiliency coefficient increases by 5%, the RRMAD function rises by 3.69% (cf. Figs. 13 and 14). The scenario probability is analyzed as the probability of occurring in the regression model. The RRMAD function moves down, and R-squared increases by changing the scenario's probability (cf. Table 10). When the scenario probability increases by 67%, the RRMAD function moves down by 53%, and R-squared rise by 5.6% (cf. Figs. 15 and 16).

Therefore, sensitivity analyses are run for essential parameters. As a result, it is suitable to embed robustness and resiliency concepts for this problem because these concepts improve the model's performance and make the model robust and resilient against disruption.

Managerial insights and practical implications

This research pays attention to predicting agri-food capacity production. Therefore, a novel ML approach is utilized for the first time. The robustness and resiliency concepts are combined in this approach. Robust scenario-based optimization is used to cope with an uncertain situation. This method applies flexibility based on disruption as a resiliency strategy. In addition, the proposed model is compared with other models to show the model's performance. The model's performance is suitable for forecasting agri-food capacity production. Eventually, it is suggested to managers and decision-makers of agri-food to use this style of mathematical model to predict volume production. This model helps the decision-maker to have better decisions.

Conclusions and outlook

This research proposes a new framework for agri-food capacity production by considering resiliency and robustness and paying attention to disruption and risk for the first time. A robust stochastic optimization is applied by adding robustness to the objective function and resiliency situation in constraint. This model minimizes a predicted linear function's MAD and standard deviation coefficient in agri-food production. This model is suggested to managers and decision-makers of agri-food to apply for forecasting production. This model help to improve the performance of decision maker.

Therefore, the results are as follows:

  1. The main model is compared with other sine-type functions defined in section "Comparing with other functions". The amount of RRMAD and R-squared is determined in Table 5 and Fig. 7. As can be seen, the value of RRMAD is 1.28% less than other sine types.

  2. This research varied conservativity coefficient in the range of 95–100%. When this factor increases to 100%, the RRMAD function decreases in Table 6, Fig. 8. When this factor increases by 5%, the RRMAD function will change by about −1.05%, and R-squared will fluctuate in Fig. 9, too.

  3. In addition, confidence levels are varied between 1 and 5%. If it decreases, the cost function will change to up (cf. Table 7 and Fig. 10). By reducing it to 1%, the cost function grows 0.70%. As can be seen, R-squared is not changed significantly.

  4. The weight factor is changed from 0 to 100%. When the significant factor is 0%, old data is more important than new data. When the weight factor is 100%, new data is more important than old data. If this coefficient grows, the RRMAD will increase, and R-squared will move down smoothly (cf. Figs. 11, 12, and Table 8).

  5. The resiliency coefficient is analyzed as a significant factor for the resiliency situation in the regression model. The RRMAD function increases, and R-squared decrease by increasing the resiliency coefficient (cf. Table 9). When the resiliency coefficient increases by 5%, the RRMAD function rises by 3.69% (cf. Figs. 15 and 16).

  6. The scenario probability is analyzed as a scenario occurring in the regression model. The RRMAD function moves down, and R-squared increases by changing the scenario probability (cf. Table 10). When the possibility of the scenario increases by 67%, the RRMAD function moves down by 53% and R-squared up by 5.6% (cf. Figs. 13 and 14).

This model is completely LP and lacks any binary variables. As a result, this problem can be solved on a large scale in polynomial time. Consequently, increasing the scenario induces the time to grow polynomially. There is, therefore, no substantial restriction on a large scale.

Eventually, it is suggested to use other antifragility or resiliency strategies. These strategies include additional functions for learning as antifragility strategies in the ML model. Further, it is proposed to use risk criteria like Conditional and Entropic Value at Risk (CVaR or EVaR) to add risk fluctuation33,34. Other uncertain approaches like stochastic programming and robust optimization (convex) make it close to the real world35. In addition, the fuzzy and DDRO methods have been helpful for risk-averse decision-makers in the recent decade.

Author contributions

R.L.: conceptualization, supervision, software, methodology; software; formal analysis; data curation; writing original draft; visualization; A.G.: methodology; software; formal analysis; data curation; writing original draft; writing review and edit; visualization; M.K.: formal analysis, data curation, methodology, validation; M.A.: writing original draft; visualization; S.S.A.: methodology, validation; K.K.: writing review and edit;

Data availability

The datasets generated and/or analysed during the current study are available in the RRMLFAFP36 repository, http://dx.doi.org/10.17632/z53s5dtgpb.1.

Competing interests

The authors declare no competing interests.

Footnotes

Publisher's note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

References

  • 1.Penalba M, Aizpurua JI, Martinez-Perurena A, Iglesias G. A data-driven long-term metocean data forecasting approach for the design of marine renewable energy systems. Renew. Sustain. Energy Rev. 2022;167:112751. [Google Scholar]
  • 2.Somu N, Ramamritham K. A deep learning framework for building energy consumption forecast. Renew. Sustain. Energy Rev. 2021;137:110591. [Google Scholar]
  • 3.Rezapour M, Hansen L. A machine learning analysis of COVID-19 mental health data. Sci. Rep. 2022;12(1):1–16. doi: 10.1038/s41598-022-19314-1. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 4.Kang H, An J, Kim H, Ji C, Hong T, Lee S. Changes in energy consumption according to building use type under COVID-19 pandemic in South Korea. Renew. Sustain. Energy Rev. 2021;148:111294. doi: 10.1016/j.rser.2021.111294. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 5.Mourtzinis S, Esker PD, Specht JE, Conley SP. Advancing agricultural research using machine learning algorithms. Sci. Rep. 2021;11(1):1–7. doi: 10.1038/s41598-021-97380-7. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 6.Yoon H-J, Seo S-K, Lee C-J. Multi-period optimization of hydrogen supply chain utilizing natural gas pipelines and byproduct hydrogen. Renew. Sustain. Energy Rev. 2022;157:112083. [Google Scholar]
  • 7.Salehi-Amiri A, Zahedi A, Akbapour N, Hajiaghaei-Keshteli M. Designing a sustainable closed-loop supply chain network for walnut industry. Renew. Sustain. Energy Rev. 2021;141:110821. [Google Scholar]
  • 8.Nili M, Seyedhosseini SM, Jabalameli MS, Dehghani E. A multi-objective optimization model to sustainable closed-loop solar photovoltaic supply chain network design: A case study in Iran. Renew. Sustain. Energy Rev. 2021;150:111428. [Google Scholar]
  • 9.Tsakanikas P, Karnavas A, Panagou EZ, Nychas G-J. A machine learning workflow for raw food spectroscopic classification in a future industry. Sci. Rep. 2020;10(1):1–11. doi: 10.1038/s41598-020-68156-2. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 10.Jeff, L. Fertile Ground: Ontario’s Agri-Food Industry Delivers Sustainable Growth.
  • 11.Tawn R, Browell J. A review of very short-term wind and solar power forecasting. Renew. Sustain. Energy Rev. 2022;153:111758. [Google Scholar]
  • 12.Huang B, Liu J, Jiao J, Lu J, Lv D, Mao J, et al. Applications of machine learning in pine nuts classification. Sci. Rep. 2022;12(1):1–11. doi: 10.1038/s41598-022-12754-9. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 13.Uddin S, Ong S, Lu H. Machine learning in project analytics: A data-driven framework and case study. Sci. Rep. 2022;12(1):1–13. doi: 10.1038/s41598-022-19728-x. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 14.Kantasa-Ard A, Nouiri M, Bekrar A, Aitel Cadi A, Sallez Y. Machine learning for demand forecasting in the physical internet: a case study of agricultural products in Thailand. Int. J. Prod. Res. 2021;59(24):7491–7515. [Google Scholar]
  • 15.Pereira LN, Cerqueira V. Forecasting hotel demand for revenue management using machine learning regression methods. Curr. Issues Tour. 2021;25:1–18. [Google Scholar]
  • 16.Kohli S, Godwin GT, Urolagin S. Sales prediction using linear and KNN regression. Adv. Mach. Learn. Comput. Intell. (Springer) 2021;4:321–329. [Google Scholar]
  • 17.Samar Ali S, Kaur R, Ersöz F, Lotero L, Weber G-W. Evaluation of the effectiveness of green practices in manufacturing sector using CHAID analysis. J. Remanuf. 2019;9(1):3–27. [Google Scholar]
  • 18.Ali SS, Kaur R, Persis DJ, Saha R, Pattusamy M, Sreedharan VR. Developing a hybrid evaluation approach for the low carbon performance on sustainable manufacturing environment. Ann. Oper. Res. 2020;2020:1–33. [Google Scholar]
  • 19.Papacharalampous G, Langousis A. Probabilistic water demand forecasting using quantile regression algorithms. Water Resour. Res. 2022;58(6):e2021WR030216. [Google Scholar]
  • 20.Balaji Prabhu, B.V., & Dakshayini, M. Computational Performance Analysis of Neural Network and Regression Models in Forecasting the Societal Demand for Agricultural Food Harvests. 1287–300 (Research Anthology on Artificial Neural Network Applications: IGI Global, 2022).
  • 21.Baryannis G, Dani S, Antoniou G. Predicting supply chain risks using machine learning: The trade-off between performance and interpretability. Futur. Gener. Comput. Syst. 2019;101:993–1004. [Google Scholar]
  • 22.Lotfi R, Kheiri K, Sadeghi A, BabaeeTirkolaee E. An extended robust mathematical model to project the course of COVID-19 epidemic in Iran. Ann. Oper. Res. 2020;2022:1–25. doi: 10.1007/s10479-021-04490-6. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 23.Carbonneau R, Laframboise K, Vahidov R. Application of machine learning techniques for supply chain demand forecasting. Eur. J. Oper. Res. 2008;184(3):1140–1154. [Google Scholar]
  • 24.Fradinata E, Kesuma ZM, Rusdiana S. Support vector regression and adaptive neuro fuzzy to measure the Bullwhip effect in supply chain. J. Phys. Conf. Ser. (IOP Publishing) 2018;1116:022010. [Google Scholar]
  • 25.Al-Musaylh MS, Deo RC, Li Y, Adamowski JF. Two-phase particle swarm optimized-support vector regression hybrid model integrated with improved empirical mode decomposition with adaptive noise for multiple-horizon electricity demand forecasting. Appl. Energy. 2018;217:422–439. [Google Scholar]
  • 26.Priyadarshi R, Panigrahi A, Routroy S, Garg GK. Demand forecasting at retail stage for selected vegetables: A performance analysis. J. Model. Manag. 2019;14(4):1042–1063. [Google Scholar]
  • 27.Kilimci ZH, Akyuz AO, Uysal M, Akyokus S, Uysal MO, Atak Bulbul B, et al. An improved demand forecasting model using deep learning approach and proposed decision integration strategy for supply chain. Complexity. 2019;26:2019. [Google Scholar]
  • 28.Phyo PP, Jeenanunta C. Daily load forecasting based on a combination of classification and regression tree and deep belief network. IEEE Access. 2021;9:152226–152242. [Google Scholar]
  • 29.Yucesan M, Pekel E, Celik E, Gul M, Serin F. Forecasting daily natural gas consumption with regression, time series and machine learning based methods. Energy Sources Part A Recov. Utiliz. Environ. Effects. 2021;21:1–16. [Google Scholar]
  • 30.Feizabadi J. Machine learning demand forecasting and supply chain performance. Int. J. Log. Res. Appl. 2022;25(2):119–142. [Google Scholar]
  • 31.Glover F. Improved linear integer programming formulations of nonlinear integer problems. Manag. Sci. 1975;22(4):455–460. [Google Scholar]
  • 32.Freedman DA. Statistical Models: Theory and Practice. Cambridge University Press; 2009. [Google Scholar]
  • 33.Zare Mehrjerdi Y, Lotfi R. Development of a mathematical model for sustainable closed-loop supply chain with efficiency and resilience systematic framework. Int. J. Supply Oper. Manag. 2019;6(4):360–388. [Google Scholar]
  • 34.Lotfi R, Kargar B, Hoseini SH, Nazari S, Safavi S, Weber GW. Resilience and sustainable supply chain network design by considering renewable energy. Int. J. Energy Res. 2021;45:17749–17766. [Google Scholar]
  • 35.Lotfi R, Mardani N, Weber GW. Robust bi-level programming for renewable energy location. Int. J. Energy Res. 2021;45:7521–7534. [Google Scholar]
  • 36.Lotfi R. RRMLFAFP 2022. 10.17632/z53s5dtgpb.1 (2022).

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Data Availability Statement

The datasets generated and/or analysed during the current study are available in the RRMLFAFP36 repository, http://dx.doi.org/10.17632/z53s5dtgpb.1.


Articles from Scientific Reports are provided here courtesy of Nature Publishing Group

RESOURCES