PERTANIKA JOURNAL OF SCIENCE AND TECHNOLOGY

 

e-ISSN 2231-8526
ISSN 0128-7680

Home / Regular Issue / JST Vol. 34 (2) Apr. 2026 / JST-6130-2025

 

Integrating Time Lag Effects in Predictive Modelling using Random Forest for Early Detection of Bagworm Outbreaks

Yi Peng Wang, Nurul Hawani Idris, Norhayu Asib, Mohamad Hafis Izran Ishak, and Alvin Lau Meng Shin

Pertanika Journal of Science & Technology, Volume 34, Issue 2, April 2026

DOI: https://doi.org/10.47836/pjst.34.2.18

Keywords: Bagworm, Geographic Information System (GIS), prediction model, random forest, spatio-temporal, time lag

Published on: 2026-04-30

The palm oil bagworm inflicts substantial economic losses on the palm oil industry in Malaysia annually. At present, integrated pest management remains the primary method for managing pests and diseases. However, early prediction of pest occurrence can help to assist in managing sustainable palm oils more effectively. Understanding the time window as well as the lag associated with environmental changes at the plot level is fundamental to such pest management strategies. However, few studies consider historical environmental data and recognise the biological and ecological time lags in pest population responses in their predictive models. This study aims to develop a predictive model based on spatiotemporal environmental data to support early warning systems for managing palm oil bagworm infestations. Therefore, this study examines the best time lags from one to six cycles before the census lagged variables, ranging from period 1 to 6 and trains the model using a random forest algorithm under 12 different time window configurations. Key driving factors influencing bagworm occurrences, including rainfall, land surface temperature, humidity, and road density, are investigated. Experimental results indicate that the combination of the first three cycles (Lag 1, 2, and 3) of temporal data before the census date yields the best model performance with a recall rate of 0.76 and an AUC value of 0.68. Among these, relative humidity (RH_lag2; two cycles before the census) and surface temperature (LST_lag1; one cycle before the census) emerges as the most influential predictors of bagworm outbreaks. Finally, the visualisation of model predictions enables plot-based targeted preventive measures in high-risk areas, thereby supporting the Sustainable Development Goal (SDG) in palm oil management.

ISSN 0128-7680

e-ISSN 2231-8526

Article ID

JST-6130-2025

Download Full Article PDF

Share this article

Recent Articles