Machine Learning-Based Land Suitability Classification Using NPK and Environmental Factors

Fathiah Alatas, Sujiyo Miranto, Brian Abdurafi Rambu Basae, Khansa Tatsbita, Elvan Yuniarti

Abstract


An accurate estimation of soil fertility is needed for the purposes of nutrient management and the practice of precision agriculture. The objective of this research is to build and test a machine learning model for the classification of soil fertility status using seven parameters which are nitrogen (N), phosphorus (P), potassium (K), pH, EC, soil temperature and soil moisture content. Data were collected via measuring using an Internet of Things (IoT) based NPK Meter system. After the pre-processing of data, 91 observations were collected with 7 predictors, and they were grouped into three classes of soil fertility status, which are infertile, moderately fertile, and fertile. The three machine learning algorithms tested were the Artificial Neural Network (ANN), Gradient Boosting Machine (GBM) and CatBoost. The data was divided into 90% training data and 10% test data, whereas the performance of the model was evaluated using accuracy, precision, recall, F1 score, confusion matrix, and Area Under the ROC Curve (AUC). The test results showed that the ANN achieved an accuracy of 100 per cent, whilst the GBM and CatBoost each achieved 90 per cent using the data split employed. Feature contribution analysis indicates that the NPK parameters, moisture content and electrical conductivity provide predictive information for distinguishing soil fertility classes, although the magnitude of their contribution varies across the different algorithms. These results demonstrate the potential of combining IoT-based soil sensors and machine learning to support the classification of soil conditions.


Keywords


Soil Type Suitability; Artificial Neural Networks (ANN); Gradient Boosting Machine (GBM); CatBoost (Categorical Boosting); NPK

Full Text:

PDF

References


Anugraha, Y. S., Yenni, H., Agustin, W., & Asnal, H. (2026). Model Prediksi Produktivitas Padi Menggunakan Xgboost Dan Random Forest. Jurnal Sistem Informasi Dan Informatika (Simika), 9(1), 67–78. https://doi.org/10.47080/simika.v9i1.4169

Bingyan Dong , Shouchen Ma, Z. G. and A. Q. (2025). CatBoost Improves Inversion Accuracy of Plant Water Status in Winter Wheat Using Ratio Vegetation Index. Applied Sciences, 15, 11363, 1–20. https://doi.org/https://doi.org/10.3390/ app152111363

Budiman, L., & Suhendi, D. (2024). Resiliensi Penguatan Ketahanan Pangan Daerah Di Indonesia. Jurnal Perlindungan Masyarakat: Bestuur Praesidium, 1(2), 63–71. https://ejournal.ipdn.ac.id/index.php/jpa/article/view/5113

Castillo-Girones, S., Munera, S., Martínez-Sober, M., Blasco, J., Cubero, S., & Gómez-Sanchis, J. (2025). Artificial Neural Networks in Agriculture, the core of artificial intelligence: What, When, and Why. Computers and Electronics in Agriculture, 230(October 2024). https://doi.org/10.1016/j.compag.2025.109938

Corwin, D. L., & Lesch, S. M. (2005). Apparent soil electrical conductivity measurements in agriculture. Computers and Electronics in Agriculture, 46(1–3), 11–43. https://doi.org/10.1016/j.compag.2004.10.005

Dattatreya, S., Khan, A. N., Jena, K., & Chatterjee, G. (2024). Conventional to Modern Methods of Soil NPK Sensing: A Review. IEEE Sensors Journal, 24(3), 2367–2380. https://doi.org/10.1109/JSEN.2023.3334243

Ennaji, O., Baha, S., Vergutz, L., & El Allali, A. (2024). Gradient boosting for yield prediction of elite maize hybrid ZhengDan 958. PLoS ONE, 19(12), 1–16. https://doi.org/10.1371/journal.pone.0315493

