{'fraction_non_alphanumeric': 0.022941970310391364, 'fraction_numerical': 0.001349527665317139, 'mean_word_length': 4.725868725868726, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Classification of Broadleaf Weeds Using a Combination of K-Nearest Neighbor (KNN) and Principal Component Analysis (PCA)

Palm oil is one of the leading commodities in Indonesia. Oil palm yields can be influenced by several factors, one of which is proper weed control. Uncontrolled weeds can damage oil palm plantations. To be able to manage and control weeds, especially large leaf weeds, it is necessary to know the types of weeds. However, not all farmers have knowledge about the types of weeds. For that we need a system that can help identify broadleaf weeds based on leaf images using image processing. So this study aims to build a large leaf weed classification system using a combination of the K-Nearest Neighbor (KNN) and Principal Component Analysis (PCA) algorithms. PCA is used as feature extraction based on the characteristics formed from each spatial property. PCA can be used to reduce and retain most of the relevant information from the original features according to the optimal criteria. The results of the information will then be used by KNN for learning by paying attention to the closest distance from the object. Based on the test results, the developed model is able to produce an accuracy of 90%. Principal Component Analysis (PCA) and K-Nearest Neighbor (KNN) algorithms can be used in the classification process properly. Accuracy results are strongly influenced by the amount of training data and test data as well as the quality of the image used.