1. Introduction
Climate change, natural hazards, drought, uncertainty in recourses, and population growth are increasingly threatening the food security of the global nations [
1]. It is estimated that the world’s population will exceed 9.7 billion by 2050, which will encourage worldwide hunger and food insecurity [
2]. In general, there are two means of the food supply, i.e., domestic production and imports [
3]. Awareness of a region’s potential for producing food provides the foundation for developing informed policies for food security. Thus, advancing accurate prediction models is considered essential for food governance and business models [
4]. Reliable food prediction models can be used by policymakers to reconsider the annual food import volumes and prices [
5]. Furthermore, insight into the food production value to better manage the poverty and support vulnerable groups exposed to food insecurity [
6]. Conventional time series and mathematical models had been often used to project food production [
7]. Advanced data-driven methods based on artificial intelligence and machine learning have recently shown promising results in providing accurate prediction models. The research for the advancement of reliable artificial intelligence and machine learning methods to be used in a higher level of policymaking is still in the early stage [
8,
9,
10].
A review of the literature for studies that predicted agricultural and livestock production, as the essential representatives of food production, shows that the available studies at the microlevel often focus on a specific crop or individual livestock. For instance, Nosratabadi et al. [
7], Pantazi et al. [
8], and Sengupta and Lee [
9], used machine learning techniques to develop models for crop yield prediction. Nosratabadi et al. [
7] developed a gray wolf optimizer of neural networks (GWO-ANN), a hybrid machine learning model, to predict the yield of wheat crops in Iran and they also state that this model has a lower error rate and higher predictive accuracy (with R = 0.48 and root mean square error (RMSE) = 3.19) compared to other models. Pantazi et al. [
8] designed a supervised Kohonen networks (SNK) model to predict wheat yield. They report that the accuracy of their model in the prediction of wheat yield was 81.65%. Sengupta and Lee [
9] using a support vector machine (SVM) tried to identify the number of immature green citrus and they report that the accuracy of their model was 80.4%. In addition, Morales et al. [
10], Alonso, Villa, and Bahamonde [
11], and Alonso, Castañón, and Bahamonde [
12], for example, have employed machine learning techniques to design models for livestock production. Morales et al. [
10] develop an SVM model for the early detection of problems in the production curves of hens’ eggs. They claim that the accuracy of their mode has been equal to 98%. Alonso et al. [
11] developed an SVM model to forecast cattle weight trajectories with only one or a few weights. Additionally, they report that the level of error metrics of mean absolute percentage error (MAPE) for their model were between 3.9 and 9.3 for different datasets. Alonso et al. [
12] develop an SVM/ support vector regression (SVR) to estimate the beef cattle’ carcass weight 150 days before slaughter. They used MAPE to test the accuracy of their model and they report that the average MAPE of their model was 4.27%. Although research has used advanced machine learning tools to predict agricultural and livestock production, the focus of the research has been on a specific product or livestock, and developed models are not designed to forecast different production at the macrolevel of a country. To address this gap in the literature, the present study intends to develop a model for predicting food production at the macro level of a country using machine learning models.
Since there is ample evidence that agriculture in Iran is facing many problems due to a lack of water resources (e.g., Karandish et al. [
13] and Qasemipour and Abbasi [
14]), with successive droughts (e.g., Paymard et al. [
15]) and poor water management (e.g., Raeisi et al. [
16] and Akhoundi and Nazif [
17]) cited as reasons for Iran’s lack of water. Such problems have hampered food security at the macrolevel in Iran. On the other hand, Iran, with 79 million in 2015 [
18], is one of the most populous countries in the world and is expected to have positive population growth in Iran in the future [
18]. There are plenty of studies that explain that some Iranian households are exposed to food insecurity for reasons such as low levels of education and low levels of income (e.g., Ekhlaspour et al. [
19], Esfarjani et al. [
20], Fathi Beyranvand et al. [
21], Najafi Alamdarlo et al. [
22]). Therefore, in the present study, Iran was selected as a case study, and the time-series data of agricultural and livestock products related to Iran were used to develop and test the research model.
In the literature, there are advanced and accurate methods for predicting future trends using past data. Artificial intelligence models have the ability to learn from data and can predict non-linear phenomena with very high accuracy based on existing data. There is ample evidence that neural networks, as one of the tools of artificial intelligence, have a very high performance in predicting time series data. For example, Tealeb [
23] conducts a review study detailing the articles that used artificial neural networks (ANNs) to predict time series data and shows that the results of ANN are promising in predicting time series data. On the other hand, Tealab, Hefny, and Badr [
24] debate that it is better to use advanced and hybrid ANN models in predicting non-linear time series data. Adaptive network-based fuzzy inference system (ANFIS) is a hybrid ANN that is combined with fuzzy systems that can be applied for the time-series data. Hence, the main objective of the current study is to compare the predictive performance of multilayer perceptron (MLP), a type of ANN, and ANFIS in the prediction of the future of agricultural and livestock production in Iran to select the most accurate model. The output of the present study provides policymakers with a comprehensive picture of the future food supply in Iran. Information on predicting indigenous food production provides knowledge to macro-decision makers to design appropriate policies for food security and provide adequate food for future generations. The research has been designed based on a comparative analysis of MLP and ANFIS. Our study investigates the model performance of neural networks and neuro-fuzzy. The structure of the manuscript is represented as follows. First, the data, data source, and the data collection process are elaborated. The machine learning methods used in this paper are then described in detail. After that, the results of comparing MLP and ANFIS are presented. In the next stage, the most accurate model for predicting food production based on the results of accuracy metrics is presented.
1.1. Food Security in Iran
Iran is one of the countries exposed to drought [
15] as climate change and inadequate agricultural irrigation systems are among the main reasons mentioned in the literature for the problem of drought in Iran [
25]. Drought is a serious threat to food security and has created many challenges for food supply in Iran. Iran is a vast country with diverse climatic conditions that have led to the cultivation of various agricultural products in different parts of the country. Drought and rising population growth, nonetheless, have jeopardized food supply and food security in the country. Qasemipour and Abbasi [
14] believe that intensive agricultural practices in Iran led to water scarcity of 206%. Of course, research solutions have been proposed to address water management in order to increase food security and improve food production in Iran. Raeisi et al. [
16], for example, consider greenhouses as an alternative to traditional farming because of better water management and higher crop yields. On the other hand, Akhoundi and Nazif [
15] propose a model by which wastewater is used to irrigate agricultural fields instead of using natural water. Besides, Esfahani et al. [
26] introduce a more creative model to deal with water scarcity in Iran. They consider overseas cultivation as a solution to contribute to food security in Iran.
1.2. Application of Data Science in Food and Agriculture
Many researchers have used data science to solve research problems related to food and agriculture. Since machine learning and deep learning models have the ability to analyze big data, find trends, and make accurate predictions, they have become highly useful tools for researchers [
27]. Sengupta and Lee [
9] and Su, Xu, and Yan [
28], for instance, have used the SVM model and Ali et al. [
29] has used the ANFIS model to predict crop yield. The use of learning machine to detect diseases is one of the other applications of machine learning in agriculture. For example, Chung et al. [
30] and Ebrahimi et al. [
31] used the SVM model to detect diseases in rice and strawberry crops, respectively. The use of ANN models to detect wheat diseases has been very common. So, that Moshou et al. [
32] has used the ANN/MLP model, Moshou et al. [
33] employ the ANN/SOM model to detect wheat diseases. There are also studies that have used machine learning models to detect weeds. For example, Pantazi et al. [
34] and Pantazi, Moshou, and Bravo [
35] use an ANN model to detect weeds. Water management and soil management are other applications that have used machine learning models to improve agricultural production. For example, Feng et al. [
36] and Patil and Deka [
37] use the ANN model to estimate evapotranspiration. Estimation of soil temperature and humidity are also among the applications of machine learning models for soil management. In addition, the use of machine learning models to solve problems related to livestock management has become trendy. Craninx et al. [
38], for example, has used the ANN model to forecast rumen fermentation pattern from milk fatty acids in cattle. Alonso, Villa, and Bahamonde [
11] uses the SVM model to estimate the weight of cattle at different stages of growth with the least number of weights. Alonso, Castañón, and Bahamonde [
12] also used the SVM model to predict carcass weight for beef cattle 150 days before slaughter.
Researchers have also used machine learning models in the food industry. The main applications of machine learning and deep learning in food are to estimate the quality of food. For example, Liu et al. [
39] combined stacked sparse autoencoder (SSAE) with CNN to develop a model that detect the quality of vegetables. In addition, Rodriguez et al. [
40] and Azizah et al. [
41] use CNN to study the quality of fruits. There are studies that evaluate the quality of meat and aquatic products using deep learning models [
42,
43]. Using machine learning models to study food contaminations is another example of using machine learning in the food industry [
44,
45].
4. Conclusions
As the world’s population grows, so does the demand for food, and in recent years the number of people exposed to hunger, and even severe hunger, is increasing daily. Governments and organizations active in the food industry are planning and preparing to prevent potential problems that may arise in the way of food security for future generations. To achieve food security goals, food is mainly supplied through domestic production and import. Therefore, studying a country’s potential for food supply is the first step in planning for food security. Food production prediction gives a realistic view to policy makers and activists in the agricultural and food industries for long-term and short-term planning. Therefore, the present study tried to provide a suitable model with high predictive performance for predicting food production. The present study predicted Iran’s agricultural and livestock production for the next ten years. According to the results, it is predicted that in the next ten years, the volume of both agricultural and livestock production in Iran will increase. The findings of this study provide a basis for planning the production volume required for the coming years, planning for budgeting and agricultural subsidies, planning for the active workforce in the agricultural and livestock sectors. In addition, according to forecasts, decision-makers can plan to import needed food production and export surplus domestic production. Using machine learning, researchers have come up with creative and precise solutions to a variety of food and agricultural problems, such as crop yields prediction. However, there is no research to predict food production. The present study used machine learning models to predict agricultural and livestock products in Iran. For this purpose, the performance of two models, MLP and ANFIS, was tested using time series data of agricultural and livestock production in Iran. The results of accuracy metrics revealed that the ANFIS model has higher predictive power than the MLP model due to its higher predictive accuracy. The current study contributes to food security research by providing a repayable tool to predict the future of agricultural and livestock production. Researchers and decision-makers can use this model to predict the future of food security in a region. Therefore, for future research, it is suggested that using the proposed model of the present study to predict food production in different countries and provide appropriate solutions to combat food insecurity. One of the limitations of this study is that forecasts for agricultural and livestock production are based only on time series data while other factors such as climate, government policies, and technological advances are considered constant. Another limitation of this article is the generalization of the finding that the ANFIS model outperforms the MLP model because this finding is limited to the time series data of Iran and the result may differ in data related to another country.