Election Results prediction based on Twitter data


Election Results prediction based on Twitter data

Sentiment Analysis probes public opinion on user-generated content on the Web like blogs, social media, or e-commerce websites. The results of Sentiment Analysis are getting much attention with marketers that they are able to evaluate the success of an advertising campaign or the attitude of people on a new product launch. Business owners and advertising companies are using Sentiment Analysis to start new business strategies and to identify opportunities for new product development. The collected tweets were classified into positive, negative, and neutral sentiments. The machine learning classifier algorithms cross validation were applied on the dataset and the results were tabulated for comparing and estimating which classifier algorithm yields the best accuracy. Other performance metric values like F Score, Precision, Recall were also calculated for comparison of various classifier performances on Sentiment Analysis. It was found that the ML method combined with K Fold cross-validation has produced the best accuracy in prediction. We have also applied Strengthen algorithm to find out the intensity or the strength of positive and negative comments from each sentence. With the help of the results in hand, we were able to predict the brand of mobile phone that was preferred in each country. Election Results prediction based on Twitter data

Existing System:

                  Existing methods primarily cast the problem as a supervised document classification task. These can be divided into two categories: one relies on manual feature engineering that is then consumed by algorithms such as SVM, Naive Bayes, and Logistic Regression the other represents the more recent deep learning paradigm that employs neural networks to automatically learn multi-layers of abstract features from raw data. The existing system was built using data mining techniques. In this method, they deal with small-level datasets. Here this system will have a very low accuracy score like 60 to 70 % only. Election Results prediction based on Twitter data


  • Low-level data
  • Low accuracy score

Proposed System:

The proposed was implemented by machine learning techniques. Here we apply the classification algorithm for classification. Then we collect all the Twitter data from the internet. Using the data we extract all the future and get more numbers data also. So we apply the Logistic regression model to classify the values and we get a more accurate score like above 80%.


  • Improve the accuracy score
  • Deal with a large amount of dataset


  • Operating System??????????????????:???????? Windows 7, 8, and 10 (32 and 64-bit)
  • Front End:???????? Python
  • Packages:??? ???? NumPy, Pandas, matplotlib, Sklearn


  • Processor?? -??????? Dual Core
  • RAM -??????? 2 GB or above
  • Hard Disk -??????? 100 GB or above


Naive Bayes and SVM have supervised learning algorithms used to classify data according to parties. Most of the research has extracted only twitter data but we can also use other social media sites like Facebook and Instagram to fetch data. The data used so far is in the form of words and sentiment analysis is applied to it to determine the polarity of the word. But applying sentiment analysis to sentences may provide better results than on words. The final result can be obtained by comparing the Sentiment Percent of various political parties obtained by using the above algorithms.

Customer Reviews

There are no reviews yet.

Be the first to review “Election Results prediction based on Twitter data”

This site uses Akismet to reduce spam. Learn how your comment data is processed.