PurposeSafety research has focused on drivers, pedestrians and vehicles, with scarce attention given to highway traffic officers (HTOs). This paper develops a robust prediction model which enables highway safety authorities to predict exclusive incidents occurring on the highway such as incursions and environmental hazards, respond effectively to diverse safety risk incident scenarios and aid in timely safety precautions to minimise HTO incidents.Design/methodology/approachUsing data from a highway incident database, a supervised machine learning method that employs three algorithms [namely Support Vector Machine (SVM), Random Forests (RF) and Naïve Bayes (NB)] was applied, and their performances were comparatively analysed. Three data balancing algorithms were also applied to handle the class imbalance challenge. A five-phase sequential method, which includes (1) data collection, (2) data pre-processing, (3) model selection, (4) data balancing and (5) model evaluation, was implemented.FindingsThe findings indicate that SVM with a polynomial kernel combined with the Synthetic Minority Over-sampling Technique (SMOTE) algorithm is the best model to predict the various incidents, and the Random Under-sampling (RU) algorithm was the most inefficient in improving model accuracy. Weather/visibility, age range and location were the most significant factors in predicting highway incidents.Originality/valueThis is the first study to develop a prediction model for HTOs and utilise an incident database solely dedicated to HTOs to forecast various incident outcomes in highway operations. The prediction model will provide evidence-based information to safety officers to train HTOs on impending risks predicted by the model thereby equipping workers with resilient shocks such as awareness, anticipation and flexibility.