Predicting E-Commerce Greenwashing Using Random Forest Machine Learning: Legal Analysis and Marketing Management Strategies
DOI:
10.33395/sinkron.v10i4.16770Keywords:
Greenwashing, E-Commerce, Natural Language Processing, Random Forest, Machine learningAbstract
The rapid growth of e-commerce and the increasing use of environmental claims in product marketing have created challenges in identifying potentially misleading green marketing communication. This study aims to develop a machine learning framework for predicting greenwashing indications in e-commerce products and interpreting the findings from consumer protection and sustainable marketing perspectives. A dataset of 610 products from Shopee and Tokopedia was independently annotated and validated by two annotators. Product descriptions were processed using Natural Language Processing (NLP) and represented using Term Frequency–Inverse Document Frequency (TF-IDF) with unigram and bigram features. Random Forest was employed as the primary classifier, while Support Vector Machine (SVM) and Multinomial Naive Bayes were used as benchmark models. A leakage-safe feature engineering configuration was additionally evaluated. Model performance was assessed using Accuracy, Precision, Recall, F1-score, confusion matrices, and 5-fold stratified cross-validation. On the independent test set, Random Forest with TF-IDF achieved the highest Accuracy (92.62%) and F1-score (95.81%), while 5-fold cross-validation showed that Random Forest with TF-IDF and Strict Feature Engineering achieved the highest mean Accuracy (95.49%) and F1-score (97.42%). Feature importance analysis identified textual structure and specific lexical patterns as predictive signals associated with model decisions. The findings indicate that the proposed framework can support early screening of potentially misleading environmental claims, consumer protection assessment, and more transparent and verifiable green marketing practices. However, model predictions represent predictive signals rather than causal evidence or legal determinations and require further factual and contextual verification
Downloads
References
Balqis, T., Widiyanti, I. D., & Zulaika, E. (2023). Legal Protection for Eco-Friendly Product Consumer Losses Due to the Practice of Greenwashing. Law Review, 23(2), 140–154. https://doi.org/10.19166/lr.v20i1.6915
Chaudhary, A., Kolhe, S., & Kamal, R. (2016). An improved random forest classifier for multi-class classification. Information Processing in Agriculture, 3(4), 215–222. https://doi.org/10.1016/j.inpa.2016.08.002
Cunha, W., Rocha, L., & Gonc, M. A. (2021). Extended Pre-Processing Pipeline For Text Classification : On the Role of Meta-Features , Sparsification and Selective Sampling. 57(4). https://doi.org/10.1016/j.ipm.2020.102263
Fatchurrohman, M., Su, M., & Puspitasari, F. D. (2026). Asimetri Informasi dan Greenwashing dalam Era Pemasaran Digital : Peran Strategi Digital Marketing terhadap Persepsi Keberlanjutan Konsumen. SENTRI: Jurnal Riset Ilmiah, 5(2), 1714–1724. https://doi.org//10.55681/sentri.v5i2.5714
Gorovaia, N. (2024). Identifying greenwashing in corporate ‐ social responsibility reports using natural ‐ language processing. Wiley: European Financial Management, 31(1), 427–462. https://doi.org/10.1111/eufm.12509
Guzmán-monteza, Y. (2023). Telematics and Informatics Reports Assessment of an annotation method for the detection of Spanish argumentative , non-argumentative , and their components. Telematics and Informatics Reports, 11(April). https://doi.org/10.1016/j.teler.2023.100068
Istanti, A. N., & Samsul, I. (2023). Volume 8 , Issue 1 , January – June DE 2023 Analysis of Greenwashing Policy in Providing Consumer Protection in Indonesia in View of Act Number 8 of 1999 Concerning Consumer Protection. De Lega Lata: Jurnal Ilmu Hukum, 8(1), 8–16. https://doi.org/10.30596/dll.v8i1.12477
Jalal, N., Mehmood, A., Sang, G., & Ashraf, I. (2022). A novel improved random forest for text classification using feature ranking and optimal number of trees. Journal of King Saud University - Computer and Information Sciences, 34(6), 2733–2742. https://doi.org/10.1016/j.jksuci.2022.03.012
Janice, F., Boedijanto, O., & Delina, L. L. (2024). Energy Research & Social Science Potentials and challenges of artificial intelligence-supported greenwashing detection in the energy sector. Elsevier, 115. https://doi.org//10.1016/j.erss.2024.103638
Lagasio, V. (2024). International Review of Financial Analysis ESG-washing detection in corporate sustainability reports. International Review of Financial Analysis, 96(PB), 103742. https://doi.org/10.1016/j.irfa.2024.103742
Moodaley, W., & Telukdarie, A. (2023). Greenwashing , Sustainability Reporting , and Artificial Intelligence : A Systematic Literature Review. Sustainability, 15(2), 1481. https://doi.org//10.3390/su15021481
Nugroho, A. (2026). Green promises and unverifiable claims : Detecting corporate greenwashing in Indonesian sustainability reports through corpus linguistics and natural language processing. Indonesian Journal of Language and Economic Discourse, 1(2). https://doi.org//10.67490/ijle.v1i2.904
Nyilasy, G., Gangadharbatla, H., & Paladino, A. (2013). Perceived Greenwashing: The Interactive Effects of Green Advertising and Corporate Environmental Performance on Consumer Reactions. Journal Business Ethics. https://doi.org/10.1007/s10551-013-1944-3
Pizzetti, M., Gatti, L., & Seele, P. (2021). Green lies and their effect on intention to invest. Journal of Business Research, 127(3), 228–240. https://doi.org/10.1016/j.jbusres.2021.01.028
Ramadhani, B., & Hermawan, A. (2025). E-Commerce dan Kelestarian Lingkungan : Analisis Dampak dan Upaya Berkelanjutan. Jurnal Rimba, 3(2), 229–240. https://doi.org//10.61132/rimba.v3i2.1760
Sajid, M., Ertz, M., & Peethambaran, M. (2025). Does greenwashing dim green actions ? Examining how greenwashing impacts consumers ’ pro-environmental intentions. 21(10), 2336–2355. https://doi.org/10.1108/SRJ-03-2025-0211
Steenis, N. D., Herpen, E. Van, Lans, I. A. Van Der, Trijp, H. C. M. Van, Steenis, N. D., Herpen, E. Van, Lans, I. A. Van Der, & Van, H. C. M. (2023). Partially Green , Wholly Deceptive ? How Consumers Respond to ( In ) Consistently Sustainable Packaged Products in the Presence of Sustainability Claims Partially Green , Wholly Deceptive ? How Consumers Respond to. Journal of Advertising, 52(2), 159–178. https://doi.org/10.1080/00913367.2022.2047841
Syahputra, F., Dahri Yani Hakim, T., Dewi, R., & Hilda Elsera Br, S. (2026). Analisis Sentimen Masyarakat terhadap Isu Transformasi Digital Pemerintah di Twitter Menggunakan Naive Bayes dan Support Vector Machine. Infosys (Information System) Journal, 10(2), 73–85. https://doi.org//10.22303/infosys.10.2.2026
Tang, Z., Li, W., & Li, Y. (2019). An improved term weighting scheme for text classification. Wiley, 189(September), 1–19. https://doi.org/10.1002/cpe.5604
ur Rahman, S., & Nguyen-Viet, B. (2023). Towards sustainable development : Coupling green marketing strategies and consumer perceptions in addressing greenwashing. June 2022, 2420–2433. https://doi.org/10.1002/bse.3256
Vieira, S., Netto, D. F., Felipe, M., Sobral, F., Regina, A., Ribeiro, B., & Robert, G. (2020). Concepts and forms of greenwashing : a systematic review. Environmental Sciences Europe, 32(19), 1–12. https://doi.org/10.1186/s12302-020-0300-3
Wang, X., Gao, X., & Sun, M. (2025). Construction and analysis of corporate greenwashing index : a deep learning approach. EPJ Data Sci., 14(44). https://doi.org/10.1140/epjds/s13688-025-00562-w
Wongkar, E. E. L. T., & Apsari, P. K. (2021). Telaah Kebijakan Sustainable Consumption and Production ( SCP ) Era E-Commerce. Indonesian Center for Environmental Law.
Zeng, F., Wang, J., & Zeng, C. (2025). An optimized machine learning framework for predicting and interpreting corporate ESG greenwashing behavior. PLoS ONE, 20(3), 1–25. https://doi.org/10.1371/journal.pone.0316287
Downloads
How to Cite
Issue
Section
License
Copyright (c) 2026 Firman Syahputra; Juliya Maria, Hilda Elsera Br Sembiring

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.






















Moraref
PKP Index
Indonesia OneSearch
OCLC Worldcat
Index Copernicus
Scilit