Fadly, R. (2026). Perbandingan Algoritma Catboost dan Extra Trees Classifier Untuk Prediksi Tingkat Keberhasilan Panen Padi Berdasarkan Faktor Cuaca dan Kondisi Tanah Rio Fadly. 4(1), 430–444. https://ejournal.edutechjaya.com/index.php/komprehensif Perbandingan

Fisher, A., Rudin, C., & Dominici, F. (2019). All Models are Wrong, but Many are Useful: Learning a Variable’s Importance by Studying an Entire Class of Prediction Models Simultaneously. Journal of Machine Learning Research, 20(177), 1–81. https://jmlr.org/papers/v20/18-760.html

Friedman, J. H. (2001). Greedy Function Approximation: A Gradient Boosting Machine. The Annals of Statistics, 29(5), 1189–1232. https://doi.org/10.1214/aos/1013203451

Hancock, J. T., & Khoshgoftaar, T. M. (2020). CatBoost for big data: an interdisciplinary review. Journal of Big Data, 7, 94. https://doi.org/10.1186/s40537-020-00369-8

Hand, D. J., & Till, R. J. (2001). A Simple Generalisation of the Area Under the ROC Curve for Multiple Class Classification Problems. Machine Learning, 45(2), 171–186. https://doi.org/10.1023/A:1010920819831

Ileri, K. (2025). Comparative analysis of CatBoost, LightGBM, XGBoost, RF, and DT methods optimised with PSO to estimate the number of k-barriers for intrusion detection in wireless sensor networks. International Journal of Machine Learning and Cybernetics, 16(9), 6937–6956. https://doi.org/10.1007/s13042-025-02654-5

Kabato, W., Hailegnaw, N., Mutum, L., & Molnar, Z. (2025). Managing soil health for climate resilience and crop productivity in a changing environment. Science of the Total Environment, 1000(May), 180460. https://doi.org/10.1016/j.scitotenv.2025.180460

Kp, Y., & Prasanna, S. M. (2025). Correlation and regression analysis of key soil fertility parameters in agricultural soils. 7(6), 26–30.

Latuconsina, M. S., & Rahardi, M. (2026). Comparison of LightGBM and CatBoost Algorithms for Diabetes Prediction Based on Clinical Data. Journal of Applied Informatics and Computing, 10(1), 1058–1065. https://doi.org/10.30871/jaic.v10i1.12179

Khechba, K., Laamrani, A., Dhiba, D., Misbah, K., & Chehbouni, A. (2021). Monitoring and Analyzing Yield Gap in Africa through Soil Attribute Best Management Using Remote Sensing Approaches: A Review. Remote Sensing, 13(22), 4602. https://doi.org/10.3390/rs13224602

LeCun, Y., Bengio, Y., & Hinton, G. (2015). Deep learning. Nature, 521, 436–444. https://doi.org/10.1038/nature14539

Liakos, K. G., Busato, P., Moshou, D., Pearson, S., & Bochtis, D. (2018). Machine Learning in Agriculture: A Review. Sensors, 18(8), 2674. https://doi.org/10.3390/s18082674

Mahmood, T., Usman, M., & Conrad, C. (2025). Selecting Relevant Features for Random Forest-Based Crop Type Classifications by Spatial Assessments of Backward Feature Reduction. PFG - Journal of Photogrammetry, Remote Sensing and Geoinformation Science, 93(2), 173–196. https://doi.org/10.1007/s41064-024-00329-4

Malo, S. K. (2025). Assessment of the soil fertility index ( SFI ) for sustainable nutrient management in rice- based cropping systems of Barind tract of West. Discov. Soil 2, 96 (2025). https://doi.org/10.1007/s44378-025-00130-8

Najdenko, E., Lorenz, F., Dittert, K., & Olfs, H.-W. (2024). Rapid in-field soil analysis of plant-available nutrients and pH for precision agriculture—a review. Precision Agriculture, 25(6), 3189–3218. https://doi.org/10.1007/s11119-024-10181-6

