Soil Parameter Detection of Soil Test Kit-Treated Soil Samples through Image Processing with Crop and Fertilizer Recommendation

John Joshua Federis Montañez


Standard laboratory soil testing is deemed to be expensive and time-consuming. Utilizing a soil test kit is considered to be a cost-efficient and time-saving way of soil testing. This project study aims to develop a prototype that detects soil parameters (i.e., soil pH, Nitrogen, Phosphorus, and Potassium) and gives crop and fertilizer recommendation after the soil sample underwent soil treatment test kit and its acceptability among possible users. The prototype development primarily used image processing in the detection of the needed parameters that leads towards crop and fertilizer recommendation. In the evaluation of the effectiveness of the prototype, 50 trials were conducted per parameter. All of the said parameters were recorded as highly effective except for Nitrogen Low, which is interpreted as effective only. There were 30 possible users invited to assess the acceptability of the prototype. A survey based on the Technology Acceptance Model was administered to the 30 respondents garnering a 4.85 weighted mean interpreted as excellent. The prototype was proven effective and accepted as a device that can detect soil pH and primary macronutrient levels. It gives the appropriate crop and fertilizer recommendation based on the gathered data.


Image Processing; Raspberry Pi; Soil Test Kit; Soil pH and NPK; Technology Acceptance Model


United National Development Program, “About the Philippines,” Retrieved from, January 26, 2020.

G. Pradeep Kumar, S.M. Jeyakumar, T. Nishanth and M.S. Senthil Kumar, “Development of Efficient Agricultural Device to Evaluate the Soil Prameters for Precision Agriculture,” Eleyon Engineering Reports. Vol. 2, No. 1, 2019.

H. Kim, K. Sudduth and J. Hummel, “Soil Macronutrient Sensing for Precision Agriculture,” Journal of Environmental Monitoring, Vol. 11, No.10, pp. 1810-1824, 2009.

B. Quitain, and R. David, “Reliability of Soil Test Kit [Philippines],” Supplement no. 1. Retrieved from

R. Regalado and J. Dela Cruz, “Soil pH and Nutrient (Nitrogen, Phosphorus and Potassium) Analyzer Using Colorimetry,” in 2016 IEEE Region 10 Conference (TENCON), November 2016, pp. 2387-2391.

P. M. Rasal, S. B. Tilekar, A. D. Todkar, and S. A. Jagtap, “Nek Soil Measurement and Automatic Fertilizer Dispense,” International Journal for Research in Applied Science and Engineering Technology, Vol. 5, No. 3, pp. 806-809, 2017.

A. Pratap, N. Joseph, R. Eapen, R. Sebastian and S. Thomas, “Soil Fertility Analysis and Fertilizer Recommendation System,” Available at SSRN 3446609, September 2019.

P. Sihombing, B. Peranginangin, D. Sitompul and R. Rivaldo, “Tool for Detecting and Control of Soil pH by Probe Sensor Based on Android,” Journal of Physics, 2018.

P.R. Shubhashree and C. P. Kumar, “A Quantitative Analysis of An Advance Smart Soil Analyser with a Soil Tester: A Comprehensive Survey,” International Journal of Engineering Research & Technology, Vol. 7, No. 7, July 2018.

J.V. Sinfield, D. Fagerman and O. Colic, “Evaluation of Sensing Technologies for On-the-Go Detection of Macro-Nutrients in Cultivated Soils,” Computers and Electronics in Agriculture, Vol. 70, No. 1, pp. 1-18, January 2010.

V.I Adamchuk, J.W Hummel, M.T Morgan and S.K Upadhyaya, “On-the-Go Soil Sensors for Precision Agriculture,” Computers and Electronics in Agriculture, Vol. 44, No. 01, pp 71-91, July 2004.

A. Amrutha, R. Lekha and A. Sreedevi, “Automatic Soil Nutrient Detection and Fertilizer Dispensary System,” in 2016 International Conference on Robotics: Current Trends and Future Challenges (RCTFC), December 2016, pp. 1-5.

M. Yokota, T. Okada and I. Yamaguchi, “An Optical Sensor for Analysis of Soil Nutrients by Using LED Light Sources,” Measurement Science and Technology, Vol. 18, No. 07, p. 2197, 2007.

W.S. Lee, V. Alchanatis, C. Yang, M. Hirafuji, D. Moshou and C. Li, “Sensing Technologies for Precision Specialty Crop Production,” Computers and Electronics in Agriculture, Vol. 74, pp. 2-33, 2010.

