Intelligent Model for Soil Fertility Classification Based on Machine Learning and Integrated into the Tellurium System
DOI:
https://doi.org/10.5281/zenodo.22016973Palavras-chave:
Artificial intelligence, Decision support, Digital agriculture, Predictive algorithmResumo
The growing demand for technologies capable of supporting decision-making in agriculture has driven the development of intelligent systems focused on soil fertility management. In this context, this study aimed to deve lop and evaluate a machine learning model to complement the functionalities of the Tellurium platform, assisting in soil fertility classification and the validation of agronomic management recommendations. The platform already generates recommendations for fertilization, liming, and soil management based on established agronomic criteria, with the machine learning model incorporated as an additional decision-support layer. To achieve this, a pipeline was structured comprising the following stages: data preprocessing, data quality verification, feature selection, variable standardization, training and comparison of classification algorithms, stratified cross-validation, hyperparameter optimization via GridSearchCV, and performance evaluation using metrics such as accuracy, precision, recall, F1-score, and the confusion matrix. Among the evaluated algorithms, Random Forest demonstrated the best performance, achieving an accuracy of 93.56%, precision of 93.82%, recall of 93.56%, and an F1-score of 93.59%, thereby showing a high capacity for generalization to unseen data. The model was exported, serialized, and validated in a development environment, ready for future integration into the Tellurium platform. However, its final implementation remains in an adaptation phase due to version incompatibilities between libraries used in the interface development. The results highlight the potential of the proposed hybrid approach, which integrates agronomic knowledge and machine learning to enhance the reliability of recommendations and strengthen the platform as a decision-support tool for soil fertility management.
Referências
ABDULLAH, W. A comparative study of machine learning models for soil fertility prediction based on soil properties. Optimization in Agriculture, v. 2, p. 1-9, 2025. Disponível em: https://doi.org/10.61356/j.oia.2025.2477. Acesso em: 12 abr. 2026.
ABREU, A. M.; SÁTIRO, G.; LITRE, G.; SANTOS, L.; OLIVEIRA, J. E.; SOARES, D.; ÁVILA, K. A interface entre saúde, mudanças climáticas e uso do solo no Brasil: uma análise da evolução da produção científica internacional entre 1990 e 2019. Saúde e Sociedade, v. 29, n. 2, 2020. Disponível em: https://doi.org/10.1590/S0104-12902020180866. Acesso em: 25 abr. 2026.
ADOMAKO, M. O.; ROILOA, S.; YU, F. H. Potential roles of soil microorganisms in regulating the effect of soil nutrient heterogeneity on plant performance. Microorganisms, v. 10, n. 12, p. 2399, 2022. Disponível em: https://doi.org/10.3390/microorganisms10122399. Acesso em: 08 maio 2026.
BABU, K. D.; GOUSIA, S. U.; DEEP, N.; CP, M. M.; GANGWAR, S.; BEHERA, S. K.; HIMSHIKHA; DUTTA, S. Sensor based soil monitoring: a new era in precision agronomic decision making. International Journal of Research in Agronomy, v. 8, n. 6, p. 743-754, 2025. Disponível em: https://doi.org/10.33545/2618060X.2025.v8.i6i.3113. Acesso em: 19 maio 2026.
BATISTA, G. E. A. P. A.; PRATI, R. C.; MONARD, M. C. A study of the behavior of several methods for balancing machine learning training data. ACM SIGKDD Explorations Newsletter, v. 6, n. 1, p. 20-29, 2004.
BENEDET, L.; ACUÑA-GUZMAN, S. F.; FARIA, W. M.; SILVA, S. H. G.; CURI, N.; GUILHERME, L. R. G. Rapid soil fertility prediction using X-ray fluorescence data and machine learning algorithms. CATENA, v. 197, p. 105003, 2021. Disponível em: https://doi.org/10.1016/j.catena.2020.105003. Acesso em: 04 jun. 2026.
BREIMAN, L. Random forests. Machine Learning, v. 45, n. 1, p. 5-32, 2001. Disponível em: https://doi.org/10.1023/A:1010933404324. Acesso em: 16 jun. 2026.
CARBAJAL-LLOSA, C.; BARJA, A.; PIZARRO, S. Ensemble machine learning for digital mapping of soil pH and electrical conductivity in the Andean agroecosystem of Peru. Frontiers in Soil Science, v. 5, p. 1673628, 2025. Disponível em: https://doi.org/10.3389/fsoil.2025.1673628. Acesso em: 27 jun. 2026.
CASTRO, C. N. Agricultura familiar e maquinário agrícola no Brasil: barreiras ao uso, pesquisa e desenvolvimento e políticas públicas. Planejamento e Políticas Públicas, n. 70, 2025. Disponível em: https://doi.org/10.38116/ppp70art10. Acesso em: 11 abr. 2026.
CASINI, S.; DUCANGE, P.; MARCELLONI, F.; POLLINI, L. Artificial intelligence in agri-robotics: a systematic review of trends and emerging directions leveraging bibliometric tools. Robotics, v. 15, n. 1, p. 24, 2026. Disponível em: https://doi.org/10.3390/robotics15010024. Acesso em: 30 abr. 2026.
CHANDRA, H.; PAWAR, P. M.; ELAKKIYA, R.; TAMIZHARASAN, P. S.; MUTHALAGU, R.; PANTHAKKAN, A. Explainable AI for soil fertility prediction. IEEE Access, v. 11, p. 97866-97878, 2023. Disponível em: https://doi.org/10.1109/ACCESS.2023.3311827. Acesso em: 14 maio 2026.
CHAWLA, N. V.; BOWYER, K. W.; HALL, L. O.; KEGELMEYER, W. P. SMOTE: synthetic minority over-sampling technique. Journal of Artificial Intelligence Research, v. 16, p. 321-357, 2002. Disponível em: https://doi.org/10.1613/jair.953. Acesso em: 28 maio 2026.
CORTES, C.; VAPNIK, V. Support-vector networks. Machine Learning, v. 20, n. 3, p. 273-297, 1995.
DESCONSI, C.; DE SÁ, M. O uso e a apropriação de tecnologias digitais na gestão de unidades agropecuárias: uma análise a partir da percepção de agricultores de Santa Catarina - Brasil. Desenvolvimento em Questão, v. 22, n. 60, 2024. Disponível em: https://doi.org/10.21527/2237-6453.2024.60.15011. Acesso em: 10 jun. 2026.
FACELI, K. et al. Inteligência artificial: uma abordagem de aprendizado de máquina. 2. ed. Rio de Janeiro: LTC, 2021.
FAWCETT, T. An introduction to ROC analysis. Pattern Recognition Letters, v. 27, n. 8, p. 861-874, 2006. Disponível em: https://doi.org/10.1016/j.patrec.2005.10.010. Acesso em: 23 jun. 2026.
FRIEDMAN, J. H. Greedy function approximation: a gradient boosting machine. The Annals of Statistics, v. 29, n. 5, p. 1189-1232, 2001. Disponível em: https://doi.org/10.1214/aos/1013203451. Acesso em: 06 abr. 2026.
GITHUB. GitHub Docs. Disponível em: https://docs.github.com/. Acesso em: 21 abr. 2026.
GOOGLE. Google Colaboratory. 2024. Disponível em: https://colab.research.google.com/. Acesso em: 17 maio 2026.
HOSMER, D. W.; LEMESHOW, S.; STURDIVANT, R. X. Applied logistic regression. 3. ed. Hoboken: Wiley, 2013.
ISLAM, A.; HOSSAIN, M. S.; ANDERSEN, P.; RAHMAN, M. A. KNNOR: an oversampling technique for imbalanced datasets. Applied Soft Computing, v. 115, p. 108288, 2022. Disponível em: https://doi.org/10.1016/j.asoc.2021.108288. Acesso em: 29 maio 2026.
JOBLIB DEVELOPMENT TEAM. Joblib: Running Python functions as pipeline jobs. Disponível em: https://joblib.readthedocs.io/. Acesso em: 12 jun. 2026.
KAGGLE. Soil Fertility Dataset. 2023. Disponível em: https://www.kaggle.com/datasets/rahuljaiswalonkaggle/soil-fertility-dataset. Acesso em: 24 jun. 2026.
LEMAÎTRE, G.; NOGUEIRA, F.; ARIDAS, C. K. Imbalanced-learn: A Python toolbox to tackle the curse of imbalanced datasets in machine learning. Journal of Machine Learning Research, v. 18, n. 17, p. 1-5, 2017. Disponível em: http://jmlr.org/papers/v18/16-365.html. Acesso em: 15 abr. 2026.
MAHESH, P.; SOUNDRAPANDIYAN, R. Enzyme-aware soil fertility prediction using dual optimization with improved SCSO. Scientific Reports, v. 16, p. 56124, 2026. Disponível em: https://doi.org/10.1038/s41598-026-56124-1. Acesso em: 18 jun. 2026.
MCKINNEY, W. Data structures for statistical computing in Python. In: PROCEEDINGS OF THE 9TH PYTHON IN SCIENCE CONFERENCE (SCIPY 2010). SciPy, 2010. p. 56-61. Disponível em: https://doi.org/10.25080/Majora-92bf1922-00a. Acesso em: 07 abr. 2026.
MMBANDO, G. S. Harnessing artificial intelligence and remote sensing in climate-smart agriculture: the current strategies needed for enhancing global food security. Cogent Food & Agriculture, v. 11, n. 1, 2025. Disponível em: https://doi.org/10.1080/23311932.2025.2454354. Acesso em: 18 abr. 2026.
NASARUDDIN, N. et al. A SMOTE PCA HDBSCAN approach for enhancing water quality classification in imbalanced datasets. Scientific Reports, v. 15, p. 13059, 2025. Disponível em: https://doi.org/10.1038/s41598-025-97248-0. Acesso em: 30 abr. 2026.
PEARSON, K. Notes on regression and inheritance in the case of two parents. Proceedings of the Royal Society of London, v. 58, p. 240-242, 1895. Disponível em: https://doi.org/10.1098/rspl.1895.0041. Acesso em: 12 maio 2026.
PEDREGOSA, F. et al. Scikit-learn: machine learning in Python. Journal of Machine Learning Research, v. 12, p. 2825-2830, 2011. Disponível em: https://jmlr.org/papers/v12/pedregosa11a.html. Acesso em: 21 maio 2026.
PYTHON SOFTWARE FOUNDATION. Python Language Site: Documentation. 2024. Disponível em: https://www.python.org/doc/. Acesso em: 03 jun. 2026.
SARMA, H. H.; BEZBARUAH, A.; TALUKDAR, N.; KURMI, K. K.; BORKOTOKY, B. Comprehensive assessment of various soil fertility evaluation techniques for estimating nutrient status of soil: a review. Plant Archives, v. 24, n. 2, p. 1131-1140, 2024. Disponível em: https://doi.org/10.51470/PLANTARCHIVES.2024.v24.no.2.135. Acesso em: 27 jun. 2026.
SITOE, E. S.; SCHENATO, R. B.; SANTOS, D. R. Potassium content in soil and plants in a long-term potassium fertilization experiment. Ciência Rural, v. 55, n. 7, e20240133, 2025. Disponível em: https://doi.org/10.1590/0103-8478cr20240133. Acesso em: 10 abr. 2026.
SOKOLOVA, M.; LAPALME, G. A systematic analysis of performance measures for classification tasks. Information Processing & Management, v. 45, n. 4, p. 427-437, 2009. Disponível em: https://doi.org/10.1016/j.ipm.2009.03.002. Acesso em: 22 maio 2026.
SOARES, M. R. et al. Levantamento do consumo de fertilizantes e utilização da análise de solo por pequenos e médios produtores agrícolas da região de Araras-SP. Revista Ciência em Extensão, v. 5, n. 1, p. 56-75, 2009. Disponível em: https://ojs.unesp.br/index.php/revista_proex/article/view/95. Acesso em: 08 jun. 2026.
SZEGHALMY, S.; FAZEKAS, A. A comparative study of the use of stratified cross-validation and distribution-balanced stratified cross-validation in imbalanced learning. Sensors, v. 23, n. 4, p. 2333, 2023. Disponível em: https://doi.org/10.3390/s23042333. Acesso em: 19 jun. 2026.
TOMEK, I. Two modifications of CNN. IEEE Transactions on Systems, Man, and Cybernetics, v. 6, n. 11, p. 769-772, 1976.
VIANA F., A.; DE OLIVEIRA PAZ, A. M. As dificuldades de agricultores em transações comerciais bancárias e a oficina de letramento como estratégia de superação. Revista Eletrônica Competências Digitais para Agricultura Familiar (RECoDAF), v. 10, n. 1, e1001189, 2024. Disponível em: https://owl.tupa.unesp.br/recodaf/index.php/recodaf/article/view/189. Acesso em: 15 jun. 2026.
WEN, Z.; CHEN, Y.; LIU, Z.; MENG, J. Biochar and arbuscular mycorrhizal fungi stimulate rice root growth strategy and soil nutrient availability. European Journal of Soil Biology, v. 113, p. 103448, 2022. Disponível em: https://doi.org/10.1016/j.ejsobi.2022.103448. Acesso em: 25 abr. 2026.
WOLFERT, S.; GE, L.; VERDOUW, C.; BOGAARDT, M.-J. Big data in smart farming – A review. Agricultural Systems, v. 153, p. 69-80, 2017. Disponível em: https://doi.org/10.1016/j.agsy.2017.01.023. Acesso em: 31 maio 2026.



































