Core Feature Screening for Imbalanced Online Purchase Intention Prediction
Abstract
E-commerce browsing data suffers severe class imbalance, making accuracy unreliable for purchase-intention prediction. Using the Online Shoppers Purchasing Intention dataset from the University of California, Irvine (UCI) Machine Learning Repository, this paper compares Logistic Regression, K-Nearest Neighbors, Random Forest and Gradient Boosting via stratified 5-fold cross-validation without synthetic oversampling. Three feature settings are evaluated: full-feature set, Random-Forest-derived top-5 feature subset, and single PageValues. The macro-averaged F1 score (macro-F1) and the area under the precision-recall curve (PR-AUC) serve as core metrics. Class weight and sample weight adjustment are applied to handle imbalance during training. Gradient Boosting obtains the best overall performance. Under imbalance, accuracy is misleading for model comparison. PageValues exhibits strong standalone predictive power, and lightweight models using five core features retain nearly full predictive performance. The results provide practical references for feature screening and lightweight model deployment in imbalanced e-commerce purchase prediction, and demonstrate that a small number of high-signal behavioral indicators is sufficient for effective purchase-intention prediction.