Robust Prediction of Acute Oral Toxicity using a Multi-Stage Stacked Ensemble Framework

Osman Ahmed Abdalla1

Alaa M. Elsayad2

Medien Zeghid2

Hassan Yousif Ahmed2, Email

Khaled A. Elsayad3

1Department of Computer Science, University College of Tayma, University of Tabuk, Tabuk, 71491, Saudi Arabia
2Deparment of Electrical Engineering, College of Engineering in Wadi Alddawasir, Prince Sattam Bin Abdulaziz University, Wadi Alddawasir, 11991, Saudi Arabia
3Pharmacy Department, Cairo University Hospitals, Cairo University, Giza, Cairo, 11662, Egypt

Abstract

Accurate prediction of acute oral toxicity (LD50) is critical for pharmaceutical development and chemical safety assessment. This study presents a stacked ensemble quantitative structure-activity relationship (QSAR) model for predicting LD50 values using a dataset of 8,872 compounds. The proposed model integrates three complementary tree-based algorithms, namely random forest (RF), gradient boosting (GB), and extra trees (ET) as base learners, and their outputs are combined through an elastic net meta-learner. Systematic ablation analysis showed that two-dimensional (2D) molecular descriptors alone (R2 = 0.5555) achieved higher predictive performance than the integration of 2D and three-dimensional (3D) descriptors (R2 = 0.5481), confirming descriptor sufficiency and eliminating the requirement for computationally intensive conformer generation. The ensemble of three base algorithms with elastic net meta-learner framework yielded R2 = 0.5574, root mean square error (RMSE) = 0.5672 and mean absolute error (MAE) = 0.4155 on the test set (n = 1,775), satisfying four of the five Tropsha validation criteria. The meta-learning approach significantly outperformed equal-weight averaging (ΔR2 = +0.0099, p < 0.001) through optimized weighting of the individual algorithms (RF:0.23, GB:0.16, ET:0.62). The findings demonstrate that leveraging complementary algorithms with learned weighting outperforms naive model accumulation. This strategy supports a practical framework for high-throughput toxicity screening without requiring 3D conformer generation.

Robust Prediction of Acute Oral Toxicity using a Multi-Stage Stacked Ensemble Framework