用文本特征+逻辑回归识别界面欺骗设计,准确率高且稳定。
Detecting Dark Patterns in User Interfaces Using Logistic Regression and Bag-of-Words Representation
- 将界面文字转为词袋向量,用逻辑回归分类暗黑模式。
- 在多种数据集上表现良好,准确率与F1-score均超0.9。
- 适合安全、伦理设计研究者和产品团队参考。
用户界面中的暗黑模式是一种旨在操纵用户行为的欺骗性设计,常导致非意愿购买、无意数据泄露或用户挫败感。检测并缓解这些模式对促进数字环境的透明度、信任与伦理设计至关重要。本文提出一种基于逻辑回归与词袋表示的暗黑模式检测新方法:收集多样化界面文本样本,经预处理后提取词袋特征,训练逻辑回归模型,并通过准确率、精确率、召回率、F1分数及ROC曲线下面积(AUC)等指标评估性能。实验结果表明,该方法能有效准确识别暗黑模式,在不同数据集组成与模型参数下均表现出高预测性能与鲁棒性。研究结果为暗黑模式检测与分类提供了实用工具,对设计师、开发者及政策制定者具有重要实践意义。
原文摘要 · Abstract (English)
Dark patterns in user interfaces represent deceptive design practices intended to manipulate users' behavior, often leading to unintended consequences such as coerced purchases, involuntary data disclosures, or user frustration. Detecting and mitigating these dark patterns is crucial for promoting transparency, trust, and ethical design practices in digital environments. This paper proposes a novel approach for detecting dark patterns in user interfaces using logistic regression and bag-of-words representation. Our methodology involves collecting a diverse dataset of user interface text samples, preprocessing the data, extracting text features using the bag-of-words representation, training a logistic regression model, and evaluating its performance using various metrics such as accuracy, precision, recall, F1-score, and the area under the ROC curve (AUC). Experimental results demonstrate the effectiveness of the proposed approach in accurately identifying instances of dark patterns, with high predictive performance and robustness to variations in dataset composition and model parameters. The insights gained from this study contribute to the growing body of knowledge on dark patterns detection and classification, offering practical implications for designers, developers, and policymakers in promoting ethical design practices and protecting user rights in digital environments.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。