Inform : Jurnal Ilmiah Bidang Teknologi Informasi dan Komunikasi
Vol. 11 No. 2 (2026)

Improving Indonesian Long-Text Hoax Detection Using an Overlapping Sliding Window with IndoBERT

Mochamad Abdul Azis (Information Systems Department, Universitas Nusantara PGRI Kediri, Indonesia)
Sucipto Sucipto (Information Systems Department, Universitas Nusantara PGRI Kediri, Indonesia)
Aidina Ristyawan (Information Systems Department, Universitas Nusantara PGRI Kediri, Indonesia)



Article Info

Publish Date
18 Sep 2026

Abstract

The rapid spread of hoax news across Indonesian digital platforms has created significant challenges for information credibility and public trust. Although transformer-based models such as IndoBERT have achieved strong performance in Indonesian text classification tasks, the architecture supports a maximum input length of only 512 tokens. This limitation potentially removes important contextual information from long news articles during the truncation pre-processing stage, thereby reducing classification performance. Therefore, this study aims to improve the performance of Indonesian long-text hoax detection by combining an overlapping sliding-window approach with the IndoBERT Base-P1 architecture. The proposed method divides long documents into multiple overlapping segments, each containing up to 512 tokens, with a 128-token stride to preserve contextual continuity between adjacent segments. This study also applies text normalization, class weighting, and the AdamW optimizer during fine-tuning. Experimental results demonstrate that overlapping sliding-window segmentation effectively preserves contextual information while maintaining stable classification performance on the general dataset. Evaluation on 965 long-text articles exceeding 512 tokens shows that overlapping sliding-window segmentation combined with full fine-tuning outperforms the conventional truncation baseline, improving the F1-score from 0.9688 to 0.9846. The proposed method achieves an accuracy of 0.9897, a precision of 1.0000, a recall of 0.9697, and an F1-score of 0.9846 in long-text classification experiments. These findings indicate that the proposed overlapping sliding-window approach effectively addresses IndoBERT’s token limitation while improving contextual understanding for Indonesian long-text hoax classification.

Copyrights © 2026






Journal Info

Abbrev

inform

Publisher

Subject

Computer Science & IT Control & Systems Engineering Electrical & Electronics Engineering Engineering Library & Information Science

Description

Inform: Jurnal Ilmiah Bidang Teknologi Informasi dan Komunikasi is One of the journals published by the Informatics Engineering Department Dr. Soetomo University, was established in January 2016. Inform a double-blind peer-reviewed journal, the aim of this journal is to publish high-quality articles ...