arXiv:2604.11206v1 [cs.SE] 13 Apr 2026
Designing Adaptive Digital Nudging Systems with LLM-Driven Reasoning Tiziano Santilli
Mina Alipour
Mahyar Tourchi Moghaddam
Mærsk Mc-Kinney Møller Instituttet Syddansk Universitet Odense, Denmark
Mærsk Mc-Kinney Møller Instituttet Syddansk Universitet Odense, Denmark
Mærsk Mc-Kinney Møller Instituttet Syddansk Universitet Odense, Denmark
Abstract—Digital nudging systems lack architectural guidance for translating behavioral science into software design. While research identifies nudge strategies and quality attributes, existing architectures fail to integrate multi-dimensional user modeling with ethical compliance as architectural concerns. We present an architecture that uses behavioral theory through explicit architectural decisions, treating ethics and fairness as structural guardrails rather than implementation details. A literature review synthesized 68 nudging strategies, 11 quality attributes, and 3 user profiling dimensions into architectural requirements. The architecture implements sequential processing layers with crosscutting evaluation modules enforcing regulatory compliance. Validation with 13 software architects confirmed requirements satisfaction and domain transferability. An LLM-powered proofof-concept in residential energy sustainability demonstrated feasibility through evaluation with 15 users, achieving high perceived intervention quality and measurable positive emotional impact. This work bridges behavioral science and software architecture by providing reusable patterns for adaptive systems that balance effectiveness with ethical constraints. Index Terms—Software Architecture, Digital Nudging, Large Language Models, Behavioral Theory, Ethical AI, Quality Attributes, Architectural Decisions
I. I NTRODUCTION The role of software systems is evolving from passive tools to active participants in human decision-making. This shift is exemplified by the Internet of Behaviors (IoB), which extends the Internet of Things by connecting user data to behavioral insights [1], [2]. Digital nudging represents a key mechanism for this interaction, using behavioral science to guide users toward beneficial choices in domains like energy conservation [3] and health improvement [4]. However, designing adaptive nudging systems presents fundamental architectural challenges that current practice fails to address systematically. Digital nudging presents three architectural challenges that cannot be resolved through implementation alone: i) Multi-dimensional runtime adaptation. Effective nudging requires simultaneous consideration of cognitive mode (System 1 vs. System 2 thinking), behavioral stage (precontemplation through maintenance), attention capacity, and quality attributes [5], [6]. This creates the modifiabilityperformance trade-off [7]: tight coupling enables coordinated responses but creates brittleness; loose coupling improves maintainability but complicates adaptation. The architectural question becomes: how do we structure components such
that changes in one dimension (e.g., attention drops) trigger coordinated adaptations across multiple subsystems (UI simplification, strategy adjustment, message adaptation) without tight coupling? ii) Non-negotiable ethical constraints as architectural guardrails. The EU AI Act, GDPR Article 22, and Digital Services Act impose hard constraints on automated decisionmaking systems [8]–[10]. These are not optional features but mandatory architectural properties that must hold across all execution paths. Treating ethics as an afterthought leads to architectures where manipulative strategies can slip through during edge cases. The architectural challenge is: how do we enforce ethical boundaries structurally, such that no component can generate non-compliant nudges regardless of user state or system evolution? iii) Quality attribute conflicts requiring explicit prioritization. Literature reveals inherent tensions: transparency increases trust but may trigger reactance [11], [12]; personalization improves effectiveness but raises fairness concerns [13]; simplification aids low-attention users but limits information for analytical thinkers [5], [6]. These conflicts demand architectural tactics, like explicit design decisions that prioritize certain qualities at the expense of others, with documented rationale and trade-offs. Current practice treats user adaptation as an implementation concern rather than an architectural requirement, resulting in systems that cannot guarantee consistent ethical operation or adapt systematically [14], [15]. Software architects lack systematic guidance for translating behavioral science principles into concrete architectural decisions, Section II-C. To address these challenges, we must understand the theoretical foundation. Behavioral theory, originating with Watson’s behaviorism [16] and advanced by Skinner’s operant conditioning [17], [18], posits that human actions result from conditioned responses to environmental stimuli. Learning is defined as measurable behavioral change through experience. Despite this theoretical background, the software engineering community lacks systematic approaches to address these concepts architecturally. This paper addresses these gaps through four contributions: i) a literature review synthesizing nudging strategies, quality attributes, and user profiling dimensions into architectural requirements; ii) an architecture treating behavioral dimensions
©2026 IEEE. Personal use of this material is permitted. Permission from IEEE must be obtained for all other uses, in any current or future media, including reprinting/republishing this material for advertising or promotional purposes, creating new collective works, for resale or redistribution to servers or lists, or reuse of any copyrighted component of this work in other works. Accepted as paper at SAGAI-ICSA2026.
and ethical compliance as first-class architectural concerns; iii) validation with software architects confirming requirements satisfaction and transferability; iv) a proof-of-concept implementation using large language models (LLMs) for cognitive reasoning, with empirical user evaluation. We address three research questions: • RQ1: What are the key characteristics, quality attributes, and metrics for digital nudging? • RQ2: To what extent can a software architecture integrate nudging characteristics with intervention logic while preserving modularity and ethical compliance? • RQ3: To what extent does the instantiated architecture demonstrate feasibility and generate effective adaptive interventions? For the methodology we employ a four-phase approach Figure 1: i) Literature Review synthesizing behavioral characteristics into requirements; ii) Architectural Design translating requirements into components with explicit decision rationale; iii) Architect Evaluation validating requirements satisfaction and transferability; iv) Implementation & User Evaluation demonstrating feasibility through proof-of-concept.
TABLE I Q UALITY ATTRIBUTES FOR D IGITAL N UDGING Attribute
Definition
Ref
Acceptability
Degree to which users perceive a nudge as appropriate or desirable, considering social, cultural, moral standards Degree of user attention to the nudge. Tension exists: high transparency may trigger reactance, subliminal approaches raise ethical concerns Degree to which a nudge achieves its intended behavioral outcome Ensures systems address algorithm/data biases and cognitive/perceptual biases, providing equitable access. Includes GDPR, AI Act, DSA compliance Degree to which users perceive an item or choice to impact their health positively Degree to which users perceive nudges as assisting decision-making Low-intrusive nudges subtly guide decisions; high-intrusive nudges strongly influence decisions Degree to which users are motivated to make choices aligned with the nudge’s goal. Explainability frameworks for DSA/AI Act requirements while maintaining effectiveness Degree to which users trust the nudge and information provided Effect of nudge on user’s goals, preferences, or well-being
[11]
Awareness
Effectiveness Fairness
Healthfulness Helpfulness Intrusiveness Motivation Transparency Trustworthiness User Impact
[11]
[19] [13]
[11] [11] [19] [11] [11], [13], [20] [11] [19]
B. Results
Fig. 1. Research Methodology Overview
The paper proceeds as follows: Section II reports literature review and gap analysis; Section III presents the architecture with architectural decisions and validation; Section IV describes implementation and user evaluation; Section V discusses validity threats; Section VI concludes with future work. Supplemental materials available at this link1 II. N UDGING L ITERATURE R EVIEW To establish an understanding of digital nudging characteristics, we conducted a literature review. A. Review Process We queried four academic databases (IEEE Xplore, Scopus, ACM Digital Library, Web of Science) using the search string: ((nudge* OR nudging) AND ("quality attribute*" OR metric* OR framework OR characteristic*)). The search yielded 707 papers. After removing 308 duplicates and applying inclusion/exclusion criteria, full-text review resulted in 21 primary studies. Inclusion/exclusion criteria list and literature review flow are available in the supplemental materials. 1 https://github.com/tiziasan/Adaptive-Digital-Nudging-System
Our review identified three key contributions: i) Nudging Strategies (N = 68). We extracted a taxonomy spanning information provision (anchoring, framing, simplification), social influence (social norms, peer support), defaults and positioning, feedback mechanisms, and timing strategies. The complete taxonomy is available in supplemental materials. ii) Quality Attributes (N = 11). Literature identifies attributes determining effectiveness and ethicality: acceptability, awareness, effectiveness, fairness, healthfulness, helpfulness, intrusiveness, motivation, transparency, trustworthiness, and user impact. Table I presents definitions. iii) User Profiling Dimensions (N = 3). Literature identifies three behavioral dimensions: Cognitive Mode: Nudges target either System 1 (fast, intuitive) or System 2 (slow, analytical) thinking [5], [6]. System 1 nudges leverage automatic processing; System 2 nudges support deliberate reasoning. Behavioral Stage: The Transtheoretical Model recognizes five stages [5]: pre-contemplation (unaware), contemplation (considering change), preparation (planning action), action (actively modifying behavior), maintenance (sustaining change). Each stage requires different intervention strategies. Attention Capacity: Users make choices attentively or inattentively based on cognitive load [6], [21]. Low attention requires simple nudges; high attention enables informationrich strategies.
RQ1 Answer
B. Architecture Description
Our literature review identified 68 nudging strategies, 11 quality attributes, and 3 user profiling dimensions. These constitute requirements for digital nudging systems that align interventions with user states.
Figure 2 presents our architecture comprising three core processing layers (Data Capture, User Modeling, Nudge Intelligence) with two cross-cutting modules (Adaptation, Evaluation).
C. Gap Analysis i) Digital Nudging Architectures. Karlsen and Andersen present a smart nudging system with user profile learner and nudge design components [14], [15], but assess only interests, capabilities, and activity history, omitting cognitive mode, attention state, and quality attributes as architectural dimensions. Their system represents closest prior work but lacks systematic integration of behavioral theory dimensions. ii) Behavioral Theories in Software. Grisiute and Raubal explore spatial nudging converging persuasive technologies with spatial design [5], but do not provide architectural guidance. Lofgren and Nordblom present theoretical framework of decision-making explaining nudging mechanisms [6], but focus on psychological models rather than software architecture. iii) Ethical AI Architectures. Milano et al. discuss recommender systems’ ethical challenges [13], emphasizing fairness as critical concern. Fabbri examines self-determination through explanation for DSA transparency requirements [20]. Our architecture operationalizes these ethical concerns through structural enforcement rather than post-hoc auditing. iv) Quality-Driven Architectures. Bass et al.’s quality attribute scenarios [7] provide methodological foundation for our approach. We extend this by showing how behavioral characteristics function as quality attributes driving architectural decisions, alongside traditional attributes. III. D IGITAL N UDGING A RCHITECTURE We translate literature findings into an architecture addressing the identified gaps. This section presents requirements with traceability, architectural design with explicit decisions, and validation results. A. Requirements Traceability Table II presents functional requirements (FR) and nonfunctional requirements (NFR) derived from literature. FR6 Rationale: Strategy Optimizer emerges from architectural necessity, not explicit literature mention. When multiple strategies match user state (e.g., System 1 thinking + precontemplation + low attention), we need conflict resolution logic to select the single most appropriate intervention. This component implements constraint satisfaction reasoning. NFR Selection Rationale: From 11 quality attributes (Table I), we prioritized 4 as NFRs based on: i) Regulatory mandates, ethics Compliance and Fairness address legally required properties under GDPR Article 22, AI Act Article 10, DSA Article 27; ii) Architectural impact, Transparency and Adaptivity fundamentally shape system structure. The remaining attributes are evaluation metrics measured during user testing (Section IV-C).
Fig. 2. Digital Nudging Architecture
i) Data Capture captures raw signals through Context Tracker (device, location, time-of-day) and Behavioral Collector (clicks, hesitation times, navigation patterns, facial emotions). ii) User Modeling transforms signals into multi-dimensional profiles through three parallel components: Cognitive Mode (System 1 vs. System 2), Behavioral Stage (Transtheoretical Model mapping), Attention Capacity (high/medium/low). iii) Nudge Intelligence generates personalized interventions through Strategy Optimizer that selects optimal strategy given user profile, Nudge Generator that creates message content, and UI Adaptation that specifies interface parameters. iv) Adaptation Module (left side) implements delivery through Explainability generating transparency reports, Adaptive Dashboard rendering dynamic interface, and User Feedback capturing explicit ratings. v) Evaluation Module (right side) ensures quality through Fairness Monitor that detects population-level biases, Ethics Compliance that validates regulatory constraints, and Outcome Tracker that logs execution traces. C. Architectural Decisions and Rationale We document key architectural decisions following the template: Decision, Rationale, Trade-offs, and Alternatives Considered in Table III-C.
TABLE II A RCHITECTURAL R EQUIREMENTS WITH L ITERATURE T RACEABILITY ID
Requirement
Component
Derivation & References
Functional Requirements FR1 FR2 FR3 FR4 FR5 FR6
Capture context and behavioral data Determine cognitive mode Detect behavioral stage Estimate attention capacity Generate diverse nudges Optimize strategy selection
Context Tracker, Behavioral Collector Cognitive Mode Behavioral Stage Attention Capacity Nudge Generator Strategy Optimizer
FR7 FR8 FR9
Provide transparency Capture user feedback Track outcomes
Explainability User Feedback Outcome Tracker
NFR1 NFR2 NFR3 NFR4
Ethics compliance Fairness monitoring Transparency Adaptivity
Ethics Compliance Fairness Monitor Explainability Adaptive Dashboard, Adaptation
Context-awareness [22], behavioral signals [5], [23] Dual-process theory [5], [6] Transtheoretical Model [5], [24] Cognitive load theory [6], [21] Strategy taxonomy [19], [24], [25] Architectural necessity for multi-dimensional constraint satisfaction Regulatory requirements [11], [12], [20] Adaptive refinement [23], [26] Effectiveness measurement [19]
Non-Functional Requirements
D. Architectural Evaluation We evaluated the architecture through two methods: i) questionnaire assessing requirements satisfaction, ii) followup discussions exploring architectural insights. We recruited 13 software architects through professional networks. Selection criteria: i) experience with qualityattribute-driven projects, ii) familiarity with adaptation systems. Table IV presents demographics. Participants received: i) architecture diagram, ii) requirements table, iii) architectural decisions document. They completed a questionnaire with 16 closed-ended questions using 5-point Likert scales (1=strongly disagree, 5=strongly agree). Questions assessed whether components met requirements and questionnaire data available in the supplemental materials. Table V presents results. Mean rating across all items was 4.62 (SD=0.12), indicating strong agreement. UI Adaptation achieved highest rating (M=4.85, SD=0.38); Explainability received lowest (M=4.38, SD=0.65), suggesting this is the most contentious aspect. We conducted a discussion with 5 of 13 participants (others declined due to time constraints). Discussions were semistructured around: (1) architectural strengths/weaknesses, (2) missing concerns, (3) transferability. Two participants highlighted separation between behavioral reasoning and ethical enforcement: ”I like that ethics is not inside the nudge generator. That’s a recipe for unexpected behaviors. Having it as a separate point makes it testable and auditable.” , P3. Three participants raised concerns: ”Using LLMs for cognitive mode worries me. How do you regression test that? If GPT gets updated and starts classifying differently, your system behavior changes. You need to carefully manage the LLM non determinism”, P2. All 5 agreed the architecture transfers to other domains:
UI
GDPR/AI Act/DSA mandates [8]–[10], [12], [27] Bias mitigation [13] DSA Article 27, AI Act Article 13 [11], [13], [20] State-dependent effectiveness [5], [22], [23]
”I could see this working for health behavior change in physical activity or medication adherence.”, P4. Qualitative discussions confirmed questionnaire findings. Architectural separation was praised. Explainability emerged as primary weakness, with calls for richer provenance tracking. LLM non-determinism identified as operational risk requiring mitigation. Transferability was also strongly supported. RQ2 Answer We designed an architecture systematically integrating behavioral characteristics through three sequential processing layers and two cross-cutting modules. Ethical compliance is enforced structurally through sidemounted Evaluation implementing Fairness Monitor, Ethics Compliance, and Explainability as first-class architectural concerns. Architect validation confirms successful requirements satisfaction (M=4.62/5), with UI Adaptation highest rated (4.85) and Explainability identified for improvement (4.38). All architects assessed the architecture as transferable across domains. The architecture demonstrates behavioral theory integration and ethical compliance achievable through architectural patterns enforcing constraints at design time. IV. I MPLEMENTATION AND U SER E VALUATION To demonstrate architectural feasibility, we implemented a proof-of-concept in residential energy sustainability. This section describes implementation details and empirical user evaluation. A. Implementation Context Household energy consumption accounts for approximately 26% of EU greenhouse gas emissions [29], making residential
TABLE III A RCHITECTURAL D ECISIONS AND R ATIONALE Decision Details AD1: Sequential Pipeline vs. Event-Driven Architecture Decision Three sequential layers with per-user session processing rather than event-driven publish-subscribe. Rationale Digital nudging requires deterministic reasoning chains where User Modeling completes before Strategy Optimization. Sequential processing ensures causal consistency, reasoning transparency, and provenance tracking. Trade-offs Gains—Clear provenance, easier debugging, compliance auditability (GDPR Article 22), simplified testing. Costs—No intra-user parallelization, increased per-user latency. Alternatives Event-driven with orchestration (rejected: excessive overhead), blackboard architecture (rejected: non-deterministic control flow), pipes-and-filters (rejected: unnecessary given sequential requirements). AD2: Side-Mounted Evaluation vs. Embedded Validators Decision Ethics Compliance as side-mounted module intercepting all Nudge Intelligence outputs. Rationale Enforces separation of concerns: nudge generation focuses on effectiveness; ethics audits all outputs. Interceptor pattern ensures no nudge reaches users without validation. Provides architectural evidence for DSA Article 27 compliance. Trade-offs Gains—Consistent enforcement, evolvability, independent testability, regulatory evidence. Costs—Additional latency, potential bottleneck. Alternatives Embedded validators (rejected: duplication risk), post-hoc filtering (rejected: lacks explicit architectural representation), aspect-oriented programming (rejected: deployment complexity). AD3: LLM-Driven Reasoning vs. Rule-Based Classification Decision User Modeling components use LLMs rather than rule-based systems. Rationale Behavioral constructs like ”System 1 thinking” require contextual interpretation of multiple weak signals [6], [28]. LLMs handle ambiguous cases (e.g., high clicks but short duration). Sequential pipeline ensures deterministic data flow despite LLM stochasticity within classifications. Trade-offs Gains—Robustness to edge cases, expressiveness, adaptability via prompt engineering. Costs—Controlled nondeterminism, explainability challenges, API latency (200-500ms), vendor dependency. Alternatives Threshold rules (rejected: lacks semantic understanding), supervised ML classifiers (rejected: insufficient for nuanced behavioral patterns), hybrid approach (future work). AD4: Backend-Driven UI Adaptation vs. Client-Side Adaptation Decision Backend generates structured ”UI Context” payloads specifying interface parameters sent to frontend. Rationale Attention capacity and cognitive mode affect information processing [5], [6]. Backend determines what adaptations based on User Modeling; frontend determines how to render. Implements Strategy Pattern keeping behavioral intelligence serverside. Trade-offs Gains—Personalization, reduced cognitive load, accessibility compliance, privacy protection. Costs—Frontend complexity, consistency challenges, increased payload size. Alternatives Frontend-driven (rejected: exposes interaction data to browser), progressive disclosure (rejected: orthogonal concern), static templates (rejected: cannot provide fine-grained adaptation).
TABLE IV A RCHITECTURAL E VALUATORS D EMOGRAPHICS (N=13) Characteristic
Category
N (%)
Experience
0–5 years 5–10 years 10–15 years 15+ years
4 (30.8%) 5 (38.5%) 1 (7.7%) 3 (23.1%)
Domain
Healthcare Automotive Consultancy Other
3 (23.1%) 4 (30.8%) 3 (23.1%) 3 (23.1%)
energy reduction central to sustainability. The domain requires systems adapting interventions to behavioral stages while managing high-consumption appliances. For the implementation we created a Python backend orchestrating five architectural modules using LLMs for cognitive reasoning via OpenAI API, and React/TypeScript frontend realizing the Adaptation module. Data interchange uses JSON contracts. Code available in supplemental materials. B. Implementation Walkthrough i) Context Tracker captures device type (desktop vs. mobile) and temporal attributes (time-of-day: morning/after-
noon/evening) from session timestamps. ii) Behavioral Collector aggregates interaction signals from frontend: hesitation time, clicks, energy consumption, usage hours, user emotions (facial expressions via FaceAPI [30]). Signals normalized to JSON serving as cognitive profiling input. iii) Cognitive Mode uses LLM classifier with Context Tracker + Behavioral Collector data. Specialized prompt analyzes interaction velocity; high clicks + long hesitation on high-wattage appliances indicates analytical processing. iv) Behavioral Stage uses LLM classifier mapping users to Transtheoretical Model stages. v) Attention Capacity uses LLM classifier estimating cognitive capacity from contextual factors, influencing UI and message complexity. vi) Strategy Optimizer uses LLM with Cognitive Mode + Behavioral Stage + Attention Capacity data, selecting optimal intervention from 23-strategy taxonomy [24] via constraintsatisfaction prompting. vii) Nudge Generator uses selected strategy + appliance data to create message via LLM, enforcing regulatory constraints by integrating Ethics and Fairness prompts. Ensures messages are concise, personalized with consumption data, aligned with user state.
TABLE V S TRUCTURED Q UESTIONNAIRE R ESULTS (L IKERT S CALE 1-5) Requirement
Mean
Architectural Quality Maintainability & Evolvability Regulatory Compliance
4.62 4.69
Functional Requirements Context/Behavioral Data (FR1) Cognitive Mode (FR2) Behavioral Stage (FR3) Attention Capacity (FR4) Nudge Generator (FR5) Strategy Optimizer (FR6) Explainability (FR7) User Feedback (FR8) Outcome Tracker (FR9)
4.54 4.62 4.62 4.54 4.69 4.69 4.38 4.46 4.54
Non-Functional Requirements Ethics Compliance (NFR1) Fairness Monitor (NFR2) Transparency (NFR3) UI Adaptation (NFR4)
4.54 4.77 4.69 4.85
Domain Generalizability Highly Transferable Transferable with modifications
61.5% 38.5%
viii) UI Adaptation uses LLM processing Cognitive Mode + Attention Capacity + Behavioral Stage to dynamically adjust: font size (12px–20px), primary/secondary colors, chart type (bar/pie/line). Ensures UI aligns with cognitive state. ix) Explainability generates natural language ”Transparency Explanation” revealing system’s decision logic, satisfying transparency requirements. Explainability panel screenshot available in the supplemental materials. x) Adaptive Dashboard provides interactive environment for monitoring/modifying appliance states. Dynamically renders content based on UI Adaptation output, displays nudges and explanations, connects to feedback system. Adaptive dashboard screenshot is available in the supplemental materials. xi) User Feedback captures ”thumbs up/down” feedback. Previous nudges tracked via history, informing future Strategy Optimizer decisions. xii) Fairness Monitor injects ”Bias Mitigation” system prompt into every LLM call, instructing non-discrimination and vulnerable user protection. xiii) Ethics Compliance enforces EU AI Act and GDPR constraints by injecting mandatory instructions into LLM prompts as guardrail against manipulative strategies. xiv) Outcome Tracker records every intermediate step (raw signals → profiling → strategy → message) and emotional states (pre-nudge and post-nudge) using facial emotion detection. Stored in CSV enabling longitudinal analysis. C. User Evaluation We conducted empirical evaluation with 15 participants interacting with the implemented dashboard to assess feasibility and effectiveness. We recruited participants through university networks (N = 8) and local community channels (N = 7). Criteria: i) age
18+, ii) responsible for household energy decisions. Table VI presents demographics. TABLE VI U SER S TUDY PARTICIPANT D EMOGRAPHICS (N=15) Characteristic
Category
N (%)
Age
18–24 25–34 35–44 45+
5 (33.3%) 6 (40.0%) 3 (20.0%) 1 (6.7%)
Gender
Male Female
8 (53.3%) 7 (46.7%)
Education
High school Bachelor’s Master’s/PhD
2 (13.3%) 7 (46.7%) 6 (40.0%)
Energy Management Experience
High awareness Medium awareness Low awareness
4 (26.7%) 7 (46.7%) 4 (26.7%)
Tech Familiarity
Smart home user Basic tech user Low tech user
6 (40.0%) 7 (46.7%) 2 (13.3%)
Sample represents diverse backgrounds. Age distribution skews younger (73.3% under 35) due to university recruitment. Users accessed web dashboard and explored freely. They could add/remove appliances, modify device states, adjust usage hours. Dashboard captured behavioral signals (clicks, hesitation). System monitored emotions via facial recognition throughout session. After each generated nudge, users read message and explanation, then rated on a Likert scale: i) Nudge Quality, ”This nudge is helpful and appropriate for my current situation”; ii) Explanation Quality, ”The explanation clearly describes why this nudge was shown”. Sessions lasted 20-30 minutes. All provided explicit consent. Our evaluation addresses RQ3 through three measures: 1. Feasibility (Architecture Instantiation): Demonstrated by showing architecture executes across all components with real users. Feasibility established if: i) User Modeling produces classifications for all sessions, ii) Strategy Optimizer selects strategies from taxonomy, iii) Nudge Generator produces coherent messages, iv) UI Adaptation applies interface changes, v) Ethics Compliance doesn’t block compliant nudges, vi) system completes full cycle without failures. Reported in Table VII. 2. Effectiveness (Intervention Quality): Measured through perceived effectiveness via subjective ratings: i)Nudge Quality, ii) Explanation Quality. Results in Table VIII. 3. Emotional Impact (User Experience): Assessed whether adaptive nudges produce positive or negative emotional responses using facial expression analysis. Addresses key risk: personalized interventions might feel invasive, triggering negative affect. Conversely, helpful nudges should produce positive affect. Facial Expression Analysis: Used FaceAPI [30], a JavaScript library implementing Ekman facial emotions [31], detecting seven basic emotions: happiness, sadness, anger,
fear, disgust, surprise, neutral. Library outputs probability distributions over emotions per frame. We focus on happiness because positive-valence emotion indicates receptiveness and sustained positive affect predicts behavior change adherence [32]. We report raw probability values from FaceAPI (range: 0.0–1.0, where 1.0 = 100% confidence). Table VII shows user testing generated 15 complete executions capturing adaptive behavior. System classified majority (73.3%) as intuitive mode, 26.7% analytical. Behavioral stage: 40% pre-contemplation, 26.7% contemplation, 33.3% action. Attention capacity: 66.7% high, 20% medium, 13.3% low. Strategy Optimizer selected interventions based on profiles. Just-in-time prompts emerged most frequently (53.3%), with remaining 46.7% across: remind consequences, raise visibility, enable comparisons, reduce distance. UI Adaptation adjusted parameters: font size 16px for 73.3%, 19px for 13.3%, 24px for 13.3%, demonstrating response to attention capacity. TABLE VII U SER T ESTING S YSTEM C LASSIFICATIONS (N=15) ID
Cognitive
Stage
Attn
Strategy
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Analytical Intuitive Intuitive Intuitive Intuitive Intuitive Intuitive Intuitive Intuitive Intuitive Intuitive Analytical Intuitive Analytical Analytical
Contemplation Pre-contempl. Contemplation Action Contemplation Action Pre-contempl. Pre-contempl. Pre-contempl. Action Contemplation Pre-contempl. Pre-contempl. Action Action
High High High High High Medium High Low Low Medium High Medium High High High
Just-in-time Remind conseq. Enable compar. Raise visibility Just-in-time Just-in-time Remind conseq. Just-in-time Reduce distance Just-in-time Just-in-time Raise visibility Just-in-time Just-in-time Raise visibility
Table VIII presents evaluation metrics. Participants rated nudge quality highly (M=4.73, SD=0.46): 73.3% provided maximum rating (5), 26.7% rated 4. Explanation quality received slightly lower but positive ratings (M=4.27, SD=0.70): 40% rated 5, 46.7% rated 4, 13.3% rated 3. This suggests while users found nudges highly appropriate, transparency could be strengthened, consistent with architect evaluation. TABLE VIII U SER E VALUATION R ESULTS Metric
Mean Value
Nudge Quality (1–5) Explanation Quality (1–5)
4.73 (SD=0.46) 4.27 (SD=0.70)
Pre-Nudge Happiness Post-Nudge Happiness Happiness Increase
0.000170 (SD=0.000092) 0.000500 (SD=0.000213) 0.000330 (SD=0.000158)
Emotional impact analysis revealed measurable positive effects. Pre-nudge happiness scores (M=0.000170) reflected predominantly neutral emotional states. Post-nudge happiness
scores (M=0.000500) showed mean increase of 0.000330, with all participants showing positive changes. While absolute values remain small due to FaceAPI probability output range, consistent directional change across all participants indicates adaptive nudge delivery produces positive emotional responses rather than reactance or annoyance. Complete execution traces demonstrate architecture successfully adapts behavior across multiple dimensions simultaneously. Sessions with low attention capacity consistently received simplified UI configurations, while Strategy Optimizer simultaneously selected low-complexity approaches rather than information-rich strategies. This coordination between User Modeling and both Nudge Intelligence and UI Adaptation validates architectural design’s ability to integrate behavioral signals into adaptive responses. RQ3 Answer The instantiated architecture demonstrates effective adaptive behavior in sustainable energy domain. User profiling components successfully classified participants across cognitive mode, behavioral stage, and attention capacity dimensions. System selected contextually appropriate nudging strategies and UI configurations based on classifications. User evaluation confirms high perceived quality for generated nudges (M=4.73/5) and satisfactory explanation quality (M=4.27/5). Emotional impact measurement shows positive affect changes across all participants following nudge delivery, indicating interventions are wellreceived rather than perceived as manipulative. Feasibility is demonstrated through successful execution of all 15 user sessions without failures, with complete architectural pipeline from behavioral signal capture through adaptive intervention delivery. V. T HREATS TO VALIDITY Internal Validity. Architects evaluated architecture after detailed explanations, creating priming effects influencing assessments. Future work should employ blind evaluation. User testing lacked baseline measurements and control conditions; observed outcomes may reflect novelty effects. We partially addressed this by capturing pre-nudge and post-nudge emotional states within sessions. Implementation relies on LLMs exhibiting non-deterministic behavior; we mitigated this setting low temperature (0.3) for classification tasks. Construct Validity. Facial emotion recognition may not validly represent deeper affective states driving sustained behavior change. We triangulated emotion data with explicit user feedback ratings. Future implementations should validate classifications against validated behavioral science measures. External Validity. Implementation instantiates architecture exclusively in residential energy sustainability. While architects rated it highly transferable, empirical validation across domains (healthcare, finance) remains necessary. Implementation uses specific technologies (React, Python, OpenAI APIs)
that may not generalize to resource-constrained environments. Architecture’s abstract design remains technology-agnostic, enabling alternative implementations. VI. C ONCLUSION AND F UTURE W ORK This paper bridges behavioral theory and software architecture by presenting an architecture that translates psychological constructs into executable software components while enforcing ethical compliance structurally. We conducted a literature review identifying 68 nudging strategies, 11 quality attributes, and 3 user profiling dimensions, transformed into architectural requirements with full traceability. The architecture implements three core processing layers (Data Capture, User Modeling, Nudge Intelligence) with two cross-cutting modules (Adaptation, Evaluation) enforcing fairness monitoring and regulatory compliance as architectural guardrails. Architect validation with 13 professionals confirmed requirements satisfaction and domain transferability. Implementation in residential energy sustainability using LLMs for cognitive reasoning demonstrated feasibility. User evaluation with 15 participants achieved high perceived nudge quality and measurable positive emotional impact. Explicit architectural decisions documented trade-offs between quality attributes, showing how behavioral theory shapes software structure. Future Work. Three directions emerge: i) Cross-domain validation, empirically testing architecture in healthcare, finance, e-commerce to strengthen generalizability claims; ii) Longitudinal studies, tracking users over weeks/months to assess sustained impact and habituation effects; iii) Enhanced explainability providing richer access to decision states, enabling transparency reports revealing considered alternatives and rejection rationale. ACKNOWLEDGMENT
This research was supported by the Nudge2Green project (1152-00043A), funded by AgriFoodTure, Innovation Fund Denmark. R EFERENCES [1] J. Sun, W. Gan, H.-C. Chao, P. S. Yu, and W. Ding, “Internet of behaviors: A survey,” IEEE Internet of Things Journal, vol. 10, no. 13, pp. 11 117–11 134, 2023. [2] G. Nyman, “Internet of behaviors (iob).” [Online]. Available: https://gotepoem.wordpress.com/2012/03/16/internet-of-behaviors-ib/ [3] C. Charlier, G. Guerassimoff, A. Kirakozian, and S. Selosse, “Under pressure! nudging electricity consumption within firms. feedback from a field experiment,” The Energy Journal, vol. 42, 01 2020. [4] L. Johannsdottir, S. Siguroardottir, M. Óskarsdóttir, and A. Islind, “Digital nudging in digital health technologies: a systematic review,” Health and Technology, vol. 15, 06 2025. [5] A. Grisiute and M. Raubal, “Spatial Nudging: Converging Persuasive Technologies, Spatial Design, and Behavioral Theories,” in 16th International Conference on Spatial Information Theory (COSIT 2024), vol. 315, 2024. [6] Åsa Löfgren and K. Nordblom, “A theoretical framework of decision making explaining the mechanisms of nudging,” Journal of Economic Behavior and Organization, vol. 174, pp. 1–12, 2020. [7] L. Bass, P. Clements, and R. Kazman, Software Architecture in Practice, ser. SEI series in software engineering. Addison-Wesley, 2003. [8] “The eu artificial intelligence act.” [Online]. Available: https: //artificialintelligenceact.eu
[9] “General data protection regulation.” [Online]. Available: https: //gdpr-info.eu [10] “Digital services act.” [Online]. Available: https://eur-lex.europa.eu/ legal-content/EN/TXT/?uri=celex%3A32022R2065 [11] M. Alsaeed, M. Adam, J. Piper, and T. Bucher, “Digital nudging for healthy and sustainable food choice in online supermarkets: A scoping review,” AIS Transactions on Human-Computer Interaction, vol. 17, pp. 287–332, 06 2025. [12] N. Gerber, A. Stöver, J. Peschke, and V. Zimmermann, “Don’t accept all and continue: Exploring nudges for more deliberate interaction with tracking consent notices,” ACM Trans. Comput.-Hum. Interact., vol. 31, no. 1, Nov. 2023. [13] S. Milano, M. Taddeo, and L. Floridi, “Recommender systems and their ethical challenges,” AI and SOCIETY, vol. 35, 12 2020. [14] R. Karlsen and A. Andersen, “Recommendations with a nudge,” Technologies, vol. 7, no. 2, 2019. [15] K. Randi and A. Anders, “The impossible, the unlikely, and the probable nudges: A classification for the design of your next nudge,” Technologies, vol. 10, p. 110, 10 2022. [16] J. B. Watson, Psychology as the behaviorist views it. American Psychological Association, 1913, vol. 20, pp. 158–177. [17] B. F. Skinner, The Behavior of Organisms: An Experimental Analysis. Appleton-Century-Crofts, 1938. [18] B. F. skinner, Science and Human Behavior. New York: Macmillan, 1953. [19] M. Valta and C. Maier, “Digital nudging: A systematic literature review, taxonomy, and future research directions,” SIGMIS Database, vol. 56, no. 1, p. 101–125, Jan. 2025. [20] M. Fabbri, “Self-determination through explanation: an ethical perspective on the implementation of the transparency requirements for recommender systems set by the digital services act of the european union,” in AAAI/ACM, ser. AIES ’23, New York, NY, USA, 2023, p. 653–661. [21] I. Nahum-Shani, S. Smith, B. Spring, L. Collins, K. Witkiewitz, A. Tewari, and S. Murphy, “Just-in-time adaptive interventions (jitais) in mobile health: Key components and design principles for ongoing health behavior support,” Annals of Behavioral Medicine, vol. 52, 09 2016. [22] A. K. Purohit and A. Holzer, “Functional digital nudges: Identifying optimal timing for effective behavior change,” ser. CHI EA ’19. New York, NY, USA: Association for Computing Machinery, 2019, p. 1–6. [23] S. Dalecke and R. Karlsen, “Designing dynamic and personalized nudges,” in Proceedings of the 10th International Conference on Web Intelligence, Mining and Semantics, ser. WIMS 2020. New York, NY, USA: Association for Computing Machinery, 2020, p. 139–148. [24] A. Caraban, E. Karapanos, D. Gonçalves, and P. Campos, “23 ways to nudge: A review of technology-mediated nudging in human-computer interaction,” ser. CHI ’19. New York, NY, USA: Association for Computing Machinery, 2019, p. 1–15. [25] K. Oyibo, “Comtech: Towards a unified taxonomy of persuasive techniques for persuasive technology design,” Computers in Human Behavior Reports, vol. 14, p. 100372, 2024. [26] Y. Lian, C. Song, and T. Ge, “Itmprec: Intention-based targeted multiround proactive recommendation,” in Proceedings of the ACM on Web Conference 2025, ser. WWW ’25. New York, NY, USA: Association for Computing Machinery, 2025, p. 4171–4182. [27] V. Singh, N. K. Vishvakarma, and V. Kumar, “Unveiling digital manipulation and persuasion in e-commerce: A systematic literature review of dark patterns and digital nudging,” Journal of Internet Commerce, vol. 23, no. 2, pp. 144–171, 2024. [28] J. Liu, “Toward a two-sided fairness framework in search and recommendation,” ser. CHIIR ’23. New York, NY, USA: Association for Computing Machinery, 2023, p. 236–246. [29] “Energy consumption in households.” [Online]. Available: https://ec.europa.eu/eurostat/statistics-explained/index.php?title= Energy consumption in households [30] “face-api.js.” [Online]. Available: https://justadudewhohacks.github.io/ face-api.js/docs/index.html [31] P. Ekman, “An argument for basic emotions,” Cognition & Emotion, vol. 6, no. 3-4, pp. 169–200, 1992. [32] B. L. Fredrickson, “The role of positive emotions in positive psychology: The broaden-and-build theory of positive emotions.” American Psychologist, vol. 56, no. 3, pp. 218–226, 2001.