Feature Selection and K-nearest Neighbor for Diagnosis Cow Disease

Yeni Kustiyahningsih


The large number of cattle population that exists can increase the potential for developing cow disease. Lack of knowledge about various kinds of cattle diseases and their handling solutions is one of the causes of decreasing cow productivity. The aim of this research is to classify cattle disease quickly and accurately to assist cattle breeders in accelerating detection and handling of cattle disease. This study uses K-Nearest Neighbour (KNN) classification method with the F-Score feature selection. The KNN method is used for disease classification based on the distance between training data and test data, while F-Score feature selection is used to reduce the attribute dimensions in order to obtain the relevant attributes. The data set used was data on cattle disease in Madura with a total of 350 data consisting of 21 features and 7 classes. Data were broken down using K-fold Cross Validation using k = 5. Based on the test results, the best accuracy was obtained with the number of features = 18 and KNN (k = 3) which resulted in an accuracy of 94.28571, a recall of 0.942857 and a precision of 0.942857.


-Nearest Neighbor; F-Score; Feature Selection; Cow Disease; multi-class.

Full Text:



M. M. Jannan, H. Supriyono 2018 Android-Based Decision Support System for Cattle Disease Jurnal Emitor, vol. 18, no. 02, pp. 8-13.

S. Harwati, 2014 Efforts to Provide Healthy and Quality Beef, Bangka Belitung Regency : Dinas Pertanian, Perkebunan dan Peternakan.

L. G. Sri Astiti, 2010 Management of the Prevention and Control of Cow Disease, West Nusa Tenggara: Kementrian Pertanian,

S. S. Emanuel, L. Schoonman and C. J. Daborn, 2010 Knowledge and Attitude Towards among Animal Health and Livestock Keepers in Arusha an Tanga, Tanzania," Tanzania Journal of Health Research, pp. 272-277.

P.L.Venjakob, R.Staufenbiel, W.Heuwieser, S.Borchardt, 2021 Association between serum calcium dynamics around parturition and common postpartum diseases in dairy cows Journal of Dairy Science Volume 104, Issue 2, Pages 2243-2253

J. Tong, S. Alelyani and H. Liu, "Feature Selection for Classification: A Review," Sch, 2013.

Y. Lukito and A. R. Chrismanto, 2015 Comparison of Classification Methods for Indoor Positioning Systems Jurnal Teknik Informatika dan Sistem Informasi, vol. 1, no. 2, pp. 123-131.

Fan Cunjia, Wang Yousheng, Bian Hang. 2015 An Improved KNN Text Classification Algorithm[J]. Foreign Electronic Measurement Technology, 12: 39-43.

Hilal Arslan, Hasan Arslan, 2021 A new COVID-19 detection method from human genome sequences using CpG island features and KNN classifier, Engineering Science and Technology, an International Journal, https://doi.org/10.1016/j.jestch.2020.12.026

Z. F. Ma, H. Tian, Z. C. Liu, Z. w. Zhang, 2020 A new incomplete pattern belief classification method with multiple estimations based on KNN, Applied Soft Computing, Volume 90, 106175, https://doi.org/10.1016/j.asoc.2020.106175

Jin li Zhang, HailongYou, RenxuJia 2020 Reliability hazard characterization of wafer-level spatial metrology parameters based on LOF-KNN method Author links open overlay”. Microelectronics Reliability, Volume 107,


Z. Chen, L. J. Zhou, X. Da Li, J. N. Zhang, W. J. Huo, 2020 The Lao Text Classification Method Based on KNN” Procedia Computer Science 166 523–528. DOI: 10.1016/j.procs.2020.02.05

D. A. Nasution, H. H. Khotimah and N. Camidah, 2019 Comparison of Normalized Data for Wine Classification using the K-NN Algorithm," CESS (Journal of Computer Engineering System and Science), vol. 4, no. 1, pp. 78-82.

D. Valentina and R. C. Wihandika, 2019 Toddler Fingerprint Recognition Using Zone Based Linear Binary Pattern and Extreme Learning Machine Method," Jurnal Pengembangan Teknologi Informasi dan Ilmu Komputer, vol. 3, no. 2, pp. 1851-1859.

E. S. Wahyuni 2016 Application of the Feature Selection method to improve the results of Breast Cancer Diagnosis," Jurnal simetris, vol. 7, no. 1, pp. 284-294

C. Saranya and G. Manikandan, 2013 A Study on Normalization Techniques for Privacy Preserving Data Mining," International Journal of Engineering and Technology (IJET), vol. 5, no. 3, pp. 2701-2704.

D. L. Al Shalabi and D. Z. Shaaban, 2006 Normalization as a Preprocessing Engine for Data Mining and the Approach of Preference Matrix," proceedings of the International Conference on Dependability of Computer System, pp. 207-214,

D. Kusnianingtyas, B. A. Rahardian, D. P. Mahardika, A. Kartika and D. Angraeni K., 2017 Decision Support System for Beef Cattle Disease Diagnosis Using K-Nearest Neighbor (K-NN)," Jurnal Teknologi Informasi dan Ilmu Komputer (JTIIK), vol. 4, no. 2, pp. 122-126.

H. Leidiyana, 2013 Application of the K-Nearest Neighbor Algorithm for determining the risk of motorized vehicle ownership credit," Jurnal Penelitian Ilmu Komputer, System Embedded & Logic, vol. 1, no. 1, pp. 65-76.

J. Y. Sari, R. A. Saputra 2017 Finger Vein Introduction Using Local Line Binary Pattern and Learning Vector Quantization, "ULTIMA Computing , vol. IX, no. 2, pp. 52-57.





  • There are currently no refbacks.

Copyright (c) 2021 Yeni Kustiyahningsih

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