Log in

Crop classification and prediction based on soil nutrition using machine learning methods

  • Original Research
  • Published:
International Journal of Information Technology Aims and scope Submit manuscript

Abstract

In India, farmers generally grow a traditional crop or the crop that is in demand resulting in poor yield. In the former case, the nutritional value of the soil gets deteriorated due to the non-rotation of crops, while in the latter the soil nutrient is not analyzed for the suitability of the new crop. As a result, people may suffer from stress and depression due to low income. Taking these into account, for classifying and predicting the suitable crop based on the soil nutrition levels a model is proposed using machine learning models such as Decision Tree, Support Vector Machine, Naive Bayes, K-Nearest Neighbours, Extreme Gradient Boosting and Random Forest. The dataset for this research is collected from the Kaggle website consisting of 6 different crop types with 11 nutrients. The models are trained and tested with 80% and 20% of the dataset respectively. The results prove Extreme Gradient Boosting followed by Naive Bayes to perform better with an AUC score of 0.994 and 0.993 respectively when compared to other models.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Subscribe and save

Springer+ Basic
EUR 32.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or Ebook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5

Similar content being viewed by others

Data availability

The data that support the findings of this study are available in Kaggle in the name “Crop Recommender Dataset with Soil Nutrients” at “https://doi.org/10.34740/KAGGLE/DSV/2397200”. These data were derived from the resources available in the public domain.

