Lune

ICSE2023Top-tier venue

AidUI: Toward Automated Recognition of Dark Patterns in User Interfaces

S. M. Hasan Mansur, Sabiha Salma, Damilola Awofisayo, Kevin Moran

Abstract

Past studies have illustrated the prevalence of UI dark patterns, or user interfaces that can lead end-users toward (unknowingly) taking actions that they may not have intended. Such deceptive UI designs can be either intentional (to benefit an online service) or unintentional (through complicit design practices) and can result in adverse effects on end users, such as oversharing personal information or financial loss. While significant research progress has been made toward the development of dark pattern taxonomies across different software domains, developers and users currently lack guidance to help recognize, avoid, and navigate these often subtle design motifs. However, automated recognition of dark patterns is a challenging task, as the instantiation of a single type of pattern can take many forms, leading to significant variability. In this paper, we take the first step toward understanding the extent to which common UI dark patterns can be automatically recognized in modern software applications. To do this, we introduce AidUI, a novel automated approach that uses computer vision and natural language processing techniques to recognize a set of visual and textual cues in application screenshots that signify the presence of ten unique UI dark patterns, allowing for their detection, classification, and localization. To evaluate our approach, we have constructed ContextDP, the current largest dataset of fully-localized UI dark patterns that spans 175 mobile and 83 web UI screenshots containing 301 dark pattern instances. The results of our evaluation illustrate that AidUI achieves an overall precision of 0.66, recall of 0.67, F1-score of 0.65 in detecting dark pattern instances, reports few false positives, and is able to localize detected patterns with an IoU score of 0.84. Furthermore, a significant subset of our studied dark patterns can be detected quite reliably (F1 score of over 0.82), and future research directions may allow for improved detection of additional patterns. This work demonstrates the plausibility of developing tools to aid developers in recognizing and appropriately rectifying deceptive UI patterns.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

12 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • MotorEase: Automated Detection of Motor Impairment Accessibility Issues in Mobile App UIs cites Screen Recognition: Creating Accessibility Metadata for Mobile Applications from Pixels
  • MotorEase: Automated Detection of Motor Impairment Accessibility Issues in Mobile App UIs cites Unblind your apps: predicting natural-language labels for mobile GUI components by deep learning
  • Screen Recognition: Creating Accessibility Metadata for Mobile Applications from Pixels cites Object detection for graphical user interface: old fashioned or deep learning or a combination?
  • Screen Recognition: Creating Accessibility Metadata for Mobile Applications from Pixels cites Unblind your apps: predicting natural-language labels for mobile GUI components by deep learning
  • From Awareness to Action: Exploring End-User Empowerment Interventions for Dark Patterns in UX cites UI Dark Patterns and Where to Find Them: A Study on Mobile Applications and User Perception
  • 50 Shades of Deceptive Patterns: A Unified Taxonomy, Multimodal Detection, and Security Implications cites UI Dark Patterns and Where to Find Them: A Study on Mobile Applications and User Perception
  • Object detection for graphical user interface: old fashioned or deep learning or a combination? cites Unblind your apps: predicting natural-language labels for mobile GUI components by deep learning
  • From Awareness to Action: The Effects of Experiential Learning on Educating Users about Dark Patterns cites UI Dark Patterns and Where to Find Them: A Study on Mobile Applications and User Perception
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers12

  1. From Awareness to Action: Exploring End-User Empowerment Interventions for Dark Patterns in UXYuwen Lu, Chao Zhang, Yuewen Yang, Yaxing Yao et al.CSCW 2024 · 30 citations
  2. Investigating the Impact of Dark Patterns on LLM-Based Web AgentsDevin Ersoy, Brandon Lee, Ananth Shreekumar, Arjun Arunasalam et al.S&P 2026 · 16 citations
  3. 50 Shades of Deceptive Patterns: A Unified Taxonomy, Multimodal Detection, and Security ImplicationsZewei Shi, Ruoxi Sun, Jieshan Chen, Jiamou Sun et al.WWW 2025 · 12 citations
  4. From Awareness to Action: The Effects of Experiential Learning on Educating Users about Dark PatternsJingzhou Ye, Yao Li, Wenting Zou, Xueqiang WangCHI 2025 · 12 citations
  5. MotorEase: Automated Detection of Motor Impairment Accessibility Issues in Mobile App UIsArun Krishna Vajjala, S. M. Hasan Mansur, Justin Jose, Kevin MoranICSE 2024 · 11 citations

Builds on11

  1. (Un)informed Consent: Studying GDPR Consent Notices in the FieldChristine Utz, Martin Degeling, Sascha Fahl, Florian Schaub et al.CCS 2019 · 429 citations
  2. UI Dark Patterns and Where to Find Them: A Study on Mobile Applications and User PerceptionLinda Di Geronimo, Larissa Braz, Enrico Fregnan, Fabio Palomba et al.CHI 2020 · 262 citations
  3. Screen Recognition: Creating Accessibility Metadata for Mobile Applications from PixelsXiaoyi Zhang, Lilian de Greef, Amanda Swearngin, Samuel White et al.CHI 2021 · 145 citations
  4. Object detection for graphical user interface: old fashioned or deep learning or a combination?Jieshan Chen, Mulong Xie, Zhenchang Xing, Chunyang Chen et al.FSE 2020 · 144 citations
  5. Unblind your apps: predicting natural-language labels for mobile GUI components by deep learningJieshan Chen, Chunyang Chen, Zhenchang Xing, Xiwei Xu et al.ICSE 2020 · 101 citations

Related papers

  1. Unveiling the Tricks: Automated Detection of Dark Patterns in Mobile ApplicationsJieshan Chen, Jiamou Sun, Sidong Feng, Zhenchang Xing et al.UIST 2023 · 42 citations
  2. AdsDP: A Video Dataset for Recognizing and Examining Dark Patterns in iOS In-App AdvertisementsYuxuan Shang, Guanxiao Wang, Mengxia Ren, Haomin Zhang et al.UbiComp 2025 · 1 citation
  3. Fighting Malicious Designs: Towards Visual Countermeasures Against Dark PatternsRené Schäfer, Paul Miles Preuschoff, René Röpke, Sarah Sahabi et al.CHI 2024 · 18 citations
  4. When Designers Meet GenAI: Understanding the Role of Prompt-to-Design Generators in Privacy Dark PatternsJingzhou Ye, Zhaojie Hu, Yao Li, Xueqiang WangS&P 2026
  5. A Comparative Study of Dark Patterns Across Web and Mobile ModalitiesJohanna Gunawan, Amogh Pradeep, David R. Choffnes, Woodrow Hartzog et al.CSCW 2021 · 128 citations
Dusk over the sea between two cliffs drawn in fine vertical lines