Pattern Recognition Model for Security News Media Classification in Nigeria

Authors

Ipeayeda Funmilola Wumi

Ajayi Crowther University (Nigeria)

Fadiora Babatunde Olawale

The Polytechnic, Ibadan, Nigeria (Nigeria)

Lawrence Sunday Adeolu

The Polytechnic, Ibadan, Nigeria (Nigeria)

Article Information

DOI: 10.51584/IJRIAS.2026.11090095

Subject Category: Machine learning and artificial intelligence

Volume/Issue: 11/9 | Page No: 1378-1384

Publication Timeline

Submitted: 2026-09-24

Accepted: 2026-09-29

Published: 2026-10-15

Abstract

Security incidents in Nigeria generate substantial volumes of news reports, but the unstructured nature of these reports makes systematic classification difficult. This study developed and evaluated a pattern-recognition model for automatically classifying Nigerian security-news articles into five categories: Insurgency/Terrorism, Banditry, Communal Conflict, Kidnapping, and Armed Robbery. News articles were collected from Punch, Daily Trust, and Premium Times for the period 1 January 2022 to 31 August 2025. A hybrid labelling pipeline combined article-based rules with temporal and geographic corroboration from Armed Conflict Location & Event Data (ACLED), followed by human validation. After corpus preparation, 13,896 articles were retained and 7,345 received accepted weak labels. A manually reviewed sample of 500 articles produced a human-gold dataset of 454 articles after removal of out-of-scope cases. The classification model used TF-IDF unigram and bigram features with a Linear Support Vector Machine (SVM). To reduce the effect of class imbalance, SMOTE was applied only to the training data. Hyperparameter selection on the validation set identified C = 0.1 as the best configuration. On the untouched 227-article human-gold test set, the model achieved 95.59% accuracy, 95.59% macro precision, 95.72% macro recall, and 95.57% macro-F1. All five classes recorded F1-scores above 93%, although some confusion occurred between semantically related categories such as Banditry, Kidnapping, and Armed Robbery. The SVM also exceeded Multinomial Naive Bayes and a majority-class baseline evaluated on the same test set. The findings demonstrate the feasibility of a locally adapted security-news classification pipeline, while the limited size of the human-gold test set and unequal representation of news sources indicate the need for larger, independently annotated and temporally external evaluations.

Keywords

security news classification, pattern recognition, natural language processing

Downloads

References

1. Adelani, D. I., Masiak, M., Azime, I. A., Alabi, J. O., Tonja, A. L., Mwase, C., Ogundepo, O., Dossou, B. F. P., Oladipo, A., Nixdorf, D., Emezue, C. C., Al-Azzawi, S. S., Sibanda, B. K., David, D., Ndolela, L., Mukiibi, J., Ajayi, T. O., Ngoli, T. M., Odhiambo, B., … Stenetorp, P. (2023). MasakhaNEWS: News topic classification for African languages. In Proceedings of the 13th International Joint Conference on Natural Language Processing and the 3rd Conference of the Asia-Pacific Chapter of the Association for Computational Linguistics (Vol. 1, pp. 144–159). Association for Computational Linguistics. https://doi.org/10.18653/v1/2023.ijcnlp-main.10 [Google Scholar] [Crossref]

2. Allam, H., Makubvure, L., Gyamfi, B., Graham, K. N., & Akinwolere, K. (2025). Text classification: How machine learning is revolutionizing text categorization. Information, 16(2), 130. https://doi.org/10.3390/info16020130 [Google Scholar] [Crossref]

3. Armed Conflict Location & Event Data Project. (2025). Nigeria: Conflict events [Data set]. Humanitarian Data Exchange. https://data.humdata.org/dataset/nigeria-acled-conflict-data [Google Scholar] [Crossref]

4. Atkinson, M., Piskorski, J., Tanev, H., & Zavarella, V. (2017). On the creation of a security-related event corpus. In Proceedings of the Events and Stories in the News Workshop (pp. 59–65). Association for Computational Linguistics. https://doi.org/10.18653/v1/W17-2709 [Google Scholar] [Crossref]

5. Chavan, D., & Padatare, S. (2024). Explainable AI for news classification. International Journal for Research in Applied Science and Engineering Technology, 12(11), 2400–2408. https://doi.org/10.22214/ijraset.2024.65670 [Google Scholar] [Crossref]

6. Devlin, J., Chang, M.-W., Lee, K., & Toutanova, K. (2019). BERT: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of NAACL-HLT 2019 (Vol. 1, pp. 4171–4186). Association for Computational Linguistics. https://doi.org/10.18653/v1/N19-1423 [Google Scholar] [Crossref]

7. Gururangan, S., Marasović, A., Swayamdipta, S., Lo, K., Beltagy, I., Downey, D., & Smith, N. A. (2020). Don’t stop pretraining: Adapt language models to domains and tasks. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics (pp. 8342–8360). Association for Computational Linguistics. https://doi.org/10.18653/v1/2020.acl-main.740 [Google Scholar] [Crossref]

8. Henning, S., Beluch, W., Fraser, A., & Friedrich, A. (2023). A survey of methods for addressing class imbalance in deep-learning based natural language processing. In Proceedings of the 17th Conference of the European Chapter of the Association for Computational Linguistics (pp. 523–540). Association for Computational Linguistics. https://doi.org/10.18653/v1/2023.eacl-main.38 [Google Scholar] [Crossref]

9. Kniele, A., & Beloucif, M. (2023). Uppsala University at SemEval-2023 Task 12: Zero-shot sentiment classification for Nigerian Pidgin tweets. In Proceedings of the 17th International Workshop on Semantic Evaluation (pp. 1491–1497). Association for Computational Linguistics. https://doi.org/10.18653/v1/2023.semeval-1.205 [Google Scholar] [Crossref]

10. Minaee, S., Kalchbrenner, N., Cambria, E., Nikzad, N., Chenaghlu, M., & Gao, J. (2021). Deep learning-based text classification: A comprehensive review. ACM Computing Surveys, 54(3), Article 62. https://doi.org/10.1145/3439726 [Google Scholar] [Crossref]

11. Mohammadi, H., Momand, Z., Habibi, P., Ramaki, N., Fazli, B. S., Rohany, S. Z., & Samsoor, I. (2023). Analyzing textual data for fatality classification in Afghanistan’s armed conflicts: A BERT approach [Preprint]. arXiv. https://doi.org/10.48550/arXiv.2310.08653 [Google Scholar] [Crossref]

12. Olusola, B. A., Oyediran, M., Ipeayeda, F., & Akindele, A. A. (2025). Enhance Support Vector Machine models for Cassava leaf disease variants identification and classification. Journal of Applied Science Information and Computing, 6(1), 87–104. https://doi.org/10.59568/JASIC-2025-6-1-10 [Google Scholar] [Crossref]

13. Onyekpeze, O., Owolabi, O., & Ibrahim, B. H. (2021). Classification of cybersecurity incidents in Nigeria using machine learning methods. Covenant Journal of Informatics and Communication Technology, 9(2), 1–17. https://journals.covenantuniversity.edu.ng/index.php/cjict/article/view/2796 [Google Scholar] [Crossref]

14. Ratner, A., Bach, S. H., Ehrenberg, H., Fries, J., Wu, S., & Ré, C. (2017). Snorkel: Rapid training data creation with weak supervision. Proceedings of the VLDB Endowment, 11(3), 269–282. https://doi.org/10.14778/3157794.3157797 [Google Scholar] [Crossref]

Metrics

Views & Downloads

Similar Articles