S. Laskar, and S. Mukherjee, “Optical Sensing Methods for Assessment of Soil Macronutrients and Other Properties for Application in Precision Agriculture: A Review,” ADBU Journal of Engineering Technology, p. 4, March 2016.

D. V. Ramane, S.S. Patil and A.D. Shaligram, “Detection of NPK Nutrients of Soil Using Fiber Optic Sensor,” in International Journal of Research in Advent Technology Special Issue National Conference ACGT 2015, February 2015, pp. 13-14.

J. J. Sene, N. R. Stradiotto, W. A. Zeltner, M. A. Anderson and W. Zhou, “A Sensor for Monitoring the Volume of Nutrient in a Solid Substrate-Based Growth Media by Using Electrochemical Admittance Spectroscopy,” Sensors and Actuators B, Vol. 87, pp.268–273, 2002.

J. Lin, M. Wang, M. Zhang, Y. Zhang and L. Chen, “Electrochemical Sensors for Soil Nutrient Detection: Opportunity and Challenge,” in International Conference on Computer and Computing Technologies in Agriculture, Boston, MA, August 2007, pp. 1349-1353.

S. Sharma and A. Chatterjee, “Comparing Soil Test Kits with Standard Lab-Based Soil Tests for Agricultural Soils,” Crops and Soils, Vol. 52, No. 2, pp. 18-20, 2019.

R. Alasco, et al., “SoilMATTic: Arduino-Based Automated Soil Nutrient and pH Level Analyzer using Digital Image Processing and Artificial Neural Network,” in 2018 IEEE 10th International Conference on Humanoid, Nanotechnology, Information Technology, Communication and Control, Environment and Management (HNICEM), 2018, pp. 1-5.

N. Dhanachandra and Y.J. Chanu, “A Survey on Image Segmentation Methods Using Clustering Techniques,” European Journal of Engineering Research and Science, Vol. 02, No. 01, pp.15-20, 2017.

A. Khan, A. Burdi, S. Awan, H. Shah, and F Abbasi, “Image Segmentation Approach Using Python OpenCV to Detect Tuberculosis,” Sindh University Research Journal-SURJ (Science Series), Vol. 51, no. 01, pp. 135-140, March 2019.

P. Liu, W. Zhang, J. Qiu, Q. Hu, and K. He, “Reagent Color Recognition Model for Android Platform Based on OPENCV and Machine Learning,” in 2019 International Conference on Machine Learning, Big Data and Business Intelligence (MLBDBI), November 2019, pp. 270-273.

N. Paliwal, P. Vanjani, J. W. Liu, S. Saini, and A. Sharma. “Image Processing-Based Intelligent Robotic System for Assistance of Agricultural Crops,” International Journal of Social and Humanistic Computing, Vol. 3, No.2, pp. 191-204, 2019.

S. Khan and M. Narvekar, “Disorder Detection of Tomato Plant (Solanum lycopersicum) Using IOT and Machine Learning,” in Journal of Physics: Conference Series, IOP Publishing, January 2020, Vol. 1432, No. 1, p. 012086.

S. S. Kumar and B. K. Raghavendra, “Diseases Detection of Various Plant Leaf Using Image Processing Techniques: A Review,” in 2019 5th International Conference on Advanced Computing & Communication Systems (ICACCS), March 2019, pp. 313-316.

J. R. Fiona and J. Anitha, “Automated Detection of Plant diseases and Crop Analysis in Agriculture using Image Processing Techniques: A Survey,” in 2019 IEEE International Conference on Electrical, Computer and Communication Technologies (ICECCT), February 2019, pp. 1-5.

E. A. Hamuda, “Signal and Image Processing Technology for Smart Agriculture Applications,” Ph.D. dissertation, Dept. of Electrical and Electronics Eng., National University of Ireland, Galway, Ireland, April 2019.

M. Rashid, et al., “Novel Image Processing Technique for Feature Detection of Wheat Crops using Python OpenCV,” in 2019 International Conference on Computational Intelligence and Knowledge Economy (ICCIKE), December 2019, pp. 559-563.

A. Qashlim, et al., “Smartphone Technology Applications for Milkfish Image Segmentation Using OpenCV Library,” International Association of Online Engineering, 2020.



  • There are currently no refbacks.

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

shopify stats IJEECS visitor statistics