Research Article

Optimizing Machine Learning Models for Soil Fertility Analysis: Insights from Feature Engineering and Data Localization

Volume: 12 Number: 1 March 26, 2025
EN

Optimizing Machine Learning Models for Soil Fertility Analysis: Insights from Feature Engineering and Data Localization

Abstract

Soil fertility is a critical determinant of agricultural productivity, yet traditional assessment methods often fall short in providing timely and precise recommendations. This study explores the potential of machine learning (ML) models to predict soil fertility, leveraging localized soil data and advanced feature engineering techniques. A comprehensive methodology was employed, involving data preprocessing, feature selection, and the implementation of six ML algorithms: Random Forest Regressor, Gradient Boosting Regressor, XGBoost Regressor, K-Nearest Neighbours Regressor, and Neural Network (MLP). The models were evaluated using robust metrics such as RMSE, R², and K-Fold Cross-Validation. Results demonstrate that engineered features significantly enhanced model performance, with Random Forest Regressor consistently outperforming other models across multiple soil nutrient parameters, achieving a testing R² of up to 0.99 and minimal RMSE. Exploratory Data Analysis (EDA) revealed key insights into soil nutrient dynamics, emphasizing the importance of pH, nitrogen, and organic matter as predictors. Feature engineering techniques, such as polynomial generation and scaling, further improved model accuracy and stability. This study highlights the transformative potential of ML in optimizing soil management practices. By integrating localized data and advanced predictive models, the findings provide actionable insights for farmers and agronomists, fostering sustainable agricultural practices and informed decision-making. This approach underscores the value of data-driven methods in addressing soil fertility challenges, paving the way for scalable and cost-effective solutions in precision agriculture.

Keywords

References

  1. Abishek, J. (2023). Soil texture prediction using machine learning approach for sustainable soil health management. International Journal of Plant and Soil Science, 35(19), 1416-1426. https://doi.org/10.9734/ijpss/2023/v35i193685
  2. Asif, M. (2024). Leveraging machine learning for soil fertility prediction and crop management in agriculture. https://doi.org/10.21203/rs.3.rs-4310747/v1
  3. Awais, M. (2023). Ai and machine learning for soil analysis: an assessment of sustainable agricultural practices. Bioresources and Bioprocessing, 10(1). https://doi.org/10.1186/s40643-023-00710-y
  4. Barrena-González, J. (2024). Looking for optimal maps of soil properties at the regional scale. International Journal of Environmental Research, 18(4). https://doi.org/10.1007/s41742-024-00611-8
  5. Chen, Y., Shi, T., Li, Q., Wang, Z., Wang, R., Wang, F., … and Li, Y. (2024). Mapping soil properties in tropical rainforest area using uav-based hyperspectral images and lidar points. https://doi.org/10.21203/rs.3.rs-4273924/v1
  6. Clark, J., Fernández, F., Veum, K., Camberato, J., Carter, P., Ferguson, R., … and Shanahan, J. (2019). Predicting economic optimal nitrogen rate with the anaerobic potentially mineralizable nitrogen test. Agronomy Journal, 111(6), 3329-3338. https://doi.org/10.2134/agronj2019.03.0224
  7. Dinh, T., Nguyen, H., Tran, X., and Hoang, N. (2021). Predicting rainfall-induced soil erosion based on a hybridization of adaptive differential evolution and support vector machine classification. Mathematical Problems in Engineering, 2021, 1-20. https://doi.org/10.1155/2021/6647829
  8. Ezenwankwo, S., Adeagbo, A.A., Lawal, S., Idoghor, S. M. and Chukwu, O.(2020). Evaluation of early growth of Maesobotrya barteri (Hutch) seedlings underdifferent growing media and watering regime. In: Forestry Development in Nigeria: Fiftyyears of interventions and Advocacy. At the 42nd Annual conference of the Forestry Association of Nigeria (FAN), on 23-28 November, 2020, Ibadan, Nigeria. pp. 730-736.

Details

Primary Language

English

Subjects

Agricultural Systems Analysis and Modelling, Genetically Modified Field Crops and Pasture

