Abstract
This article offers a critical reflection on the use of the BERT model as a tool to classify stances in public controversies, focusing on the case of the Hamas-Israel conflict. Based on a corpus of over 250,000 Spanish-language YouTube comments (October 2023–January 2024), BERT was trained using a manually annotated sample to identify seven discursive categories. Although the model achieved an accuracy of 92.76%, it failed to correctly classify the Anti-Hamas category, revealing its limitations and biases. The article argues that BERT functions not only as a classifier but also as an inscription device that simplifies complex social phenomena. By combining artificial intelligence with controversy analysis and Science and Technology Studies (STS), it is suggested that language models do not merely detect patterns but actively co-construct meaning. The article concludes that the use of such models must be critically examined through ethical, theoretical, and epistemic frameworks.
Abu-Amr, Z. (1993). Hamas: A Historical and Political Background. Journal of Palestine Studies, 22(4), 5–19. https://doi.org/10.2307/2538077
Alamsyah, A., Muharam, A. W., y Ramadhani, D. P. (2024). Polarized Narratives in Digital Spaces: A Social Network Examination of the Gaza Conflict. International Conference on Data Science and Its Applications (ICoDSA), 527–532. https://doi.org/10.1109/icodsa62899.2024.10651759
Barabási, Albert-L’aszló. (2022). Ciencia de redes. Bourdon. Guadalajara, México.
Barría, C. (2023, 14 de octubre). Cuál es el origen de la rivalidad entre Hamás y Fatah, y cómo afecta a la causa palestina. BBC News Mundo. https://www.bbc.com/mundo/articles/cz7x6557103o
Bowen, J. (3 de noviembre de 2023). 5 nuevas realidades que emergen tras casi un mes de guerra entre Israel y Hamás. BBC News Mundo. https://www.bbc.com/mundo/articles/crgpr2jzll1o
Coletto, M., Garimella, K., Gionis, A., & Lucchese, C. (2017). A Motif-Based Approach for Identifying Controversy. Proceedings of the International AAAI Conference on Web and Social Media, 11(1), 496-499. https://doi.org/10.1609/icwsm.v11i1.14949
Coletto, M., Garimella, K., Gionis, A., y Lucchese, C. (2017). Automatic controversy detection in social media: A content-independent motif-based approach. Online Social Networks and Media, 3(4), 22–31. https://doi.org/10.1016/j.osnem.2017.10.001
Creswell, John W. y Creswell, J. David. (2018). Research Design: Qualitative, Quantitative, and Mixed Methods Approaches. SAGE Publications, Inc; 5ta edición.
Cronología del conflicto entre Israel y Hamás. (13 de octubre de 2023). DW. https://www.dw.com/es/cronolog%C3%ADa-del-conflicto-entre-israel-y-ham%C3%A1s/a-67071417
De Zarate, J. M. O., Di Giovanni, M., Feuerstein, E. Z., & Brambilla, M. (2020). Measuring Controversy in Social Networks Through NLP. Lecture Notes in Computer Science (Including Subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics). Springer Nature, 12303 LNCS, 194–209. https://doi.org/10.1007/978-3-030-59212-7_14
Devlin, J., Chang, M. W., Lee, K., & Toutanova, K. (2019). Bert: Pre-training of deep bidirectional transformers for language understanding. Proceedings of the 2019 conference of the North American chapter of the association for computational linguistics: human language technologies, 1. 4171-4186. https://doi.org/10.48550/arXiv.1810.04805
Dori-Hacohen, S., y Allan, J. (2015). Automated Controversy Detection on the Web. Lecture Notes in Computer Science, 423–434. Springer International Publishing. https://doi.org/10.1007/978-3-319-16354-3_46
Eck, K. (2021). Keynote Abstract: Machine Learning in Conflict Studies: Reflections on Ethics, Collaboration, and Ongoing Challenges. Proceedings of the 4th Workshop on Challenges and Applications of Automated Extraction of Socio-political Events from Text (CASE 2021). Association for Computational Linguistics. https://doi.org/10.18653/v1/2021.case-1.3
El jefe de la ONU condena los ataques de Hamás, pero dice que "no ocurrieron de la nada" y embajador de Israel pide su dimisión. (2023, 24 de octubre). BBC News Mundo. https://www.bbc.com/mundo/articles/cnevr3gvrxxo
Esaá, E. (2 de enero de 2024). El número dos de Hamás muere en ataque israelí en la periferia de Beirut; Hezbolá anuncia "castigo". France 24. https://www.france24.com/es/medio-oriente/20240102-el-n%C3%BAmero-dos-de-ham%C3%A1s-muere-en-un-ataque-israel%C3%AD-a-las-afueras-de-beirut
Fin de la tregua: se reanudan los combates entre Israel y Hamás y ya hay decenas de muertos en Gaza. (2023, 1 de diciembre). BBC News Mundo. https://www.bbc.com/mundo/articles/c72qq7xx98qo
Finlayson, M.A. & Erjavec, T. (2017). Overview of Annotation Creation: Processes and Tools.
Garimella, K., De Francisci Morales, G., Gionis, A. y Mathioudakis, M. (2016). Quantifying Controversy in Social Media. In Proceedings of the Ninth ACM International Conference on Web Search and Data Mining (WSDM '16). Association for Computing Machinery, 33–42. https://doi.org/10.1145/2835776.2835792
Godara, Nirmal, & Kumar, S. (2019). Opinion Mining using Machine Learning Techniques. International Journal of Engineering and Advanced Technology, 9(2), 4287–4292. https://doi.org/10.35940/ijeat.b4108.129219.
Guerra entre Israel y Gaza, 8 de octubre - Más de 1.100 muertos en el ataque de Hamás y la represalia de Israel. (2023, 8 de octubre). El País. https://elpais.com/internacional/2023-10-08/guerra-de-israel-en-gaza-en-directo.html
Guerra entre Israel y Gaza: resumen del 03/12/2023. (2023, 3 de diciembre). El País. https://elpais.com/internacional/2023-12-03/guerra-entre-israel-y-gaza-en-directo.html
Guerra entre Israel y Gaza: resumen del 07/01/2024. (2024, 7 de enero). El País. https://elpais.com/internacional/2024-01-07/guerra-entre-israel-y-gaza-en-directo.html
Guerra entre Israel y Gaza: resumen del 17/12/2023. (2023, 17 de diciembre). El País. https://elpais.com/internacional/2023-12-17/guerra-entre-israel-y-gaza-en-directo.html
Guerra entre Israel y Gaza: resumen del 18/11/2023. (2023, 18 de noviembre). El País. https://elpais.com/internacional/2023-11-18/guerra-entre-israel-y-gaza-en-directo.html
Guerra entre Israel y Gaza: resumen del 21/10/2023. (2023, 21 de octubre). El País. https://elpais.com/internacional/2023-10-21/guerra-entre-israel-y-gaza-en-directo.html
Guerra entre Israel y Gaza: resumen del 22/10/2023. (2023, 22 de octubre). El País. https://elpais.com/internacional/2023-10-22/guerra-entre-israel-y-gaza-en-directo.html
Guerra entre Israel y Gaza: resumen del 29/12/2023. (2023, 29 de diciembre). El País https://elpais.com/internacional/2023-12-29/guerra-entre-israel-y-gaza-en-directo.html
Guerra entre Israel y Gaza: resumen del 4/11/2023. (2023, 4 de noviembre). El País. https://elpais.com/internacional/2023-11-04/guerra-entre-israel-y-gaza-en-directo.html
Guerra, A., Lepre, M., y Oktay Karakus. (2024). Quantifying extreme opinions on Reddit amidst the 2023 Israeli-Palestinian conflict. Preprint Submitted to Elsevier. journal-article. https://arxiv.org/abs/2412.10913v1
Habernal, I., y Gurevych, I. (2015). Exploiting debate portals for semi-supervised argumentation mining in user-generated web discourse. Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing, 2127–2137. Lisbon, Portugal: Association for Computational Linguistics. https://aclanthology.org/D15-1255/
Hosseini, M., Wieczorek, M., y Gordijn, B. (2022). Ethical Issues in Social Science Research Employing Big Data. Science and Engineering Ethics, 28(3). https://doi.org/10.1007/s11948-022-00380-7
Ide, N. & Pustejovsky, J. (2017). Handbook of Linguistic Annotation. Springer Netherlands. https://doi.org/10.1007/978-94-024-0881-2
Israel y Hamás intercambian prisioneros y rehenes durante la tregua de 4 días en Gaza. (2023, 24 de noviembre). BBC News Mundo. https://www.bbc.com/mundo/articles/c4n743e1vlmo
Jang, M., Foley, J., Dori-Hacohen, S. & James Allan. (2016). Probabilistic Approaches to Controversy Detection. Proceedings of the 25th ACM International on Conference on Information and Knowledge Management (CIKM '16). Association for Computing Machinery, 2069–2072. https://doi.org/10.1145/2983323.2983911
Jang, M., y Allan, J. (2016). Improving Automated Controversy Detection on the Web. Proceedings of the 39th International ACM SIGIR conference on Research and Development in Information Retrieval (SIGIR '16). Association for Computing Machinery, 865–868. https://doi.org/10.1145/2911451.2914764
Katz, J. (1979). Zionism vs. Anti-semitism. American Jewish Comittee.
Kim, Y., y Allan, J. (2019). Unsupervised Explainable Controversy Detection from Online News. Lecture Notes in Computer Science. Springer International Publishing, 836–843. https://doi.org/10.1007/978-3-030-15712-8_60
Klein, M. (1996). Competing brothers: The web of Hamas‐PLO relations. Terrorism and Political Violence, 8(2), 111–132. https://doi.org/10.1080/09546559608427349
Knudsen, A. (2005). Crescent and Sword: The Hamas enigma. Third World Quarterly, 26(8), 1373–1388. https://doi.org/10.1080/01436590500336898
Latour, B. y Woolgar, S. (1979). La vida en el laboratorio. La construcción de los hechos científicos. Alianza editorial.
Law, J. (2015). STS as method. The MIT Press
Lewis, B., Smith, I., Fowler, M., y Licato, J. (2017). The robot mafia: A test environment for deceptive robots. 28th Modern Artificial Intelligence and Cognitive Science Conference, MAICS 2017, 189–190.
Lin, W.-H., Wilson, T., Wiebe, J. & Hauptmann, A. (2006). Which Side are You on? Identifying Perspectives at the Document and Sentence Levels. Proceedings of the Tenth Conference on Computational Natural Language Learning (CoNLL-X), 106-109. https://aclanthology.org/W06-2915/
Liyih, A., Anagaw, S., Yibeyin, M., & Tehone, Y. (2024). Sentiment analysis of the Hamas-Israel war on YouTube comments using deep learning. Scientific Reports, 14(1). https://doi.org/10.1038/s41598-024-63367-3
Lundberg, I., Brand, J. E., y Jeon, N. (2022). Researcher reasoning meets computational capacity: Machine learning for social science. Harvard Dataset, 1, 108. https://doi.org/10.7910/DVN/UVO6Z3
Maathuis, C. y Kerkhof, I. (2024). Navigating Online Narratives on Israel-Hamas War with LLMs. Proceedings of the International Conference on AI Research, 4(1), 252–259. https://doi.org/10.34190/icair.4.1.2868
Mackenzie, A. (2017). Archaeology of a Data Practice. The MIT Press
Marres, N. (2015). Why Map Issues? On Controversy Analysis as a Digital Method. Science, Technology, y Human Values, 40(5), 655-686. https://doi.org/10.1177/0162243915574602
Marres, N., y Moats, D. (2015). Mapping Controversies with Social Media: The Case for Symmetry. Social Media and Society, 1(2). https://doi.org/10.1177/2056305115604176
McCombs, Maxwell y Valenzuela, Sebastián. (2007). The Agenda-Setting Theory. Cuadernos de Información, 20, 44-50.
Moats, D., y McFall, L. (2019). In Search of a Problem: Mapping Controversies over NHS (England) Patient Data with Digital Tools. Science, Technology, & Human Values, 44(3), 478–513. https://doi.org/10.1177/0162243918796274
Molina, M., y Garip, F. (2019). Annual Review of Sociology Machine Learning for Sociology. Annual Review, 45, 27-45. https://doi.org/10.1146/annurev-soc-073117-041106
Muerte del alto dirigente de Hamás en Beirut aumenta riesgo de que se extienda la guerra de Gaza. (2024, 3 de enero). Voz de América. https://www.vozdeamerica.com/a/muerte-de-lider-hamas-en-beirut-aumenta-riesgo-extender-guerra-gaza/7424747.html
Németh R. (2023). A scoping review on the use of natural language processing in research on political polarization: trends and research prospects. Journal of Computational Social Science, 6(1), 289–313. https://doi.org/10.1007/s42001-022-00196-2.
Nushin, K. N., Zaman, M. S. U., y Ahmed, M. (2024). Analyzing Sentiment and Unveiling Geopolitical Perspectives: A Comprehensive Study of Reddit Comments on the Contemporary Israel-Palestine Conflict. International Conference on Electrical Engineering and Information y Communication Technology (ICEEICT), 788–793. https://doi.org/10.1109/iceeict62016.2024.10534429
Paul P. Murphy, Allegra Goodwin, Benjamin Brown, y Sharif Paget. (2023, October 8). Horror en el desierto: asistentes a un festival de música escucharon cohetes, luego militantes de Gaza les dispararon y tomaron rehenes. CNN Mundo. https://cnnespanol.cnn.com/2023/10/08/asistentes-festival-musica-israel-cohetes-militantes-gaza-disparos-rehenes-trax/
Peralta, P. (25 de diciembre de 2023). Aumenta a más de 20.600 cifra de muertos en Gaza; Hamás rechaza rendirse a cambio de alto al fuego. France 24. https://www.france24.com/es/medio-oriente/20231225-m%C3%A1s-de-100-muertos-en-navidad-en-gaza-ham%C3%A1s-rechaza-rendirse-a-cambio-de-alto-al-fuego
Prange, A. (2023, 9 de octubre). Todo lo que hay que saber sobre el ataque de Hamás a Israel. DW. https://www.dw.com/es/todo-lo-que-hay-que-saber-sobre-el-ataque-de-ham%C3%A1s-a-israel/a-67045232
Puestejovsky, James y Stubbs, Amber (2012). Natural Language Annotation for Machine Learning. O’REILLY.
Qiu, Y., Ye, Y., Zhang, X., y Luo, J. (2024). Moral Frameworks and sentiment in tweets: A Comparative study of public opinion on the Israeli-Palestine conflict. 2021 IEEE International Conference on Big Data (Big Data), 7122–7130. https://doi.org/10.1109/bigdata62323.2024.10825487
Qué es Hamás, el grupo islamista militante que lanzó un ataque sin precedentes contra Israel. (2023, 8 de octubre). BBC News Mundo. https://www.bbc.com/mundo/articles/c907yed00x0o
Qué se sabe del acuerdo entre Israel y Hamás para declarar una tregua de 4 días e intercambiar rehenes. (2023, 22 de noviembre). BBC News Mundo. https://www.bbc.com/mundo/articles/c84vmzgwy49o
Resumen de noticias de la guerra entre Israel y Hamas y la situación en Gaza del 29 de octubre de 2023. (2023, 30 de octubre). CNN Español. https://cnnespanol.cnn.com/2023/10/29/guerra-israel-hamas-muertes-ataque-gaza-29-10-trax/
Rico-Sulayes, A. (2025). Cómo entrenar a un algoritmo para detectar el lenguaje de odio en el conflicto Israel-Palestina. European Public & Social Innovation Review, 10, 01-16. https://doi.org/10.31637/epsir-2025-1199
Roiter Jesner, S. (2023, 6 de diciembre). ¿Cuál sería la estrategia de Israel tras un posible fin de Hamás? Euro News. https://es.euronews.com/2023/12/06/cual-seria-la-estrategia-de-israel-tras-un-posible-fin-de-hamas
Said, E. (1979). Zionism from the Standpoint of Its Victims. Duke University Press, 1, 7-58.
Shbair, F. (2024, 8 de enero). Tras 3 meses de devastación en la guerra entre Israel y Hamás, ¿alguien está “ganando”? The Conversation. https://theconversation.com/tras-3-meses-de-devastacion-en-la-guerra-entre-israel-y-hamas-alguien-esta-ganando-220677
Shiri Dori-Hacohen & James Allan. (2013). Detecting controversy on the web. In Proceedings of the 22nd ACM international conference on Information y Knowledge Management (CIKM '13). Association for Computing Machinery, 1845–1848. https://doi.org/10.1145/2505515.2507877
Shrikant, N. (2023). BERT for text classification with TensorFlow. GitHub. https://github.com/shrikantnaidu/BERT-for-Text-Classification-with-TensorFlow/blob/main/Fine_Tune_BERT_for_Text_Classification_with_TensorFlow.ipynb
Sube a más de 23.000 cifra de fallecidos en Gaza; ataque israelí mata a alto mando de Hezbolá en Líbano. (2024, 8 de enero). France 24. https://www.france24.com/es/medio-oriente/20240108-sube-a-m%C3%A1s-de-23-000-cifra-de-fallecidos-en-gaza-ataque-israel%C3%AD-mata-a-alto-mando-de-hezbol%C3%A1-en-l%C3%ADbano
Triviño V., A. (2024, 1 de enero). Israel advierte que la guerra contra Hamás en Gaza continuará durante 2024. France 24. https://www.france24.com/es/medio-oriente/20240101-israel-advierte-que-la-guerra-contra-ham%C3%A1s-en-gaza-continuar%C3%A1-durante-2024
Venturini, T. (2010). Building on faults: How to represent controversies with digital methods. Public Understanding of Science, 21(7), 796–812. SAGE Publications. https://doi.org/10.1177/0963662510387558
Venturini, T., y Munk, A. K. (2022). Controversy mapping a field guide. Polity Press.
Whatmore, S. J. (2009). Mapping knowledge controversies: Science, democracy and the redistribution of expertise. Progress in Human Geography, 33(5), 587–598. https://doi.org/10.1177/0309132509339841
Zielinski, K., Nielek, R., Wierzbicki, A., y Jatowt, A. (2018). Computing controversy: Formal model and algorithms for detecting controversy on Wikipedia and in search queries. Information Processing & Management, 54(1), 14–36. Elsevier BV. https://doi.org/10.1016/j.ipm.2017.08.005

This work is licensed under a Creative Commons Attribution 4.0 International License.
Copyright (c) 2025 Víctor M. Hernández L., Jaime E. Cuellar