{'fraction_non_alphanumeric': 0.018392370572207085, 'fraction_numerical': 0.0027247956403269754, 'mean_word_length': 5.198312236286919, '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}}
Spatiotemporal‐based sentiment analysis on tweets for risk assessment of event using deep learning approach

Social media plays a vital role in analyzing the actual emotions of people after and during a disaster. Sentiment analysis is a method to detect a pattern from the emotions and feedback of the user. The main objective of the proposed work is to perform sentiment analysis on the tweets on a specific disaster context for a particular location at different intervals of time. LSTM network with word embedding algorithm is used to derive keywords based on the history of tweets and the context of the tweets. The proposed algorithm risk assessment sentiment analysis (RASA) uses the keywords generated from the network to classify the tweets and sentiment score for each location is identified. The model is validated with various state‐of‐art algorithms, namely, support vector machine, Naive‐Bayes, maximum entropy, logistic regression, random forest, XGBoost, stochastic gradient descent, and convolution neural networks in 2‐fold scenario: one for binary class and the other multiclass with three target classes. The results infer that the proposed RASA performs better in a binary class scenario with an increase of 1% when compared with XGBoost and 30% in multiclass scenario on an average when compared with all the other techniques. The model helps the government to take preventive measures to manage the posteffect of the disaster event in a location.