Journal Section

Research Article

Publication Date

March 26, 2025

Submission Date

December 24, 2024

Acceptance Date

February 25, 2025

Published in Issue

Year 2025 Volume: 12 Number: 1

APA
Nwamekwe, C. O., Ewuzie, N. V., Okpala, C., Ezeanyim, O. C., Nwabueze, C. V., & Nwabunwanne, E. C. (2025). Optimizing Machine Learning Models for Soil Fertility Analysis: Insights from Feature Engineering and Data Localization. Gazi University Journal of Science Part A: Engineering and Innovation, 12(1), 36-60. https://doi.org/10.54287/gujsa.1605587
AMA
1.Nwamekwe CO, Ewuzie NV, Okpala C, Ezeanyim OC, Nwabueze CV, Nwabunwanne EC. Optimizing Machine Learning Models for Soil Fertility Analysis: Insights from Feature Engineering and Data Localization. GU J Sci, Part A. 2025;12(1):36-60. doi:10.54287/gujsa.1605587
Chicago
Nwamekwe, Charles Onyeka, Nnamdi Vitalis, Ewuzie, C. Okpala, Okechukwu Chiedu Ezeanyim, Chibuzo Victoria Nwabueze, and Emeka Celestine Nwabunwanne. 2025. “Optimizing Machine Learning Models for Soil Fertility Analysis: Insights from Feature Engineering and Data Localization”. Gazi University Journal of Science Part A: Engineering and Innovation 12 (1): 36-60. https://doi.org/10.54287/gujsa.1605587.
EndNote
Nwamekwe CO, Ewuzie NV, Okpala C, Ezeanyim OC, Nwabueze CV, Nwabunwanne EC (March 1, 2025) Optimizing Machine Learning Models for Soil Fertility Analysis: Insights from Feature Engineering and Data Localization. Gazi University Journal of Science Part A: Engineering and Innovation 12 1 36–60.
IEEE
[1]C. O. Nwamekwe, N. V. Ewuzie, C. Okpala, O. C. Ezeanyim, C. V. Nwabueze, and E. C. Nwabunwanne, “Optimizing Machine Learning Models for Soil Fertility Analysis: Insights from Feature Engineering and Data Localization”, GU J Sci, Part A, vol. 12, no. 1, pp. 36–60, Mar. 2025, doi: 10.54287/gujsa.1605587.
ISNAD
Nwamekwe, Charles Onyeka - Ewuzie, Nnamdi Vitalis, - Okpala, C. - Ezeanyim, Okechukwu Chiedu - Nwabueze, Chibuzo Victoria - Nwabunwanne, Emeka Celestine. “Optimizing Machine Learning Models for Soil Fertility Analysis: Insights from Feature Engineering and Data Localization”. Gazi University Journal of Science Part A: Engineering and Innovation 12/1 (March 1, 2025): 36-60. https://doi.org/10.54287/gujsa.1605587.
JAMA
1.Nwamekwe CO, Ewuzie NV, Okpala C, Ezeanyim OC, Nwabueze CV, Nwabunwanne EC. Optimizing Machine Learning Models for Soil Fertility Analysis: Insights from Feature Engineering and Data Localization. GU J Sci, Part A. 2025;12:36–60.
MLA
Nwamekwe, Charles Onyeka, et al. “Optimizing Machine Learning Models for Soil Fertility Analysis: Insights from Feature Engineering and Data Localization”. Gazi University Journal of Science Part A: Engineering and Innovation, vol. 12, no. 1, Mar. 2025, pp. 36-60, doi:10.54287/gujsa.1605587.
Vancouver
1.Charles Onyeka Nwamekwe, Nnamdi Vitalis, Ewuzie, C. Okpala, Okechukwu Chiedu Ezeanyim, Chibuzo Victoria Nwabueze, Emeka Celestine Nwabunwanne. Optimizing Machine Learning Models for Soil Fertility Analysis: Insights from Feature Engineering and Data Localization. GU J Sci, Part A. 2025 Mar. 1;12(1):36-60. doi:10.54287/gujsa.1605587

Cited By