Main Article Content


Determining the quality of soil is an important task to perform especially on newly opened agricultural land since it may provide significant impact on the growth of plants. One alternative to determine physical soil quality is by visually observe the color of the soil and measure its moisture. This paper designed an embedded system classify soil condition for plants according to the dimensionality reduction of color and moisture information from the soil using k-NN algorithm. The dimension of attribute information was reduced using correlation analysis to achieve lower computational time and lower memory usage on embedded system. In this study, 39 sample of soil from various location were collected and categorized by soil expert using visual observation. In the accuracy testing on the system that used 4 attributes, 100% accuracy was given by 60:40 ratio with 7 neighbors. In contrast, the system that used only 2 attributes, 100% accuracy was given by 60:40 ratio with 5 nearest neighbors. The resource usage testing shown that by using reduced attributes dimension, the resource usage can be lowered as many as 188 bytes on program storage and 192 bytes on global variable usage. Moreover, the average of computation time performed by the system using reduced attribute dimension achieved 5.4 ms compared to the system that used all attributes which achieved 6.2 ms.

Article Details

How to Cite
Syauqy, D., Fitriyah, H., & Anwar, K. (2018). Classification of Physical Soil Condition for Plants using Nearest Neighbor Algorithm with Dimensionality Reduction of Color and Moisture Information. Journal of Information Technology and Computer Science, 3(2), 175–183.


  1. Ministry of Agriculture: Buku Statistik Data Lahan Tahun 2012-2016. BPS-Statistics Indonesia (2017) [accessed online at]
  2. Alam, S, Sunarminto, B.H., Siradz, S.A: Karakteristik Kesuburan Tanah Pada Kondisi Iklim Berbeda Di Sulawesi Tenggara. Agriplus vol 23 (1) (2013)
  3. Kadarwati, F.T. Evaluation of Soil Fertility to Sugarcane at Rembang District, Central Java. Jurnal Littri 22(2) (2016)
  4. Warudkar, G, Dorle, S: Review on sensing the fertility characteristics of agriculture soils. International Conference on Information Communication and Embedded Systems (ICICES) (2016).
  5. Brown, P.E., O’neall, A.M: The Color of Soils in Relation to Organic Matter Content. Soil Chemistry and Bacteriology (1923)
  6. Pendleton, R.L.; Nickerson, Dorothy. Soil Colors And Special Munsell Soil Color Charts. Soil Science: Volume 71 - Issue 1 - ppg 35-44 (1951)
  7. Centeri, C, Vona, M, and Bíró, Z: Deviation in soil colour determination based upon students visual perception. World Congress of Soil Science, Soil Solutions for a Changing World (2010)
  8. Wahyunie, E.D., Baskoro, D.P.T and Sofyan, M. Kemampuan retensi air dan ketahanan penetrasi tanah pada sistem olah tanah intensif dan olah tanah konservasi. Jurnal Tanah Lingkungan 14 (2), 73-78 (2012)
  9. Prasetyo, T.F., Frastya, E.A., and Enceng Enda S. Sistem Pendeteksi Kesuburan Tanah Pada Desa Cihaur Kelompok Tani Bina Mandiri. Seminar Nasional Energi & Teknologi (SINERGI) (2017).
  10. Anwar, K., Syauqy, D., & Fitriyah, H. Sistem Pendeteksi Kandungan Nutrisi dalam Tanah Berdasarkan Warna dan Kelembapan dengan Menggunakan Metode Naive Bayes. Jurnal Pengembangan Teknologi Informasi dan Ilmu Komputer, vol. 2, no. 9, p. 2491-2498, (2018).
  11. Gogtay, N.J, Thatte, U.M. Principles of Correlation Analysis. Journal of The Association of Physicians of India Vol. 65 (2017)