| Literature DB >> 36016060 |
Navod Neranjan Thilakarathne1, Muhammad Saifullah Abu Bakar1, Pg Emerolylariffion Abas1, Hayati Yassin1.
Abstract
Modern agriculture incorporated a portfolio of technologies to meet the current demand for agricultural food production, in terms of both quality and quantity. In this technology-driven farming era, this portfolio of technologies has aided farmers to overcome many of the challenges associated with their farming activities by enabling precise and timely decision making on the basis of data that are observed and subsequently converged. In this regard, Artificial Intelligence (AI) holds a key place, whereby it can assist key stakeholders in making precise decisions regarding the conditions on their farms. Machine Learning (ML), which is a branch of AI, enables systems to learn and improve from their experience without explicitly being programmed, by imitating intelligent behavior in solving tasks in a manner that requires low computational power. For the time being, ML is involved in a variety of aspects of farming, assisting ranchers in making smarter decisions on the basis of the observed data. In this study, we provide an overview of AI-driven precision farming/agriculture with related work and then propose a novel cloud-based ML-powered crop recommendation platform to assist farmers in deciding which crops need to be harvested based on a variety of known parameters. Moreover, in this paper, we compare five predictive ML algorithms-K-Nearest Neighbors (KNN), Decision Tree (DT), Random Forest (RF), Extreme Gradient Boosting (XGBoost) and Support Vector Machine (SVM)-to identify the best-performing ML algorithm on which to build our recommendation platform as a cloud-based service with the intention of offering precision farming solutions that are free and open source, as will lead to the growth and adoption of precision farming solutions in the long run.Entities:
Keywords: Internet of Things; IoT; artificial intelligence; cloud computing; cop recommendation; deep learning; machine learning; smart agriculture
Mesh:
Year: 2022 PMID: 36016060 PMCID: PMC9412477 DOI: 10.3390/s22166299
Source DB: PubMed Journal: Sensors (Basel) ISSN: 1424-8220 Impact factor: 3.847
Figure 1Three foundation technologies of precision farming.
Figure 2Overall steps in precision farming.
Figure 3A typical machine learning process.
Figure 4Categories of ML algorithms with key examples.
Machine learning algorithms.
| Machine Learning Algorithm | Description |
|---|---|
| Regression algorithms | Regression algorithms are supervised learning algorithms that use training data to predict the output numerical value of unknown input. Some of the most frequent regression ML methods include simple and linear regression, polynomial regression, and logistic regression [ |
| Random Forest (RF) | RF is an ensemble learning methodology for classification and regression that works by constructing a jumble of decision trees at training time and outputting the category that is the mode of the categories or mean prediction of the individual trees [ |
| Decision Tree (DT) | DT is a classification and regression algorithm that works with both categorical and continuous input and output variables. It divides the data into two or more homogeneous sets or areas based on the independent variables’ most significant splitter [ |
| Support Vector Machine (SVM) | SVM is a classification and regression algorithm that creates multi-dimensional planes (boundaries) between data points in the feature space [ |
| K-Nearest Neighbors (KNN) | KNN is a supervised learning algorithm that divides a labeled dataset into classes depending on its outputs. As a result, a new forthcoming item is given a class depending on its K nearest neighbors [ |
| Naive Bayes (NB) | A Naive Bayes classifier is a probabilistic machine learning model for classification problems. The Bayes theorem is the foundation of the classifier [ |
| Extreme Gradient Boosting (XGBoost) | XGBoost is a regression and classification algorithm built on the principles of gradient boosting framework [ |
| Clustering algorithms | In contrast to supervised learning, clustering algorithms automatically uncover natural grouping in data and can only interpret the input data and locate natural groups or clusters in feature space [ |
Summary of the most recent studies with their contributions.
| Reference | Application Area/s | ML Algorithm/s Used | Research Contributions |
|---|---|---|---|
| Kumar et al. (2019) | Crop management | SVM, DT, Logistic Regression (LR) | The authors introduced an ML-powered recommendation system for identifying crop suitability and pest control. Further, they found that among the ML algorithms they used, SVM gave the best results as opposed to other algorithms. |
| Shinde et al. (2015) | Crop management | RF | The study proposed using data mining techniques to provide recommendations for what crops to grow, crop rotation, and fertilizer identification in the form of web-based and smart mobile applications. |
| Mahir et al. (2008) | Soil management | Neural Network (NN) | Considering the various parameters of the soil the authors presented a recommendation system for recommending what kind of crop to harvest in certain types of soil. |
| Arooj et al. (2018) | Soil management | NB, DT, NN, SVM | The authors provided an empirical study on various data mining classification algorithms to classify the datasets of different regions based on the soil properties. |
| Rajak et al. (2017) | Crop management and soil management | SVM, Artificial Neural Network (ANN) | The authors made a recommendation system to recommend crops for farming sites based on the type of soil, where they used data from a soil sampling lab to train their underlying ML models. |
| Pudumalar et al. (2017) | Crop management | KNN, NB, RF | The authors proposed an ensemble model with a majority voting technique to recommend |
| Alam et al. (2020) | Crop management | RF | The authors presented a real-time computer vision-based crop/weed detection system for variable-rate agrochemical spraying. |
| Brunelli et al. (2019) | Crop management | NN | The authors presented a near-sensor neural network algorithm that can automatically detect the Codling Moth in apple orchids. Once the insect is detected, the system itself performs classification and sends a real-time alert to the farmers. |
| Tsouros et al. (2019) | Crop management | - | The authors summarized the data acquisition methods and technologies for acquiring images in UAV-based precision farming in their study and provided a comparison. |
| Treboux and Genoud. (2019) | Crop management | DT, RF | The authors presented the performance of ML algorithms used in aerial image detection in precision farming. |
| Dimitriadis and Goumopoulos. (2008) | Water management | NB, ZeroR, OneR, J48, | ML techniques were used by the authors to automatically extract new knowledge in the form of generalized decision rules for the optimum management of natural resources such as water in farming land. |
| Reddy et al. (2020) | Water management | DT | The authors proposed a real-time smart irrigation system powered by the DT ML algorithm to alert ranchers in real time about when to supply water to the field. |
| Junior et al. (2022) | Crop management | K-Means Clustering | To reduce the data congestion when overloading IoT data to the cloud, the authors proposed an approach for collecting and storing data in a fog-based smart agriculture environment with different data reduction techniques. |
| Shukla et al. (2021) | Crop management | LR, KNN, SVM, RF, NN | The authors introduced an IoT and ML-powered platform capable of monitoring the condition of crops and crop disease detection. Moreover, the introduced system was also linked with UAV, and through the multispectral images captured through IoT integrated with UAV, the system was able to detect the health of crops in the field. |
| Petropoulos et al. (2020) | Crop management | Support Vector Regression (SVR), Random Forest Regression (RFR) | The authors proposed novel ML and DL techniques to predict yield and plant growth variation in controlled greenhouse environments. In this regard the authors have deployed Recurrent Neural Network (RNN), using the Long Short-Term Memory (LSTM) neuron model for the prediction and they have presented a comparative study using SVR and RFR ML models. |
| Agarwal and Tarar, (2021) | Crop management, Soil management | SVM | The authors provided a novel AI model for predicting the type of the crop to harvest based on the characteristics of the soil and in that regard, they have used SVM as the ML model and RNN and LSTM as DL algorithms. |
| Raja et al. (2018) | Crop management | Regression algorithms | The authors performed an experiment with past data to predict the crop yield and price that a farmer can obtain from his land using regression classification techniques. |
| Viviliya and Vaidhehi. (2019) | Crop management | NB, J48, Association rule learning | The authors proposed a hybrid crop recommendation system for recommending crops to South Indian states by considering various environmental attributes. |
| Goap et al. (2018) | Water management | K-Means clustering, SVR | The authors presented a novel open-source technology-based smart irrigation system that predicts irrigation requirements for fields using a variety of environmental parameters, in which they have came up with a novel algorithm for this purpose. |
| Brock et al. (2018) | Livestock management | Self-organizing maps | The authors presented a new approach for classifying herd types in livestock systems by combining expert knowledge and a machine-learning algorithm known as self-organizing maps (SOMs), which they applied practically to the cattle sector in Ireland, in order to understand ongoing discussions surrounding control and surveillance for endemic cattle diseases. |
| Lee, M. (2018) | Livestock management | RF, Expectation maximization | This study proposed and implemented a system to analyze 3-axis acceleration data from IoT sensors and compared the pattern-recognition performance of machine-learning algorithms for three breeding cow behavioral patterns: estrus start, peak estrus activities, and estrus finish. |
Figure 5Steps involved in the design of the crop recommendation platform.
Statistical summary of our dataset.
| Statistics | N | P | K | Air Temperature | Air Humidity | Soil pH | Rainfall |
|---|---|---|---|---|---|---|---|
| Entries | 2200 | 2200 | 2200 | 2200 | 2200 | 2200 | 2200 |
| Mean | 50.55 | 53.36 | 48.14 | 25.61 | 71.48 | 6.47 | 103.50 |
| Standard Deviation | 36.91 | 32.98 | 50.64 | 5.06 | 22.26 | 0.77 | 54.95 |
| Minimum | 0.00 | 5.00 | 5.00 | 8.82 | 14.25 | 3.50 | 20.21 |
| Maximum | 140.00 | 145.00 | 205.00 | 43.67 | 99.98 | 9.93 | 298.56 |
Figure 6Distribution of features in the dataset.
Figure 7Correlation matrix showcasing correlation between different features of the dataset.
Figure 8Comparison of N, P, K requirements of different crops.
Accuracy, precision, recall, F1 and 10-fold cross validation scores.
| Model | Accuracy Score | Precision Score | Recall Score | F1 Score | K-Fold Cross Validation Score (K-10) |
|---|---|---|---|---|---|
| KNN | 96.36% | 97% | 96% | 96% | 97% |
| DT | 86.64% | 82% | 87% | 83% | 92% |
| RF | 97.18% | 97% | 97% | 97% | 97.40% |
| XGBoost | 95.62% | 96% | 96% | 96% | 96.31% |
| SVM | 87.38% | 87% | 87% | 87% | 88.50% |
Figure 9Accuracy comparison of ML algorithms.
Figure 10Steps involved in design and deployment of the crop recommendation platform.
Figure 11Cloud-hosted crop recommendation platform.
Figure 12Cloud-hosted crop recommendation platform user documentation.
Free and open-source precision farming solutions.
| Software | Key Features | Development Mode | Web Link |
|---|---|---|---|
| AgroSense [ | Soil health tracking, overall planning, and budgeting | OpenAPI (this makes the application programming interface publicly available to software developers) | |
| Tania [ | Planning and budgeting, labor planning | OpenAPI | |
| farmOS [ | Crop management, labor management, order management | OpenAPI | |
| LiteFarm [ | Crop management | OpenAPI | |
| Granular Insights (even though this is free, it is not an open-source solution) [ | Crop management, labor management, order processing | Cloud hosted |