Análisis de sentimientos en Twitter: Opiniones en Colombia de los Juegos Olímpicos 2021
Sentiment analysis on Twitter: Opinions in Colombia of the 2021 Olympic Games
Autor
Caraballo Ayala, Nelson Enrique
Carreño Miranda, Ronaldo
Paternina Salgado, Víctor Andrés
Fecha
2021-11-30Resumen
Las tendencias en Twitter nos pueden dar una idea de cómo se perciben los Juegos Olímpicos y nos brindan la oportunidad de extraer y analizar los textos en esta red social. A través de este trabajo queremos entender mejor la perspectiva de los colombianos sobre sus atletas, identificar preferencias por deporte, entre otros. Diseñamos un prototipo de aplicación web que nos permitiera extraer tweets, entrenar una Red Neuronal Convolutiva a través de un dataset de entrenamiento, hacer que esta red clasificara los tweets y en la misma aplicación mostrar los resultados.
Este se basó en una arquitectura cliente-servidor desplegada sobre AWS, donde alojamos un servidor API en Flask y un cliente web en ReactJS. Para la extracción de los tweets utilizamos la API de Developers de Twitter. Los tweets extraídos se almacenan en la nube de MongoAtlas. La Red Neuronal también se encuentra alojada en el servidor desde donde se preprocesan, entrenan y clasifican los tweets con ayuda de las librerías de Inteligencia Artificial y Deep Learning: TensorFlow y Keras. En el desarrollo de la solución encontramos como obstáculo el aspecto económico ya que la API de Twitter está limitada para pedir datos históricos de tweets de hace 7 días o menos y el proyecto se basó en las fechas cercanas al inicio de los Juegos Olímpicos 2021. En su plan básico teníamos 50 peticiones con máximo 100 tweets históricos devueltos por petición al mes por cuenta. El plan académico tiene altos requisitos para los cuales no cualificamos y el plan de pago estaba fuera de nuestro alcance.
De los resultados obtenidos pudimos concluir que los Juegos Olímpicos son un evento muy bien recibido, en el que la mayoría de las personas muestra una actitud positiva hacia los deportistas, les brinda apoyo y tienen altas expectativas sobre su desempeño. Se puede decir también que las delegaciones deportivas y los medios de comunicación están haciendo un buen trabajo en cuidar la imagen del deporte olímpico y los atletas. The trends on Twitter can give us an idea of how the Olympic Games are perceived and give us the opportunity to extract and analyze the texts in this social network. Through this work we want to better understand the perspective of Colombians on their athletes, identify preferences for sport, among others.
We designed a web application prototype that would allow us to extract tweets, train a Convolutive Neural Network through a training dataset, make this network classify the tweets and show the results in the same application. This was based on a client-server architecture deployed on AWS, where we hosted an API server in Flask and a web client in ReactJS. For the extraction of tweets we use the Twitter Developers API. The extracted tweets are stored in the MongoAtlas cloud. The Neural Network is also hosted on the server from where tweets are pre-processed, trained and classified with the help of the Artificial Intelligence and Deep Learning libraries: TensorFlow and Keras.In the development of the solution, we found the economic aspect as an obstacle since the Twitter API is limited to requesting historical data of tweets of 7 days ago or less and the project was based on the dates close to the start of the 2021 Olympic Games. Their basic plan had 50 requests with a maximum of 100 historical tweets returned per request, month and account. The academic plan has high requirements that we did not qualify for and the payment plan was out of reach.
From the results obtained, we were able to conclude that the Olympic Games are a very well received event, in which most people show a positive attitude towards athletes, provide them with support and have high expectations about their performance. It can also be said that the sports delegations and the media are doing a good job in caring for the image of the Olympic sport and the athletes.