Neina, D. (2019). The Role of Soil pH in Plant Nutrition and Soil Remediation. Applied and Environmental Soil Science, 2019, 5794869. https://doi.org/10.1155/2019/5794869

Nila Aulia, Muhammad Rizky, & Chaerul Shaleh. (2025). Memprediksi Jenis Tanaman Berdasarkan Parameter Lingkungan Menggunakan Algoritma Decision Tree dan Random Forest Berbasis Web. Jurnal Teknik Informatika Dan Teknologi Informasi, 5(3), 578–596. https://doi.org/10.55606/jutiti.v5i3.6435

Oktapiani, V., & Agustin, Y. H. (2024). Implementation of Naïve Bayes Algorithm to Predict Food Crop Production Results in Garut Regency. Jurnal Sistem Cerdas, 7(3), 366–376. https://doi.org/10.37396/jsc.v7i3.455

Panigrahi, B., Kathala, K. C. R., & Sujatha, M. (2022). A Machine Learning-Based Comparative Approach to Predict the Crop Yield Using Supervised Learning with Regression Models. Procedia Computer Science, 218(2022), 2684–2693. https://doi.org/10.1016/j.procs.2023.01.241

Pedregosa, F., Varoquaux, G., Gramfort, A., Michel, V., Thirion, B., Grisel, O., Blondel, M., Prettenhofer, P., Weiss, R., Dubourg, V., Vanderplas, J., Passos, A., Cournapeau, D., Brucher, M., Perrot, M., &

Duchesnay, É. (2011). Scikit-learn: Machine Learning in Python. Journal of Machine Learning Research, 12, 2825–2830.

Prokhorenkova, L., Gusev, G., Vorobev, A., Dorogush, A. V., & Gulin, A. (2018). CatBoost: unbiased boosting with categorical features. Advances in Neural Information Processing Systems, 31.

Qwaid, M. A., Sarker, M. T., Shawon, S. M., & Zubair, H. T. (2026). AI-enabled smart farming framework for sustainable date palm cultivation in arid regions using machine learning and IoT integration. Scientific Reports, 16(1). https://doi.org/10.1038/s41598-026-36106-z

Rachakonda, L., & Stasiewicz, S. (2024). SanaSolo 2.0: Edge-Based Monitoring and Management of Soil Fertility Using IoT. In 2024 IFIP/IEEE 32nd International Conference on Very Large Scale Integration (VLSI-SoC). https://doi.org/10.1109/VLSI-SoC62099.2024.10767818

Ramzan, S., Ali, B., Raza, A., Hussain, I., Fitriyani, N. L., Gu, Y., & Syafrudin, M. (2024). An innovative artificial neural network model for smart crop prediction using sensory network based soil data. PeerJ Computer Science, 10, 1–28. https://doi.org/10.7717/peerj-cs.2478

Reza, M. N., Lee, K.-H., Karim, M. R., Haque, M. A., Bicamumakuba, E., Dey, P. K., Jang, Y. Y., & Chung, S.-O. (2025). Trends of Soil and Solution Nutrient Sensing for Open Field and Hydroponic Cultivation in Facilitated Smart Agriculture. Sensors, 25(2), 453. https://doi.org/10.3390/s25020453

Sharma, A. K., & Tomar, T. S. (2025). Influence of Integrated Nutrient Management on Growth, Yield and Quality of Wheat (Triticum aestivum L.) in Uttar Pradesh, India. Journal of Experimental Agriculture International, 47(7), 301–312. https://doi.org/10.9734/jeai/2025/v47i73569

Shin, S. K., Lee, S. J., & Park, J. H. (2025). Prediction of Soil Properties Using Vis-NIR Spectroscopy Combined with Machine Learning: A Review. Sensors, 25(16). https://doi.org/10.3390/s25165045

