期刊名称:International Journal of Electrical and Computer Engineering
电子版ISSN:2088-8708
出版年度:2022
卷号:12
期号:3
页码:3158-3165
DOI:10.11591/ijece.v12i3.pp3158-3165
语种:English
出版社:Institute of Advanced Engineering and Science (IAES)
摘要:Agarwood oil is consumed during traditional ceremonies and even in medicinal purposes due to its effective therapeutic characteristic. As a part of ongoing research on agarwood oil, this paper presented a k-nearest neighbor (k-NN) modelling of agarwood oil samples available in the capital of Malaysia market. The work involved agarwood oil samples from three sources which are lab, local manufacturer and market. The inputs are the chemical compounds and the output is the oil’s resources. The input-output was divided into training and testing dataset with the ratio of 80% to 20%, respectively, before they were fed to the k-NN for model development as well as model validation. During the model development, the k-value was varied from 1 to 5, and their accuracy was observed. The result showed that the k=1 and k=2 shared the similar accuracy for training and testing datasets, which are 98.63% and 100.00%, respectively. This study revealed the capabilities of the k-NN model in classifying the agarwood oil samples to the three sources: lab, local manufacturer and market. It was a significant study and contributed to further work especially those related to agarwood oil research area.