References

  1. Peoples MB, Richardson AE, Simpson RJ, Fillery IRP (2014) Soil: nutrient cycling. Encyclopedia of agriculture and food systems. Elsevier, Amsterdam, pp 197–210. https://doi.org/10.1016/B978-0-444-52512-3.00094-2

    Chapter  Google Scholar 

  2. Rakesh S, Pareek N, Rathore R (2021) Visual nutrient deficiency symptoms in plants. Agrospheres 2(4):42–45

    Google Scholar 

  3. Verma A, Rawat AK, More N (2014) Extent of nitrate and nitrite pollution in ground water of rural areas of Lucknow, U.P, India. Curr World Environ. https://doi.org/10.12944/CWE.9.1.17

    Article  Google Scholar 

  4. **gshan Lu, Yang T, ** Su et al (2020) Monitoring leaf potassium content using hyperspectral vegetation indices in rice leaves. Precision Agric 21:324–348. https://doi.org/10.1007/s11119-019-09670-w

    Article  Google Scholar 

  5. Hjort RG, Soares RRA, Li J et al (2022) Hydrophobic laser-induced graphene potentiometric ion-selective electrodes for nitrate sensing. Microchim Acta 189:122. https://doi.org/10.1007/s00604-022-05233-5

    Article  Google Scholar 

  6. Britto EC, Danasegaran SK, Xavier SC et al (2021) Soil nutrient detection based on photonic crystal hexagonal resonator for smart farming. Braz J Phys 51:507–514. https://doi.org/10.1007/s13538-021-00876-w

    Article  Google Scholar 

  7. Amrutha A, Lekha R and A. Sreedevi (2016) Automatic soil nutrient detection and fertilizer dispensary system, 2016 International Conference on Robotics: Current Trends and Future Challenges (RCTFC) pp. 1–5. https://doi.org/10.1109/RCTFC.2016.7893418

  8. Saleem MH, Potgieter J, Arif KM (2021) Automation in agriculture by machine and deep learning techniques: a review of recent developments. Precision Agric 22:2053–2091. https://doi.org/10.1007/s11119-021-09806-x

    Article  Google Scholar 

  9. Khanday AMUD, Rabani ST, Khan QR et al (2020) Machine learning based approaches for detecting COVID-19 using clinical text data. Int J Inf Tecnol 12:731–739. https://doi.org/10.1007/s41870-020-00495-9

    Article  Google Scholar 

  10. Ngo VM, Duong TVT, Nguyen TBT et al (2023) A big data smart agricultural system: recommending optimum fertilisers for crops. Int J Inf Tecnol 15:249–265. https://doi.org/10.1007/s41870-022-01150-1

    Article  Google Scholar 

  11. Bondre D, Mahagaonkar S (2019) Prediction of crop yield and fertilizer recommendation using machine learning algorithms. Int J Eng Appl Sci Technol 4:371–376. https://doi.org/10.33564/IJEAST.2019.v04i05.055

    Article  Google Scholar 

  12. Shidnal S, Latte MV, Kapoor A (2021) Crop yield prediction: two-tiered machine learning model approach. Int J Inf Tecnol 13:1983–1991. https://doi.org/10.1007/s41870-019-00375-x

    Article  Google Scholar 

  13. Pukkela P, Borra S (2018) Machine learning based plant leaf disease detection and severity assessment techniques: state-of-the-art. In: Dey N, Ashour A, Borra S (eds) Classification in BioApps. Lecture notes in computational vision and biomechanics, vol 26. Springer, Cham. https://doi.org/10.1007/978-3-319-65981-7_8

    Chapter  Google Scholar 

  14. R. Priya, D. Ramesh and E. Khosla (2018) Crop Prediction on the Region Belts of India: A Naive Bayes MapReduce Precision Agricultural Model. International Conference on Advances in Computing, Communications and Informatics (ICACCI), Bangalore, India, 2018, pp. 99–104. https://doi.org/10.1109/ICACCI.2018.8554948

  15. SAZ Rahman, K Chandra Mitra, SM Mohidul Islam (2018) Soil Classification Using Machine Learning Methods and Crop Suggestion Based on Soil Series. 2018 21st International Conference of Computer and Information Technology (ICCIT), Dhaka, Bangladesh, pp. 1–4. https://doi.org/10.1109/ICCITECHN.2018.8631943

  16. Z. Doshi, S. Nadkarni, R. Agrawal and N. Shah (2018) AgroConsultant: Intelligent Crop Recommendation System Using Machine Learning Algorithms. 2018 Fourth International Conference on Computing Communication Control and Automation (ICCUBEA), Pune, India pp. 1–6. https://doi.org/10.1109/ICCUBEA.2018.8697349

  17. R. K. Ray, S. K. Das and S. Chakravarty (2022) Smart Crop Recommender System-A Machine Learning Approach. 2022 12th International Conference on Cloud Computing, Data Science & Engineering (Confluence), Noida, India pp. 494–499. https://doi.org/10.1109/Confluence52989.2022.9734173

  18. Yange TS, Egbunu CO, Rufai MA, Onyekwere O, Abdulrahman AA, Abdulkadri I (2020) Using prescriptive analytics for the determination of optimal crop yield. Int J Data Sci Anal 6(3):72–82. https://doi.org/10.11648/j.ijdsa.20200603.11

    Article  Google Scholar 

  19. M. Kalimuthu, P. Vaishnavi and M. Kishore (2020) Crop Prediction using Machine Learning. 2020 Third International Conference on Smart Systems and Inventive Technology (ICSSIT), Tirunelveli, India, 2020, pp. 926–932. https://doi.org/10.1109/ICSSIT48917.2020.9214190

  20. Dhakshina Kumar S, Esakkirajan S, Bama S, Keerthiveena B (2020) A microcontroller based machine vision approach for tomato grading and sorting using SVM classifie. Microprocess Microsyst 76:103090. https://doi.org/10.1016/j.micpro.2020.103090

    Article  Google Scholar 

  21. S. M. Pande, P. K. Ramesh, A. Anmol, B. R. Aishwarya, K. Rohilla and K. Shaurya. (2021) Crop Recommender System Using Machine Learning Approach. 2021 5th International Conference on Computing Methodologies and Communication (ICCMC), Erode, India, pp. 1066–1071. https://doi.org/10.1109/ICCMC51019.2021.9418351

  22. S. Veenadhari, B. Misra and C. Singh (2014) Machine learning approach for forecasting crop yield based on climatic parameters. 2014 International Conference on Computer Communication and Informatics, Coimbatore, India pp 1–5. https://doi.org/10.1109/ICCCI.2014.6921718

  23. Fegade TK, Pawar BV (2020) Crop prediction using artificial neural network and support vector machine. In: Sharma N, Chakrabarti A, Balas V (eds) Data management, analytics and innovation advances in intelligent systems and computing, vol 1016. Springer, Singapore

    Google Scholar 

  24. Mahajan J, Banal K, Mahajan S (2021) Estimation of crop production using machine learning techniques: a case study of J&K. Int J Inf Tecnol 13:1441–1448. https://doi.org/10.1007/s41870-021-00653-7

    Article  Google Scholar 

  25. Manikanta Sanjay V, Sri Hari KR (2021) Crop Recommender Dataset with Soil Nutrients. Kaggle. https://doi.org/10.34740/KAGGLE/DSV/2397200. https://www.kaggle.com/dsv/2397200

  26. Muhammad LJ, Algehyne EA, Usman SS et al (2021) Supervised machine learning models for prediction of COVID-19 infection using epidemiology dataset. SN Comput Sci 2:11. https://doi.org/10.1007/s42979-020-00394-7

    Article  Google Scholar 

  27. Hosseini MP, Hosseini A, Ahi K (2020) A review on machine learning for EEG signal processing in bioengineering. IEEE Rev Biomed Eng 14:204–218. https://doi.org/10.1109/RBME.2020.2969915

    Article  Google Scholar 

  28. Roger E, Torlay L, Gardette J, Mosca C, Banjac S, Minotti L, Kahane P, Baciu M (2020) A machine learning approach to explore cognitive signatures in patients with temporo-mesial epilepsy. Neuropsychologia 142:107455. https://doi.org/10.1016/j.neuropsychologia.2020.107455

    Article  Google Scholar 

Download references

Acknowledgements

The authors would like to acknowledge the support of network Laboratory for performing this work.

Funding

No funding of any sort was provided for this publication.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to S. Sudha.

Ethics declarations

Conflict of interest

The authors declare that they have no conflict of interest.

Rights and permissions

Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Swathi, T., Sudha, S. Crop classification and prediction based on soil nutrition using machine learning methods. Int. j. inf. tecnol. 15, 2951–2960 (2023). https://doi.org/10.1007/s41870-023-01345-0

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s41870-023-01345-0

Keywords

Navigation