{'fraction_non_alphanumeric': 0.030594405594405596, 'fraction_numerical': 0.006993006993006993, 'mean_word_length': 5.058201058201059, '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}}
Classifying Complaint Reports Using RNN and Handling Imbalanced Dataset

A complaint report contains citizen's complaint about problems in their area. The text of this report needs to be classified into specific categories to make it easier for the government to follow up on the information. This study uses a dataset from Jakarta Smart City (JSC), namely Cepat Respon Masyarakat. Currently, JSC still uses annotators to classify report texts manually. This of course takes quite a long time. So, automatic classification needs to be done. We use two Recurrent Neural Network (RNN) methods: Bidirectional Long Short-Term Memory (Bi-LSTM) and Gated Recurrent Unit (GRU). Furthermore, Word2Vec and FastTexts are used for word embedding. Another problem with the category classification is the existence of an imbalanced dataset, so it is necessary to carry out special handling using Synthetic Minority Over-Sampling Technique (SMOTE) and Class Weight. The best model was obtained from the classification experiments through a combination of FastText, GRU method, and SMOTE with an evaluation results accuracy of 0.78 and f1-score macro of 0.52.