Simanjuntak, R. R., Manurung, S., & Djaingsastro, A. J. (2026). Analisis Kandungan N, P, K, dan C-Organik pada Tanah Datar dan Tanah Miring di Kebun Silau Dunia Afdeling III PT Perkebunan Nusantara IV Regional I. Ranah Research : Journal of Multidisciplinary Research and Development, 8(3), 1951–1961. https://doi.org/10.38035/rrj.v8i3.2112

Sinuraya, J., Weno Syechu, Wiwin Sry Adinda Banjarnahor, & Muhammad Riki Atsauri. (2025). Penerapan Aplikasi Sistem Rekomendasi Pemilihan Varietas Tanaman Berbasis Parameter Kelembaban Tanah, pH, dan Kandungan Nutrisi Pada Gapoktan Sri Karya Menggunakan Algoritma Random Forest. Jurnal Sistem Informasi Triguna Dharma (JURSI TGD), 4(6), 1393–1402. https://doi.org/10.53513/jursi.v4i6.12348

Sokolova, M., & Lapalme, G. (2009). A systematic analysis of performance measures for classification tasks. Information Processing & Management, 45(4), 427–437. https://doi.org/10.1016/j.ipm.2009.03.002

Sujatha, M., & Jaidhar, C. D. (2024). Machine learning-based approaches to enhance the soil fertility—A review. Expert Systems with Applications, 240, 122557. https://doi.org/10.1016/j.eswa.2023.122557

Sulaiman, A. S. S., Ahmad, M. A., Hassim, S. A., & Azman, M. S. A. (2021). Evaluation of fertilizer electrical conductivity (Ec) and temperature distribution via vertical farming system under plant factory. Basrah Journal of Agricultural Sciences, 34(special issue 1), 63–72. https://doi.org/10.37077/25200860.2021.34.SP1.7

Tohari, H., Harini, S., Yaqin, M. A., Santoso, I. B., & Crysdian, C. (2023). Penerapan Metode Support Vector Machine (SVM) Dalam Klasifikasi Produktivitas Padi. Journal of Computer System and Informatics (JoSYC), 5(1), 175–183. https://doi.org/10.47065/josyc.v5i1.4538

Toselli, M., Baldi, E., Ferro, F., Rossi, S., & Cillis, D. (2023). Smart Farming Tool for Monitoring Nutrients in Soil and Plants for Precise Fertilization. Horticulturae, 9(9), 1011. https://doi.org/10.3390/horticulturae9091011

Uribe-tarazona, D. Y., & Ruiz-diaz, C. M. (2025). Machine learning technique for the identi fi cation of two-phase ( oil-water ) fl ow patterns through pipelines. (July), 1–18. https://doi.org/10.3389/fmech.2025.1522120

Witaningsih, Sulistiyanti S.R., D. (2025). Artificial Neural Network Backpropagation Method for Predicting Soil Nutrient Content. Jurnal Ternik Pertanian Lampung, 14 o 6. https://jurnal.fp.unila.ac.id/index.php/JTP/article/view/11460/6766

Yulianto, P. R., & Astuti, Y. P. (2026). Perbandingan Kinerja Algoritma CatBoost, XGBoost, LightGBM dan Random Forest Dalam Memprediksi Risiko Infeksi Aids Dalam Dataset Kesehatan. Technology and Science (BITS), 7(4), 2383–2393. https://doi.org/10.47065/bits.v7i4.8975

Yuliyanto, Y., Sahibu, S., Imran, T., Arisha, A. O., & Munawirah, M. (2025). Crop Recommendation Based on Soil and Weather Conditions Using the K-Nearest Neighbors Algorithm. Journal of System and Computer Engineering (JSCE), 6(3), 211–219. https://doi.org/10.61628/jsce.v6i3.1955




DOI: https://doi.org/10.53889/citj.v4i2.945

Article Metrics

Abstract view : 0 times
PDF - 0 times

Refbacks

  • There are currently no refbacks.


Copyright (c) 2026 Cybersecurity and Innovative Technology Journal

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.