Application of the KMeans method for clustering the motives of terrorist attacks: a study of data density and distribution
https://doi.org/10.25016/2541-7487-2025-0-2-108-120
Abstract
Relevance. Terrorism represents a significant threat to international security, with the diversity and complexity of terrorist attack motives complicating comprehensive analysis. The application of machine learning methods, particularly clustering, allows to identify hidden patterns and trends, providing deeper insights into the underlying causes and preconditions of terrorism.
Objective. The study aims to apply the KMeans method to cluster terrorist attack motives, assess the density distribution of data within the identified clusters, and reveal key patterns in the motivational structure of terrorist activities.
Methods. The research comprises a dataset of terrorist attack motives extracted from the Global Terrorism Database (GTD), containing descriptions of 209,707 terrorist incidents. The analysis included 22,623 records with clearly defined motives, clustered into 10 groups using the KMeans method. The density and distribution of motives were evaluated using quantitative indicators allowing to assess data concentration within each cluster.
Results and analysis. The clustering process allowed to identify 10 clusters of different density and motive structure. The largest cluster (Cluster 0, 12,530 records) is characterized by protest and anti–government motives. Clusters 2, 7, and 9 demonstrated significant data concentration, reflecting distinct motivational trends predominantly related to political and religious extremism. Cluster 7, characterized by sectarian violence motives, exhibited the highest density. Economic motives were significantly underrepresented compared to political and religious ones.
Conclusion. The findings confirm the effectiveness of the KMeans method for identifying key terrorist attack motives, despite the complexity and heterogeneity of the initial data. A comprehensive approach to develop preventive measures and counter–terrorism strategies is therefore a collateral.
About the Authors
N. S. ShuleninRussian Federation
Nikolai Sergeevich Shulenin – PhD Med. Sci, Associate Prof. of the Department of Healthcare Organization and Preventive Medicine
72, Kondratievsky Ave., St. Petersburg, 195272
R. N. Lemeshkin
Russian Federation
Roman Nikolaevich Lemeshkin – Dr Med. Sci Associate Prof., Prof. of the Department of Organization and Tactics of the Fleet Medical Service
6, Academica Lebedeva Str., St. Petersburg, 194044
References
1. Varlamov I. G., Guchii A.V., Kistanova M.A., Kruzhai V.V. Religioznyi ekstremizm: issledovanie obshchestvennogo mneniya, metodov bor’by i sovremennogo sostoyaniya ekstremistskikh yacheek v mire [Religious extremism: a study of public opinion, methods of combat and the current state of extremist cells in the world]. Molodoi uchenyi [Young scientist]. 2021; (52):83–87. (In Russ.)
2. Grigor’ev M.S., Maizel’ S.G. Belye kaski. Posobniki terroristov i istochniki dezinformatsii [Terrorist collaborators and sources of disinformation]. Moscow. 2019. 264 p. (In Russ.)
3. Evdokimov V.I., Bobrinev E.V., Kondashov A.A. Analiz proizvodstvennogo travmatizma i gibeli lichnogo sostava Federal’noi protivopozharnoi sluzhby MChS Rossii (2006–2020 gg.) [Analysis of occupational injury and mortality of personnel of the Federal Fire Service of the EMERCOM of Russia (2006–2020): monograph]. St. Petersburg. 2022. 138 p. (In Russ.)
4. Evdokimov V.I., Chernov K.A. Analiz pokazatelei global’nogo indeksa terrorizma v mire i ego optimizatsiya [Analysis and optimization of global terrorism index indicators]. Mediko-biologicheskie i sotsial’no-psikhologicheskie problemy bezopasnosti v chrezvychainykh situatsiyakh [Medical-biological and social-psychological problems of safety in emergency situations]. 2024; (2):74–85. DOI: 10.25016/2541-7487-2024-0-2-74-85. (In Russ.)
5. Evdokimov V.I., Chernov K.A. Mediko-biologicheskie posledstviya terrorizma v Rossii i mire (2005–2018 gg.) [Medical and biological consequences of terrorism in Russia and worldwide (2005–2018)]. Mediko-biologicheskie i sotsial’nopsikhologicheskie problemy bezopasnosti v chrezvychainykh situatsiyakh [Medical-biological and social-psychological problems of safety in emergency situations]. 2020; (1):85–118. DOI: 10.25016/2541-7487-2020-0-1-85–118. (In Russ.)
6. Evdokimov V.I., Chernov K.A., Shulenin N.S. Analiz terroristicheskoi aktivnosti v mire v 1970–2020 gg. [Analysis of global terrorism in 1970–2020]. Ekologiya cheloveka [Human ecology]. 2024; 31(3):191–199. DOI: 10.17816/humeco629531. (In Russ.)
7. Evdokimov V.I., Shulenin N.S. Mediko-biologicheskie posledstviya terrorizma v mire [Medical and biological consequences of terrorism in the world: monograph]. St. Petersburg. 2024. 101 p. (In Russ.)
8. Evdokimov V.I., Shulenin N.S. Riski mediko-sanitarnykh posledstvii terroristicheskoi aktivnosti v Rossii v 2011–2020 gg. [Risks of health consequences of terrorist activity in Russia in 2011–2020]. Vestnik Rossiiskoi voenno-meditsinskoi akademii [Bulletin of the Russian military medical academy]. 2024; 26(4):607–616. DOI: 10.17816/brmma630004. (In Russ.)
9. Evdokimov V.I., Shulenin N.S. Terrorizm i ego mediko-biologicheskie posledstviya v mire (2011–2020 gg.) [Terrorism and its global biomedical consequences (2011 to 2020)]. Mediko-biologicheskie i sotsial’no-psikhologicheskie problemy bezopasnosti v chrezvychainykh situatsiyakh [Medical-biological and social-psychological problems of safety in emergency situations]. 2024; (1):14–33. DOI: 10.25016/2541-7487-2024-0-1-14-33. (In Russ.)
10. Kasperovich Yu.G. Motivatsiya ekstremizma i faktory ego formirovaniya [Motivation of extremism and factors of its formation]. Psikhopedagogika v pravookhranitel’nykh organakh [Psychopedagogics in law enforcement]. 2012; (2):81–84. (In Russ.)
11. Kuzina S.I. Politicheskoe nasilie : priroda, manifestirovanie i dinamika v globaliziruyushchemsya mire [Political violence: nature, manifestation and dynamics in a globalising world: Abstract dissertation Dr. Political Sci.]. Rostov-on-Don. 2010. 50 p. (In Russ.)
12. Tsygankov P.A. «Gibridnaya voina»: politicheskii diskurs i mezhdunarodnaya praktika [“Hybrid war”: рolitical discourse and the international practice]. Vestnik Moskovskogo universiteta. Seriya 18. Sotsiologiya i politologiya [Moscow state university bulletin. Series 18. Sociology and political science]. 2015; (4):253–258. (In Russ.)
13. Shulenin N.S., Lemeshkin R.N., Efremov A.A., Pytsky D.E. Modelirovanie kolichestva potentsial’no spasaemykh lits v rezul’tate terroristicheskikh aktov v mire na period do 2030 goda [Approaches to modelling the possible number of individuals rescued in the area of terrorist attacks worldwide until 2030]. Mediko-biologicheskie i sotsial’no-psikhologicheskie problemy bezopasnosti v chrezvychainykh situatsiyakh [Medical-biological and social-psychological problems of safety in emergency situations]. 2023; (3):98–105. DOI: 10.25016/2541-7487-2023-0-3-98-105. (In Russ.)
14. Shulenin N.S., Lemeshkin R.N., Soldatova A.V. Raspredelenie ekonomicheskogo ushcherba po metodam, sposobam i ob”ektam soversheniya terroristicheskikh aktov v mire s uchetom bezvozvratnykh poter’ naseleniya [Global irreparable population losses and ecomic damage reported by method, strategy, and venue of terrorist attack]. Mediko-biologicheskie i sotsial’no-psikhologicheskie problemy bezopasnosti v chrezvychainykh situatsiyakh [Medical-biological and social-psychological problems of safety in emergency situations]. 2023. № 4. S. 74–82. DOI: 10.25016/2541-7487-2023-0-4-74-82. (In Russ.)
15. Shulenin N.S., Fisun A.Ya., Glukhov V.A., Pluzhnik M.S. Naukometricheskii analiz osnovnykh napravlenii protivodeistviya terrorizmu i ekstremizmu, predstavlennykh v otechestvennykh nauchnykh stat’yakh (2013–2022 gg.) [A scientometrics study of key counter-terrorism and counter-extremism approaches in Russian research publications (2013–2022)]. Medikobiologicheskie i sotsial’no-psikhologicheskie problemy bezopasnosti v chrezvychainykh situatsiyakh [Medical-biological and social-psychological problems of safety in emergency situations]. 2025; (1):104–118. DOI: 10.25016/2541-7487-2025-0-1104-118. (In Russ.)
16. Abrahms M. What Terrorists Really Want: Terrorist Motives and Counterterrorism Strategy. International Security. 2008; 32(4):78–105.
17. Blanco J.R., Rios S.A., Velasco J.M. Data Mining Methods Applied to Terrorism Data. Knowledge-Based Systems. 2020; 195:105661. DOI: 10.1016/j.knosys.2020.105661.
18. Blei D.M., Ng A.Y., Jordan M.I. Latent Dirichlet Allocation. J. Machine Learn. Res. 2003; 3:993–1022.
19. Clauset A., Young M., Gleditsch K.S. On the Frequency of Severe Terrorist Events. J. Conflict Resolution. 2007; 51(1):58–87. DOI: 10.1177/0022002706296157.
20. Cunningham D.E. Understanding Terrorism and Political Violence: The Life Cycle of Terrorism. International Studies Review. 2003; 5(1):18–22.
21. Enders W., Sandler T. The Political Economy of Terrorism : 2nd edition. New York : Cambridge University Press. 2012. 383 p.
22. Eysenck M.W., Keane M.T. Cognitive Psychology: A Student’s Handbook : 7th edition. New York : Psychology Press. 2015. 652 p.
23. Hoffman B. Inside Terrorism : 3rd edition. Columbia University Press. 2017. 528 p.
24. Kreutz J. How and When Armed Conflicts End: Introducing the UCDP Conflict Termination Dataset. J. Peace Research. 2010; 47(2):243–250.
25. Lai B.S., Reiter D. Rally ‘Round the Union Jack? Public Opinion and the Use of Force in the United Kingdom, 1948– 2001. International Studies Quarterly. 2005; 49(2):255–272.
26. Lia B. Globalisation and the Future of Terrorism. Routledge. 2005. 278 p.
27. Newman M.E.J. Networks: An Introduction. Oxford University Press. 2010. 784 p.
28. Sageman M. Understanding Terror Networks. San Francisco : University of Pennsylvania Press. 2004. 220 p.
29. Salmeron J., Palos-Sanchez P., Garcia-Aracil A. Data mining in Terrorist Attacks: Fact-Checking the Role of Open Source Intelligence. Future Internet. 2020; 12(3):43. DOI: 10.3390/fi12030043.
30. Silke A. The Psychology of Counter-Terrorism. Routledge. 2010. 216 p.
31. Van Eck N.J., Waltman L. Manual for VOSviewer version 1.6.19. Leiden Universiteit. 2023. 54 p.
Review
For citations:
Shulenin N.S., Lemeshkin R.N. Application of the KMeans method for clustering the motives of terrorist attacks: a study of data density and distribution. Medicо-Biological and Socio-Psychological Problems of Safety in Emergency Situations. 2025;(2):108-120. (In Russ.) https://doi.org/10.25016/2541-7487-2025-0-2-108-120