Expert systems have been widely used to solve problems in various fields such as medicine, mathematics, engineering, chemistry, pharmacy, computer science, business, law, education, and defense. If the expert system is related to the doctor's ability to diagnose the patient's health, a computer system can be created that can identify and analyze the symptoms that occur in patients and provide suggestions for overcoming them. Worms seem trivial, but if we look closely, it has a serious impact on affecting the health of livestock which in turn will have a direct result in decreased production. Goats that experience worms will experience a lack of nutrition or nutrition, so that their resistance to disease will decrease, so they are prone to other diseases, especially infectious diseases. Bayesian probability theory is a branch of the mathematical-statistical theory that allows us to create a model of the uncertainty of an event that occurs by combining general knowledge with facts from observations.
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
 M. Miller and S. P. Hinshaw, “Attention-Deficit/Hyperactivity Disorder,” in Encyclopedia of Mental Health: Second Edition, 2016.
 P. Shaw, A. Stringaris, J. Nigg, and E. Leibenluft, “Emotion dysregulation in attention deficit hyperactivity disorder,” American Journal of Psychiatry. 2014, doi: 10.1176/appi.ajp.2013.13070966.
 S. Jiang, G. Pang, M. Wu, and L. Kuang, “An improved K-nearest-neighbor algorithm for text categorization,” Expert Syst. Appl., 2012, doi: 10.1016/j.eswa.2011.08.040.
 G. O. Mustakim, “Algoritma K-Nearest Neighbor Classification,” J. Sains, Teknol. dan Ind., 2016.
 H. A. Ramadhan and D. A. Putri, “Big Data, Kecerdasan Buatan, Blockchain, dan Teknologi Finansial di Indonesia,” Direktorat Jenderal Apl. Inform. Kementeri. Komun. dan Inform., 2018.
 Muhammad Dahria, “Kecerdasan buatan ( Artificial Intelligence ),” Artif. Intell., 2014.
 H. Leidiyana, “Penerapan Algoritma K-Nearest Neighbor Untuk Penentuan Resiko Kredit Kepemilikan Kendaraan Bermotor,” J. Penelit. Ilmu Komputer, Syst. Embed. Log., 2013.
 F. Liantoni, “Klasifikasi Daun Dengan Perbaikan Fitur Citra Menggunakan Metode K-Nearest Neighbor,” J. Ultim., 2016, doi: 10.31937/ti.v7i2.356.