ISWARA at WNUT -2020 Task 2: Identification of Informative COVID -19 E nglish Tweets using BERT and F ast T ext Embeddings (2020)

Abstract: This paper presents Iswara’s participation in the WNUT-2020 Task 2 “Identification of Informative COVID-19 English Tweets using BERT and FastText Embeddings”,which tries to classify whether a certain tweet is considered informative or not. We proposed a method that utilizes word embeddings and using word occurrence related to the topic for this task. We compare several models to get the best performance. Results show that pairing BERT with word occurrences outperforms fastText with F1-Score, precision, recall, and accuracy on test data of 76%, 81%, 72%, and 79%, respectively

## introduction twitter is known for being one of the major platforms during disasters @xcite since it is accessible for everyone and could give real-time information about the disaster @xcite . the outbreak of covid-19 causes a large flow of information about the pandemic within the site. the increase in the number of tweets raised concern about the relevancy of the tweets to the covid-19 itself. identifying relevant tweets manually form twitter is costly and needs significant human efforts @xcite . wnut-2020 has organized a shared task which focuses on identifying whether an english tweet related to covid-19 is informative or not. tweets containing information about recovered, suspected, confirmed, and death cases of covid-19 is defined as an informative tweet. this paper aims to present the approaches we developed as * these authors contributed equally to this work part of our participation in wnut-2020 task 2. in this research, we proposed two approaches to identify informative covid-19 tweets. the first approach is based on the bert model, whereas the second approach is based on the fasttext model. the first approach is experimented on two classification models such as logistic regression (lr) and support vector machine (svm). word occurrence also used as an additional feature during the experiment. the second approach uses a built-in classifier from the fasttext library. the rest of the paper is organized as follows. in section 2, we explain the methodology we developed. section 3 describes the results analysis about the experiments. finally, section 4 concludes the paper and lists the future works. ## methodology we first analyze the training data provided by the task organizers. it consisted of 7,000 tweets, with 3,697 tweets labeled as uninformative and 3,303 tweets as informative. the validation data consisted of 1000 tweets, with 528 uninformative tweets and 472 informative tweets. most of the tweets were written in english. however, we found that there are several words that were written in non-ascii characters. the rise of word embedding led us to use pretrained word embedding models such as bert and fasttext in our experiments. to process with the pre-trained model, we had to preprocess the tweets beforehand. we tried to remove urls, non-ascii characters, tokens such as 'rt', '@', '&','<', '>' and extra space. all of the tweets were changed into lowercase letters. iswara at wnut-2020 task 2: identification of informative covid-19 english tweets using bert and fasttext embeddings wava carissa putri 1 , rani aulia hidayat 1 , isnaini nurul khasanah 1 , rahmad mahendra 2 faculty of computer science, universitas indonesia 1 {wava.carissa01, rani.auila,isnaini.nurul91}@ui.ac.id 2 rahmad.mahendra@cs.ui.ac.id in this experiment, we used pre-trained word embedding models to generate a word embedding representation of each tweet. each representation is fed into a classifier to identify which class the tweet belongs to. bert @xcite is used to create a representation of the tweets. meanwhile, fasttext @xcite is used directly for the tweet classification after modifying the label by adding the term "__label__" followed by the actual label. prior research found that bert @xcite and fasttext @xcite @xcite are useful for tweet classification tasks. there are a variety of pre-trained models available for bert. however, we decided to use distilbert @xcite since it has a similar performance with other pre-trained models, but it has a much smaller representation model. in addition, we also used word occurrences and number existence of the preprocessed tweets as the features that we used to classify the tweets. we combined the word occurrences with the word embedding representation. the occurrences of words 'corona' and 'covid' are being used as features to represent that a tweet is related to covid-19. as nguyen et al. (2020) stated, a tweet is considered as informative if it contains any information about recovered, suspected, confirmed, and death cases. hence, the occurrences of words 'recover', 'suspect', 'confirm', 'death', and 'case' are used. moreover, the number of cases is sometimes mentioned in the tweets. we covered this by using the existence of numerical value as the feature. the number existence feature will be true if a tweet contains a numerical value, and false if there is no numerical value in the tweet. there are several classifiers that we used in this study to identify the informative tweets. those classifiers are logistic regression, support vector machine, and multinomial logistic regression (built-in classifier in fasttext library). furthermore, we compared the performance of each classifier to get the best model. logistic regression (lr) is a machine learning method that calculates the result by considering each feature's weight. it has been applied to classify tweets into certain topics (s. @xcite . after tuning the parameters, we decided to train our lr model with a value of 5.263252631578947 for c and a maximum iteration of 10,000. support vector machine has been proven to give acceptable performance for tweets classification @xcite . this classifier is well known for its ability to map nonlinear data into a higher dimensional space using the kernel trick. in this study, we focused on implementing the rbf kernel. parameters c and gamma have a significant role in svm with rbf kernels. the value of parameters c and gamma that we used to train the svm model are 10 and 0.01, respectively. those parameters are obtained after the tuning process. @xcite showed that fasttext gives on par accuracy compared to deep learning classifiers but with faster training and validation process. as mentioned earlier, we labeled each tweet with the text "__label__" followed by the actual label (informative or uninformative). then, we train the model on the preprocessed train data using the fasttext library. this library will extract fasttext embeddings and process it with the builtin classifier, multinomial logistic regression (mlr). to find the best hyperparameters, we tried automatic and manual hyperparameter optimization. based on the evaluation score on the validation data, we find better results using hyperparameters that we find manually. the value of hyperparameters learning rate, maximum length of word n-gram, epoch, minimum number of word occurrences, number of buckets, and loss function used in this study are 0.075, 2, 150, 6, 200000, and 'hs', respectively. ## results and analysis there are several scenarios of features in this study. the first scenario is using bert as the feature. in the second scenario, we combined word occurrences (wo) with bert as the features. we employed the first and second scenarios to lr and svm with parameters we defined in the previous section. in the next scenario, we used the preprocessed tweets as the feature for fasttext to generate fasttext embbedings (ft). since the task is focused on informative tweets' performance, the evaluation metrics we compare in our study are f1-score, precision, recall, and accuracy of the informative labeled tweets. before submitting the final model to be evaluated using test data on wnut-2020 system, we evaluated the model by the validation data. figure 1 shows all experiments that have been done in this study. from the experiments we conducted, the performance of bert increased when combined with word occurrences as the additional features whether it is employed to lr or svm. it is shown that using covid-19 related word occurrences as features successfully manages the model to identify informative tweets better. figure 2 shows that there is not much difference in the occurrence of words 'corona', 'covid', 'recover' and numerical value in informative and uninformative tweets. meanwhile, there is a high difference in the occurrence of words 'confirm', 'death', and 'case' between informative and uninformative tweets. it means that the word occurrences help the model to classify the tweets. because of the limited number of submissions on wnut-20202 system on task 2, we chose the best two models based on the experiments result. these two models were officially evaluated on test data in the system provided by wnut-2020. we found that fasttext performs better when evaluated on the validation data. however, the combination bert and word occurrences shows better results when evaluated on the test data. one reason may be that since bert created subwords rather than n-grams in their approach, it could help the model to handle out of vocabulary words in the test data better. ## conclusion this paper presents our approach for wnut-2020 task 2 to identify whether a tweet related to covid-19 is informative or not. the proposed method for this shared task is combining word embedding with word occurrences as features. we compared several scenarios of features with different classifiers such as logistic regression (lr), support vector machine (svm), and multinomial logistic regression (mlr), built-in classifier in fasttext library, on validation data. the validation data result showed that there are two models that give the highest f1-score of 0.81. the first model used the fasttext embeddings with built-in mlr has precision, recall, and accuracy of 0.85, 0.77, and 0.83, respectively. the second model used the bert embeddings and word occurrences as features with svm as the classifier has precision, recall, and accuracy of 0.83, 0.78, and 0.82, respectively. these two models are evaluated on the wnut-2020 system with test data. on the test data, the model that used bert embeddings and word occurrences with svm outperforms the model which used fasttext embeddings with mlr. it achieved an f1-score of 0.763, precision of 0.807, recall of 0.723, and accuracy of 0.788. the use of richer features such as named entity recognition to identify location mentioned in a tweet and the use of part of speech tagging can be done as the future works. moreover, the implementation of advanced algorithms such as deep learning might also increase the performance of the model to identify informative tweets.