Authors Tarilatei Mao ClaudiusDepartment of Computer Science, Rivers State University, Port-Harcourt, NigeriaN. D. NwiabuDepartment of Computer Science, Rivers State University, Port-Harcourt, NigeriaC. G. IgiriDepartment of Computer Science, Rivers State University, Port-Harcourt, Nigeria Abstract Dark patterns are manipulative interface designs that steer users toward unintended purchases, subscriptions, or disclosures, and they are widespread across e-commerce platforms. Existing automated detection approaches are largely single-modality and offer limited transparency into why a pattern was flagged, which restricts their use by regulators, platform developers, and consumers. This study designed, implemented, and evaluated DPNet-v2.4.1-XAI, an explainable multi-modal detection system that fuses visual (CNN), textual (BERT), and DOM-structural signals and pairs them with a dual SHAP and Grad-CAM explainability layer. The model was trained on 5,200 labelled samples across eight dark-pattern categories (Urgency, Scarcity, Misdirection, Social Proof, Forced Action, Obstruction, Sneaking, and Confirmshaming) and delivered as a six-module web application. On a held-out test set of 520 e-commerce interface samples it achieved 92.3% accuracy and an F1-score of 89.9%, outperforming the benchmark system of Vedhapriyavadhana et al. (2025) by 3.2 and 2.5 percentage points on accuracy and F1-score respectively, and by 8.0 percentage points on explainability faithfulness (87.0% versus 79.0%). Field testing on 18 live Nigerian and cross-border e-commerce pages detected 98 pattern instances, with confidence scores as high as 93%. The results demonstrate that multi-modal fusion measurably improves both detection performance and explanation faithfulness over a single-modality baseline, offering a deployable, transparent tool for consumers, platform developers, and regulators seeking to identify manipulative design at the point of interaction. Keywords Dark Patterns Explainable AI E-Commerce Multi-Modal Deep Learning SHAP Grad-CAM Consumer Protection Web Application Citation of this Article Tarilatei Mao Claudius, N. D. Nwiabu, & C. G. Igiri. (2026). An Explainable Web-Based Model to Identify Dark Pattern on E-Commerce User Interfaces. Journal of Artificial Intelligence and Emerging Technologies (JAIET). 3(10), 14-24. Article DOI: https://doi.org/10.47001/JAIET/2026.310003 Licence Copyright (c) 2026 Journal of Artificial Intelligence and Emerging Technologies. This work is licensed under a Creative Commons Attribution Non Commercial 4.0 International Licence. References Brignull, H. (2010). Dark patterns: Deception vs. honesty in UI design. A List Apart. https://alistapart.com/article/dark-patterns-deception-vs-honesty-in-ui-design/Gray, C. M., Kou, Y., Battles, B., Hoggatt, J., & Toombs, A. L. (2018). The dark (patterns) side of UX design. In Proceedings of the 2018 CHI Conference on Human Factors in Computing Systems (pp. 1–14). ACM. https://doi.org/10.1145/3173574.3174108Mathur, A., Acar, G., Friedman, M. J., Lucherini, E., Mayer, J., Chetty, M., & Narayanan, A. (2019). Dark patterns at scale: Findings from a crawl of 11K shopping websites. Proceedings of the ACM on Human-Computer Interaction, 3(CSCW), 81:1–81:32. https://doi.org/10.1145/3359183Di Geronimo, L., Braz, L., Fregnan, E., Palomba, F., & Bacchelli, A. (2020). UI dark patterns and where to find them: A study on mobile applications. In Proceedings of the 2020 CHI Conference on Human Factors in Computing Systems (pp. 1–14). ACM.Luguri, J., & Strahilevitz, L. J. (2021). Shining a light on dark patterns. Journal of Legal Analysis, 13(1), 43–109. https://doi.org/10.1093/jla/laaa006Regulation (EU) 2016/679 of the European Parliament and of the Council of 27 April 2016 on the protection of natural persons with regard to the processing of personal data and on the free movement of such data (General Data Protection Regulation). (2016). Official Journal of the European Union, L 119, 1–88.European Parliament. (2022). Regulation (EU) 2022/2065 of the European Parliament and of the Council of 19 October 2022 on a single market for digital services (Digital Services Act). Official Journal of the European Union, L 277, 1–102.Federal Trade Commission. (2022). FTC takes action against companies that use "dark patterns" to trap people into subscriptions. https://www.ftc.gov/news-events/news/press-releases/2022/11/ftc-takes-action-against-companies-use-dark-patterns-trap-people-subscriptionsHidaka, S., Kobayashi, T., & Hamamura, T. (2023). Automatic detection of dark patterns in cookie consent banners using BERT. In Proceedings of the 2023 ACM CHI Conference on Human Factors in Computing Systems (pp. 1–14). ACM.Soe, T. H., Nordberg, O. E., Guribye, F., & Slavkovik, M. (2023). Circumvention by design: Dark patterns in cookie consent interfaces. In Proceedings of the 18th European Conference on Computer-Supported Cooperative Work (pp. 1–24). European Society for Socially Embedded Technologies.Nguyen, H., Do, T., & Nguyen, T. T. (2022). Detecting dark patterns in e-commerce using deep learning. In Proceedings of the 2022 IEEE International Conference on Big Data (pp. 3214–3223). IEEE.Adadi, A., & Berrada, M. (2018). Peeking inside the black-box: A survey on explainable artificial intelligence (XAI). IEEE Access, 6, 52138–52160. https://doi.org/10.1109/ACCESS.2018.2870052Gunning, D., Stefik, M., Choi, J., Miller, T., Stumpf, S., & Yang, G. Z. (2019). XAI—Explainable artificial intelligence. Science Robotics, 4(37), eaay7120. https://doi.org/10.1126/scirobotics.aay7120National Information Technology Development Agency. (2021). Nigeria digital economy policy and strategy. NITDA. https://nitda.gov.ng/wp-content/uploads/2021/01/NigeriaDigitalEconomyPolicyandStrategy.pdfBongard-Blanchy, K., Rossi, A., Rivas, S., Doublet, S., Koenig, V., & Lenzini, G. (2021). I am definitely manipulated, even when I am aware of it. It's ridiculous! Dark patterns from the end-user perspective. In Proceedings of the 2021 ACM Designing Interactive Systems Conference (pp. 763–776). ACM. https://doi.org/10.1145/3461778.3462086Ahuja, S., & Kumar, J. (2022). Conceptualizations of user autonomy within the normative evaluation of dark patterns. Ethics and Information Technology, 24(4), Article 52. https://doi.org/10.1007/s10676-022-09672-9Cialdini, R. B. (2001). Influence: Science and practice (4th ed.). Allyn & Bacon.Kahneman, D., & Tversky, A. (1979). Prospect theory: An analysis of decision under risk. Econometrica, 47(2), 263–291. https://doi.org/10.2307/1914185Johnson, E. J., & Goldstein, D. (2003). Do defaults save lives? Science, 302(5649), 1338–1339. https://doi.org/10.1126/science.1091721Simon, H. A. (1955). A behavioral model of rational choice. Quarterly Journal of Economics, 69(1), 99–118. https://doi.org/10.2307/1884852Irish Data Protection Commission. (2023). Decision on the Meta Ireland complaint. https://www.dataprotection.ie/en/news-media/press-releases/dpc-announces-decision-in-meta-ireland-inquiryCompetition and Markets Authority. (2022). Online choice architecture: How digital design can harm competition and consumers. CMA. https://www.gov.uk/government/publications/online-choice-architecture-how-digital-design-can-harm-competition-and-consumersFederal Trade Commission. (2023). FTC finalizes "click to cancel" rule making it easier for consumers to end subscriptions. https://www.ftc.gov/news-events/news/press-releases/2023/10/ftc-finalizes-click-to-cancel-rule-making-it-easier-consumers-end-subscriptionsSwearngin, A., Myers, B. A., & Landay, J. A. (2019). Modeling mobile interface tappability using crowdsourcing and deep learning. In Proceedings of the 2019 CHI Conference on Human Factors in Computing Systems (pp. 1–11). ACM. https://doi.org/10.1145/3290605.3300305He, K., Zhang, X., Ren, S., & Sun, J. (2016). Deep residual learning for image recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (pp. 770–778). https://doi.org/10.1109/CVPR.2016.90Tan, M., & Le, Q. V. (2019). EfficientNet: Rethinking model scaling for convolutional neural networks. In Proceedings of the 36th International Conference on Machine Learning (pp. 6105–6114). PMLR.Dosovitskiy, A., Beyer, L., Kolesnikov, A., Weissenborn, D., Zhai, X., Unterthiner, T., Dehghani, M., Minderer, M., Heigold, G., Gelly, S., Uszkoreit, J., & Houlsby, N. (2021). An image is worth 16x16 words: Transformers for image recognition at scale. In International Conference on Learning Representations.Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., Kaiser, L., & Polosukhin, I. (2017). Attention is all you need. In Advances in Neural Information Processing Systems (Vol. 30). Curran Associates.Arrieta, A. B., Díaz-Rodríguez, N., Del Ser, J., Bennetot, A., Tabik, S., Barbado, A., García, S., Gil-López, S., Molina, D., Benjamins, R., Chatila, R., & Herrera, F. (2020). Explainable artificial intelligence (XAI): Concepts, taxonomies, opportunities and challenges toward responsible AI. Information Fusion, 58, 82–115. https://doi.org/10.1016/j.inffus.2019.12.012Selvaraju, R. R., Cogswell, M., Das, A., Vedantam, R., Parikh, D., & Batra, D. (2017). Grad-CAM: Visual explanations from deep networks via gradient-based localization. In Proceedings of the IEEE International Conference on Computer Vision (pp. 618–626). https://doi.org/10.1109/ICCV.2017.74Chattopadhay, A., Sarkar, A., Howlader, P., & Balasubramanian, V. N. (2018). Grad-CAM++: Generalized gradient-based visual explanations for deep convolutional networks. In 2018 IEEE Winter Conference on Applications of Computer Vision (pp. 839–847). IEEE. https://doi.org/10.1109/WACV.2018.00097Lundberg, S. M., & Lee, S. I. (2017). A unified approach to interpreting model predictions. In Advances in Neural Information Processing Systems (Vol. 30). Curran Associates.Ribeiro, M. T., Singh, S., & Guestrin, C. (2016). "Why should I trust you?": Explaining the predictions of any classifier. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining (pp. 1135–1144). ACM. https://doi.org/10.1145/2939672.2939778Alvarez-Melis, D., & Jaakkola, T. S. (2018). On the robustness of interpretability methods. arXiv. https://doi.org/10.48550/arXiv.1806.08049Raju, S. H., Waris, S. F., Adinarayna, S., Jadala, V. C., & Subba Rao, G. (2021). Smart dark pattern detection: Making aware of misleading patterns through the intended app. In S. Shakya, V. E. Balas, S. Kamolphiwong, & K.-L. Du (Eds.), Sentimental analysis and deep learning: Proceedings of ICSADL 2021 (pp. 933–948). Springer.Nazarov, D., & Baimukhambetov, Y. (2022). Clustering of dark patterns in the user interfaces of websites and online trading portals (E-commerce). Mathematics, 10(18), Article 3219. https://doi.org/10.3390/math10183219Yada, Y., Feng, J., Matsumoto, T., Fukushima, N., Kido, F., & Yamana, H. (2022). Dark patterns in e-commerce: A dataset and its baseline evaluations. In Proceedings of the 2022 IEEE International Conference on Big Data (pp. 3015–3022). IEEE. https://doi.org/10.1109/BigData55660.2022.10020800Mansur, S. M. H., Salma, S., Awofisayo, D., & Moran, K. (2023). AidUI: Toward automated recognition of dark patterns in user interfaces. In 2023 IEEE/ACM 45th International Conference on Software Engineering (pp. 1958–1970). IEEE. https://doi.org/10.1109/ICSE48619.2023.00166Srinivas Babu, K., Nithin, B. S., Raghuram, E., & Bharath, A. (2025). Dark Surfer – A dark pattern analyzer & classifier. ITM Web of Conferences, 74, Article 01018. https://doi.org/10.1051/itmconf/20257401018Król, K. (2026). Automated detection of deceptive design patterns on university websites: A comparative analysis of browser-based tools and LLM-based approaches. Applied Sciences, 16(9), Article 4543. https://doi.org/10.3390/app16094543Vedhapriyavadhana, R., Bharti, P., & Chidambaranathan, S. (2025). Detecting dark patterns in shopping websites: A multi-faceted approach using Bidirectional Encoder Representations from Transformers (BERT). Enterprise Information Systems, 19(5–6), Article 2457961. https://doi.org/10.1080/17517575.2025.2457961Cuvin, P., Zhu, H., & Yang, D. (2025). DECEPTICON: How dark patterns manipulate web agents. arXiv. https://doi.org/10.48550/arXiv.2512.22894Gray, C. M., Mildner, T., & Gairola, R. (2025). Getting trapped in Amazon's "Iliad Flow": A foundation for the temporal analysis of dark patterns. In Proceedings of the 2025 CHI Conference on Human Factors in Computing Systems. ACM. https://doi.org/10.1145/3706598.3713828Mildner, T., Fidel, D., Stefanidi, E., Woźniak, P. W., Malaka, R., & Niess, J. (2025). A comparative study of how people with and without ADHD recognise and avoid dark patterns on social media. In CHI Conference on Human Factors in Computing Systems (pp. 1–17). ACM. https://doi.org/10.1145/3706598.3713776Singh, V., Vishvakarma, N. K., & Kumar, V. (2024). Tracing the origins of manipulation: Modeling the enablers behind dark patterns usage in e-commerce through TISM and MICMAC analysis. Global Knowledge, Memory and Communication. Advance online publication. https://doi.org/10.1108/GKMC-10-2023-0386Ruohonen, J., Koskinen, J., Klausen, S. H., & Gerdes, A. (2025). A scenario analysis of ethical issues in dark patterns and their research. arXiv. https://doi.org/10.48550/arXiv.2503.01828Järvinen, P. (2007). Action research is similar to design science. Quality & Quantity, 41(1), 37–54. https://doi.org/10.1007/s11135-005-5427-1Booch, G., Maksimchuk, R. A., Engle, M. W., Young, B. J., Conallen, J., & Houston, K. A. (2007). Object-oriented analysis and design with applications (3rd ed.). Addison-Wesley Professional.Rumbaugh, J., Jacobson, I., & Booch, G. (2004). The unified modeling language reference manual (2nd ed.). Addison-Wesley.Yeh, C.-K., Hsieh, C.-Y., Suggala, A., Inouye, D. I., & Ravikumar, P. (2019). On the (in)fidelity and sensitivity of explanations. In Advances in Neural Information Processing Systems (Vol. 32). Curran Associates.Ridnik, T., Ben-Baruch, E., Noy, A., & Zelnik-Manor, L. (2021). ImageNet-21K pretraining for the masses. In Advances in Neural Information Processing Systems (Vol. 35). Curran Associates.Kingma, D. P., & Ba, J. (2015). Adam: A method for stochastic optimization. In International Conference on Learning Representations.Gildenblat, J., & contributors. (2021). PyTorch library for CAM methods [Computer software]. GitHub. https://github.com/jacobgil/pytorch-grad-cam