{'fraction_non_alphanumeric': 0.030803906836964687, 'fraction_numerical': 0.006010518407212622, 'mean_word_length': 5.466019417475728, '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 rice planthoppers based on shape descriptors

Here, classification of rice planthopper (RPH) based on shape descriptors was addressed to solve the low semantics problem of shape features in traditional RPH (mainly including the whiteback planthopper (Sogatella furcifera (Horvath)), the brown planthopper (Nilaparvata lugens (Stal)), and the small brown planthopper (Laodelphax striatellus (Fallen))) image classification research. Images of RPH were obtained from rice field by an automatic insect image acquisition device made by ourselves and insect images were divided into single images based on OTSU threshold segmentation algorithm. In terms of the images of RPH after segmentation, Fourier descriptors and Hu moments, which are from two aspects of contour curve and shape area, were extracted to describe shape features of RPH. Then, random forest (RF), an ensemble learning algorithm, was used as the classifier to distinguish RPH efficiently. The optimal number of trees and prediction variables of RF are chosen to be 150 and 4, respectively, by minimising the out-of-bag error. Experimental results show that classification accuracy of RPH based on shape descriptors reaches up to 93.93%. Therefore, it has been verified that the classification with the method presented here is accurate and semantic.