Applying Machine Learning for Sustainable Farm Management: Integrating Crop Recommendations and Disease Identification †
Abstract
:1. Introduction
- RQ 1. To what extent are machine learning models useful for recommending the crop by considering its relevant factors?
- RQ 2. Can the convolution neural network model be best suitable for plant disease prediction using imaging techniques?
2. Literature Survey
3. Model Preparation for Crop Recommendations and Disease Identification
3.1. Data Collection
IoT Sensors
3.2. Image Dataaset
3.3. Data Preprocessing
3.3.1. Sensor Data
3.3.2. Image Data for Utilizing the Deep Learning Techniques
4. Feature Engineering
Retrieving Useful Information
- 1.
- Missing Data: Imputation, forward/backward filling for sensor readings or just drop the missing entries.
- 2.
- Feature Scaling Normalization and standardisation: To even out environmental features such as temperature, humidity, and soil moisture.
- 3.
- Sensor Data Insights: Temperature, humidity, light, and soil moisture are key metrics along with nutrient levels (N, P, K) that are extracted from IoT sensor data.
- 4.
- Image Data Insights: Extract complex visual features such as plant health traits and disease symptoms from images using CNNs.
- 5.
- Create features: Add derived features e.g., interaction terms between environmental variables.
- 6.
- Dimensionality Reduction: To solve this issue, you can use PCA for dimensionality reduction (or feature selection) and avoid overfitting.
- 7.
- Encoding Categorical Data: One-hot, label, or target encoding for categorical variables.
5. Model Selection
5.1. Crop Recommendation Models
5.2. Disease Identification Models
- 1.
- VGG16: Deep network that has only 16 layers and is also a model used to classify images. The model is characterized by stacking 3 × 3 building blocks, convolutional layers, and max-pooling layers to extract fine-grained features. We have obtained 95.75% accuracy on the disease identification task with VGG16 in our experiments.
- 2.
- ResNet50: A model that utilizes an identity shortcut connection method in the training stack with an attempt to solve the vanishing gradient problem (allows for much deeper models); other architectures would also be considered. For lines with 50 layers, ResNet50 was tested to have an accuracy of 96.06%. The skip connections of the model also allowed them to converge faster and attain good generalization, especially in distinguishing subtle differences with leaf texture and color.
- 3.
- EfficientNetV2: A newer version of the model that aims to co-optimize both accuracy and speed for image classification. Compound scaling is a method for adjusting network width, depth, and resolution all at once by determining the right coefficients to give optimal results subject to resource constraints. R preprocessing datasets (optimal input shapes) allow you fine-tune your data pipeline optimization. The most computationally efficient variant was EfficientNetV2, which achieved the best accuracy of 97.12% and is still quite effective in terms of computational cost.
6. Model Training
Crop Recommendation
7. Disease Identification
8. Model Evaluation
Performance Metrics
- 1.
- Accuracy: It is the performance measurement to know the number of correct predictions made by our model over all kinds of prediction.
- 2.
- Precision and Recall: Precision is measured as the ratio of true positive to the sum (true positives + false positives); recall exposes how well a model captures all relevant cases. These metrics combined provide a good snapshot of how your model is performing, particularly so in problems with imbalanced datasets.
- 3.
- F1 Score: A measure of a test’s accuracy—it uses harmonic mean between precision and recall. It also provides a good balance in the trade-off vector that is useful when class distribution is skewed.
- 4.
- AUC-ROC: The true positive rate is plotted relative to the false positive rate, which shows how well our model can segregate classes under all threshold levels.
9. Method of Implementation
10. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Kumar, R.; Shukla, N. Plant Disease Detection and Crop Recommendation Using CNN and Machine Learning. In Proceedings of the 2022 International Mobile and Embedded Technology Conference (MECON), Noida, India, 10–11 March 2022; pp. 168–172. [Google Scholar]
- Patil, N.; Kelkar, S.; Ranawat, M.; Vijayalakshmi, M. Krushisahyog: Plant disease identification and crop recommendation using artificial intelligence. In Proceedings of the 2021 2nd International Conference for Emerging Technology (INCET), Belagavi, India, 21–23 May 2021; pp. 1–6. [Google Scholar]
- Choudhary, M.; Sartandel, R.; Arun, A.; Ladge, L.; Hiranwal, S.; Mathur, G. Crop recommendation system and plant disease classification using machine learning for precision agriculture. In Proceedings of the Artificial Intelligence and Communication Technologies, Jaipur, India, 6 August 2022; pp. 39–49. [Google Scholar]
- Gosai, D.; Raval, C.; Nayak, R.; Jayswal, H.; Patel, A. Crop recommendation system using machine learning. Int. J. Sci. Res. Comput. Sci. Eng. Inf. Technol. 2021, 7, 558–569. [Google Scholar] [CrossRef]
- Bandara, P.; Weerasooriya, T.; Ruchirawya, T.; Nanayakkara, W.; Dimantha, M.; Pabasara, M. Crop recommendation system. Int. J. Comput. Appl. 2020, 975, 8887. [Google Scholar] [CrossRef]
- Apat, S.K.; Mishra, J.; Raju, K.S.; Padhy, N. An artificial intelligence-based crop recommendation system using machine learning. J. Sci. Ind. Res. (JSIR) 2023, 82, 558–567. [Google Scholar]
- Garanayak, M.; Sahu, G.; Mohanty, S.N.; Jagadev, A.K. 2021. Agricultural recommendation system for crops using different machine learning regression methods. Int. J. Agric. Environ. Inf. Syst. (IJAEIS) 2021, 12, 20. [Google Scholar]
- Rajak, R.K.; Pawar, A.; Pendke, M.; Shinde, P.; Rathod, S.; Devare, A. Crop recommendation system to maximize crop yield using machine learning technique. Int. Res. J. Eng. Technol. 2017, 4, 950–953. [Google Scholar]
- Kiruthika, S.; Karthika, D. IOT-BASED professional crop recommendation system using a weight-based long-term memory approach. Meas. Sens. 2023, 27, 100722. [Google Scholar] [CrossRef]
- Patel, D.H.; Shah, K.P.; Gupta, R.; Jadav, N.K.; Tanwar, S.; Neagu, B.C.; Attila, S.; Alqahtani, F.; Tolba, A. Blockchain-Based Crop Recommendation System for Precision Farming in IoT Environment. Agronomy 2023, 13, 2642.wn. [Google Scholar] [CrossRef]
- Soni, V.K.; Soni, P. Plant Disease Prediction using Machine Learning. Math. Stat. Eng. Appl. 2022, 71, 9739–9747. [Google Scholar]
- Domingues, T.; Brandão, T.; Ferreira, J.C. Machine learning for detection and prediction of crop diseases and pests: A comprehensive survey. Agriculture 2022, 12, 1350. [Google Scholar] [CrossRef]
Authors | Paper Title | Methodology | Output |
---|---|---|---|
Kumar et al. [1] | Plant Disease Detection and Crop Recommendation Using CNN and Machine Learning | Machine Learning classifiers like Naïve Bayes, Decision Trees, Random Forest Classifiers, Support Vector Classifier (SVC), and Deep Learning algorithms like Convolution Neural Network (CNN) | It is observed that Random Forest classifiers and CNN give the highest accuracy. |
Patil et al. [2] | Krushisahyog: Plant disease identification and crop recommendation using artificial intelligence. | Deep Convolution Neural Network and VGG-16 | Accuracy is 97.16% |
Gosai et al. [4] | Crop recommendation a system using machine learning | Machine Learning approaches like Random Forest, Naïve Bayes, Support Vector Machine, XG Boost | XG Boost is having accuracy that is 99.31% |
Apat et al. [6] | An Artificial Intelligence-based Crop Recommendation System using Machine Learning | SMOTE analysis is performed on machine learning algorithms | Cat Boosting (C-Boost) gives the best results with 99.51% accuracy. |
N | P | K | Temperature | Humidity | pH | Rainfall | Label |
---|---|---|---|---|---|---|---|
90 | 42 | 43 | 20.8797437 | 82.0027442 | 6.502985 | 202.9355 | rice |
85 | 58 | 41 | 21.7704617 | 80.3196441 | 7.038096 | 226.6555 | rice |
60 | 55 | 44 | 23.0044592 | 82.3207629 | 7.840207 | 263.9642 | rice |
74 | 35 | 40 | 26.4910964 | 80.1583626 | 6.980401 | 242.8640 | rice |
78 | 42 | 42 | 20.1301748 | 81.6048729 | 7.628473 | 262.7173 | rice |
69 | 37 | 42 | 23.0580487 | 83.3701177 | 7.073454 | 251.0550 | rice |
69 | 55 | 38 | 22.7088380 | 82.6394139 | 5.700806 | 271.3249 | rice |
94 | 53 | 40 | 20.2777436 | 82.8940862 | 5.718627 | 241.9742 | rice |
89 | 54 | 38 | 24.5158807 | 83.5352163 | 6.685346 | 230.4462 | rice |
68 | 58 | 38 | 23.2239739 | 83.0332269 | 6.336254 | 221.2092 | rice |
Classifiers | Accuracy | Precision | Recall | F1 Score |
---|---|---|---|---|
Decision Tree | 90 | 84 | 88 | 85 |
Gaussian Navie Bayes | 99 | 99 | 99 | 99 |
Support Vector Machine | 98 | 98 | 98 | 98 |
Logistic Regression | 95 | 95 | 95 | 95 |
Random Forest | 99 | 99 | 99 | 99 |
XG Boost | 99 | 99 | 99 | 99 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Krishna, P.A.; Padhy, N.; Patnaik, A. Applying Machine Learning for Sustainable Farm Management: Integrating Crop Recommendations and Disease Identification. Eng. Proc. 2024, 67, 7073. https://doi.org/10.3390/engproc2024067073
Krishna PA, Padhy N, Patnaik A. Applying Machine Learning for Sustainable Farm Management: Integrating Crop Recommendations and Disease Identification. Engineering Proceedings. 2024; 67(1):7073. https://doi.org/10.3390/engproc2024067073
Chicago/Turabian StyleKrishna, P. Ankit, Neelamadhab Padhy, and Archana Patnaik. 2024. "Applying Machine Learning for Sustainable Farm Management: Integrating Crop Recommendations and Disease Identification" Engineering Proceedings 67, no. 1: 7073. https://doi.org/10.3390/engproc2024067073
APA StyleKrishna, P. A., Padhy, N., & Patnaik, A. (2024). Applying Machine Learning for Sustainable Farm Management: Integrating Crop Recommendations and Disease Identification. Engineering Proceedings, 67(1), 7073. https://doi.org/10.3390/engproc2024067073