Stacking Ensemble Revenue Predictions in Digital Marketing: A SHAP-Based Analysis of Price and Quantity as Key Predictors

Authors

  • Hana Maulid Universitas Informatika dan Bisnis Indonesia image/svg+xml Author
    • Tiara Permata Hati Universitas Informatika dan Bisnis Indonesia image/svg+xml Author
      • Fikri Muhamad Fahmi Universitas Informatika dan Bisnis Indonesia image/svg+xml Author

        DOI:

        https://doi.org/10.65780/bima.v1i1.1

        Keywords:

        digital marketing, conversion prediction, stacking ensemble model, explainable AI (XAI), SHAP (Shapley Additive Explanations)

        Abstract

        This study focuses on developing a digital marketing conversion prediction model using an ensemble stacking approach combined with explainable artificial intelligence (XAI) methods to improve model transparency. The primary objective of this study is to investigate the impact of price and product quantity on revenue predictions, as well as to gain a clearer understanding of the factors that influence customer purchasing behaviour in the context of digital sales. The methodology used includes data collection from a Kaggle dataset containing 3,000 records and 15 features related to customer demographics, product information, and marketing channels. The preprocessing stage ensures data quality, followed by feature engineering and model development using an ensemble stacking model consisting of Logistic Regression, Gaussian Naïve Bayes, and Support Vector Classification. Model evaluation was conducted using precision, recall, F1-score, and ROC-AUC metrics, with performance improvements achieved through cross-validation and probabilistic calibration. The study results showed that model accuracy reached 0.97, with significant contributions from price and product quantity features, as seen in the SHAP analysis. The ensemble stacking model provided stable and reliable predictions. These findings underscore the importance of effective pricing strategies and product volume optimisation in driving revenue growth. The use of SHAP enhances interpretability, enabling businesses to make more informed decisions. This research contributes to the development of transparent and practical machine learning applications in digital marketing, providing valuable implications for business strategy optimization.

        Downloads

        Download data is not yet available.

        References

        [1] B. Budiman, N. Alamsyah, E. Setiana, and F. M. Fahmi, ‘Optimizing Logistic Regression for Digital Marketing Campaigns: Insights from Hyperparameter Tuning with Optuna’, Journal of Computer Engineering, Electronics and Information Technology, vol. 4, no. 1, pp. 35–50, Jun. 2025, doi: 10.17509/coelite.v4i1.81020.

        [2] R. A. T. Sudalyo and N. E. Prasetyaningrum, ‘The Influence of Digital Marketing on Accounting Decisions: Implications and Challenges’, Jurnal Ekuisci, vol. 1, no. 2, pp. 85–94, Nov. 2023, doi: 10.62885/ekuisci.v1i2.99.

        [3] Y. K. Dwivedi et al., ‘Setting the future of digital and social media marketing research: Perspectives and research propositions’, International Journal of Information Management, vol. 59, p. 102168, Aug. 2021, doi: 10.1016/j.ijinfomgt.2020.102168.

        [4] F. Fadillah, F. Cholifah, A. Putri, Y. Fitriani, M. Rizan, and S. F. Wibowo, ‘The Dynamics of SME Digital Marketing in the Digital Business Ecosystem’, Greenation International Journal of Economics and Accounting, vol. 3, no. 1, pp. 175–184, May 2025, doi: 10.38035/gijea.v3i1.384.

        [5] S. Muthuraman, ‘Rejuvenate the Digital Marketing Strategies’, International Journal of Research and Innovation in Social Science, Accessed: Aug. 19, 2025. [Online]. Available: https://rsisinternational.org/journals/ijriss/articles/rejuvenate-the-digital-marketing-strategies/

        [6] N. Laila, P. Sucia Sukmaningrum, W. A. Saini Wan Ngah, L. Nur Rosyidi, and I. Rahmawati, ‘An in-depth analysis of digital marketing trends and prospects in small and medium-sized enterprises: utilizing bibliometric mapping’, Cogent Business & Management, vol. 11, no. 1, p. 2336565, Dec. 2024, doi: 10.1080/23311975.2024.2336565.

        [7] Z. Ena, F. Sari, D. Darmawanto, I. Kamal, and A. Masnun, ‘MARKETING MANAGEMENT STRATEGY; CHALLENGES AND SOLUTIONS IN THE DIGITAL ERA’, Jurnal Ekonomi, vol. 12, no. 01, pp. 869–873, Jan. 2023.

        [8] D. I. Pramayanti and Kurnia, ‘Digital Product Marketing for Digitalpreneur: Challenges and Strategies’, Edusight International Journal of Multidisciplinary Studies, vol. 2, no. 1, Mar. 2025, doi: 10.69726/eijoms.v2i1.97.

        [9] X. Lin and C. Lu, ‘A Stacking-Based Ensemble Model for Prediction of Metropolitan Bike Sharing Demand’, AJIST, Apr. 2023, doi: 10.11648/j.ajist.20230702.13.

        [10] M. Arboleda-Florez and C. Castro-Zuluaga, ‘Interpreting direct sales’ demand forecasts using SHAP values’, Prod., vol. 33, p. e20220035, 2023, doi: 10.1590/0103-6513.20220035.

        [11] N. Asadi Ejgerdi and M. Kazerooni, ‘A stacked ensemble learning method for customer lifetime value prediction’, K, vol. 53, no. 7, pp. 2342–2360, Jun. 2024, doi: 10.1108/K-12-2022-1676.

        [12] M. Würfel, Q. Han, and M. Kaiser, ‘Online Advertising Revenue Forecasting: An Interpretable Deep Learning Approach’, in 2021 IEEE International Conference on Big Data (Big Data), Dec. 2021, pp. 1980–1989. doi: 10.1109/BigData52589.2021.9672010.

        [13] C. Yaiprasert and A. N. Hidayanto, ‘AI-driven ensemble three machine learning to enhance digital marketing strategies in the food delivery business’, Intelligent Systems with Applications, vol. 18, p. 200235, May 2023, doi: 10.1016/j.iswa.2023.200235.

        [14] N. Alamsyah, B. Budiman, T. P. Yoga, and R. Y. R. Alamsyah, ‘A stacking ensemble model with SMOTE for improved imbalanced classification on credit data’, TELKOMNIKA (Telecommunication Computing Electronics and Control), vol. 22, no. 3, Art. no. 3, Feb. 2024, doi: 10.12928/telkomnika.v22i3.25921.

        [15] M. Wang, Y. Zhang, C. Qin, P. Liu, and Q. Zhang, ‘Option Pricing Model Combining Ensemble Learning Methods and Network Learning Structure’, Mathematical Problems in Engineering, vol. 2022, pp. 1–11, Oct. 2022, doi: 10.1155/2022/2590940.

        Downloads

        Published

        2025-11-11

        How to Cite

        Stacking Ensemble Revenue Predictions in Digital Marketing: A SHAP-Based Analysis of Price and Quantity as Key Predictors. (2025). Bulletin of Intelligent Machines and Algorithms, 1(1), 14-21. https://doi.org/10.65780/bima.v1i1.1