Research Article Open Access

Comparative Study of BERT Based Architectures for Multi Task News Classification and Threat Detection

A. Mustain Billah1 and Sani M Isa1
  • 1 Department of Computer Science, Bina Nusantara Graduate Program Master of Computer Science, Bina Nusantara University, Jakarta, Indonesia

Abstract

We present a comparative analysis of single-task and multi-task BERT-based models for Indonesian news classification across two objectives: category prediction (five classes) and threat detection (binary). Using 8,951 annotated news titles, single-task baselines achieved weighted F1 scores of 0.84±0.01 (category) and 0.87±0.00 (threat). Multi-task hybrids integrating CNN, LSTM, and Bi-LSTM layers performed comparably overall and improved minority class threat detection, with the BERT CNN variant attaining the highest threat F1 (0.88±0.01). Per-class results confirmed that the Ideology category, represented by only 279 samples, remained the most challenging. Efficiency benchmarks on an NVIDIA L4 demonstrated practical feasibility, with batch size 32 throughput of approximately 450-470 items per second (equivalent to 2.1 2.2 ms per title) and single-item latency of around 67-69 ms. Training times ranged from 138±12 to 193±22 s across seeds. These findings indicate that multi-task BERT hybrids can improve threat detection while sustaining near real-time throughput, supporting their applicability in large scale monitoring of Indonesian news streams.

Journal of Computer Science
Volume 22 No. 3, 2026, 1073-1082

DOI: https://doi.org/10.3844/jcssp.2026.1073.1082

Submitted On: 2 June 2025 Published On: 25 March 2026

How to Cite: Billah, A. M. & Isa, S. M. (2026). Comparative Study of BERT Based Architectures for Multi Task News Classification and Threat Detection. Journal of Computer Science, 22(3), 1073-1082. https://doi.org/10.3844/jcssp.2026.1073.1082

  • 32 Views
  • 6 Downloads
  • 0 Citations

Download

Keywords

  • Multi-Task Learning
  • BERT
  • CNN
  • LSTM
  • Bi-LSTM
  • News Classification
  • Comparative Study