[Paper Review] AidUI: Toward Automated Recognition of Dark Patterns in User Interfaces
This paper introduces AidUI, an automated system that detects and localizes ten types of UI dark patterns in mobile and web applications using computer vision and NLP to analyze visual and textual cues in screenshots. Evaluated on the ContextDP dataset of 501 labeled screenshots, AidUI achieves an F1-score of 0.65 overall, with high localization accuracy (IoU = 0.84) and strong performance on specific patterns (F1 > 0.82).
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 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, 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.
Motivation & Objective
- To address the growing prevalence of deceptive UI designs that mislead users into unintended actions, such as unintended purchases or data sharing.
- To develop an automated system that helps developers detect and rectify dark patterns in UIs, reducing the risk of user harm.
- To create a large-scale, fully annotated dataset of dark pattern instances for training and evaluating automated detection tools.
- To investigate the feasibility of multimodal detection using visual and textual cues in UI screenshots.
- To provide a foundation for future tools that support ethical UI/UX design by identifying harmful design patterns automatically.
Proposed method
- AidUI combines computer vision (Faster R-CNN) and NLP techniques to detect dark patterns from static UI screenshots.
- Visual cues are extracted using a Faster R-CNN object detection model trained on bounding boxes of dark pattern instances.
- Textual cues are analyzed using heuristic-based pattern matching to identify persuasive or misleading language in UI elements.
- Multimodal fusion combines visual and textual signals to improve detection accuracy and localization.
- The system is trained and evaluated on ContextDP, a newly constructed dataset of 175 mobile and 83 web UI screenshots with 301 fully localized dark pattern instances.
- IoU (Intersection over Union) is used to measure localization accuracy, while precision, recall, and F1-score assess detection performance.
Experimental results
Research questions
- RQ1Can automated detection of UI dark patterns be achieved using visual and textual cues from static UI screenshots?
- RQ2How effective is a multimodal approach combining computer vision and NLP in detecting and localizing dark patterns?
- RQ3To what extent can existing dark pattern taxonomies be unified and applied to automated detection in real-world UIs?
- RQ4How well do heuristic-based NLP rules generalize across diverse linguistic expressions of deceptive UI patterns?
- RQ5What is the performance of automated detection on a large, fully annotated dataset of dark pattern instances?
Key findings
- AidUI achieves an overall F1-score of 0.65 on the ContextDP dataset, indicating strong detection performance across multiple dark pattern types.
- The system reports few false positives, suggesting high precision in identifying actual dark pattern instances.
- Localization accuracy is high, with an IoU score of 0.84, demonstrating precise bounding box prediction for detected patterns.
- A significant subset of dark patterns (e.g., Attention Distraction, Forced Continuity) are detected with F1-scores exceeding 0.82.
- The integration of visual and textual cues enhances detection performance, confirming the value of multimodal analysis.
- The ContextDP dataset, containing 501 screenshots and 301 fully localized dark pattern instances, is the largest publicly available dataset of its kind.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.