Human Heterogeneity Invariant Stress Sensing

Extracted source text · arXiv 2506.02256

%%%% Large single column format, used for IMWUT, JOCCH, PACMPL, POMACS, TAP, PACMHCI
\documentclass[acmlarge,nonacm]{acmart}

%%%% Large double column format, used for TOG
% \documentclass[acmtog, authorversion]{acmart}

%%%% Generic manuscript mode, required for submission
%%%% and peer review
%%\documentclass[manuscript,screen,review]{acmart}
%% Fonts used in the template cannot be substituted; margin 
%% adjustments are not allowed.
%%
%% \BibTeX command to typeset BibTeX logo in the docs
%%\AtBeginDocument{%
%%  \providecommand\BibTeX{{%
 %%   \normalfont B\kern-0.5em{\scshape i\kern-0.25em b}\kern-0.8em\TeX}}}

%% Rights management information.  This information is sent to you
%% when you complete the rights form.  These commands have SAMPLE
%% values in them; it is your responsibility as an author to replace
%% the commands and values with those provided to you when you
%% complete the rights form.
%%\setcopyright{acmcopyright}
%%\copyrightyear{2022}
%\acmYear{2018}
%\acmDOI{XXXXXXX.XXXXXXX}

%% These commands are for a PROCEEDINGS abstract or paper.

%\acmConference[Conference acronym 'XX]{Make sure to enter the correct
%  conference title from your rights confirmation emai}{June 03--05,
%  2018}{Woodstock, NY}

%
%  Uncomment \acmBooktitle if th title of the proceedings is different
%  from ``Proceedings of ...''!
%

%\acmBooktitle{Woodstock '18: ACM Symposium on Neural Gaze Detection,
% June 03--05, 2018, Woodstock, NY} 
%\acmPrice{15.00}
%\acmISBN{978-1-4503-XXXX-X/18/06}


%%
%% Submission ID.
%% Use this when submitting an article to a sponsored event. You'll
%% receive a unique submission ID from the organizers
%% of the event, and this ID should be used as the parameter to this command.
%%\acmSubmissionID{123-A56-BU3}

%%
%% For managing citations, it is recommended to use bibliography
%% files in BibTeX format.
%%
%% You can then either use BibTeX with the ACM-Reference-Format style,
%% or BibLaTeX with the acmnumeric or acmauthoryear sytles, that include
%% support for advanced citation of software artefact from the
%% biblatex-software package, also separately available on CTAN.
%%
%% Look at the sample-*-biblatex.tex files for templates showcasing
%% the biblatex styles.
%%

%%
%% The majority of ACM publications use numbered citations and
%% references.  The command \citestyle{authoryear} switches to the
%% "author year" style.
%%
%% If you are preparing content for an event
%% sponsored by ACM SIGGRAPH, you must use the "author year" style of
%% citations and references.
%% Uncommenting
%% the next command will enable that style.
%%\citestyle{acmauthoryear}

%%
%% end of the preamble, start of the body of the document source.

\usepackage{algorithm}
\usepackage{algorithmic}

\usepackage{enumitem}
\usepackage{makecell}
\usepackage{multirow}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{colortbl}
\usepackage[]{xcolor}
\usepackage{xcolor}
\usepackage[normalem]{ulem} 
%%\usepackage{moderncvstyleclassic}
%%\usepackage{soul}


\AtBeginDocument{%
  \RequirePackage{hyperxmp}
}
\begin{document}
%%\settopmatter{printacmref=false}


%%
%% The "title" command has an optional parameter,
%% allowing the author to define a "short title" to be used in page headers.
\title{Human Heterogeneity Invariant Stress Sensing}

%%
%% The "author" command and its associated commands are used to define
%% the authors and their affiliations.
%% Of note is the shared affiliation of the first two authors, and the
%% "authornote" and "authornotemark" commands
%% used to denote shared contribution to the research.

\author{\href{https://orcid.org/0000-0002-5261-5440}{Yi Xiao}}
\email{yxiao54@syr.edu}
\affiliation{%
  \institution{Arizona State University}
  \city{Tempe}
  \state{Arizona}
  \country{USA}
  }

\author{\href{https://orcid.org/0000-0002-7016-6220}{Harshit Sharma}}
\email{hsharm04@syr.edu}
\affiliation{%
  \institution{Arizona State University}
  \city{Tempe}
  \state{Arizona}
  \country{USA}
  }
\author{\href{https://orcid.org/0009-0002-8937-3702}{Sawinder Kaur}}
\email{sakaur@syr.edu}
\affiliation{%
  \institution{Syracuse University}
  \city{Syracuse}
  \state{New York}
  \country{USA}
  }

\author{\href{https://orcid.org/0000-0002-8852-732X}{Dessa Bergen-Cico}}
\email{dkbergen@syr.edu}
\affiliation{%
  \institution{Syracuse University}
  \city{Syracuse}
  \state{New York}
  \country{USA}
  }
  
\author{\href{https://orcid.org/0000-0002-0807-8967}{Asif Salekin}}
\thanks{Asif Salekin is the corresponding author}
\email{asalekin@syr.edu}
\affiliation{%
  \institution{Arizona State University}
  \city{Tempe}
  \state{Arizona}
  \country{USA}
  }


%%
%% By default, the full list of authors will be used in the page
%% headers. Often, this list is too long, and will overlap
%% other information printed in the page headers. This command allows
%% the author to define a more concise list
%% of authors' names for this purpose.
%%\renewcommand{\shortauthors}{}
%%\renewcommand{\shorttitle}{}
%%
%% The abstract is a short summary of the work to be presented in the
%% article.

\begin{abstract}

Stress affects physical and mental health, and wearable devices have been widely used to detect daily stress through physiological signals. \textcolor{black}{However, these signals vary due to factors such as individual differences and health conditions, making generalizing machine learning models difficult. To address these challenges, we present Human Heterogeneity Invariant Stress Sensing (HHISS), a domain generalization approach designed to find consistent patterns in stress signals by removing person-specific differences. This helps the model perform more accurately across new people, environments, and stress types not seen during training. Its novelty lies in proposing a novel technique called person-wise sub-network pruning intersection to focus on shared features across individuals, alongside preventing overfitting by leveraging continuous labels while training. The study focuses especially on people with opioid use disorder (OUD)—a group where stress responses can change dramatically depending on their time of daily medication taking. Since stress often triggers cravings, a model that can adapt well to these changes could support better OUD rehabilitation and recovery. We tested HHISS on seven different stress datasets—four of which we collected ourselves and three public ones. Four are from lab setups, one from a controlled real-world setting, driving, and two are from real-world in-the-wild field datasets without any constraints. This is the first study to evaluate how well a stress detection model works across such a wide range of data. Results show HHISS consistently outperformed state-of-the-art baseline methods, proving both effective and practical for real-world use. Ablation studies, empirical justifications, and runtime evaluations confirm HHISS's feasibility and scalability for mobile stress sensing in sensitive real-world applications.}


%HHISS uses a novel person-wise sub-network pruning intersection method to extract equitable distribution-shift invariant features, preventing overfitting and ensuring generalizability across stressors, populations, and environments. 
%The study emphasizes out-of-distribution (OOD) robustness in opioid use disorder (OUD) populations, where stress responses shift significantly before and after a person takes an opioid, either for medical or non-medical purposes. Stress is widely recognized as a catalyst or trigger for opioid cravings among people with OUD. Therefore, an OOD robust model can significantly aid OUD rehabilitation and recovery. 
%HHISS is evaluated on five stress response datasets, including three self-collected and two public, making it the first to assess OOD robustness across such comprehensive data. Results show HHISS outperforms state-of-the-art OOD and domain adaptation baselines, achieving a strong balance between in- and out-of-distribution performance. Ablation studies, empirical justifications, and runtime evaluations confirm HHISS's feasibility and scalability for mobile stress sensing in sensitive real-world applications.



%Stress impacts our physical and mental health as well as our social well-being. Significant efforts have been made to identify daily mental stress using wearable devices that measure physiological indicators. However, these physiological signals can be heterogeneous due to various factors, such as individual differences and variations in health conditions. Even the same individual may exhibit diverse physiological responses when exposed to different stressors. This variability presents challenges to the generalizability of machine learning models. 



%In this paper, we propose a novel approach to guide machine learning models in capturing invariant features across subjects, thereby developing a robust and generalizable global model that performs well under various conditions. We utilize Invariant Risk Minimization (IRM) to direct the model towards learning consistent features across different subjects. Additionally, we apply subject-wise pruning to prevent the model from learning spurious features and use continuous labels to smooth the loss landscape and improve generalizability. We evaluate HHISS on six diverse datasets, accounting for factors such as health conditions, environments, and stressors. Our comprehensive evaluation demonstrates that our method outperforms other baseline approaches.
\end{abstract}

\keywords{Wearable Data, Stress Detection, Neural network pruning, Out-of-Distribution Generalization }

\maketitle




\section{Introduction}
\label{introduction}
Stress, while sometimes beneficial, can lead to serious mental and physical health issues when prolonged or unmitigated \cite{mcewen2008central}. With the rise of wearable technology, there is growing interest in using smartwatch-type devices to monitor psychophysiological responses, such as electrodermal activity (EDA), heart rate, and skin temperature, linked to the human body’s stress response \cite{buijs2000integration,sonkusare2019detecting,mauri2010psychophysiological}. Continuous monitoring of these signals, combined with machine learning, offers a promising path for automated stress detection \cite{campanella2023method,gedam2021review}.
\par 
However, deploying stress detection models in real-world settings is challenging due to the inherent heterogeneity in stress responses, which differ both between and within individuals \cite{lecic2011stress,gillespie2009risk,jacoby2021individual,nagaraj2023dissecting}. 
Factors such as age, health, medication, stressor type, and environmental conditions, like temperature and noise, lead to distribution or domain shifts in wearable stress sensing data \cite{foltyn2021towards,saeed2018model,yu2022semi}, further complicating the detection \cite{chandra2021comparative,mccarthy2016validation}.
Personalization approaches, which tailor models to individual users, may address these distribution shifts \cite{bolpagni2024personalized,tazarv2021personalized}. While these methods can enhance model performance, they are often constrained by the availability of user-specific data, which are scarce and often unavailable for sensitive health populations. Additionally, such approaches may not generalize well in the face of intra-individual variability or distribution shifts, influenced by  stressors and changes in medication use \cite{nagaraj2023dissecting,chapman2022impact}.
\par 
This challenge is further exacerbated in individuals with opioid use disorder (OUD), one of the most pressing contemporary public health challenges. In 2022, there were over 80,000 opioid-related overdose deaths in the United States, averaging more than 224 each day \cite{nguyen2024trends}. There were an estimated $6.1$ million people with an OUD in the U.S. in $2022$ \cite{samhsa2023key}. Higher stress is a known predictor of opioid craving \cite{maclean2019stress}; hence, automated monitoring of OUD individuals' stress can prevent them from relapsing and significantly improve their rehabilitation.
However, the use of opioids produces long-term and acute effects that alter physiological patterns \cite{poh2012convulsive,wang2023cardiac}, causing the exhibition of greater physiological stress responses compared to the healthy controls without an OUD \cite{back2015laboratory}. Additionally, stress responses are heterogeneous within the OUD group \cite{maclean2019stress}. This variability, influenced by factors like altered stress regulation and co-occurring health conditions, deviates significantly from typical patterns seen in non-OUD individuals \cite{carlson2012trait,davis2017prescription}. Particularly, the medication for opioid use disorder (MOUD) adds layers of complexity to stress detection in this population \cite{national2018medication,maclean2019stress}. For example, the same individuals with OUD may exhibit altered stress responses due to various factors, especially in relation to their daily MOUD doses, resulting in intra-individual variability before and after medication intake \cite{carreiro2016wearable,chintha2018wearable}. Given the variabilities, machine learning models trained on general population data may not effectively predict stress in OUD individuals, reducing their clinical utility. Moreover, collecting comprehensive stress response data across all possible situations of OUD individuals for personalization is impractical, especially due to ethical, logistical, and recruitment barriers \cite{avery2024barriers}. The lack of diverse datasets comprising OUD individuals further hinders model development, 





Domain generalization (DG), also known as out-of-distribution (OOD) generalization \cite{jiang2022transferability,tllib,wang2022provable} offers a potential solution by training models to perform well across diverse populations, even when trained only on general healthy (i.e., control) population data \cite{wang2022generalizing}. 
While generic OOD robustness approaches in existing literature have been applied to human-centered data to extract distribution-invariant features \cite{sanner2021reliable,varnava2025out,yang2022multimodal}, they often fail to account for the heterogeneity across individuals. For instance, a stress model developed using data from a generally healthy population may overlook the physiological characteristics of individuals who experience higher sweating since they are underrepresented in the training set. However, higher sweating is an impact of opioid medication \cite{pergolizzi2020opioid}, and by neglecting these underrepresented characteristics during feature extraction, the model becomes less generalizable to individuals with Opioid Use Disorder (OUD) following their dose of medication for opioid use disorder (MOUD).


To address the heterogeneity challenge in human-centered stress sensing with DG or OOD generalization, this paper introduces \emph{Human Heterogeneity Invariant Stress Sensing (HHISS)}, which uniquely addresses how individual differences impact the extraction of invariant stress features, avoids overfitting on characteristics predominant in the majority and offers a novel solution that captures \emph{equitable invariant} features across all. Specifically, \emph{the HHISS approach is trained exclusively on a healthy population exposed to specific stressors (e.g., lab-induced stimuli). Despite this limited training, the model generalizes effectively across changes in stressors, environments, and individuals not represented in the training data, including those experiencing real-world stress due to other stressor like driving and the stress responses of individuals with OUD, both before and after MOUD intake, among others.} 


This generalizability represents a step forward in creating inclusive and reliable stress detection systems. By demonstrating OOD generalizability across diverse OUD conditions, HHISS extends the applicability of OOD stress sensing models trained on healthy individuals to health conditions or populations for which data may be scarce, thereby enhancing the accessibility and effectiveness of stress management tools across a wider range of contexts. Notably, just like other DG or OOD approaches, HHISS complements personalization techniques by providing a strong baseline that performs well even \textcolor{black}{with only a few user samples.}


The main contributions and empirical findings of the present study are:
\begin{enumerate}

\item This work presents \emph{HHISS}, a novel framework that addresses the inherent heterogeneity in psychophysiological stress responses. By learning \emph{equitable} invariant features through a unique intersectional person-wise sub-network extraction alongside contemporary optimization paradigms in a unique way, HHISS achieves superior OOD stress sensing robustness (Section \ref{our-approach}).

\item This paper examines the OOD robustness of HHISS in the OUD population under varying MOUD conditions, showcasing its role in improving stress sensing accessibility and effectiveness. To facilitate the investigation, we collected data from 25 OUD participants across 29 sessions (pre- and post-medication) and 46 healthy controls, forming three distinct lab-based distributions. Our findings show that extensive disease-condition data is not essential for developing robust OOD stress detection models, as collecting such data is often impractical. Notably, training HHISS on only pre- or post-medication data resulted in suboptimal performance, while leveraging diverse control data for training significantly improved accuracy across distributions (Section \ref{RQ-2-other-datasets-training}). HHISS’s human-centered design ensures OOD robustness using only control data for training, making it highly valuable for health applications with limited data availability. 


%\item \textcolor{black}{This work aims to develop a reliable stress detection model for real-world applications, where distribution shifts arise due to various health conditions, particularly within the OUD population. The model is designed to ensure accurate predictions even when the data deviates from the training distribution of the general healthy population. It should maintain strong performance on in-distribution datasets while improving accuracy in out-of-distribution (OOD) scenarios, specifically for the OUD population.}

%\item To assess HHISS's OOD robustness across sensitive health populations,  OUD individuals, we collected data from 25 OUD participants over 29 sessions, including before and after medication, along with 46 healthy controls, resulting in three distinct distributions. Additionally, we utilized two public datasets featuring various stressors, environments, and population distributions. Overall, our datasets encompass five distinct stress response distributions (Sections \ref{Dataset-description},\ref{motivation}, and \ref{distribution-shif-validation}). To our knowledge, this is the first paper to assess OOD robustness across such a comprehensive set of human-stress-sensing data distributions.

\item We further evaluated HHISS on two public datasets with diverse stressors, environments, and populations, demonstrating its OOD robustness beyond training conditions (Section \ref{rq3}), and its ability to learn equitable invariant features is not limited to one dataset (Section \ref{rq4}), highlighting its versatility and reliability. 

\item \textcolor{black}{In addition, we evaluated HHISS on two real-world in-the-wild field datasets without any constraints. One publicly available nurse work stress dataset, and one where we collected five days of continuous 24-hour data from two individuals with OUD, enabling assessment of intra-individual generalizability across different times of day. HHISS achieves superior performance on both datasets, demonstrating superior OOD robustness and generalizability under complex, real-world conditions, including for OUD individuals over time of the day. To our knowledge, this is the first paper to assess OOD robustness across such a comprehensive set of human-stress-sensing data distributions.}

\item Comparison with state-of-the-art OOD robustness and unsupervised domain adaptation baselines demonstrates that HHISS strikes a superior balance, excelling in both in- and out-of-distribution scenarios (Section \ref{results-baselines}). Additionally, our ablation study (Section \ref{results-ablation}), runtime, and training-time analysis (Section \ref{table:training_platform_comparison}) confirm HHISS's feasibility and scalability, highlighting its potential to enable mobile stress sensing in real-world, sensitive applications where data access is limited. 

\item We empirically validated (Section \ref{results-empirical-justification}) the assumptions that led to HHISS's design choices outlined in Section \ref{our-approach} and conducted post-analysis (Section \ref{distribution-shif-validation}) to confirm the OOD challenges in generic stress sensing and demonstrate HHISS's ability to mitigate it.

\end{enumerate}


\section{Related-works}\label{related-work}
 \subsection{Wearable sensor-based stress sensing}\label{Wearable sensor-based stress sensing}


Smart wearables have been extensively studied for stress detection \cite{ollander2016comparison,menghini2019stressing}, using sensors like electrodermal activity (EDA), heart rate, and skin temperature to provide real-time, objective data. These insights are valuable for clinicians, complementing behavioral interventions \cite{haleem2021biosensors}. The variability in stress responses underscores the need for robust approaches that account for diverse psychophysiological characteristics.
%leveraging their ability to monitor psychophysiological parameters such as electrodermal activity (EDA) and skin temperature through close contact with the user's body. These devices provide objective, real-time data on stress responses, offering valuable insights for clinicians to complement behavioral interventions \cite{haleem2021biosensors}. The variability in individual stress responses highlights the need for robust, generalizable approaches in stress management that can address diverse psychophysiological characteristics.

\subsubsection{Heterogeneity in Psychophysiological Stress Response}

Stress responses vary both within individuals \cite{jacoby2021individual,sharma2022psychophysiological} and across populations \cite{sharma2022psychophysiological,perez2022gender,crielaard2021understanding,haigis2010aging}, influenced by various factors and stress-inducing tasks or stressors \cite{giles2014stress}. Individual differences in physiological stress responses are shaped by genetics \cite{gillespie2009risk}, personality traits like neuroticism and resilience \cite{jacoby2021individual,weber2022physiological,schwerdtfeger2019episodes}, psychosocial factors such as social support and coping mechanisms \cite{weber2022physiological,passarelli2021responses}, as well as environmental influences \cite{jacoby2021individual} and health status \cite{weber2022physiological,jacoby2021individual}. At the population level, stress response variability or distribution shifts are driven by gender \cite{perez2022gender,passarelli2021responses}, age \cite{haigis2010aging}, and socioeconomic status \cite{crielaard2021understanding}. Additionally, the choice of stress induction paradigms, such as the Trier Social Stress Test (TSST) \cite{allen2017trier}, can lead to varied physiological and psychological responses, with different stressors eliciting distinct magnitudes and durations of stress reactions based on individual characteristics \cite{giles2014stress}.


\subsection{Heterogeneity in Neurophysiology of OUD Individuals}\label{realted-work-OUD}

Opioids, as central nervous system (CNS) depressants, reduce heart rate, respiration, muscle tension, and blood pressure while causing peripheral vasodilation, lowered body temperature, and skin flushing. Medication-assisted treatments (MATs) like methadone are prescribed at controlled doses to prevent withdrawal symptoms with minimal psychoactive effects. Administered orally, MATs take 30-45 minutes to act and are long-lasting agonists \cite{rosenthal2022drugs}, potentially leading to blunted stress responses in individuals who completed stress tasks shortly after receiving their daily dose. In this paper, we refer to such individuals as post-dose opioid use disorder (post-dose OUD) participants.


Research has examined the physiological changes linked to drug intake, with some studies focusing on machine-learning algorithms to detect drug use and withdrawal events. %For instance, \citet{chapman2022impact} used the Empatica E4 to monitor opioid-treated patients, finding significant pre- and post-administration changes, such as increased accelerometer frequency, skin temperature, EDA variation, and decreased heart rate. \citet{carreiro2016wearable} observed greater reductions in movement for frequent opioid users, while \citet{carreiro2015imstrong} noted increased EDA and locomotion, along with decreased skin temperature, in response to cocaine use. 
For example, \citet{chapman2022impact} used the Empatica E4 to monitor opioid patients, revealing significant pre- and post-administration changes such as increased accelerometer frequency, skin temperature, EDA variation, and decreased heart rate. \citet{carreiro2016wearable} found reduced movement in frequent opioid users, while \citet{carreiro2015imstrong} observed increased EDA, locomotion, and lower skin temperature, following cocaine use. \textcolor{black}{These physiological fluctuations pose significant challenges for stress detection models based on physiological signals in OUD populations.}

\subsection{Domain generalization}\label{rel-work-DG}
Domain generalization (DG), also known as out-of-distribution (OOD) generalization \cite{jiang2022transferability,tllib,wang2022provable}, aims to overcome cross-distribution variability and ensure that models can generalize to unseen (OOD) domains after being trained on a limited number of training domains \cite{xu2023globem,suh2022adversarial,lu2022semantic,akrout2023domain,wang2023surban,wu2022multi}. This is often achieved by learning invariant features that remain consistent across different domains. Invariant Risk Minimization (IRM) \cite{arjovsky2019invariant}, a well-established method for domain generalization, encourages models to learn features that lead to optimal and consistent performance across diverse domain by focusing on invariant features. Risk Extrapolation (REx) \cite{krueger2021out}, a follow-up work of IRM, modifies the penalty term in the loss function to further improve generalization. Group Robust Optimization (GroupDRO) \cite{sagawa2019distributionally} focuses on improving worst-case performance by tracking domain-specific losses during training. \textcolor{black}{Another recent method, Clustering \cite{xu2023globem}, uses a convolutional autoencoder (DCEC) to group similar user data into distinct clusters. Each cluster is then processed by a dedicated Siamese network \cite{koch2015siamese} trained specifically for classification within that group. \citet{li2018learning} introduces MLDG (Meta-Learning for Domain Generalization), a method that applies a meta-learning strategy to address domain generalization. The approach simulates domain shift by splitting the training domain data into meta-train and meta-test sets, enabling the model to learn domain-invariant features.}

Pruning has been shown to improve generalization \cite{cheng2024survey,liang2021pruning}, with methods like Progressive Gradient Pruning (PGP) \cite{granger2021progressive} demonstrating strong results in domain generalization. Combining sparse training with IRM has also proven effective in preventing overfitting and enhancing generalization \cite{zhou2022sparse}. Additionally, knowledge distillation has been explored to further boost model robustness \cite{reddy2024towards,belal2021knowledge,ruder2017knowledge}.
\par 
\emph{Our evaluation considers the above-mentioned approaches as OOD robustness baselines.}

%Test-Time Personalization \cite{bao2024adaptive,xu2023joint} is an unsupervised technique aimed at improving model performance on OOD domains. Although it follows the domain generalization constraint of not having access to labeled OOD domain data during training, it assumes that OOD domain data can be used during testing. The process involves performing unsupervised learning on the OOD domain data to adapt the model before inference.

\subsection{Domain Generalization vs Adaptation}\label{generlization_Vs_adaptation}
Similar to DG, domain adaptation (DA) handles domain variability but differs in approach \cite{lu2022semantic,akrout2023domain}. It 
%Domain generalization (DG) and domain adaptation (DA) are key techniques in deep learning that address distribution shift, critical for ensuring models perform well across diverse real-world scenarios \cite{quinonero2022dataset}. While both aim to handle domain variability, they differ in approach \cite{lu2022semantic,akrout2023domain}. DG focuses on enabling models to generalize to unseen domains by learning domain-invariant features from source domains without access to target domain data \cite{wang2022generalizing}. In contrast, DA 
optimizes model performance on a specific target domain by leveraging both source and limited target data, employing feature-, loss-, and data-centric methods to reduce the source-target gap \cite{hoffman2014asymmetric,ramponi2020neural}, which is out of the scope of this paper.
%\par 
%DA has been used in prior work \cite{natarajan2016domain,almudaifer2024transfer} to adapt substance-taking behavior across domain shifts, relying on data annotations. However, these methods do not address intra-individual heterogeneity. \emph{Our evaluation in \textcolor{red}{Section} \ref{} }shows that these approaches perform suboptimally when handling intra-individual distribution shifts in OUD individuals.
However, recent unsupervised DA methods, like Test-Time Personalization (TTP) \cite{bao2024adaptive,xu2023joint}, adapt to target distributions during inference (not during training) using unannotated target data, making them ideal for privacy-sensitive health applications. \emph{This paper includes TTP as a baseline.}

\textcolor{black}{\citet{meegahapola2024m3bat} recently proposed M3BAT, an unsupervised domain adaptation method for multi-modal human sensing using Multi-Branch Adversarial Training. Unlike TTP \cite{xu2023joint}, which adapts to target domain distributions during inference, M3BAT requires access to unannotated target data during training. In contrast, our work focuses on domain generalization, operating without any access to target domain data at training time. Due to this fundamental difference in problem setting, M3BAT is not a suitable baseline for our work.}

\textcolor{black}{Instead, we adopt the Domain-Adversarial Neural Network (DANN) \cite{ganin2016domain}, which serves as the backbone of M3BAT, as one of our baselines. DANN performs adversarial training by jointly optimizing a domain discriminator and a feature extractor: the discriminator learns to distinguish between domains, while the feature extractor is trained to produce domain-invariant representations that confuse the discriminator. In our setting, each subject is treated as a separate domain, encouraging the model to extract features that generalize across individuals. Importantly, DANN does not require data from the target domain during training, making it a suitable baseline for our task.}


%Notably, recent unsupervised DA methods, like Test-Time Personalization (TTP) \cite{bao2024adaptive,xu2023joint}, adapt to target data distributions by using samples from the target domain without needing data annotations, making them suitable for privacy-sensitive health applications. \emph{This paper includes TTP as a baseline.}




%Domain generalization (DG) and domain adaptation (DA) are key techniques in deep learning that address the challenge of domain shift \cite{quinonero2022dataset}, crucial for building models that perform well in diverse real-world scenarios. Though they share similar goals, DG and DA differ in approach and application \cite{lu2022semantic,akrout2023domain}.

%\textbf{Domain Generalization} focuses on enabling a model to generalize to unseen testing domains by learning domain-invariant representations from one or more source domains \cite{wang2022generalizing}. The challenge lies in the absence of target domain data during training, requiring innovative methods like feature disentanglement, ensemble learning, and meta-learning to bridge domain gaps \cite{wang2022generalizing}.

%\textbf{Domain Adaptation} aims to optimize model performance on a specific target domain by utilizing both source domain data and limited target domain data. This approach narrows the source-target gap using feature-centric, loss-centric, and data-centric methods \cite{hoffman2014asymmetric,ramponi2020neural,marz2021data} \textcolor{black}{involving unsupervised learning on the OOD domain data to adapt the model before inference. We employ Test-Time Personalization \cite{bao2024adaptive,xu2023joint} as our baseline. Although it follows the domain generalization constraint of not having access to labeled OOD domain data during training, it assumes that OOD domain data can be used during testing. }

While both DG and DA aim to bridge the performance gap caused by domain shifts, DG is more challenging due to its stricter constraints—primarily, the absence of target domain data during model training \cite{wang2022generalizing,niemeijer2022domain}. In this work, we are \textit{ performing DG to develop a generalizable stress detection model trained \underline{only} using healthy control population, which can work well in unseen distribution shifts, including for health populations like people with OUD}. It is important to note that the response to affective stimuli within health populations like people with OUD is not only different from healthy populations \cite{wang2010alterations} but shows physiological variations with respect to their treatment, even for the same individual / subject \cite{mccaul1982short}, making it a challenging task to build inclusive machine learning models for a diverse population. 





\section{Description of the Datasets} \label{Dataset-description}

To evaluate the stress detection model’s performance across both healthy individuals and a diverse range of Opioid Use Disorder (OUD) individual states/conditions, we collected data from three distinct populations: (1) healthy control individuals, (2) Pre-dose OUD participants, and (3) Post-dose OUD participants. To further assess the robustness of the model, we included two publicly available off-the-shelf datasets: the WESAD dataset and the AffectiveROAD dataset. Data collection across all datasets was performed using the Empatica E4 wristband\footnote{\url{https://www.empatica.com/research/e4/}}\cite{mccarthy2016validation}, which is equipped with an Electrodermal Activity (EDA) sensor, a photoplethysmography (PPG) sensor, an accelerometer, and a skin temperature sensor.

\subsection{Original Data Collection Datasets}\label{self-dataset-discussion}

Our self-collected three datasets followed a structured data collection protocol as outlined below.

\subsubsection{Data Collection Protocol} Following prior work \cite{xiao2024reading,zhao2023affective,almazrouei2023method}, we designed a stress stimulus protocol incorporating various stressors to capture psychophysiological responses. The tasks began with watching a calming video \cite{xiao2024reading}, performing a simple counting task \cite{sharma2022psychophysiological,tumanova2019autonomic}, and answering basic questions such as name, weather, and breakfast \cite{almazrouei2023method}. These were categorized as \emph{Non-stress tasks}. The subsequent tasks were presented in the following order: viewing a passive stress-inducing video \cite{schaefer2010assessing,xiao2024reading}, completing Stroop tasks \cite{tulen1989characterization}, the Trier Social Stress Test (TSST) \cite{kirschbaum1993trier}, and recalling a distressing memory \cite{connolly2018negative,kross2012asking}. These were categorized as \emph{Stress-inducing tasks}. These tasks encompass cognitive load, social and emotional stressors, representing a broad spectrum of everyday stress experiences. Participants' psychophysiological responses during non-stress and stress-inducing tasks were annotated as non-stress and stress signals, respectively.


\subsubsection{Participant Categories}\label{participant-description-OUD} The self-collected datasets included participants from both healthy populations and those with opioid use disorder (OUD). The participants were categorized into three groups, representing three datasets: a healthy control group and two OUD groups classified as pre-dose and post-dose, based on whether data collection occurred before or after the administration of Medication-Assisted Treatment (MAT).


\subsubsection{Participants Description} We recruited 25 participants with opioid use disorder (OUD) for a total of 29 sessions, with four participants contributing to both Pre- and Post-dose sessions. The Pre-dose group comprised 14 sessions, while the Post-dose group consisted of 15 sessions. The participants were drawn from a MOUD (Medication for Opioid Use Disorder) program \cite{leshner2019medication}, where they received a daily dose of methadone as part of their treatment plan. Since the neurophysiological responses to stress in these participants could vary depending on the timing of their last dose \cite{carreiro2016wearable,fishman2000adherence}, pre- and post-dose sessions were treated as two separate datasets, representing distinct distributions of stress responses in OUD populations. \textcolor{black}{For participants who took part in both the Pre-dose and Post-dose sessions, there is a 1 to 3-month gap between recordings. Due to this extended interval and the potential for day-to-day variability in physiological patterns, we treat each visit as an independent session.}  Additionally, we recruited 46 healthy participants for 46 sessions. Data collection was conducted indoors, with all participants wearing the Empatica E4 wristband on both wrists throughout the experiments. The tasks were designed in collaboration with an addiction specialist and a behavioral psychologist and were approved by the X University Institutional Review Board (IRB) for ethical compliance.

\subsection{Publicly Available Datasets}\label{dataset:public}
To further assess the broader impact of our research, we included evaluations on the WESAD and AffectiveRoad datasets, even though the primary focus is on the OUD dataset. 
These comparisons evaluate the model's ability to generalize across different datasets, adapting to unseen stressors and environments.

%These comparisons assess whether our approach can generalize to unseen stressors and environments, extending its applicability beyond our self-collected dataset to diverse populations and experimental settings. Additionally, these evaluations provide valuable context for understanding the unique characteristics of the OUD dataset by benchmarking it against publicly available datasets representing general healthy populations.


\subsubsection{WESAD Dataset} \cite{schmidt2018introducing} This dataset, designed for wearable stress and affect detection, includes data from 15 subjects who participated in baseline, amusement, and stress tasks as part of a stress elicitation protocol. For this study, we focused on the baseline and stress tasks to perform binary classification. The baseline task involved the participants sitting or standing while reading neutral material, and the stress task included public speaking and mental arithmetic, both known stress-inducing activities.


\subsubsection{AffectiveROAD Dataset} \cite{haouij2018affectiveroad}: Collected in Tunisia, this dataset comprises 13 driving sessions from 10 drivers. The data collection involved a 30-minute parking period (considered as a non-stress task) followed by city driving. While driving, participants’ stress annotations were constructed in real-time by an observer seated in the rear seat of the car. Annotated data is considered as the stress task signal.

\subsection{\textcolor{black}{In-the-wild field dataset}}
\textcolor{black}{To further assess the generalizability of our approach in real-world in-the-wild field conditions, we further evaluate our model on one publicly available in-the-wild field stress dataset and a self-collected OUD in-the-wild field dataset.}

\subsubsection{\textcolor{black}{OUD Daily stress dataset}}\label{OUD-field-dataset}

\textcolor{black}{We recruited two new unique participants with OUD to wear the Empatica EmbracePlus device (an updated version of the Empatica E4) continuously throughout the day over two and three days, respectively. The data collection was approved by the X University Institutional Review Board (IRB) for ethical compliance, and recruitment followed the same criteria as in the lab-based experiments. To capture naturally occurring stress, participants received Ecological Momentary Assessment (EMA) prompts three times daily—at 8 a.m., 1 p.m., and 6 p.m.—asking them to report whether they experienced stress in the previous two hours (0 = no stress, 1 = stressed). No restrictions were imposed during the study period to allow for spontaneous, real-world data collection. Figure \ref{fig:ema} shows the cumulative distribution of EMA responses from both participants grouped by time of day.
}
% \textcolor{purple}{To align with our study design, we binarized the original 3-point stress scale by mapping 0 to \textit{No Stress} and grouping 1 and 2 as \textit{Stressed} (i.e., $0 \rightarrow$ No Stress, $1 \rightarrow$ Stressed $\in \{1, 2\}$).}. 

\begin{figure}[h!]
    \centering
    \includegraphics[scale=0.38]{5day_oud_real_time.png}
    \caption{\textcolor{black}{Distribution of self-reported stress labels across different times of day during in-the-wild field data collection for two OUD participants of the OUD Daily stress dataset.}}
    \label{fig:ema}
    \vskip -3ex
\end{figure}


% \begin{figure}[h!]
%     \centering
%     \includegraphics[scale=0.38]{overall_oud_realtime (1).png}
%     \caption{Distribution of self-reported stress labels across different times of day during in-the-wild data collection over three days for two participants.}
%     \label{fig:ema}
%     \vskip -3ex
% \end{figure}


\subsubsection{\textcolor{black}{Nurses work Stress Dataset}}\label{nurse-dataset} \cite{hosseini2022multimodal}: \textcolor{black}{This dataset investigates stress in a workplace setting influenced by various social, cultural, and psychological factors. It contains 1,250 hours of physiological data collected from 15 nurses. After each shift, nurses completed a survey reporting their stress levels along with the start and end times of their shift. For this study, we used only the labeled data recorded during the shifts, resulting in approximately 172 hours of usable data. The remaining data was unlabeled and excluded from our analysis.}




\subsection{Datasets' Distribution Variability}

These five datasets incorporate a broad range of factors that can influence stress responses' variability, thereby representing distinct distributions of stress. Such variability is critical in assessing the performance of stress detection models across different distinct distributions. For instance, the pre-dose and post-dose datasets differ due to the effects of drug usage, while the WESAD dataset exhibits variability arising from different laboratory setups and institutional environments. The AffectiveROAD dataset presents real-world conditions characterized by complex environments and unique stressors.
Our analyses in sections \ref{motivation} validates the presence of stress response distribution (and signal features) variability/shifts across these datasets. 






\subsection{Feature extraction}
\label{sec:feature}

%The recorded psychophysiological sensor data streams were first segmented according to specific tasks performed by the participants. For example, in our self-collected datasets, tasks include watching a calming video, a simple counting task (counting from 0 to 60), the Stroop test, a mathematical challenge (counting backward from 1000 in decrements of 12), and recalling a moderately unpleasant memory. 

\textbf{ Preprocessing }: The Empatica E4 wristband collects data from four modalities: Electrodermal Activity (EDA), Photoplethysmography (PPG), an accelerometer, and a skin temperature. PPG and EDA data were cleaned and processed for accurate feature extraction. A Butterworth filter (0.5-8 Hz) was applied to PPG signals, with gaps filled using quartic interpolation \cite{campanella2023method,wang2023detecting}. For EDA, a 4th-order Butterworth low-pass filter (3 Hz) was applied \cite{campanella2023method}, and skin conductance response onset and peaks were detected using a 0.05 Siemens threshold to ensure precise stress-related physiological responses identification \cite{makowski2021neurokit2}.
%The PPG and EDA data were subjected to cleaning and processing to ensure accurate feature extraction. For the PPG signals, we applied a Butterworth filter with a frequency band of 0.5 Hz to 8 Hz, and any gaps in the signal were filled using quartic interpolation\cite{campanella2023method,wang2023detecting}. We then extracted heart rate intervals from the PPG data, discarding outliers where intervals fell outside the range of 500 to 1200 ms, corresponding to heart rates between 50 and 120 bpm \cite{zhao2023affective}.
%\par 
%The EDA signals underwent a similar cleaning process. A 4th-order Butterworth low-pass filter with a cut-off frequency of 3 Hz was applied to the raw EDA data \cite{campanella2023method}. We detected the onset and peaks of the skin conductance response using a threshold of 0.05 Siemens, ensuring precise identification of stress-related physiological responses \cite{makowski2021neurokit2}.

\textbf{Feature Extraction}: In the field of physiological signal-based human sensing, larger window sizes can produce more reliable features \cite{campanella2023method,flirt2021,makowski2021neurokit2}, while smaller window sizes enable real-time stress detection. Considering the experimental protocol, we chose a 30-second window with a 15-second overlap for stress detection.

Following previous stress detection approaches \cite{beierle2023automating,flirt2021,strvzinar2023stress,han2024systematic}, we extract 340 statistical features (after removal of some features inappropriate to extract from a 30-second window, such as HRV SDANN5, which requires at least 5 minutes of data \cite{makowski2021neurokit2}, and non-linear features that require a minimum of 2 minutes of data \cite{bernardes2022reliable}. 
These features capture key physiological indicators of stress and anxiety, which can vary significantly between individuals \cite{boucsein2012electrodermal}. To ensure comparability, we normalize data for each subject. To mimic real-world scenarios where full datasets aren't available, we apply change score normalization \cite{sharma2022psychophysiological}. A baseline is established using each subject's first three windows from a calm session, which are excluded from further analysis\cite{zhao2023affective,lambert2024comparison}. %Following prior research \cite{goodhew2020standardizing,zhao2023affective}, we scale each subject's data using the min and max values from these baseline windows.
%These features encompass various physiological indicators relevant to stress and anxiety. Physiological features exhibit significant individual variance \cite{boucsein2012electrodermal}. To make these features comparable across subjects, we normalize the data for each individual. Furthermore in order to replicate real-world scenarios where we don't have access to the entire dataset, we use change score feature normalization. For each subject, we establish a baseline using their first three windows during a calm session, excluding these from further analysis. Following prior research \cite{goodhew2020standardizing,zhao2023affective}, we scale each subject's data using the min and max values derived from baseline windows.
\section{Motivation: Visualization of Stress Sensing Heterogeneity}
\label{motivation}
\textcolor{black}{This section presents our preliminary analysis investigating the heterogeneity of stress-sensing features across different datasets utilized in this study.}

\textcolor{black}{For each of the $340$ statistical features extracted from the raw sensor data (discussed in Section \ref{sec:feature}), we build an LMM model to assess group-wise differences while accounting for repeated measures within individuals. Given that stress responses vary both within and across individuals~\cite{nagaraj2023dissecting}, we included the \textit{user} identifier as a random effect to model inter- and intra-subject variability. Accounting for user-level random effects helps control for baseline variability between participants, improves the accuracy of fixed-effect estimates, and reduces confounding from subject-specific variation.}



\textcolor{black}{Group membership (e.g., Control, Pre-dose, Post-dose) was treated as a categorical fixed effect. Since physiological responses may differ by task condition (e.g., calm vs. stress-inducing tasks)~\cite{schmid2024individual}, we fit separate models for each task condition. This stratification allowed us to \textit{isolate task-specific effects} and better understand whether distributional shifts in features were consistent across contexts.}


%. We applied a Linear Mixed Effects Model (LMM) to asses group-wise differences while accounting for repeated measures. 
%Stress response is heterogeneous both within and between individuals \cite{nagaraj2023dissecting}. Therefore, to model inter- and intra-subject variability, the \textit{user} identifier was included as a random effect while \textit{group} membership was included as a categorical fixed effect. 
%Task conditions, such as stress and calm tasks, can influence an individual's physiological responses \cite{schmid2024individual}. To examine whether a distribution shift exists in the features, we compared different datasets by fitting models separately for each task condition, allowing us to \textit{isolate task-specific effects}.

\textcolor{black}{To systematically evaluate the group-wise differences, we conducted pairwise group comparisons using the following group contrasts:
\begin{enumerate}
    \item Control (reference) vs Pre-dose (comparison)
    \item Control (reference) vs Post-dose (comparison)
    \item Pre-dose (reference) vs Post-dose (comparison)
\end{enumerate}
}
\textcolor{black}{For each feature and comparison, we formulated the statistical hypothesis as follows:
\begin{itemize}
    \item H0: There is no significant difference in the feature distribution between the two groups, after adjusting for user-level random effects.
    \item H1: There is a statistically significant difference in the feature distribution between the groups, after adjusting for user-level random effects.
\end{itemize}
}
\textcolor{black}{The LMMs are formalized with Equation \ref{lmm_eqn}:
}
\begin{equation}
\label{lmm_eqn}
  \textcolor{black}{  f \sim Group + (1/user) }
\end{equation}

\textcolor{black}{Here, $f$ represents one of the 340 features. We perform a pairwise group comparison between a reference group $G_{0}$ and a comparison group $G_{1}$, where $Group$ is a categorical variable such that: $Group \in \{G_{0}, G_{1}\}$. The $user$ identifier is included as a random effect to account for subject-level variability.}

% where, the fixed effect of interest is $\beta_{Group}$, representing the difference in mean value of feature $f$ associated with the group variable and $H_{0}:\beta_{[Group|G1]}=0$ and $H_{1}:\beta_{[Group|G1]}\ne0$. 

\textcolor{black}{We report the p-values (rounded to 3 decimal places) for each group comparison, corresponding to features which showed statistical significance, i.e, $p<0.05$. Detailed results, including coefficient estimates, standard errors, and 95\% confidence intervals, are provided in Appendix \ref{LMM_results_appendix}. The results corresponding to all the 340 features are available in our anonymous github repository provided in Appendix \ref{appendix:code}  . The following sections highlight key insights from each pairwise comparison.}

\begin{table}[h!]
\centering
\begin{subtable}[t]{0.35\textwidth}
\centering
\resizebox{\textwidth}{!}{\color{black}
\begin{tabular}{|c|c|c|}
\hline
\textbf{\makecell{Feature \\ name}} & \textbf{\makecell{Calm Task \\ p-value}} & \textbf{\makecell{Stress Task \\ p-value}} \\
\hline
L2-norm HR Kurtosis & 0.002 & 0.000 \\
HR Kurtosis & 0.013 & 0.000 \\
Number of Peaks in HR  & 0.041 & 0.014 \\
Skin Temp Kurtosis & 0.004 & 0.000 \\
HR Skewness & 0.032 & 0.005 \\
Number of Peaks in L2-norm Skin Temp  & 0.002 & 0.026 \\
95th Percentile L2-norm Tonic EDA & 0.001 & 0.007 \\
L2-norm Phasic EDA root mean square & 0.010 & 0.021 \\
Tonic EDA Shannon Entropy & 0.018 & 0.018 \\
Sum of L2-norm Skin Temp Differences & 0.033 & 0.029 \\
Skin Temp Min Value & 0.027 & 0.001 \\
Phasic EDA Kurtosis & 0.010 & 0.010 \\
Skin Temp Skewness & 0.001 & 0.036 \\
HR Count Below Mean & 0.000 & 0.002 \\
Skin Temp Count Below Mean & 0.016 & 0.000 \\
L2-norm HR Skewness & 0.029 & 0.003 \\
L2-norm Tonic EDA Kurtosis & 0.017 & 0.009 \\
\hline
\end{tabular}
}
\caption{\textcolor{black}{Control vs. Pre-dose}}
\label{tab:common_features_pre_dose_control}
\end{subtable}
\begin{subtable}[t]{0.35\textwidth}
\centering
\resizebox{\textwidth}{!}{\color{black}
\begin{tabular}{|c|c|c|}
\hline
\textbf{\makecell{Feature \\ name}} & \textbf{\makecell{Calm Task \\ p-value}} & \textbf{\makecell{Stress Task \\ p-value}} \\
\hline
HR Count Below Mean & 0.000 & 0.001 \\
Sum of L2-norm BVP & 0.002 & 0.045 \\
Sum of Squared BVP & 0.002 & 0.045 \\
Skin Temp Min & 0.007 & 0.001 \\
Skin Temp Count Below Mean & 0.009 & 0.001 \\
\hline
\end{tabular}
}
\caption{\textcolor{black}{Control vs. Post-dose}}
\label{tab:common_features_control_postdose}
\end{subtable}
\caption{\textcolor{black}{Common significant features across both calm and stress tasks for self-collected datasets.}}
\label{tab:common_features_combined}
\end{table}

\subsection{Insights from Statistical Analysis of Self-Collected Datasets}
\label{insights}

\textcolor{black}{This section first gives a brief overview of the above-mentioned pairwise group comparison analysis, and later discusses the corresponding identified insights.}

\begin{enumerate}
    \item \textcolor{black}{\textbf{Control vs Pre-dose} In the control vs. pre-dose comparison among the features analyzed, 46 features exhibited statistically significant group differences under the calm task, while 40 features were significant under the stress task. Importantly, 17 features were found to be significant across both task conditions, identifying them as \textit{potential} task-invariant physiological markers that distinguish the pre-dose group from the control group. The 17 common features across the different tasks are summarized in Table \ref{tab:common_features_pre_dose_control}, spanning multiple physiological domains, including heart rate (HR), temperature (TEMP), skin temperature (Skin Temp), heart rate variability(HRV), accelerometer (ACC), blood volume pulse(BVP), and electrodermal activity (EDA). The BVP signal is the primary output of Empatica E4 PPG sensor.}

    \item\textcolor{black}{ \textbf{Control vs Post-dose} For control vs. post-dose, 14 features showed statistically significant group differences under the calm task, while 11 were significant under the stress task. Of these, 5 features demonstrated consistent significance across both task contexts, indicating their potential task-invariant effects of the post-dose condition. They are listed in Table~\ref{tab:common_features_control_postdose}.}

    \item \textcolor{black}{\textbf{Pre-dose vs Post-dose} For the pre-dose vs. post-dose comparison, a total of 5 features showed significant differences between groups in the calm condition, while 12 features reached significance in the stress condition. However, only one feature, Phasic peaks, exhibited significant group differences across both tasks, suggesting a difference in modulation of phasic activity post-dose irrespective of task conditions.}
    
\end{enumerate}

\iffalse
\subsection{Control vs Pre-dose}
In the control vs. pre-dose comparison among the features analyzed, 46 features exhibited statistically significant group differences under the calm task, while 40 features were significant under the stress task. Importantly, 17 features were found to be significant across both task conditions, identifying them as \textit{potential} task-invariant physiological markers that distinguish the pre-dose group from the control group. The 17 common features across the different tasks are summarized in Table \ref{tab:common_features_pre_dose_control}, spanning multiple physiological domains, including heart rate (HR), temperature (TEMP), and electrodermal activity (EDA). %Notably significant differences were observed in HR kurtosis (calm: $p = 0.002$, stress: $p \approx 0.000$), HR skewness (calm: $p=0.032$, stress: $p=0.005$), TEMP skewness (calm: $p=0.001$, stress: $p=0.001$), TEMP l2 peaks (calm: $p=0.002$, stress: $0.026$), Tonic entropy (calm: $p=0.018$, stress: p=$0.018$), and Tonic l2 pct 95 (calm: $p=0.001$, stress: $p=0.007$), indicating their consistent group-level variation across both tasks.
% \begin{table}[h!]
% \centering
% \resizebox{0.5\textwidth}{!}{
% \begin{tabular}{|c|c|c|}
% \hline
% \textbf{Feature name} & \textbf{Calm Task p-value} & \textbf{Stress Task p-value} \\
% \hline
% HR l2 kurtosis & 0.002 & 0.000 \\ \hline
% HR kurtosis & 0.013 & 0.000 \\ \hline
% HR peaks & 0.041 & 0.014 \\ \hline
% TEMP kurtosis & 0.004 & 0.000 \\ \hline
% HR skewness & 0.032 & 0.005 \\ \hline
% TEMP l2 peaks & 0.002 & 0.026 \\ \hline
% Tonic l2 pct\_95 & 0.001 & 0.007 \\ \hline
% Phasic l2 root mean square & 0.010 & 0.021 \\ \hline
% Tonic entropy & 0.018 & 0.018 \\ \hline
% TEMP l2 lineintegral & 0.033 & 0.029 \\ \hline
% TEMP min & 0.027 & 0.001 \\ \hline
% Phasic kurtosis & 0.010 & 0.010 \\ \hline
% TEMP skewness & 0.001 & 0.036 \\ \hline
% HR n below mean & 0.000 & 0.002 \\ \hline
% TEMP n below mean & 0.016 & 0.000 \\ \hline
% HR l2 skewness & 0.029 & 0.003 \\ \hline
% Tonic l2 kurtosis & 0.017 & 0.009 \\ 
% \hline
% \end{tabular}
% }
% \caption{Common significant features across both calm and stress tasks for the Control vs. Pre-dose comparison.}
% \label{tab:common_features_pre_dose_control}
% \end{table}
\subsection{Control vs Post-dose}
For control vs. post-dose, 14 features showed statistically significant group differences under the calm task, while 11 were significant under the stress task. Of these, 5 features demonstrated consistent significance across both task contexts, indicating their potential task-invariant effects of the post-dose condition. They are listed in Table~\ref{tab:common_features_control_postdose}.

%The common significant features include HR n below mean (calm: $p \approx 0.000$, stress: $p = 0.001$), BVP sum (calm: $p = 0.002$, stress: $p = 0.045$), BVP energy (calm: $p = 0.002$, stress: $p = 0.045$), TEMP min (calm: $p = 0.007$, stress: $p = 0.001$), and TEMP n below mean (calm: $p = 0.009$, stress: $p = 0.001$).

% \begin{table}[ht]
% \centering
% \resizebox{0.5\textwidth}{!}{
% \begin{tabular}{|c|c|c|}
% \hline
% \textbf{Feature name} & \textbf{Calm Task p-value} & \textbf{Stress Task p-value} \\
% \hline
% HR n below mean & 0.000 & 0.001 \\
% \hline
% BVP sum & 0.002 & 0.045 \\
% \hline
% BVP energy & 0.002 & 0.045 \\
% \hline
% TEMP min & 0.007 & 0.001 \\
% \hline
% TEMP n below mean & 0.009 & 0.001 \\
% \hline
% \end{tabular}
% }
% \caption{Common significant features between Control and Post-Dose groups across both task conditions.}
% \label{tab:common_features_control_postdose}
% \end{table}
\subsection{Pre-dose vs Post-dose}

For the pre-dose vs. post-dose comparison, a total of 5 features showed significant differences between groups in the calm condition, while 12 features reached significance in the stress condition. However, only one feature, Phasic peaks, exhibited significant group differences across both tasks. Specifically, the group effect for Phasic peaks was significant in the calm task ($p = 0.016$) and remained significant under the stress condition ($p = 0.009$), suggesting a difference in modulation of phasic activity post-dose irrespective of task conditions.

\fi 

\textcolor{black}{Our statistical analysis yielded the key observation that motivated the design choices of our work:}
\par 
\textcolor{black}{There is notable variability in the number of significant features across group comparisons: 69 for Control vs Pre-dose, 20 for Control vs Post-dose, and 16 for Pre-dose vs Post-dose, overall across the calm and stress tasks combined. Each comparison showed a different set of significant features. For example, BVP features like BVP sum and BVP energy were task-invariantly significant in Control vs Post-dose but were not for Control vs Pre-dose comparison. Even within the same group comparison, task-wise variability was observed. For example, between Pre-dose vs. Post-dose comparison, only one feature, \textit{Phasic peaks}, was significant across both calm and stress tasks, and the 15 features were significant only for one task. These findings suggest the existence of heterogeneous group-wise distribution shifts across tasks or contexts.}


\textcolor{black}{Notably, to explore domain generalization through feature selection, we identified all features that were consistently non-significant across comparisons (n = $257$), treating them as potentially distributionally robust. However, when we used these features to train a stress detection model (discussed in Section \ref{feature-select-discussion}), its performance was inferior to both OOD-specific baselines and our proposed HHISS method. This indicates that simple robust feature selection is insufficient, and there is a need to learn distributionally robust embeddings directly to better handle such distributional variability in stress detection.}

%Moreover, we take all \textcolor{red}{$NUMBER$} common features that were not significant across any comparisons, considering them distributional robust and trained a stress detection model, which performed subper compared to OUD robust baselines and our HHISS approach. This highlights the need for advanced distributionally robust embedding generation within the model, instead of simple distributional robust feature selection. 



% \begin{enumerate}
%     \item There is notable variability in the number of features that significantly differentiate groups across task conditions (calm vs. stress), regardless of the group pair being compared (Control vs. Pre-dose, Control vs. Post-dose, or Pre-dose vs. Post-dose). 
%     \item Distinct feature sets were found to be relevant under calm and stress tasks when comparing the different pairs of groups. Indicating heterogeneity in the physiological responses across groups.
%     \item The number of task invariant features was limited, only 17, 5, and 1 in the above-discussed analysis. This highlights that the group-wise distribution shifts may have distinct patterns across tasks or contexts. For example, between Pre-dose vs. Post-dose comparison, only one feature, \textit{Phasic peaks}, was task-invariant significant, highlighting differences in task-wise shifts. Most importantly, we did not find any feature that is significant across all groups and tasks, highlighting the need for advanced distributionally robust embedding generation within the model, instead of simple feature selection. 
    
    % Only a subset of features consistently distinguishes between groups across both tasks, highlighting that task condition modulates which physiological signals carry discriminatory information. For example in the Pre-dose and Post-dose comparison \textit{Phasic peaks}, were significant in both calm and stress conditions (Figure \ref{fig:violin_phasic}), while others like \textit{HR peaks} were only significant in the calm condition (Figure \ref{fig:violin_hr}).

% \end{enumerate}
\par
\textcolor{black}{This finding motivated the development of our domain generalization framework, HHISS, which focuses on learning context-robust representations (i.e., robust across tasks and distributions) that avoid overfitting to condition-specific artifacts.}

% \begin{figure}[h] \centering \begin{subfigure}[b]{0.48\textwidth} \centering \includegraphics[width=\textwidth]{violin_box_Phasic_phasic_peaks_predose_postdose.png} \caption{Phasic peaks (common across tasks)} \label{fig:violin_phasic} \end{subfigure} 
% \hfill 
% \begin{subfigure}[b]{0.48\textwidth} \centering \includegraphics[width=\textwidth]{violin_box_HR_HR_peaks_predose_postdose.png} \caption{HR peaks (calm-specific)} \label{fig:violin_hr} \end{subfigure} \caption{Violin plots showing feature distributions across groups (Pre-dose vs. Post-dose) under calm and stress tasks.} \label{fig:violin_example_features} \end{figure}



\subsection{Comparison with Other Public Datasets}
\begin{table}[h!]
\centering
\begin{subtable}[h!]{0.35\textwidth}
\centering
\resizebox{\textwidth}{!}{\color{black}
\begin{tabular}{|c|c|c|}
\hline
\textbf{\makecell{Feature \\ name}} & \textbf{\makecell{Calm Task \\ p-value}} & \textbf{\makecell{Stress Task \\ p-value}} \\
\hline
ACC y Interquartile Range & 0.002 & 0.029 \\
ACC y Kurtosis & 0.026 & 0.035 \\
ACC y SVD Entropy & 0.001 & 0.031 \\
ACC y Perm Entropy & 0.001 & 0.031 \\
ACC z SVD Entropy & 0.001 & 0.031 \\
ACC z Max & 0.002 & 0.029 \\
ACC z Perm Entropy & 0.001 & 0.031 \\
ACC z Interquartile Range & 0.002 & 0.029 \\
ACC x Kurtosis & 0.026 & 0.035 \\
ACC L2 Max & 0.002 & 0.029 \\
Number of Peaks in HR  & 0.0013 & $\approx$0.000 \\
HR Kurtosis & 0.012 & $\approx$0.000 \\
HR Entropy & 0.005 & 0.004 \\
HR L2 Entropy & 0.035 & 0.032 \\
Root Mean Square of HR  & 0.014 & 0.011 \\
HRV Total Power & $\approx$ 0.000 & 0.008 \\
HRV Mean NN Interval & $\approx$ 0.000 & 0.008 \\
HR 95th Percentile & 0.015 & 0.013 \\
Root Mean Square of Skin TEMP  & 0.004 & 0.003 \\
\hline
\end{tabular}
}
\caption{\textcolor{black}{Control vs WESAD}}
\label{tab:common_features_control_wesad}
\end{subtable}
\begin{subtable}[h!]{0.3\textwidth}
\centering
\resizebox{\textwidth}{!}{\color{black}
\begin{tabular}{|c|c|c|}
\hline
\textbf{\makecell{Feature \\ name}} & \textbf{\makecell{Calm Task \\ p-value}} & \textbf{\makecell{Stress Task \\ p-value}} \\
\hline
ACC L2 Line Integral & $\approx$ 0.000 & 0.003 \\
ACC z 95th Percentile & $\approx$ 0.000 & 0.030 \\
ACC y 5th Percentile & $\approx$ 0.000 & 0.030 \\
ACC z Line Integral & $\approx$ 0.000 & 0.003 \\
BVP Energy & 0.001 & $\approx$ 0.000 \\
BVP Skewness & 0.024 & 0.004 \\
BVP Sum & 0.050 & $\approx$ 0.000 \\
L2-norm HR Skewness & $\approx$ 0.000 & $\approx$ 0.000 \\
TEMP Count Below Mean & 0.040 & $\approx$ 0.000 \\
\hline
\end{tabular}}
\caption{\textcolor{black}{Control vs AffectiveRoad}}
\label{tab:common_features_control_affectiveroad}
\end{subtable}
\begin{subtable}[H]{0.27\textwidth}
\centering
\resizebox{\textwidth}{!}{\color{black}
\begin{tabular}{|c|c|c|}
\hline
\textbf{\makecell{Feature \\ name}} & \textbf{\makecell{Calm Task \\ p-value}} & \textbf{\makecell{Stress Task \\ p-value}} \\
\hline
HR Kurtosis & 0.037 & 0.001 \\
BVP L2 Kurtosis & 0.029 & 0.020 \\
L2-norm HR Peak-to-Peak & 0.043 & 0.003 \\
 Skin Temp Root Mean Square & 0.048 & 0.011 \\
BVP L2 Interquartile Range & 0.003 & 0.041 \\
Number of Peaks in Tonic EDA  & 0.012 & 0.009 \\
HRV pNN20 & 0.041 & 0.014 \\
\hline
\end{tabular}}
\caption{\textcolor{black}{WESAD vs AffectiveRoad}}
\label{tab:common_features_wesad_affectiveroad}
\end{subtable}
\caption{\textcolor{black}{Common significant features across both calm and stress tasks for publicly available datasets.}}
\label{tab:common_features_public_control}
\end{table}

\label{lmm_public_data}
\textcolor{black}{To better understand the generalizability of our findings and the physiological feature shifts across other data distributions, we extended our statistical analyses to two other publicly available datasets: WESAD and AffectiveRoad, described in Section~\ref{dataset:public}. Since these datasets comprise only healthy participants, comparisons were made against our control group data. The feature extraction process for the WESAD and AffectiveRoad remained the same as discussed in Section \ref{sec:feature}. Our analyses yielded the following findings:}

\begin{enumerate}
    \item \textcolor{black}{\textbf{Control vs WESAD:} Out of the 340 features analyzed, 55 features exhibited statistically significant differences under the calm condition and 33 under the stress condition. Nineteen features were consistently significant across both task contexts (Table \ref{tab:common_features_control_wesad}).}
    \item \textcolor{black}{\textbf{Control vs AffectiveRoad:} This comparison revealed fewer consistent patterns. Among the features evaluated, 30 were statistically significant under calm and 46 under stress, with only 9 features significant across both conditions (Table \ref{tab:common_features_control_affectiveroad}).}
    \item \textcolor{black}{\textbf{WESAD vs AffectiveRoad:} Between WESAD and AffectiveRoad, 30 features showed significance in the calm task and 58 under stress. Seven features were found to be consistently significant in both tasks (Table \ref{tab:common_features_wesad_affectiveroad}).}
\end{enumerate}



% Notable among these were HR kurtosis (calm: $p = 0.0121$, stress: $p \approx 0.000$) and HR peaks (calm: $p = 0.0013$, stress: $p \approx 0.000$).

 

% For example, BVP sum (calm: $p = 0.05$, stress: $p \approx 0.000$) was significant under both conditions, reflecting its potential as an invariant feature when distinguishing the control and AffectiveRoad datasets based on stress and calm states.



% such as HR kurtosis (calm: $p = 0.0362$, stress: $p = 0.0007$) and BVP l2 kurtosis (calm: $p = 0.0299$, stress: $p = 0.0208$).


\textcolor{black}{Overall, the patterns observed across these publicly available datasets align with the insights identified for our self-collected datasets (discussed in Section \ref{insights}). These observations further validate the existence of heterogeneous group-wise distribution shifts across tasks or contexts.}


\iffalse

\section{Motivation: Visualization of Stress Sensing Heterogeneity \color[HTML]{FE0000} old}\label{motivation}

 This section presents our preliminary analysis investigating the heterogeneity of stress-sensing features. Drawing on prior research utilizing the Empatica E4 \cite{campanella2023method,kyriakou2019detecting}, this section's analysis focuses on some key selected features from each modality. Specifically, for EDA, we focused on the mean of EDA tonic and the maximum of EDA phasic, as these metrics correlate with stimulus intensity \cite{janssen2015determinants}. In the heart rate domain, we selected the mean Heart Rate and RMSSD in Heart Rate Variability (HRV), both of which are critical for stress detection \cite{kyriakou2019detecting,kim2018stress}. Additionally, the mean of accelerometer L2 norm and the maximum skin temperature were included due to their established links to stress detection \cite{garcia2015automatic,kaklauskas2011web,zhang2017stress}.

 For each feature, we conducted a one-way ANOVA to compare the physiological responses between each dataset pair. Considering that physiological patterns may exhibit different types of heterogeneity during calm and stress conditions across the datasets (discussed in Section \ref{Dataset-description}), we performed the ANOVA analysis separately for calm and stress tasks. The hypotheses were as follows:

\begin{itemize}
    \item H0: Participants in two groups exhibit the same level of physiological response during the tasks.

    \item H1: Participants in two groups display different levels of physiological response during the tasks.
 \end{itemize}

 Tables \ref{tab:left} and \ref{tab:right} present the ANOVA results for comparing our collected three datasets discussed in Section \ref{self-dataset-discussion} during the calm and stress tasks. Features with significant differences across datasets are highlighted in red, indicating that H1 is true. 
 
 
 %\textcolor{red}{The results of the ANOVA are presented in Table \ref{tab:left} for calm tasks and Table \ref{tab:right} for stress tasks. Features with significant differences across datasets are highlighted in red, indicating that H1 is true. In Table \ref{tab:left}, we observe that the Control and Pre-dose datasets exhibit significant differences in four features, whereas the other two pairs show significant differences in only two and three features, respectively. This suggests that the Pre-dose datasets are higer heterogeneous with respect to other two dataset.}

Comparing Table \ref{tab:left} (calm tasks) and Table \ref{tab:right} (stress tasks), we observe that a greater number of features exhibit significant differences during stress tasks. For example, when comparing the Control and Pre-dose datasets, only four features show significant differences during calm tasks, whereas all six features demonstrate significant differences during stress tasks. This suggests that physiological signals display a higher level of heterogeneity under stress conditions. This can be attributed to the altered physiological responses in individuals with opioid use disorder (OUD), stemming from chronic substance use and its effects on the autonomic nervous system. Stress intensifies these differences, as the OUD population often experiences dysregulated stress responses, including heightened sympathetic activation and impaired parasympathetic recovery \cite{mchugh2020behavioral}. 


\begin{table}[h!]
    \centering
    \begin{minipage}{0.45\linewidth}
        \centering
        \resizebox{\linewidth}{!}{
        \begin{tabular}{|l|r|r|r|}
\hline
Between calm        & \multicolumn{1}{l|}{Control Vs Pre-dose} & \multicolumn{1}{l|}{Control Vs Post-dose} & \multicolumn{1}{l|}{Pre-dose Vs Post-dose} \\ \hline
Mean HR        & {\color[HTML]{FE0000} 0.0003}            & 0.5149                                    & {\color[HTML]{FE0000} 0.0001}                   \\ \hline
RMSSD          & 0.0783                                   & 0.0857                                    & 0.0516                                     \\ \hline
Mean EDA tonic  & {\color[HTML]{FE0000} 0.001}             & {\color[HTML]{FE0000} 0.0024}             & {\color[HTML]{FE0000} 0.0012}              \\ \hline
Max EDA phasic & {\color[HTML]{FE0000} 0.0001}                 & 0.6551                                    & {\color[HTML]{FE0000} 0.0002}              \\ \hline
Accelerometer L2 mean       & 0.6643                                   & {\color[HTML]{FE0000} 0.0086}             & 0.0744                                     \\ \hline
Max skin temperature     & {\color[HTML]{FE0000} 0.0044}            & 0.4386                                    & 0.1091                                     \\ \hline
\end{tabular}}
        \caption{ANOVA under calm condition}
        \label{tab:left}
    \end{minipage}%
    \hfill
    \begin{minipage}{0.45\linewidth}
        \centering
        \resizebox{\linewidth}{!}{
        \begin{tabular}{|l|r|r|r|}
\hline
Between stress      & \multicolumn{1}{l|}{Control Vs Pre-dose} & \multicolumn{1}{l|}{Control Vs Post-dose} & \multicolumn{1}{l|}{Pre-dose Vs Post-dose} \\ \hline
Mean HR         & {\color[HTML]{FE0000} 0.0001}            & {\color[HTML]{FE0000} 0.0188}             & {\color[HTML]{FE0000} 0.0001}              \\ \hline
RMSSD          & {\color[HTML]{FE0000} 0.005}             & {\color[HTML]{FE0000} 0.0001}             & {\color[HTML]{FE0000} 0.0001}              \\ \hline
Mean EDA tonic  & {\color[HTML]{FE0000} 0.0001}            & 0.7012                                    & {\color[HTML]{FE0000} 0.0171}              \\ \hline
Max EDA phasic & {\color[HTML]{FE0000} 0.0001}            & 0.0981                                    & {\color[HTML]{FE0000} 0.0264}              \\ \hline
Accelerometer L2 mean       & {\color[HTML]{FE0000} 0.0115}            & 0.1681                                    & {\color[HTML]{FE0000} 0.0003}              \\ \hline
Max skin temperature     & {\color[HTML]{FE0000} 0.0001}            & {\color[HTML]{FE0000} 0.0001}             & {\color[HTML]{FE0000} 0.0047}              \\ \hline
\end{tabular}}
        \caption{ANOVA under stress condition}
        \label{tab:right}
    \end{minipage}
    \vskip -3ex
\end{table}

Additionally, Tables \ref{tab:left} and \ref{tab:right} show that despite using the same data collection protocol and devices, opioid use disorder (OUD) populations exhibit physiological stress response variability at different stages of medication administration. This highlights the need for a robust out-of-distribution (OOD) solution. Notably, the Pre-dose dataset shows greater statistical differences than the other two. Under stress conditions, it significantly differs across all features compared to the Control and Post-dose datasets, whereas the Control and Post-dose datasets differ significantly in only three features. This variability further underscores the necessity of an OOD-robust approach.


Since the public datasets discussed in Section \ref{dataset:public} include only healthy populations, we compared them with our collected Control dataset. As shown in Tables \ref{tab:wesad_calm} and \ref{tab:wesad_stress}, more features show significant differences during stress tasks, consistent with our findings in Tables \ref{tab:left} and \ref{tab:right}. The AffectiveRoad dataset exhibits the most statistically significant differences among the three. For example, under calm conditions, the Control and AffectiveRoad datasets differ in three features, while the Control and WESAD datasets differ in only two. This greater variability in AffectiveRoad likely stems from the cognitive and physiological demands of driving, requiring sustained attention, decision-making, and real-time adaptation to road conditions. These factors heighten stress levels, leading to more pronounced physiological responses and increased feature variability.




\begin{table}[h!]
    \centering
    \begin{minipage}{0.45\linewidth}
        \centering
        \resizebox{\linewidth}{!}{
        \begin{tabular}{|l|l|l|l|}
\hline
Between calm        & \multicolumn{1}{l|}{Control Vs WESAD} & \multicolumn{1}{l|}{Control Vs AffectiveRoad} & \multicolumn{1}{l|}{WESAD Vs AffectiveRoad} \\ \hline

Mean HR        & {\color[HTML]{333333} 0.1352} & {\color[HTML]{FE0000} 0.0096} & {\color[HTML]{FE0000} 0.012}  \\ \hline
RMSSD          & {\color[HTML]{FE0000} 0.0001} & {\color[HTML]{333333} 0.0808} & {\color[HTML]{FE0000} 0.0010} \\ \hline
Mean EDA tonic  & {\color[HTML]{FE0000} 0.0001} & {\color[HTML]{333333} 0.1646} & {\color[HTML]{FE0000} 0.0002} \\ \hline
Max EDA phasic & {\color[HTML]{333333} 0.137}  & {\color[HTML]{FE0000} 0.0282} & {\color[HTML]{333333} 0.5563} \\ \hline
Accelerometer L2 mean       & {\color[HTML]{333333} 0.8129} & {\color[HTML]{333333} 0.8386} & {\color[HTML]{333333} 0.6736} \\ \hline
Max skin temperature     & {\color[HTML]{333333} 0.7054} & {\color[HTML]{FE0000} 0.0091} & {\color[HTML]{333333} 0.0977} \\ \hline
\end{tabular}}
        \caption{ ANOVA under calm condition}
        \label{tab:wesad_calm}
    \end{minipage}%
    \hfill
    \begin{minipage}{0.45\linewidth}
        \centering
        \resizebox{\linewidth}{!}{
        
\begin{tabular}{|l|l|l|l|}
\hline
Between stress        & \multicolumn{1}{l|}{Control Vs WESAD} & \multicolumn{1}{l|}{Control Vs AffectiveRoad} & \multicolumn{1}{l|}{WESAD Vs AffectiveRoad} \\ \hline
Mean HR        & {\color[HTML]{FE0000} 0.0001} & {\color[HTML]{333333} 0.1164} & {\color[HTML]{FE0000} 0.0001} \\ \hline
RMSSD          & {\color[HTML]{333333} 0.3900} & {\color[HTML]{FE0000} 0.0017} & {\color[HTML]{FE0000} 0.0038} \\ \hline
Mean EDA tonic  & {\color[HTML]{FE0000} 0.0001} & {\color[HTML]{FE0000} 0.0001} & {\color[HTML]{FE0000} 0.0001} \\ \hline
Max EDA phasic & {\color[HTML]{FE0000} 0.0001} & {\color[HTML]{FE0000} 0.0046} & {\color[HTML]{FE0000} 0.0001} \\ \hline
Accelerometer L2 mean       & {\color[HTML]{333333} 0.0757} & {\color[HTML]{FE0000} 0.0015} & {\color[HTML]{333333} 0.1377} \\ \hline
Max skin temperature     & {\color[HTML]{FE0000} 0.0001} & {\color[HTML]{FE0000} 0.0001} & {\color[HTML]{333333} 0.0948} \\ \hline
\end{tabular}

}
        \caption{ANOVA under stress condition}
        \label{tab:wesad_stress}
    \end{minipage}
    \vskip -5ex
\end{table}

\fi 

\iffalse
To better understand the inconsistencies, we visualized the mean EDA amplitude distribution using box plots (Figure \ref{fig:feature_visulize}). Generally, participants showed higher amplitudes during stress tasks. However, in the Pre-dose dataset, EDA amplitude during calm tasks was unexpectedly higher than in the healthy control datasets during stress tasks. This could be due to opioid cravings and long-term opioid use, as chronic opioid users often experience withdrawal symptoms before administration \cite{carreiro2016wearable,chintha2018wearable}. These findings highlight the need to identify invariant features for a generalizable stress detection model, particularly for health applications.

\begin{figure}
\centering
\includegraphics[width=0.5\linewidth]{EDA_amplitude.png}

\caption{EDA amplitude across all datasets}
\label{fig:feature_visulize}
\vspace{-10pt}
\end{figure}

\fi 


\section{HHISS Framework}\label{our-approach}
This section discusses the HHISS framework and its design choices, supported by Algorithm \ref{alg:1} and Figure \ref{fig:workflow}.


\emph{Overview:} The HHISS framework addresses the heterogeneity in human physiological stress responses through four key components outlined in Figure \ref{fig:workflow}. 
%\emph{First}, it adapts IRM training regularization considering every individual as a domain to develop an over-parameterized \textcolor{green}{IRM embedding generator network} that learns invariant features generalizable across individuals. 
\textcolor{black}{\emph{First}, it incorporates IRM-based training regularization by treating each individual as a separate domain. This guides the training of an IRM-regularized over-parameterized embedding generator network that aims to learn causally invariant features that generalize across individuals for stress detection through the follow-up decision-making network. However, such IRM-regularized over-parameterized  networks are prone to overfitting, which can hinder generalization.}
%However, overparameterized IRM regularized embedding networks are prone to overfitting, which reduces generalizability. 
This is typically mitigated by employing sparse training alongside IRM \textcolor{black}{regularization}, but sparse training can introduce bias by favoring dominant individuals during pruning. The \emph{second} component enhances generalizability and minimizes bias by presenting a novel subject-wise gradient-based pruning and identifying the intersection of pruned sub-networks. This ensures that the retained parameters are consistent across individuals, capturing invariant features critical for generalization. Despite these efforts, the pruning intersection process may result in a significantly reduced sub-network, limiting the model's capacity to retain essential knowledge. To address this, the \emph{third} component introduces sparse-to-sparse training, which iteratively refines the intersectional sub-network by allowing parameters to relearn and progressively evolve toward a larger, more effective substructure. Finally, the \emph{fourth} component introduces a novel approach to enhancing generalizability further, a critical step since sparse-to-sparse iterative training can overfit on limited human sensing data. This component leverages the continuous labels from the \textcolor{black}{IRM-regularized over-parameterized model (complete model, including the embedding and decision-making network layers)} obtained through the first component, encouraging a flatter loss landscape and ensuring robust performance across diverse populations and unseen conditions.


Each of the four competent is detailed and justified below:

%First, it uses IRM training to develop an over-parameterized model that learns invariant features generalizable across individuals and stressors. However, overparameterized IRM networks are prone to overfitting, thus losing generalizability, which is typically addressed by employing sparse training alongside IRM. However, sparse training process may introduce bias. The second component enhances generalizability and minimize bias by performing subject-wise gradient-based pruning and identifies the intersection of pruned sub-networks, ensuring retained parameters are consistent across individuals. Third, sparse-to-sparse training iteratively refines this intersectional sub-network, preserving sufficient parameters to maintain learned knowledge and build an effective model. }

%Third, sparse-to-sparse training iteratively refines this intersectional sub-network, preserving sufficient parameters to maintain learned knowledge and build an effective model. Finally, continuous labels derived from the over-parameterized model are used during fine-tuning to prevent overfitting, leveraging a flatter loss landscape for improved generalization without relying on temperature scaling, as seen in traditional knowledge distillation.


%This section discusses and justifies the HHISS framework and its design choices through Algorithm \ref{alg:1} and Figure \ref{fig:workflow}.

\begin{figure}[h!]
    \centering
    \includegraphics[width=0.7\linewidth]{workflow_updated.png}
    \caption{Approach Workflow}
    \label{fig:workflow}
    \vskip -3ex
\end{figure}

\subsection{\textcolor{black}{Causally Invariant Features Extraction through Initial IRM Regularization:} }\label{Algo:IRM-training-1}
\subsubsection{Challenge:}
Human physiological responses to stressors are heterogeneous across inter- \cite{lecic2011stress,gillespie2009risk,jacoby2021individual} and intra- individuals \cite{nagaraj2023dissecting}. To develop a robust model applicable across diverse scenarios, it is crucial to ensure the model focuses on invariant and consistent features or embedding generation.


\subsubsection{Our Solution:} 
To address the challenge, the HHISS framework uses Invariant Risk Minimization (IRM) \textcolor{black}{regularization as the first training step. IRM \cite{arjovsky2019invariant} is a regularization strategy during training that encourages models to learn invariant features with a stable, causal relationship with the target variable (i.e., stress assessment) across all training domains; hence, such features are more generalizable to unseen domains. Notably, it is compatible with any downstream decision-making network architecture.} In this work, focused on human-centered stress sensing, we consider each subject to be a unique domain.
As outlined in line $1$ of Algorithm \ref{alg:1} (and Figure \ref{fig:workflow}(1)), following the methodology of \citet{arjovsky2019invariant}, we train a neural network using the IRM loss function $L_{IRM}$ (equation 6 in \cite{arjovsky2019invariant}). The resulting \textcolor{black}{IRM-regularized over-parameterized embedding generation model, $f_{\theta}$, is designed to learn a diverse causally invariant feature representation across all individuals in the training set, enhancing its ability to generalize to new individuals and stressors.}

\begin{algorithm}
\caption{Approach}
\label{alg:1}
\begin{algorithmic}[1]

\REQUIRE Given: \\$S_{1},S_{2}...S{n} \in S $:  \text{Data belonging to n known subjects}\\
%$f_{pruned}(\cdot| \theta )$: \text{pre-trained overparameterized model}.\\
%$f_{over}(\cdot|\theta )$: \text{pruned model to be traind}.\\
$R$: \text{Number of training rounds}\\
$T$: \text{Sparse-to-sparse threshold}\\
$K$: \text{Pruning amount}\\

\STATE $f_{over}(\cdot|\theta )$: $\text{Over-parameterized model trained with IRM}$  
\STATE $f_{pruned}(\cdot| \theta ) \leftarrow f_{over}(\cdot|\theta )$ \\
\REPEAT
\FOR{$S_{i}$ in $S$}
\STATE$\text{Mask}_i = Prune( f_{pruned}(\cdot| \theta ), S_i,K) $
\ENDFOR
\STATE$ Mask = \cap_i Mask_i$\\
\STATE$ \text{Apply } Mask \text{ to the model } f_{pruned}(\cdot| \theta )$\\

\REPEAT
%% need to state that: train the f_{pruned}(\cdot| \theta )$ model with following loss:
\STATE$Loss =\sum_{S_i \in S} L_{IRM} + \lambda L_{Continuous}$
\STATE$\text{Update the model with Loss}$
\UNTIL{Model performance higher than T}
\UNTIL{Repeated for R times}
\vskip -5ex
\end{algorithmic}
\end{algorithm}


\subsection{Intersection of Person-wise Sub-networks to Enhance Generalizability: }\label{approach-intersection-pruning}
Previous research has shown that the generalization ability of \textcolor{black}{IRM-regularized embeddings} can be compromised by overfitting, particularly in \textcolor{black}{IRM-regularized over-parameterized networks} \cite{zhou2022sparse}. 
IRM regularization term promotes generalizability. However, overfitting reduces gradient values, resulting in a reduction of the magnitude of the IRM regularization term, thus adversely impacting the generalizability. 

The HHISS framework relies on \textcolor{black}{IRM-regularized over-parameterized} networks in its initial step since it provides the capacity to capture a wide range of potential patterns and relationships in the data \cite{zhang2021understanding}. This is crucial for human-centered stress sensing, where physiological responses exhibit significant heterogeneity. 


To address the challenges posed by overparameterization, prior studies have employed sparse training techniques alongside \textcolor{black}{IRM regularization} to enforce the learning of invariant features and prevent overfitting \cite{zhou2022sparse}. Moreover, introducing sparsity can further enhance the model's generalization by improving training and regularization, mitigating the impact of noisy examples, and resulting in a flatter loss landscape \cite{bartoldson2020generalization,jin2022neural}.


\subsubsection{Challenge:} 
However, the identification of sparse networks using collective stress data can be influenced by certain groups of individuals, thus resulting in a loss of generalizability. To explore this issue, we conduct gradient-based pruning \cite{singh2020woodfisher} on an IRM-regularization trained neural network to identify the resulting pruned sub-network. In Figure \ref{fig:imp}, we visualize the average importance score (a metric used to assess the significance of neurons for model prediction) of the preserved neurons in the pruned sub-network for each individual subject. The results indicate that certain subjects exhibit significantly higher importance scores due to their elevated gradients. As a result, neuron selection and, consequently, sub-network selection during pruning are heavily influenced by these subjects. This suggests that the characteristics or features most prominent in these individuals are retained in the pruned sub-network, potentially leading to the exclusion of other subjects' characteristics and resulting in biased model predictions for unseen individuals. 



\begin{figure}[h!]
    \centering
    \includegraphics[scale=0.38]{importance3.png}
    \caption{Subject wise importance score on the non-subject wise gradient based pruning.}
    \label{fig:imp}
    \vskip -3ex
\end{figure}

\subsubsection{Our Solution:}
\label{section:person-wise-pruning-solution}
As outlined in the lines $4-8$ of Algorithm \ref{alg:1} (and Figure \ref{fig:workflow}(2)), we address this human-centered challenge by performing subject-wise pruning for each individual and identifying the intersection as the subject-invariant pruned sub-network. Specifically, we apply gradient-based pruning to determine the set of important parameters for each subject, resulting in $n$ model substructures. To consolidate the subject-invariant information contained within these subject-specific substructures, we compute their intersection. 
Parameters lying outside the intersection set carry varying importance across subjects and hence may introduce bias and were subsequently zeroed out. Consequently, \emph{the remaining non-zero parameters in the model represent those with consistently high importance across all subjects, ensuring subject-invariant significance.}

The intersection \emph{`Mask'} can be formulated as:

% \begin{equation}
% \begin{aligned}
% Mask &= \bigcap_{i}^{S_i \in S} Mask_i, \quad Mask_{i} = [m_{1}, m_{2}, \dots, m_{j}], \\
% m_{j} &=
% \begin{cases}
%     1, & \text{if } \text{score}_{j} > T_{k}, \\
%     0, & \text{otherwise}.
% \end{cases} \\
% \text{score}_{m} &= \left| \frac{\nabla L}{\nabla \theta} \right| \cdot |\theta| 
% \end{aligned}
% \end{equation}
%Here, the score refers to the importance score of neurons, calculated using a gradient-based pruning approach \cite{kang2023fashapley}. $\theta$ represents the model's parameters, and $L$ denotes the loss function. The threshold value $T_{k}$ is set such that the top $k$ percent of scores are greater than or equal to $T_{k}$. $Mask_{i}$ corresponds to the mask for the $i$-th subject, while $Mask$ represents the final mask indicating the intersected sub-network.

\begin{equation}
\begin{aligned}
Mask &= \bigcap_{i}^{S_i \in S} Mask_i, Mask_i = \{0,1\}^J
\end{aligned}
\end{equation}





Here, the \emph{`Mask'} is the final mask used for model pruning, which is the intersection of all subjects' masks. $Mask_{i}$ represent the binary pruning mask for subject $i$. It is a binary mask array length of J, where each element can be either 0 or 1. Each weight in the neural network has a corresponding mask value $m_{j}$, where $m_{j}=1$ for retained weights and $m_{j}=0$ for pruned weights. 
The mask value $m_{j}$ is determined by an importance score. We retain the top(100-K)\% of weights and prune the lowest K\%, where pruning amount K is a tunable hyperparameter. The importance score follows the gradient-based pruning approach \cite{kang2023fashapley} and is computed using Equation \ref{eq:importance} as the absolute value of the gradient of the loss with respect to the weights, multiplied by the absolute value of the weight.

\begin{equation}
\begin{aligned}
\text{importance score}= | \frac{\nabla L}{\nabla \theta}  |  | \theta| \quad
\end{aligned}
\label{eq:importance}
\end{equation}



% \textcolor{purple}{SK's suggestion below}

% If $Mask_i = \{0,1\}^j$  represents the binary mask generated by gradient-based pruning of a model with parameters $j$ for subject $S_i$ , then, the overall mask of the model containing parameters important for all subjects can be computed as the intersection of the individual masks,
% \begin{equation}
%     Mask = \bigcap_{i}^{S_i \in S} Mask_i,
% \end{equation}
% here, where $\|Mask_i\|_0 = (100-P)\% \text{ of }j$ and the pruning amount $P$ is tunable hyperparameter.

% \textcolor{purple}{till here}





\subsection{“Sparse-to-sparse” Training as Pruning Fine-tuning to Attain an Effective Intersectional Sub-network}\label{our-approach-DST}
%\cite{liu2023ten}

Conventionally, pruning is followed by a retraining step over the non-pruned parameters, i.e., the non-zero sub-network (known as fine-tuning) that helps to relearn the information lost by removal of the pruned or zeroed-out parameters \citep{ThiNet-ICCV17, zhu2017prune,GP-soa}.

\subsubsection{Challenge:} Given the heterogeneity of human psychophysiological responses to stress, performing the intersectional `Mask' identification as described in Section \ref{section:person-wise-pruning-solution} as a one-time process results in a significantly reduced number of non-zero parameters (or sub-network) compared to the regular pruning with same pruning amount $K$. This reduction eliminates a substantial portion of the learned knowledge crucial for effective model generation. Furthermore, this minimal substructure contains insufficient parameters to relearn a generalizable and effective model during fine-tuning. A more detailed discussion of this challenge, along with parameter visualization, is provided in Section \ref{Sparse-to-sparse}.


\subsubsection{Our Solution:} To address this, it is crucial to learn an intersectional sub-network that is larger, preserving enough learned knowledge from the over-parameterized neural network and retaining sufficient parameters to recover the lost information through zeroed-out parameters to attain a generalizable and effective model during fine-tuning.
\par 
We address this issue through `sparse-to-sparse' training \cite{liu2023don, dai2019nest}, as outlined in the loop in lines $3-13$ of Algorithm \ref{alg:1} (and Figure \ref{fig:workflow}(3)). After the initial intersectional `Mask' identification and zeroing out other parameters (line 8 of Algorithm \ref{alg:1}), the model undergoes further training, allowing all parameters, including the zeroed-out ones, to learn until the model attains a threshold efficacy of $T$. This process is then repeated, involving re-identification of the intersectional `Mask' and re-training of all parameters on the relearned model for subsequent rounds.
\par 
The rationale for using `sparse-to-sparse' training, supported by literature \cite{dai2019nest}, is that, in the initial rounds, it identifies evolving or varying sub-networks but eventually converges to a consistent one. Consequently, in HHISS, as the rounds progress, the subject-wise pruned network for each individual converges towards similarity, resulting in a consistently larger intersectional `Mask' that is sufficiently sized and retains enough information to develop a generalizable and effective model.


\subsection{Avoid Overfitting by Leveraging Continuous Labels}\label{our-approach-KD}

\par 
\subsubsection{Challenge:} The consistent intersectional `Mask' identification requires multiple rounds of `sparse-to-sparse' training. Furthermore, human-centered datasets, particularly in the health domain (e.g., data from the substance abuse population), are limited in size \cite{maxhuni2017managing,yfantidou2023beyond}. Such factors may lead to the model being overfitting and lose generalizability. 

\subsubsection{Our Solution:} To prevent overfitting, which results in the model converging to a narrow point in the loss landscape, we leverage recent literature \cite{zhang2023generalization, wang2021embracing} that suggests models trained with continuous labels tend to converge to a flatter loss landscape, corresponding to improved generalizability. 


In the HHISS approach, continuous labels are derived directly from \textcolor{black}{the IRM-regularized over-parameterized model (end-to-end model including the embedding and decision-making layers)} obtained in Section \ref{Algo:IRM-training-1}. Unlike knowledge distillation (KD)-based methods that typically use temperature scaling to smooth predicted logits and transfer soft information between teacher and student models \cite{zhang2023generalization}, HHISS entirely avoids temperature scaling. Instead, it focuses on preserving the original predictive structure of the logits. The objective is to utilize continuous labels, rather than discrete ones (stress vs. calm), without mimicking the behavior of the parent network (in this case, the IRM-regularized over-parameterized model), which is typical in KD-based techniques \cite{zhang2023generalization,chai2022fairness,wang2021embracing}. Mimicking the parent network could compromise the ability to extract subject-invariant features, a critical capability achieved through steps 2 in Figure \ref{fig:workflow}, as discussed earlier. This distinction underscores the unique way HHISS handles continuous logits by retaining their original information.



%\textcolor{black}{The continuous labels in our HHISS approach are generated directly from the over-parameterized model. Unlike knowledge distillation (KD)-based methods, which typically apply a temperature scaling mechanism to smooth the predicted logits and encourage the transfer of soft information from teacher to student models \cite{zhang2023generalization}, HHISS does not rely on any temperature value for smoothing. This distinction highlights the fundamental difference in how our approach handles the representation of continuous logits values, focusing on preserving the original predictive structure, since the goal is to utilizing continuous labales, rather then discrete ones, and not learning how the parent network (in this case the overparameterized IRM network) operates through 
%rather than modifying it through 
%temperature scaling, as is standard in KD-based techniques\cite{zhang2023generalization,chai2022fairness,wang2021embracing}.}
\par 
Hence, as outlined in lines $10-11$ of Algorithm \ref{alg:1} (and Figure \ref{fig:workflow}(4)), we fine-tune utilizing a $Loss$ that includes utilizing a continuous label we attain through the logit values obtained from the IRM-regularized over-parameterized model \textcolor{black}{(end-to-end network)} $f_{over}(\cdot|\theta )$.

The fine-tuning loss function can be summarized as follows:


\begin{equation}
\begin{aligned}
    \text{Loss} &= \sum_{S_i \in S} L_{IRM} + \lambda L_{Continuous}, \\
    L_{Continuous} &= L_{CN}\big(f_{pruned}(X^{i}), f_{over}(X^{i})\big)
\end{aligned}
\label{eq:finetune}
\end{equation}


Here, $L_{CN}$ is cross entropy loss. The $L_{IRM}$ is the IRM loss defined by \cite{arjovsky2019invariant}. 
\par 
Consequently, through $L_{Continuous}$, HHISS further promotes generalization by exploiting continuous labels ($f_{over}(X^{i})$: logit from $f_{over}(\cdot|\theta )$) and rich knowledge learned by the over-parameterized model, resulting in a flatter loss landscape \cite{zhang2023generalization,wang2021embracing}. This is further discussed in Section \ref{loss-landscape-perspective}, with reference to Figure \ref{fig:loss_landscape}.












\section{Experiment setup}\label{experiment-setup}

The following sections provide a comprehensive evaluation of our proposed approach, assessing the overall method's performance and its individual components. We benchmark our results against state-of-the-art DG and DA approaches. The presented network parameter configurations were optimized by performing a grid search of the possible network parameters. The evaluation results presented are end-to-end, incorporating the inaccuracy due to pre-processing errors. \textcolor{black}{We use balanced accuracy and macro F1 score as evaluation metrics. Balanced accuracy calculates the average recall (true positive rate) across all classes, ensuring that each class contributes equally regardless of its frequency. Similarly, the macro F1 score computes the F1 score for each class independently and then averages them. Both metrics are well-suited for imbalanced datasets , as they treat all classes equally\cite{zhang2024reproducible}.}
For each dataset and approach, we use neural network architectures previously benchmarked and deployed for similar datasets, without considering variations in architecture \cite{li2020stress,dziezyc2020can}.


\subsection{Baseline OOD approaches}
\textcolor{black}{As a simple random baseline benchmark, we use a majority vote classifier, which always predicts the most frequent class in the dataset.\cite{zhang2024reproducible}}. As a non-OOD approach baseline, we considered Empirical Risk Minimization (ERM), a fundamental principle in machine learning that aims to find the optimal model parameters by minimizing the empirical risk on the training data. Here, we use cross-entropy loss to optimize the model.

 To demonstrate the OOD generalization or DG superiority of HHISS, as mentioned in Section \ref{rel-work-DG}, our baselines include Invariant Risk Minimization (IRM) \cite{arjovsky2019invariant}, Distributionally Robust Optimization (DRO)\cite{sagawa2019distributionally},  Risk Extrapolation (Vrex)\cite{krueger2021out}, \textcolor{black}{Clustering\cite{xu2023globem}, Domain adversial Neural network (DANN) \cite{ajakan2014domain,meegahapola2024m3bat}, Meta-Learning for Domain Generalization(MLDG) \cite{li2018learning}}, and sparse training with IRM \cite{zhou2022sparse}, referred to as SparseTrain.
Furthermore, we evaluated gradient magnitude pruning \cite{granger2021progressive}, referred to as ERM pruning, and knowledge distillation (KD)\cite{reddy2024towards}. 
\par 
Moreover, as a recent unsupervised learning DA baseline, we include Test-Time Personalization (TTP) \cite{xu2023joint}. 

%ERM is a fundamental principle in machine learning that aims to find the optimal model parameters by minimizing the empirical risk on the training data. Here, we use cross-entropy loss to optimize the model. IRM encourages the model to learn invariant features across different domains, promoting robust generalization. GroupDRO enhances performance by focusing on worst-case domain losses during training. REx optimizes dual objectives: minimizing training risk while ensuring the similarity of training risks across domains and facilitating better generalization. IRM is a well-established method for domain adaptation. It encourages the model to learn invariant features across different domains during training. Distributionally Group Robust Optimization (GroupDRO) is another domain generalization approach aimed at improving the poor worst-case performance by keeping track of the loss in each domain during training and assigning a regularization term based on the loss history. GroupDRO optimizes the model's performance by focusing on the worst-performing groups, thereby enhancing overall robustness. REx proposes optimizing two objectives simultaneously: reducing training risks and increasing the similarity of training risks across domains. This dual objective helps in achieving better generalization across diverse domains.
%Pruning has been shown to improve generalizability. Unstructured gradient-based pruning, which we incorporate in HHISS (Section \ref{our-approach}), has demonstrated superior performance in the literature \cite{cheng2024survey,liang2021pruning}. As a baseline, we evaluated gradient-based pruning \cite{granger2021progressive}, where the model was trained with ERM, pruned after a set number of epochs, and then fine-tuned. This is referred to as ERM pruning.
%Sparse training combined with IRM has been shown to prevent overfitting and improve generalization, outperforming ERM, IRM, and REx \cite{zhou2022sparse}. We adopted this technique as one of our baselines, referred to as SparseTraining. %\textcolor{purple}{Are you referring to SparseIRM here, that already has a name.}
%Knowledge distillation, known to enhance generalizability \cite{ruder2017knowledge}, was also included as a baseline. By comparing HHISS against these established methods, we aim to underscore the improvements offered by our proposed technique. 



\subsection{Dataset Setup}
\label{dataset_setup}
 To evaluate the robustness of the binary stress detection model trained on our collected control dataset, we employed a person-disjoint hold-out method \cite{zhang2024reproducible}. From the self-collected healthy control group (Section \ref{self-dataset-discussion}), 32 subjects were randomly selected for training, referred to as the Control-training set, while 14 subjects were reserved for evaluation, referred to as the Control-testing set. In the remaining datasets, all subjects were used exclusively for evaluation, ensuring a thorough assessment of the model's OOD robustness across diverse subjects and conditions. \textcolor{black}{This setup was maintained in all evaluations except for Sections \ref{RQ-2-other-datasets-training}, \ref{rq5}, and \ref{rq4}, which are discussed below.}


\textcolor{black}{We applied the similar person-disjoint hold-out strategy in Sections \ref{rq4} and \ref{rq5}. However, in Section \ref{rq4}, 12 randomly selected WESAD subjects were used for training, while all remaining data (including other datasets) were used for testing. In Section \ref{rq5}, randomly selected 12 subjects from WESAD and 32 from the control group were used for training, with all remaining data reserved for evaluation.}



\textcolor{black}{In contrast to other evaluations, Section \ref{RQ-2-other-datasets-training} evaluates models trained on the Pre-dose and Post-dose datasets, which contain only 14 and 15 sessions, respectively. To mitigate this data limitation, a 5-fold cross-validation strategy was employed, ensuring person-disjoint train-test splits. Utilizing Figure \ref{fig:datasplit}, the strategy is demonstrated while training was performed on the Post-dose dataset. It was divided into five groups; in each fold, one group was used for testing and the rest for training. Additionally, all participants from the Control and Pre-dose datasets were held out for testing in every fold. In Figure \ref{fig:datasplit}, subjects in red represent training data, while those in black represent evaluation data. This setup ensured a relatively larger training set in each fold.}
%\textcolor{black}{To mitigate this data limitation, a 5-fold cross-validation strategy was employed, ensuring person-disjoint train-test splits. Utilizing Figure \ref{fig:datasplit}, the strategy is demonstrated while training was performed on the Post-dose dataset. It was divided into five groups. In each fold, one group served as the test set while the remaining groups were used for training. In this setting, for all folds, all participants from the Control and Pre-dose datasets were reserved exclusively for testing. This process was repeated across five folds. Figure \ref{fig:datasplit} illustrates this data split: subjects assigned to the evaluation set are shown in black, while those in the training set are shown in red. This setup ensured a relatively larger training set in each fold.}
\begin{figure}
    \centering
    
    \includegraphics[width =0.5\linewidth]{split.PNG}

    \caption{5-fold Subject Independent Cross-Validation}
\vskip -3ex
    \label{fig:datasplit}
 
\end{figure}


\section{Evaluation of HHISS}



This section highlights the generalizability and persistence of the HHISS approach by comparing it with baseline methods across four key questions. Following this, a comprehensive ablation study is performed to provide deeper insights into the performance of the HHISS approach. Finally, we offer empirical justifications for the design choices, shedding light on the factors contributing to its enhanced performance.


\subsection{Evaluating HHISS Generalizability and Adaptability in OUD and Beyond}\label{results-baselines}

In this section, we compare HHISS approach with baseline approaches discuss in Section \ref{experiment-setup} on the topic of four questions.

\subsubsection{Q1: How well can the model perform on the OUD population when trained exclusively on healthy control groups?}\label{rq1}


 As highlighted in the literature \citet{mathur2019unsupervised}, an effective sensing approach must be both persistent and robust, achieving high performance on both in-distribution and out-of-distribution scenarios.
 Table \ref{table:baseline} presents the performance results when trained on the Control-training set and evaluated on the Control-testing set as the in-distribution scenario and on the Pre-dose and Post-dose datasets as out-of-distribution scenarios. Results for each dataset are reported individually, along with aggregated OOD mean accuracy. % and shifts relative to the ERM approach - our benign baseline.

Among the aggregated OOD results, the top-performing baselines—SparseTrain and ERM Pruning—achieved mean accuracies of approximately 69.95\%. In comparison, HHISS outperformed all methods with a mean OOD accuracy of 75\%, demonstrating significantly higher robustness in OOD scenarios.


For in-distribution results, HHISS achieved about 1–7\% higher accuracy compared to the baselines, showcasing state-of-the-art persistence. This indicates that HHISS not only achieves superior OOD robustness but also maintains similar or better performance on in-distribution data. Among the baselines, SparseTrain showed the best overall accuracy across all distributions. However, despite its comparable in-distribution accuracy to HHISS, SparseTrain's OOD mean accuracy was approximately 6\% lower, highlighting HHISS's clear superiority over SparseTrain. \textcolor{black}{It can be observed that clustering methods outperform the ERM baseline on F1 score in the Control group but fail in OOD scenarios. This highlights the heterogeneity between the OUD and Control subjects, making it difficult to assign OUD subjects to any Control group cluster.}


Notably, HHISS excels in OOD robustness under distribution shifts caused by various health conditions, such as Pre- and Post-dose OOD scenarios. However, as shown in Table \ref{table:baseline}, all methods face challenges with Pre-dose datasets. This poor performance is attributed to the higher deviation of stress patterns exhibited by Pre-dose participants (Section \ref{motivation}), even during calm conditions or tasks, which complicates OOD prediction when models are trained exclusively on healthy controls. 

%In summary, HHISS achieves a strong balance between OOD robustness and in-distribution persistence, consistently outperforming baseline methods.

In summary, HHISS not only maintains comparable performance on in-distribution datasets but also significantly boosts performance in out-of-distribution (OOD) scenarios, specifically the OUD population dataset. Its ability to consistently outperform other methods, particularly in OOD settings, demonstrates its OOD robustness across a variety of conditions. This makes HHISS a reliable model for real-world applications involving the OUD population.

%Individual results across all datasets reveal that HHISS excels not only in the general population within the control group but also performs robustly under distribution shifts caused by health conditions, such as pre- and post-dose OOD scenarios. However, as shown in Table \ref{table:baseline}, all methods face challenges with Pre-dose datasets. This poor performance is attributed to higher stress levels exhibited by Pre-dose participants (Section \ref{motivation}), even during calm conditions or tasks, which complicates OOD prediction when models are trained exclusively on healthy controls.
%\textit{Persistence} refers to a model's capacity to retain its performance on the original source domain even after the application of domain generalization or adaptation techniques \cite{mathur2019unsupervised}. This ensures the model balances adaptation to new domains while maintaining effectiveness in the original domain. 
%Notably, HHISS outperforms the baselines on the Control dataset. Although the best baseline, sparseTrain, achieves strong performance on the Control dataset, it exhibits degraded performance on the Predose and Postdose datasets, indicating a lack of generalizability. 

% \textcolor{black}{ Harshit will refactor this based on results} 
%\par 
%In summary, HHISS strikes a strong balance between OOD robustness and persistence, outperforming baselines.
 
\begin{table*}[]
\resizebox{0.85\linewidth}{!}{
\begin{tabular}{l|ll|lllll}
\hline
            & \multicolumn{2}{l|}{In distribution} & \multicolumn{5}{l}{Out of distribution}                                                                                    \\ \hline
            & \multicolumn{2}{l|}{Control}         & \multicolumn{2}{l}{Pre-dose} & \multicolumn{2}{l}{Post-dose} &                   \multicolumn{1}{|l}{OOD Mean}                                          \\ \hline
Approach    & Accuracy          & Macro F1         & Accuracy      & Macro F1     & Accuracy      &Macro F1      & \multicolumn{1}{|l}{Accuracy}\\ \hline
\textcolor{black}{Majority Vote}         & 0.5             & 0.4305           & 0.5         & 0.4302        & 0.5        & 0.4366        &       \multicolumn{1}{|l}{0.5}                                                \\ \hline
ERM         & 0.767             & 0.7475           & 0.654         & 0.658        & 0.6884        & 0.7083        &       \multicolumn{1}{|l}{0.6712}                                                \\ \hline

\textcolor{black}{Feature Select}        &   0.781         &    0.756       &    0.6278      &    0.6348    &   0.6847     &    0.6951   &       \multicolumn{1}{|l}{0.6562}                                                \\ \hline

IRM         & 0.7942            & 0.7781           & 0.6751        & 0.6723       & 0.7035        & 0.6795        &        \multicolumn{1}{|l}{0.6893}                                               \\ \hline
Vrex        & 0.7738            & 0.7456           & 0.6327        & 0.6435       & 0.7204        & 0.7267        &    \multicolumn{1}{|l}{0.6765}                                                  \\ \hline
DRO         & 0.7768            & 0.742            & 0.6597        & 0.669        & 0.7321        & 0.7341        &      \multicolumn{1}{|l}{0.6959}                                                 \\ \hline
TTP         & 0.7649            & 0.7328           & 0.6394        & 0.6418       & 0.7139        & 0.7043        & \multicolumn{1}{|l}{0.6766}                                                   \\ \hline
\textcolor{black}{DANN}         & 0.7703            & 0.7404           & 0.6717        & 0.6522       & 0.697        & 0.6591        & \multicolumn{1}{|l}{0.6843}                                                   \\ \hline
\textcolor{black}{MLDG}         &0.7953	&0.7755	&0.6543&	0.6658&	0.7179&	0.7314
        & \multicolumn{1}{|l}{0.6861}                                                   \\ \hline
\textcolor{black}{Clustering}          & 0.7609            & 0.7911           & 0.6589        & 0.6539       & 0.6799        & 0.6713        & \multicolumn{1}{|l}{0.6694}                                                   \\ \hline
ERM pruning & 0.7733            & 0.7173           & 0.674         & 0.6758       & 0.725         & 0.6854        &     \multicolumn{1}{|l}{0.6995}                                                  \\ \hline



SparseTrain & 0.8285            & 0.8236           & 0.6634        & 0.6827       & 0.7299        & 0.7538        &   \multicolumn{1}{|l}{0.6966}                                                   \\ \hline
KD          & 0.7863            & 0.764            & 0.6403        & 0.6429       & 0.7336        & 0.7231        &    \multicolumn{1}{|l}{0.6869}                                                  \\ \hline
HHISS       & 0.8371            & 0.8206           & 0.7181        & 0.717        & 0.7817        & 0.7942        & \multicolumn{1}{|l}{0.7500}                                                      \\ \hline
\end{tabular}
}
\caption{Baseline performance evaluated using balanced accuracy and macro F1 score}
\vskip -5ex
\label{table:baseline}

\end{table*}




\subsubsection{Q2: How does the heterogeneity in OUD data affect model training across different OUD conditions?}\label{RQ-2-other-datasets-training}

As established in Section \ref{motivation}, there is significant heterogeneity across OUD conditions (Pre-dose, Post-dose) and Control. This section evaluates how this heterogeneity influences the performance based on the dataset used for training. Two scenarios were considered: training on the Pre-dose dataset and training on the Post-dose dataset, with evaluations conducted on the Control-testing, Pre-dose, and Post-dose datasets. The results of training on the Pre-dose and Post-dose datasets are presented in Table \ref{tab:predose} and Table \ref{tab:postdose}, respectively.

%To gain a deeper understanding of the heterogeneity within the OUD dataset, we iteratively trained the model using the Pre-dose and Post-dose datasets and evaluated its performance on the Control, Pre-dose, and Post-dose datasets. Given that the Pre-dose and Post-dose datasets contain only 14 and 15 sessions, respectively, we employed a 5-fold cross-validation approach when using them for training. In each fold, 3 sessions were allocated for evaluation, while the remaining sessions were used for training, ensuring a relatively larger training set. The results obtained from training on the Pre-dose and Post-dose datasets are summarized in Table \ref{tab:predose} and Table \ref{tab:postdose}, respectively.


When trained on the Pre-dose dataset, the HHISS model exhibited superior performance on the Pre-dose dataset itself, but comparing the results in Table \ref{table:baseline}, the performance on the Control and Post-dose datasets are lower.
%When trained on the Pre-dose dataset, the HHISS model exhibited superior performance on the Pre-dose dataset itself but experienced a decline in performance on the Control and Post-dose datasets. Particularly, compared to the results in Table \ref{table:baseline}, the accuracies on the Control and Pre-dose datasets are lower. 
However, among all approaches, HHISS achieved the best performance across all datasets. Notably, when evaluated on the Post-dose dataset, HHISS outperformed the best baseline with a 6\% improvement in accuracy. Similarly, as shown in Table \ref{tab:postdose}, when trained on the Post-dose dataset, the HHISS model achieved the highest accuracy on the Post-dose dataset but exhibited decreased accuracy on the Control-testing and Pre-dose datasets relative to Table \ref{table:baseline}. This trend was consistently observed across various baselines, including SparseTrain and ERM pruning approaches. Notably, HHISS outperformed all baselines, particularly on the Pre-dose dataset, achieving a 4\% improvement in accuracy compared to the best baseline.



These results show that training on the Pre-dose dataset reduces performance on the Post-dose dataset and vice versa, with a more significant decline compared to the Control-testing dataset. This reflects a greater heterogeneity between the Pre-dose and Post-dose datasets. For the Control-testing dataset evaluation, models trained on Post-dose data performed better than those trained on Pre-dose data. This suggests Post-dose data is more similar to Control data, aligning with observations in Section \ref{insights}.



%These evaluations demonstrate that training the model on the Pre-dose dataset leads to reduced performance on the Post-dose dataset and vice versa. The performance decline is more pronounced compared to training on the Control dataset, underscoring the higher heterogeneity between the Pre-dose and Post-dose datasets, as highlighted in stress conditions reported in Table \ref{tab:right}.
%For evaluations on the Control dataset, training the model on the Post-dose dataset resulted in better performance compared to training on the Pre-dose dataset. This trend, observed across all models, suggests that Post-dose data is more similar to Control data than Pre-dose data, aligning with the preliminary analysis in Tables \ref{tab:left} and \ref{tab:right}.


This section's evaluations highlight that the two OUD conditions, Pre-dose and Post-dose, exhibit significant heterogeneity between each other while being relatively homogeneous within their own distributions. This homogeneity within Pre- and Post-dose datasets limits the diversity of stress patterns they incorporate, making them less effective for training OOD models. Consequently, models such as HHISS or baseline approaches trained on these datasets struggle to capture broader invariant stress patterns, leading to lower OOD robustness compared to models trained on the Control dataset. Our discussion in Section \ref{group-variability} further supports this observation.





This finding highlights an \emph{important insight:} 

Developing robust OOD stress detection models does not necessarily require data from a wide range of disease conditions, especially when collecting such data is infeasible. For instance, obtaining labeled data from all medication states in the OUD population is infeasible, and training with only Pre- or Post-dose data led to suboptimal results.
%developing robust OOD stress detection models does not require collecting data from diverse disease conditions, particularly in cases where it is impractical, and only data from partial disease conditions are available, such as gathering data from all medication conditions for the OUD population is infeasible and only utilizing Pre- or Post-dose during training resulted in a subpar results. 
Instead, leveraging diverse Control data is an effective approach for achieving superior accuracy across all distributions. The proposed HHISS framework, with its human-centered novel design, enhances OOD stress detection robustness while utilizing only control data for training, making it especially valuable for health applications where collecting diverse datasets is challenging.




\begin{table}[h!]
    \centering
    \begin{minipage}{0.48\linewidth}
        \centering
        \resizebox{\linewidth}{!}{
        \begin{tabular}{l|l|ll|l}
\hline
            & In distribution & \multicolumn{2}{l|}{Out of distribution} & Overall  \\ \hline
Approach    & Pre-dose       & Control            & Post-dose            & Mean Acc \\ \hline
ERM         & 0.7454          & 0.7078             & 0.6255              & 0.6929   \\ \hline
IRM         & 0.7443          & 0.749              & 0.6662              & 0.7198   \\ \hline
Vrex        & 0.7791          & 0.7473             & 0.6158              & 0.714    \\ \hline
DRO         & 0.7467          & 0.767              & 0.6702              & 0.7279   \\ \hline
TTP         & 0.7407          & 0.7174             & 0.6407              & 0.6996   \\ \hline
\color{black} DANN         & 0.7157          & 0.6934              & 0.5934              &  0.6675  \\ \hline
\color{black} MLDG         & 0.7262          & 0.7283              & 0.6202              &  0.6917  \\ \hline

\color{black} Clustering & 0.7606          & 0.7035             & 0.6434              & 0.7025   \\ \hline
ERM pruning & 0.7911          & 0.7487             & 0.7037              & 0.7478   \\ \hline
KD          & 0.7322          & 0.7777             & 0.6372              & 0.7157   \\ \hline
SparseTrain & 0.773           & 0.7689             & 0.6657              & 0.7359   \\ \hline

HHISS       & 0.8013          & 0.7875             & 0.7683              & 0.7857   \\ \hline
\end{tabular}
        }
        \caption{Accuracy for Models Trained with Pre-Dose Data}
        \label{tab:predose}
    \end{minipage}%
    \hfill
    \begin{minipage}{0.48\linewidth}
        \centering
        \resizebox{\linewidth}{!}{
        \begin{tabular}{l|l|ll|l}
\hline
            & In distribution & \multicolumn{2}{l|}{Out of distribution} & Overall  \\ \hline
Approach    & Post-dose       & Control            & Pre-dose            & Mean Acc \\ \hline
ERM         & 0.7164          & 0.7395             & 0.6068              & 0.6876   \\ \hline
IRM         & 0.7517          & 0.7548             & 0.6322              & 0.7129   \\ \hline
Vrex        & 0.7096          & 0.7533             & 0.6356              & 0.6995   \\ \hline
DRO         & 0.7219          & 0.7496             & 0.6222              & 0.6979   \\ \hline
TTP         & 0.7383          & 0.723              & 0.6237              & 0.695    \\ \hline
\color{black} DANN         & 0.7413          & 0.7008             & 0.6424              & 0.6948   \\ \hline
\color{black} MLDG         & 0.7073          & 0.7114             & 0.6771              &  0.6986 \\ \hline

\color{black} Clustering & 0.7101          & 0.7160             & 0.6413              & 0.6891   \\ \hline

ERM pruning & 0.7806          & 0.7601             & 0.6538              & 0.7315   \\ \hline
KD          & 0.7241          & 0.7554             & 0.6385              & 0.706    \\ \hline
SparseTrain & 0.7619          & 0.7899             & 0.6571              & 0.7363   \\ \hline

HHISS       & 0.8153          & 0.8024             & 0.6983              & 0.772    \\ \hline
\end{tabular}
}
        \caption{  Accuracy for Models Trained with Post-dose Data}
        \label{tab:postdose}
    \end{minipage}
\end{table}


\subsubsection{Q3: Can the model effectively handle unseen stressors?}\label{rq3}

Evaluating generalizability to unseen stressors is essential for expanding and evaluating the model's OOD applicability across diverse domains and scenarios. 
However, our collected datasets evaluated earlier were collected using the same protocol and thus involve identical stressors, as discussed in Section \ref{self-dataset-discussion}.

To evaluate OOD robustness with unseen stressors, we tested our model trained on the Control dataset against two off-the-shelf stress detection datasets, WESAD and AffectiveROAD. These datasets feature different data collection setups and stress-inducing factors. Figure \ref{fig:offtheshelf} illustrates the evaluation accuracy on the WESAD and AffectiveROAD datasets, with the model trained on the Control-training dataset using different approaches. On both datasets, the HHISS model outperforms the baselines, demonstrating its superior OOD robustness.

Notably, among the two datasets, all models demonstrate superior OOD performance on the WESAD dataset. This is because the WESAD dataset was collected in a controlled lab environment and includes some stressors (e.g., arithmetic tasks) similar to those used in the protocol for collecting our control dataset, as discussed in Section \ref{self-dataset-discussion}, which the models were trained on.

In contrast, the AffectiveROAD dataset was collected during real driving sessions, involving entirely different stressors. Despite this significant distribution shift, HHISS achieves an OOD accuracy of approximately 74\%, highlighting its practical effectiveness.





%As shown in Figure \ref{fig:offtheshelf}, when evaluating on the WESAD dataset, HHISS outperforms the baselines significantly. Notably, compared to trained with Post-dose, the trained with Pre-dose model attains superior performance on this dataset. 


%and training with the Pre-dose dataset, our approach achieved competitive results, while the other two baselines showed diminished performance compared to training with other datasets. This outcome can be attributed to the subject-wise feature heterogeneity present in the Pre-dose dataset. Participants with opioid use disorder (OUD) in this study had varying histories of opioid use. Due to IRB requirements, we were unable to collect detailed opioid use histories from participants; however, we learned that some had been using opioids for several years, while others had only started a few months prior. This heterogeneity led to variations in physiological patterns, further hindering the baselines' ability to learn consistent patterns. In contrast, our HHISS approach effectively focused on invariant features, achieving performance comparable to training with the Control dataset.

%Additionally, our approach consistently outperformed all other baselines on both evaluation datasets, further highlighting the superiority of HHISS in stress detection tasks.



\begin{figure}
    \centering
    
    \includegraphics[width =0.5\linewidth]{test_wesad.png}

    \caption{Evaluate on off-the-shelf dataset when train on Control dataset}
\vskip -3ex
    \label{fig:offtheshelf}
 
\end{figure}

\subsubsection{Q4: Is HHISS specifically tailored to be trained on our dataset, or can it be effectively trained on other datasets as well?}\label{rq4}

This section examines whether HHISS maintains superior OOD robustness when trained on off-the-shelf datasets. Successfully doing so would demonstrate that its ability to learn invariant stress features is not limited to our collected dataset, highlighting its versatility and reliability for stress detection across diverse real-world scenarios and populations.

 \begin{table}[]
\centering
\resizebox{0.7\linewidth}{!}{
\begin{tabular}{l|r|rrr}
\hline
            & \multicolumn{1}{l|}{In distribution}                                 & \multicolumn{3}{l}{Out of distribution}                             \\ \hline
Dataset     & \multicolumn{1}{l|}{WESAD}        & \multicolumn{1}{l}{Control}      & \multicolumn{1}{l}{Predose}      & \multicolumn{1}{l}{Postdose}     \\ \hline
ERM         & 0.8771                           & 0.6911                            & 0.5306                           & 0.5563                           \\ \hline
IRM         & 0.878                            & 0.7258                            & 0.5638                           & 0.619                            \\ \hline
DRO         & 0.8624                           & 0.7299                            & 0.5569                           & 0.6424                           \\ \hline
Vrex        & 0.8625                           & 0.7271                            & 0.5866                           & 0.6411                           \\ \hline
TTP &0.7292&0.6806&0.5018&0.5833 \\ \hline

\color{black} DANN        &     0.7816                             & 0.701                                  &    0.566                              &        0.6068                          \\ \hline
\color{black} MLDG        &     0.7682                             & 0.7106                                  &    0.5486                              &        0.6154                          \\ \hline
\color{black} Clustering  & 0.7529                        &  0.7113                           &   0.5434                          & 0.6021                             \\ \hline
ERM pruning  & 0.8593                           & 0.7649                            & 0.5864                           & 0.676                            \\ \hline
KD          & 0.8847                           & 0.7217                            & 0.5165                           & 0.6132                           \\ \hline
SparseTrain & 0.8753                           & 0.7261                            & 0.5524                           & 0.6461                           \\ \hline
HHISS       & 0.864                            & 0.8204                            & 0.6324                           & 0.7023                           \\ \hline
\end{tabular}
}
\caption{Balanced accuracy of models trained on WESAD datasets.}
\vskip -5ex
\label{table:WESAD}
\end{table}

\textcolor{black}{Table \ref{table:WESAD} compares HHISS to baseline methods when trained on the WESAD dataset, following the evaluation setup discussed in Section \ref{dataset_setup}. WESAD dataset features less versatile stressors, consisting of only two stress-inducing tasks, including public speaking—a task not included in our data collection protocol, as noted in Section \ref{self-dataset-discussion}. The limited variety of stressors makes model training simpler by requiring fewer stress patterns to be learned, leading to higher in-distribution performance on the WESAD test set across all methods. However, when tested on out-of-distribution (OOD) data, performance drops for all approaches due to limited exposure to diverse conditions. Still, HHISS consistently outperforms all baselines, demonstrating strong robustness and generalization. These results highlight the need for training on datasets with more diverse stressors to improve OOD performance and show that HHISS remains effective even when trained on external data.}

%Figure \ref{fig:train_on_wesad} compares HHISS to baseline methods when trained on the WESAD dataset, which features less versatile stressors, consisting of only two stress-inducing tasks, including public speaking—a task not included in our data collection protocol, as noted in Section \ref{self-dataset-discussion}. The limited variety of stressors in WESAD results in lower overall performance. However, HHISS consistently outperforms all baselines, highlighting its effectiveness. This evaluation also underscores the importance of training on a diverse range of stressors to achieve improved OOD performance.




\subsubsection{\textcolor{black}{Q5: Performance analysis of HHISS trained on datasets with different distributions.}}\label{rq5}

\textcolor{black}{This section examines whether HHISS maintains strong OOD robustness when trained jointly on two distinct datasets with distributional heterogeneity. While training solely on self-collected healthy data may lead to a better fit due to its consistency, we also evaluated the HHISS model’s performance when trained on both the WESAD and Control datasets. These datasets exhibit distributional differences, as discussed in Section \ref{lmm_public_data}, and are evaluated using the setup described in Section \ref{dataset_setup}. As shown in Table \ref{table:WESADcontrol}, HHISS outperforms all baseline methods across all test distributions. Compared to results in Tables \ref{table:baseline} and \ref{table:WESAD}, its in-distribution performance improves slightly when trained on the combined dataset. Notably, all baseline methods also show enhanced performance on the Control test set under joint training. However, performance on the WESAD test set declines slightly, likely due to WESAD’s underrepresentation in the combined training set (12 WESAD subjects vs. 36 Control subjects).}

\textcolor{black}{Importantly, when evaluated on the out-of-distribution Pre-dose and Post-dose OUD test sets, HHISS performs slightly worse than when trained solely on the Control dataset (see Table \ref{table:baseline}). This indicates that merging datasets with different distributions, like our Control set and WESAD, does not enhance OOD performance. Instead, it poses challenges for domain generalization methods, including HHISS, in learning invariant feature representations across mismatched distributions of training instances, potentially limiting generalization to unseen distributions.}
%\textcolor{black}{This section examines whether HHISS maintains strong OOD robustness when trained jointly on two distinct datasets. While training solely on self-collected healthy data may lead to a better fit due to its consistency, we evaluate the model’s performance when trained on both the WESAD and Control datasets. As shown in Table \ref{table:WESADcontrol}, all baseline methods show improved performance on the Control dataset when trained jointly, compared to training only on Control. However, performance on the WESAD dataset slightly declines relative to training solely on WESAD. This drop is likely due to the heterogeneity between the two datasets, as well as the under representation of WESAD in the combined training set (12 subjects in WESAD vs. 36 in Control). Notably, our HHISS model outperforms the best baseline (ERM pruning) by 3\% on the Control dataset and surpasses the best baseline (MLDG) by 4.98\% on the WESAD dataset, demonstrating its strong ability to handle dataset heterogeneity. Nevertheless, its performance in the OOD setting is slightly worse than when trained only on the Control dataset. This suggests that including WESAD in the training data does not benefit generalization to entirely unseen distributions.}


% \textcolor{red}{The participants in the Control dataset have a higher mean age with greater variability ($30.71 \pm 9.67$ years) compared to those in the WESAD dataset ($27.5 \pm 2.4$ years). These differences in age demographics is important as prior research suggests that age influences physiological responses to stress \cite{kudielka2004hpa,chida2008chronic}.}

%\textcolor{purple}{As discussed in Section \ref{lmm_public_data}, our statistical analysis reveals a substantial distributional shift between the WESAD and Control datasets, with 19 features showing statistically significant differences across both the stress and calm tasks. This is a larger number than in other pairwise comparisons: Control vs. Pre-dose (17 features), Control vs. Post-dose (5 features), and WESAD vs. AffectiveRoad (9 features). These results suggest that the WESAD and Control datasets display greater heterogeneity in terms of features distribution between the datasets. The heterogeneity may arise from variations in the contextual implementations of the TSST. For instance, the WESAD dataset\cite{schmidt2018introducing} includes a public speaking task as part of the stress induction protocol, which was not included in our Control dataset. Additionally, demographic factors such as participant age \cite{kudielka2004hpa,chida2008chronic} may further contribute to the heterogeneity observed between the two datasets. Identification of cause of this heterogeneity between our Control dataset and WESAD dataset would require further investigation and is out of the scope of this paper. Moreover, the presence of heterogeneity in the training data makes it more challenging to learn invariant features across datasets, leading to a slight drop in OOD performance for the Pre-dose and Post-dose datasets (Table \ref{table:WESADcontrol}) compared to the baseline results (Table \ref{table:baseline}).
%}


 \begin{table}[]
\centering
\resizebox{0.7\linewidth}{!}{\color{black} 
\begin{tabular}{l|ll|ll}
\hline
            & \multicolumn{2}{l|}{In distribution}                                 & \multicolumn{2}{l}{Out of distribution}                             \\ \hline
Dataset     & \multicolumn{1}{l}{WESAD}        & \multicolumn{1}{l|}{Control}      & \multicolumn{1}{l}{Predose}      & \multicolumn{1}{l}{Postdose}     \\ \hline
ERM         & 0.7368                           & 0.8018                            & 0.608                            & 0.6691                           \\ \hline
IRM         & 0.7002                           & 0.7756                            & 0.6221                           & 0.6236                           \\ \hline
DRO         & 0.7048                           & 0.818                             & 0.6119                           & 0.6711                           \\ \hline
Vrex        & 0.741                           & 0.7927                            & 0.613                           & 0.226                           \\ \hline
TTP  &0.6635&0.8124&0.6044&0.6819 \\ \hline
\color{black} DANN  &0.7459&0.7455&0.5989&0.6565 \\ \hline
\color{black} MLDG        &     0.7714                             & 0.7692                                  &    0.5865                              &        0.631                          \\ \hline
ERM Pruning  & 0.7425                           & 0.8266                            & 0.6258                           & 0.6695                           \\ \hline

\color{black} Clustering  & 0.6913                        &  0.8115                           &   0.5726                          & 0.6232                             \\ \hline
KD          & 0.7564                           & 0.7849                            & 0.6123                           & 0.7077                           \\ \hline
SparseTrain & 0.7614                           & 0.7979                            & 0.6251                            & 0.7253                           \\ \hline
HHISS       & 0.8212                           & 0.8566                            & 0.6911                           & 0.7708                           \\ \hline
\end{tabular}
}
\caption{Balanced accuracy of models trained on the combined WESAD and Control datasets.}
\vskip -5ex
\label{table:WESADcontrol}
\end{table}


\subsubsection{\textcolor{black}{Q6: Can Models Trained in the lab Settings Generalize to In-the-Wild field Scenarios?}}\label{rq6}
\textcolor{black}{In real-world settings, stress often arises from a complex mix of social, cultural, and psychological factors, which are difficult to replicate in controlled environments. Prior evaluations in Section \ref{rq5} using datasets like WESAD and AffectiveRoad primarily focus on stress induced by isolated stressors, such as those induced by controlled laboratory settings or driving tasks. To better assess model performance and generalizability under in-the-wild field conditions, we evaluated our HHISS model trained on Control data on two real-world field datasets: the Nurse Work Stress dataset (Section \ref{nurse-dataset} ) and our self-collected OUD Daily Stress dataset (Section \ref{OUD-field-dataset} ). Table \ref{table:in-the-wild} presents the evaluation result of the HHISS model and other domain generalization baselines in these in-the-wild field settings. Consistently, HHISS achieves the best performance on both datasets, highlighting its robustness and ability to generalize under complex, in-the-wild field conditions.}

\par 
\textcolor{black}{Notably, the OUD Daily Stress dataset includes five days of physiological data from two OUD individuals, with stress self-reports collected three times per day. As shown in Figure \ref{fig:ema}, participants reported more stress events in the evening compared to the morning. Since for these participants, methadone is typically administered in the morning (Section \ref{participant-description-OUD}), we hypothesize that its effects may suppress stress responses earlier in the day, which then diminish over time, peaking by evening. This dataset allows us to assess intra-OUD-individual generalizability across different times of day. As shown in Table \ref{fig:survey_window}, the HHISS model maintains consistent performance, achieving mean balanced accuracies of 63.27\% in the morning, 72.07\% at noon, and 69.26\% in the evening, demonstrating its ability to generalize within OUD individuals across time in real-world, in-the-wild field settings. Notably, performance was lowest in the evening, potentially due to greater physiological variability associated with higher stress and vulnerability reported by the OUD participants at that time, which may have introduced the highest distribution shifts that challenged the model.}


%In real-world scenarios,  stress can arise due to a variety of social, cultural, and psychological factors. Evaluations using WESAD and AffectiveRoad datasets typically focus on isolated stressors, such as those induced by controlled laboratory settings or driving tasks. To better assess model performance and generalizability under in-the-wild field conditions, we evaluated our HHISS model trained on Control data on two real-world field datasets: the Nurse Work Stress dataset (Section \ref{nurse-dataset} ) and our self-collected OUD Daily Stress dataset (Section \ref{OUD-field-dataset} ). 

%Table \ref{table:in-the-wild} presents the result of the HHISS model and other domain generalization baselines in these in-the-wild field settings. Consistently, HHISS achieves the best performance on both datasets, demonstrating the effectiveness and generalizability of our approach. 

 \begin{table}[]
\centering
\resizebox{0.4\linewidth}{!}{\color{black}
\begin{tabular}{l|llll}
\hline
            & \multicolumn{2}{l}{Nurse Stress} & \multicolumn{2}{l}{OUD Daily stress} \\ \hline
            & Acc            & Macro F1        & Acc             & Macro F1          \\ \hline
ERM         & 0.5704         & 0.5565          & 0.5157          & 0.5004            \\ \hline
IRM         & 0.5882          & 0.5881          & 0.5279           & 0.5277            \\ \hline
DRO         & 0.5849         & 0.5652          & 0.5666           & 0.5088            \\ \hline
Vrex        & 0.5773          & 0.5529          & 0.5557          & 0.4974            \\ \hline
\color{black} DANN        &         0.5779       &   0.5771              &    0.6003             &  0.5924                 \\ \hline
MLDG        &         0.0.5743       &   0.0.5741              &    0.6038            &  0.6027                \\ \hline

Clustering  & 0.5856         &   0.5761        &     0.5512            &    0.5004              \\ \hline
ERM pruning& 0.5938         & 0.5751          & 0.6202          & 0.6133            \\ \hline
KD          &   0.5728             &    0.5604             & 0.5642          & 0.5048            \\ \hline
SparseTrain &   0.5831             &    0.5697             & 0.6258          & 0.5927            \\ \hline
HHISS       & 0.6178         & 0.6141          & 0.7274          & 0.7231            \\ \hline
\end{tabular}
}
\caption{Models performance under in-the-wild field setup.}
\vskip -5ex
\label{table:in-the-wild}
\end{table}

\begin{figure}[h!]
    \centering
    \includegraphics[scale=0.48]{wild.png} 
    \caption{\textcolor{black}{Balanced accuracy of HHISS model across different survey time windows}}
    \label{fig:survey_window}
    \vskip -3ex
\end{figure}
\iffalse
 \begin{table}[]
\centering
\resizebox{0.3\linewidth}{!}{ \color{black}
\begin{tabular}{|l|l|}
\hline
HHISS   & Mean accuracy \\ \hline
Morning & 0.6327  \\ \hline
Noon    & 0.7207  \\ \hline
Evening & 0.6926  \\ \hline
\end{tabular}
}
\caption{Balanced accuracy of HHISS model across different survey time windows }
\vskip -5ex
\label{table:survey_window}
\end{table}


\fi

\subsection{Ablation study}\label{results-ablation}
This section discusses a comprehensive ablation by modifying different components of HHISS, pruning amount during training, and network complexity. All evaluations in this section follow the dataset setup defined in Section \ref{experiment-setup}, with the model trained on the Control-training set and evaluated on the Control-testing, Pre-dose, and Post-dose sets.
%\par 
\subsubsection{Ablation on Approach Components}\label{ablation-approach-componenets}
Figure \ref{fig:ablation} shows the ablation evaluation, where different components of HHISS are removed or replaced while keeping other components unchanged. Performance drops with the removal of any component. 

\textcolor{black}{Notably, the first step of HHISS, as outlined in Section \ref {Algo:IRM-training-1}, is to develop an embedding generation network through IRM regularization that enables learning causally invariant feature extraction for stress detection across all individuals from the training set (considering them as domains). Two of our baselines, DRO and Vrex, also incorporate regularization to enable the extraction of robust features/embeddings, but our ablation study showed that replacing IRM with either method led to inferior results. DRO regularization encourages the models to learn embeddings whose worst-case performance across domains (here individuals) is optimized, typically by focusing on domains with higher loss, often leading to aligned embeddings that reduce maximum risk. However, it does not explicitly promote causal invariance. Vrex regularization encourages the model to learn embeddings/features that yield consistent empirical risk across training domains (individuals in the training set) by penalizing the variance in losses. While it focuses on risk stability rather than feature alignment, V-REx also lacks a causal perspective. In stress detection, physiological signals often shift significantly across domains, such as between control and pre- or post-dose OUD groups. Thus, leveraging causal invariance—as IRM does—enables better generalization across these heterogeneous conditions.}


Moreover, ablation or replacement of the pruning component causes the largest decline. This underscores the key role of subject-wise pruning in improving generalizability, while other components also enhance overall effectiveness.







\begin{figure}[h!]
    \centering
    \includegraphics[scale=0.48]{ablation.png} 
    \caption{Accuracy variations relative to HHISS when different components are removed.}
    \label{fig:ablation}
    \vskip -3ex
\end{figure}




\subsubsection{Ablation on Pruning Amount}
Figure \ref{fig:radar_chart_prune_amount} illustrates the impact of various pruning levels by presenting the mean accuracy achieved across Control-testing, Pre-dose, and Post-dose datasets. Both ERM pruning and HHISS achieved the best performance at 50\% pruning, while SparseTrain performed best at 80\% pruning. The pruning amount is a hyperparameter that needs to be tuned for each approach to achieve optimal performance. Pruning introduces a trade-off: slight pruning preserves more information, while aggressive pruning focuses on retaining only invariant features \cite{zhou2022sparse}. However, excessive pruning can remove too much information, including invariant features, leading to performance degradation. Notably, our approach outperformed the baselines across all pruning levels, emphasizing the effectiveness of HHISS.

\begin{figure}[htbp]
    \centering
    
    
    

\end{figure}

\begin{figure}[h]
    \centering
    % Figure 1
    \begin{minipage}{0.48\textwidth}
        \centering
        \includegraphics[width =0.88\linewidth]{prune.png} 
        \caption{Performance comparison of HHISS at different prune amounts (PA).}
        \label{fig:radar_chart_prune_amount}
    \end{minipage}
    \hfill
    % Figure 2
    \begin{minipage}{0.48\textwidth}
        \centering
        \includegraphics[width =0.88\linewidth]{hidden.png} 
        \caption{Performance comparison of HHISS for different hidden size (HS).}
        \label{fig:hidden_size}
    \end{minipage}
\end{figure}
\vskip -3ex
\subsubsection{Ablation on Network Complexity}

During our evaluation, the neural network consists of four hidden layers of the same size. Figure \ref{fig:hidden_size} compares different hidden layer sizes using ERM, SparseTrain, and HHISS by presenting the mean accuracy achieved across Control-testing, Pre-dose, and Post-dose datasets. All approaches achieve best performance with a size of 256.  Larger models capture more abstract features, benefiting datasets similar to the training set but hurting generalizability in datasets with larger distribution shifts, like Pre-dose and Post-dose. Overall, HHISS outperforms SparseTrain and ERM across all model sizes.


\subsubsection{\textcolor{black}{Ablation on backbone Network}}\label{backbone-abltation}
\textcolor{black}{This section explores how different backbone architectures affect HHISS and our baseline domain generalization approaches. Since the input features are non-sequential, we evaluate two alternative backbones: a ResNet architecture with 1D convolutional layers, and a multi-head attention mechanism applied along the feature dimension.  The results, presented in Tables \ref{tab:resnet} and \ref{tab:mhd}, show that compared to DNN backbone results shown in Table \ref{table:baseline}, by utilizing other backbones, all baselines achieve improved performance in the in-distribution setting. However, they exhibit reduced performance in the out-of-distribution setting, particularly when using MHA as the backbone. This decline may be attributed to overfitting due to the higher complexity of these architectures. In contrast, our HHISS method consistently outperforms all baselines across both in-distribution and out-of-distribution scenarios with these backbones. These results suggest that enhancing the backbone can improve generalization within known distributions, but may not extend to entirely unseen distributions. Lastly, we emphasize that our HHISS method is compatible with different model architectures and consistently delivers strong performance. }


\begin{table}[h!]
    \centering
    \begin{minipage}{0.48\linewidth}
        \centering
        \resizebox{\linewidth}{!}{ \color{black}
        \begin{tabular}{l|l|ll}
\hline
            & \multicolumn{1}{l|}{In distribution} & \multicolumn{2}{l}{Out of distribution}                            \\ \hline
Dataset    & \multicolumn{1}{l|}{Control}     & \multicolumn{1}{l}{Predose} & \multicolumn{1}{l}{Postdose} \\ \hline
ERM         & 0.7824                               & 0.6545                          & 0.7166                           \\ \hline
IRM         & 0.7959                               & 0.6736                          & 0.7152                           \\ \hline
DRO         & 0.7948               & 0.6805            & 0.7041          \\ \hline
Vrex        & 0.8065                               & 0.6456                          & 0.7287                           \\ \hline

ERM pruning & 0.8086                               & 0.6671                          & 0.7272                           \\ \hline
KD          & 0.802                               & 0.676                         & 0.727                           \\ \hline
SparseTrain & 0.7851                & 0.6794            & 0.7413            \\ \hline

HHISS       & 0.8165                               & 0.7445                           & 0.7684                           \\ \hline
\end{tabular}
        }
        \caption{Balanced Accuracy with ResNet as the Backbone}
        \label{tab:resnet}
    \end{minipage}%
    \hfill
    \begin{minipage}{0.48\linewidth}
        \centering
        \resizebox{\linewidth}{!}{ \color{black}
        \begin{tabular}{l|l|ll}
\hline
            & \multicolumn{1}{l|}{In distribution} & \multicolumn{2}{l}{Out of distribution}                            \\ \hline
Dataset    & \multicolumn{1}{l|}{Control}     & \multicolumn{1}{l}{Predose} & \multicolumn{1}{l}{Postdose} \\ \hline
ERM         & 0.8063                               & 0.584                           & 0.5536                           \\ \hline
IRM         & 0.8029                               & 0.609                          & 0.6114                           \\ \hline
DRO         & 0.7984                & 0.6277           & 0.5794            \\ \hline
Vrex        & 0.7917                               & 0.5935                          & 0.5728                           \\ \hline

ERM pruning & 0.8141                               & 0.6086                          & 0.6007                           \\ \hline
KD         & 0.783                                     &           0.5866                        &   0.5427                               \\ \hline
SparseTrain & 0.7916                & 0.5895            & 0.647             \\ \hline

HHISS       & 0.7922                               & 0.6349                          & 0.6708                          \\ \hline
\end{tabular}
}
        \caption{Balanced Accuracy with MHA as the Backbone}
        \label{tab:mhd}
    \end{minipage}
\end{table}





%\subsection{Sensitivity Analysis}\label{result-sensitivity}

%This section investigates HHISS's sensitivity across majority vs. minority groups, dependence on the training dataset and its comprehensiveness, and input modalities.


\subsubsection{Remove one of modalities} \label{ablation_modality}
This section examines the impact of excluding specific input modalities on HHISS's performance, with detailed results presented in figure \ref{fig:Modality_ablation}. While removing skin temperature, heart rate, and BVP results in a slight performance decline, excluding EDA, HRV, and accelerometer data leads to a significant degradation in performance. This observation aligns with existing research, as EDA and HRV are considered reliable indicators of stress response \cite{ghiasi2020assessing,szakonyi2021efficient}. Interestingly, excluding the accelerometer modality leads to mixed results: a slight performance improvement on the Control dataset but a significant performance drop in the Pre-dose and Post-dose datasets. This suggests that the accelerometer enhances the model's generalizability. Its removal appears to result in overfitting to the Control group's data. This phenomenon may stem from differences in physiological responses between the OUD and Control groups, while their gestures and movements under stress and calm conditions show similarities. These findings underscore the variability in the dataset and the necessity of incorporating all modalities to achieve generalizable outcomes.
\iffalse
\begin{table}[]
\centering
\resizebox{0.7\linewidth}{!}{
\begin{tabular}{l|rrrrrr|r}
\hline
                   & \multicolumn{2}{l}{Control}                      & \multicolumn{2}{l}{Pre-dose}                     & \multicolumn{2}{l|}{Post-dose}                    & \multicolumn{1}{l}{Mean} \\ \hline
Modality           & \multicolumn{1}{l}{Acc} & \multicolumn{1}{l}{F1} & \multicolumn{1}{l}{Acc} & \multicolumn{1}{l}{F1} & \multicolumn{1}{l}{Acc} & \multicolumn{1}{l|}{F1} & \multicolumn{1}{l}{Acc}  \\ \hline
Keep all           & 0.8371                  & 0.8206                 & 0.7181                  & 0.717                  & 0.7817                  & 0.7942                  & 0.7790                   \\ \hline
Remove Temperature & 0.8302                  & 0.8025                 & 0.7019                  & 0.6983                 & 0.7674                  & 0.7645                  & 0.7665                   \\ \hline
Remove HR          & 0.8315                  & 0.8188                 & 0.6814                  & 0.6579                 & 0.7545                  & 0.7416                  & 0.7558                   \\ \hline
Remove BVP         & 0.8078                  & 0.7728                 & 0.7067                  & 0.6917                 & 0.7407                  & 0.714                   & 0.7517                   \\ \hline
Remove EDA         & 0.7882                  & 0.7647                 & 0.6925                  & 0.7033                 & 0.7201                  & 0.7135                  & 0.7336                   \\ \hline
Remove HRV         & 0.8145                  & 0.7719                 & 0.6633                  & 0.6706                 & 0.6935                  & 0.688                   & 0.7238                   \\ \hline
Remove ACC         & 0.8447                  & 0.8206                 & 0.5991                  & 0.5890                 & 0.7168                  & 0.7168                  & 0.7202                   \\ \hline
\end{tabular}
}
\caption{Modality wise evaluation of HHISS}
\vskip -5ex
\label{table:modalities}
\end{table}
\fi

\begin{figure}
    \centering
    \includegraphics[width=\linewidth]{modality_ablation.png}

    \caption{Accuracy variations relative to HHISS when different input modality are removed.}
    \label{fig:Modality_ablation}
 \vskip -3ex
\end{figure}





\subsection{Design Choices' Empirical Justification}\label{results-empirical-justification}

This section empirically discusses the design choice of HHISS to facilitate effective OOD generalizability.

\subsubsection{Use task as domain}


In HHISS, as outlined in Section \ref{approach-intersection-pruning}, each user is treated as a unique domain. An alternative is to define the tasks or stressors as domains and extract pruned subnetworks across tasks. Figure \ref{fig:DefinationOfDomain} shows the accuracy changes for both `task-wise' and `combined user- and task-wise hybrid' intersections. Our user-wise approach performs best across all variations. While different tasks elicit varied psychophysiological responses, they are limited in number and balanced with sufficient samples. However, significant heterogeneity exists among individuals within the same task, which task-invariant feature extraction fails to capture. Interestingly, the combined user- and task-wise approach also performs poorly. This is likely due to the insufficient number of samples per-individual-and-par-task, making it challenging to learn an OOD-robust invariant representation.




%While different tasks trigger varied psychophysiological responses, they are limited in number and balanced with sufficient samples; hence, there can be significant heterogeneity in response across individuals within the same tasks that the task-invariant feature extraction cannot capture. 

%Interestingly, combined user- and task-wise interaction also perform poorly. Its because, there are insufficient samples par-individual and par-task, making the OOD robust approach learning challenging. 


%making OOD baselines effective for task-invariant feature extraction. However, individual stress responses vary more, with fewer samples per user, where baseline OOD methods struggle, and HHISS excels by treating users as distinct domains.


\begin{figure}[h]
    \centering
    % Figure 1
    \begin{minipage}{0.51\textwidth}
        \centering
        \includegraphics[width =0.83\linewidth]{domain.png}
        \caption{Comparison using different domain definitions.}
        \label{fig:DefinationOfDomain}
    \end{minipage}
    \hfill
    % Figure 2
    \begin{minipage}{0.48\textwidth}
        \centering
        \includegraphics[width =0.88\linewidth]{new_intersection.png}
        \caption{Intersectional `Mask' size across iterations.}
        \label{fig:importnace}
    \end{minipage}
    \vskip -3ex
\end{figure}




\subsubsection{`Sparse-to-sparse' training enabling consistent intersectional `Mask'}
\label{Sparse-to-sparse}

In Section \ref{our-approach-DST}, HHISS employs `sparse-to-sparse' training to ensure subject-wise pruned networks converge, forming a consistent intersection `Mask' for effective performance. Figure \ref{fig:importnace} shows the percentage of non-zero parameters after intersecting pruned masks at each iteration. We apply 50\% pruning per subject, leaving about 50\% of their parameters non-zero. After the intersection, initially, 30\% of parameters remain, increasing to 40\% as training progresses. This indicates that the networks converge, creating a stable intersection `Mask' that retains enough information for generalizable, effective modeling.


\subsubsection{Generalizability through Loss Landscapes Flatness}\label{loss-landscape-perspective}
\begin{figure}
    \centering
    \begin{subfigure}[h]{.3\linewidth}
    \includegraphics[width =\linewidth]{our_lossland.png}
        \caption{HHISS}
    \end{subfigure}
    %
    \begin{subfigure}[h]{.3\linewidth}
    \includegraphics[width =\linewidth]{baseline_lossland.png}
    \caption{ERM}
    \end{subfigure}
    %
    \begin{subfigure}[h]{.3\linewidth}
    \includegraphics[width =\linewidth]{sparse_lossland.png}
    \caption{SparseTrain}
    \end{subfigure}
    
    \caption{Losslandscape Comparison}
\vskip -3ex
    \label{fig:loss_landscape}
 
\end{figure}

In Section \ref{our-approach-KD}, HHISS uses continuous labels to improve generalizability by converging on a flatter loss landscape. Figure \ref{fig:loss_landscape} shows a 3D visualization of the loss landscape, where the XY plane represents the parameter subspace and the z-axis shows loss values. Consistent with prior studies \cite{li2018visualizing,cha2021swad,rangamani2020loss,zhang2023generalization,wang2021embracing}, which suggest that flatter loss landscapes improve generalization, HHISS achieves a flatter minima (dark black region, marked by the red circle) compared to the baselines.


\begin{figure}
    \centering
    \includegraphics[width=\linewidth]{saliency_map.png}
    
    %\begin{subfigure}[h!]{.3\linewidth}
    %\includegraphics[height=1.5cm]{new_HHISS_gradient.png}
    %    \caption{HHISS}
    %\end{subfigure}
    %
    %\begin{subfigure}[h]{.3\linewidth}
    %\includegraphics[height=1.5cm]{new_erm_gradient.png}
    %\caption{ERM }
    %\end{subfigure}
    
    %\begin{subfigure}[h]{.3\linewidth}
    %\includegraphics[height=1.5cm]{new_sparse_gradient.png}
    %\caption{SparseTrain}
    %\end{subfigure}
    
    
    \caption{Saliency Maps of Selected Features Across Datasets for different approaches.}
    \label{fig:loss_gradient}
 \vskip -3ex
\end{figure}



\subsubsection{Distribution-invariant Feature Extraction}
This section highlights HHISS's ability to identify distribution-invariant features for effective OOD robustness. Figure \ref{fig:loss_gradient} displays saliency maps \cite{simonyan2013deep} for randomly selected 20 features. These maps reveal which input features most influence the output (through darker color), with larger absolute gradients indicating stronger impact \cite{simonyan2013deep}. HHISS consistently produces similar saliency patterns across datasets, whereas baseline methods generate more variable and noisier results. This suggests that the ERM approach extracts different features depending on the dataset, increasing the risk of overfitting. In contrast, HHISS consistently focuses on the same features across datasets, demonstrating its effectiveness in identifying invariant features.

Notably, both SparseTrain and HHISS assign high saliency scores to features 7–11 and 17, which correspond to Accelerometer L2 5th percentile, Accelerometer Z minimum, Accelerometer L2 minimum, EDA phasic L2 minimum, EDA tonic L2 sum, and HRV MCVNN. These influential features originate from the Accelerometer, EDA, and HRV modalities. This aligns with our observations from the modality ablation study in Section \ref{ablation_modality}, where removing EDA, HRV, and Accelerometer resulted in the most significant performance drop. This further confirms that these modalities are crucial for accurate feature prediction.

%This section discusses and visualizes HHISS’s ability to identify distribution-invariant important features for effective OOD robustness. Figure \ref{fig:loss_gradient} shows saliency maps \cite{simonyan2013deep} across datasets for selected features. The selection was made by taking the union of the highest saliency features in all approaches. Saliency maps on a dataset reveal the input features most influencing the output concerning that dataset, with larger absolute gradient values indicating stronger feature impact \cite{simonyan2013deep}. HHISS produces consistent saliency patterns across datasets, while the baseline approaches’ maps are noisier. This visualization suggests that models trained with HHISS can identify consistent or distribution-invariant features that work well across different datasets.

\subsection{Embedding visualization}
\label{distribution-shif-validation}

To better understand the features extracted by different approaches, we analyze the intermediate embeddings of two models trained on the control-training set using the HHISS and ERM approaches.
%To gain deeper insights into the features extracted by different approaches, we analyze the intermediate embeddings from two models trained on the control training set with the HHISS and ERM approaches. 
We utilize T-SNE to reduce the dimensionality to two for visualization purposes. Figure \ref{fig:embedding} presents the embeddings of data from a control subject and a Pre-dose subject, extracted from intermediate layers of the ERM and HHISS approach. black points indicate calm data, while red points represent stress data. The embeddings derived from the ERM method effectively differentiate the control group data but struggle to distinguish the Pre-dose group data. In contrast, our HHISS approach successfully differentiates both the control and Pre-dose group data, demonstrating its OOD effectiveness.




\begin{figure}
    \centering
    \begin{subfigure}[h!]{0.45\linewidth}
    \includegraphics[width=\linewidth]{ERM.png}
       \caption{ERM}
    \end{subfigure}%
    \begin{subfigure}[h]{0.45\linewidth}
    \includegraphics[width=\linewidth]{HHISS.png}
    \caption{HHISS}
    \end{subfigure}
    
    \caption{Embedding distribution of intermediate layers when trained with Control dataset.}{(black points indicate calm data, red points represent stress data)}
    \label{fig:embedding}

\end{figure}


\subsection{Subject-wise variability of each group}
\label{group-variability}
To investigate why the model trained with the control group achieves the best overall generalizability, we visualize the subject-wise variability for each group. First, we calculate the mean of each subject across all features and then apply Principal Component Analysis (PCA) to reduce the dimensionality to two for visualization. PCA is effective at preserving variability while reducing dimensions. As shown in Figure \ref{fig:variability}, each data point represents a subject. We observe that the control group exhibits higher variability compared to the Pre-dose and Post-dose datasets. This can be attributed to two factors: on the one hand, the physiological response of stress within the Pre-dose and Post-dose datasets can be more homogeneous than control. However, on the other hand, the control group includes a larger number of subjects, which naturally introduces more variability. Our HHISS approach is able to capture and leverage this inter-subject variability to learn invariant features. The larger inter-subject variability in the control group benefits the learning process, which is why HHISS achieves better OOD generalization when trained on control group data.

\begin{figure}
    \centering
    \includegraphics[width=0.8\linewidth]{raw_pca.png}
    \caption{Subject wise PCA visualization of raw features}
    \label{fig:variability}
\vskip -3ex
\end{figure}

\section{Discussion}

This section discusses %our post-analysis validating the OOD shift challenge in stress sensing, 
HHISS's scalability on mobile and edge platforms, limitations, and future research directions.





%HS 
%\textcolor{black}{\citet{li2018visualizing} explored the curvature of loss landscapes in various neural network architectures and its impact on model generalization. 


%Figure \ref{fig:loss_landscape} presents a 3D visualization of the loss landscape, where the XY plane represents the parameter subspace ($\theta$) and the z-axis shows the corresponding loss values. Consistent with previous studies \cite{li2018visualizing,cha2021swad,rangamani2020loss,zhang2023generalization,wang2021embracing}, which suggest that flatter loss landscapes enhance generalization, it is evident that the minima (dark black region, marked by the red circle) in HHISS is significantly flatter compared to the plain ERM approach and Sparse Training approach. Particularly, It can be observed that the ERM training when coupled with pruning does improve the flatness of the loss landscape i.e enhanced generalizabilty in comparison to the stand-alone ERM, an effect which can be attributed to the \textit{size reduction hypothesis} due to pruning as discussed by \citet{jin2022pruning}. These visualizations also highlight the benefits of "Sparse-to sparse" training as pruning fine-tuning of the model with continuous labels, a module in HHISS that contributed to improved generalization compared to other baselines with/without pruning.}















\subsection{Training and Inference Scalability Across Deployment Platforms}

\begin{table}[h!]
\centering
\resizebox{0.7\linewidth}{!}{
\begin{tabular}{|c|c|c|c|c|}
\hline
\textbf{Platform} & \textbf{Approach} & \multicolumn{1}{|p{3cm}|}{\centering \textbf{Training Time (s)}} & \multicolumn{1}{|p{3cm}|}{\centering \textbf{Process (RSS) \ Memory (MBs)}} & \multicolumn{1}{|p{3cm}|}{\centering \textbf{Resource Utilization (\%)}} \\ \hline
% \multirow{4}{3cm}{\centering Cortex A-57 (Jetson Nano)} 
%  % & ERM & 4.97 & 189.82 & 33.82 \\ \cline{2-5} 
%  & IRM & 23.68 & 190.88 & 43.95 \\ \cline{2-5} 
%  & KD & 6.39 & 191.78 & 35 \\ \cline{2-5} 
%  & HHISS & 48.33 & 192.52 & 45 \\ \hline
\multirow{4}{3cm}{\centering AMD Ryzen 9 5950X 16-Core Processor} 
 % & ERM & 1.35 & 1380 & 3 \\ \cline{2-5} 
 & IRM & 1.77 & 1383 & 11.98 \\ \cline{2-5} 
 & KD & 0.89 & 1383 & 5.26 \\ \cline{2-5} 
 & HHISS & 2.47 & 1387 & 17.77 \\ \hline
\multirow{4}{2.5cm}{\centering Apple M1} 
 % & ERM & 0.32 & 185.99 & 0.1 \\\cline{2-5} 
 & IRM & 1.27 & 189.75 & 0.14 \\ \cline{2-5} 
 & KD & 0.28 & 240.08 & 0.125 \\ \cline{2-5} 
 & HHISS & 2.34 & 240.4 & 0.15 \\ \hline

\multirow{4}{2.5cm}{\centering Raspberry Pi 5} 
 % & ERM & 1.1 & 263.33 & 45 \\ \cline{2-5} 
 & IRM & 3.2 & 265.89 & 42 \\ \cline{2-5} 
 & KD & 1.51 & 264.91 & 45 \\ \cline{2-5} 
 & HHISS & 7.89 & 268.91 & 45.75 \\ \hline
\multirow{4}{3cm}{\centering AMD Ryzen 9 7950X 16-Core Processor} 
 % & ERM & 0.06 & 482.19 & 24 \\ \cline{2-5} 
 & IRM & 0.44 & 484.15 & 23.9 \\ \cline{2-5} 
 & KD & 0.08 & 482.86 & 24.41 \\ \cline{2-5} 
 & HHISS & 0.89 & 499.02 & 24.9 \\ \hline

 \multirow{3}{3cm}{\centering Google Pixel 6} 
 & IRM & 1.35 & 264.41 & 49 \\ \cline{2-5} 
 & KD & 0.25 & 262.71 & 48 \\ \cline{2-5} 
 & HHISS & 11.201 & 265.64 & 49 \\ \hline
\end{tabular}
}
\caption{Training Time Scalability Analysis with Resource Utilization}
\label{table:training_platform_comparison}
\vskip -3ex
\end{table}


\begin{table}[ht]
\centering
\resizebox{0.7\linewidth}{!}{
\begin{tabular}{|c|c|c|c|c|}
\hline
\textbf{Platform} & \textbf{Approach} & \multicolumn{1}{|p{3cm}|}{\centering \textbf{Inference Time (s)}} & \multicolumn{1}{|p{3cm}|}{\centering \textbf{Process (RSS) \ Memory (MBs)}} & \multicolumn{1}{|p{3cm}|}{\centering \textbf{Resource Utilization (\%)}} \\ \hline
% \multirow{4}{3cm}{\centering Cortex A-57 (Jetson Nano)} 
%  % & ERM & 0.06 & 189.82 & 0.53 \\ \cline{2-5}
%  & IRM & 0.04 & 190.88 & 0.83 \\ \cline{2-5}
%  & KD & 0.02 & 191.78 & 0.53 \\ \cline{2-5}
%  & HHISS & 0.02 & 192.52 & 0.66 \\ \hline
\multirow{4}{3cm}{\centering AMD Ryzen 9 5950X 16-Core Processor} 
 % & ERM & 0.001 & 470.39 & 17 \\ \cline{2-5}
 & IRM & 0.001 & 468.98 & 17 \\ \cline{2-5}
 & KD & 0.001 & 471.18 & 17.5 \\ \cline{2-5}
 & HHISS & 0.001 & 470.4 & 18 \\ \hline
\multirow{4}{2.5cm}{\centering Apple M1} 
 % & ERM & 0.001 & 183.81 & 0.18 \\ \cline{2-5}
 & IRM & 0.001 & 187.83 & 0.175 \\ \cline{2-5}
 & KD & 0.001 & 238.22 & 0.175 \\ \cline{2-5}
 & HHISS & 0.001 & 238.47 & 0.175 \\ \hline

\multirow{4}{2.5cm}{\centering Raspberry Pi 5} 
 % & ERM & 0.009 & 259.81 & 38 \\ \cline{2-5}
 & IRM & 0.009 & 260.36 & 53 \\ \cline{2-5}
 & KD & 0.008 & 260.39 & 45 \\ \cline{2-5}
 & HHISS & 0.008 & 260.41 & 45 \\ \hline
\multirow{4}{3cm}{\centering AMD Ryzen 9 7950X 16-Core Processor} 
 % & ERM & 0.001 & 474.87 & 17 \\ \cline{2-5}
 & IRM & 0.001 & 474.68 & 17.5 \\ \cline{2-5}
 & KD & 0.001 & 474.39 & 17 \\ \cline{2-5}
 & HHISS & 0.001 & 486.57 & 17.5 \\ \hline

\multirow{4}{3cm}{\centering Google Pixel 6} 
 % & ERM & 0.001 & 97 & 0.01 \\ \cline{2-5}
 & IRM & 0.001 & 90 & 0.01 \\ \cline{2-5}
 & KD & 0.001 & 97.5 & 0.01 \\ \cline{2-5}
 & HHISS & 0.001 & 100.9 & 0.01 \\ \hline
\end{tabular}
}
\caption{Inference Time Scalability Analysis with Resource Utilization}
\label{table:inference_platform_comparison}
\vskip -5ex
\end{table}


Tables \ref{table:training_platform_comparison} and \ref{table:inference_platform_comparison} compare training and inference performance of HHISS and baselines: IRM and KD,
on a wide range of platforms, including resource-constrained devices like Raspberry Pi 5, and Google Pixel 6, as well as high-performance systems like the AMD Ryzen 9 5950X, AMD Ryzen 9 7950X, and Apple M1. Metrics include training/inference time (s), process RSS memory (MBs), and average resource utilization (\%), reflecting computational efficiency and scalability. These metrics align with methodologies in prior works \cite{jaiswal2024tinystressnet,rachakonda2019stress,xu2023practically}.


\textit{During the training phase:} HHISS demonstrated strong performance across platforms, taking 7.89 seconds on the Raspberry Pi 5, with memory usage of 268.91 MB, showcasing its suitability for low-power edge devices. On high-performance platforms like the AMD Ryzen 9 7950X, HHISS exhibited training times as low as 0.89 seconds. On the Google Pixel 6, HHISS achieved a training time of 11.20 seconds, with memory usage of 265.64 MB and resource utilization of 49\%, further demonstrating its adaptability across diverse devices.


\textit{During the inference phase:} Inference times were significantly lower across all platforms. On the Raspberry Pi 5, inference was completed in 0.008 seconds with minimal memory overhead. Mobile devices like the Google Pixel 6 demonstrated exceptional efficiency, with inference times of 0.001 seconds and negligible resource utilization. On high-performance platforms like the AMD Ryzen 9 7950X and 5950X, inference times remained consistent at 0.01 seconds, respectively, with resource utilization around 17.5\%.

Overall, HHISS shows excellent scalability and efficiency, achieving competitive runtimes with minimal power and memory usage across edge, mobile, and high-performance platforms. This makes it an ideal candidate for both edge-based and cloud-offloaded applications, further reinforcing its versatility and practicality \cite{liu2022energy}.

\subsection{\textcolor{black}{Feature Section for OOD generalizability}\label{feature-select-discussion}}

\begin{figure}[h!]
    \centering
    \includegraphics[scale=0.38]{feature_select.png}
    \caption{Balanced accuracy on ERM, HHISS, and feature select.}
    \label{fig:feature_select}
\end{figure}

\textcolor{black}{Our analysis in Section \ref{motivation} identifies $257$ features that are consistently non-significant across dataset-wise group comparisons, having the potential of having distributional robustness.  To evaluate this, we trained an ERM-based model using only these features. However, as shown in Figure \ref{fig:feature_select}, when trained solely on the control dataset, the model exhibited poor generalization under distribution shifts in the pre- and post-dose OUD groups. Such a result may stem from the limitation that removing potentially informative-but variable—features in pursuit of statistical invariance may inadvertently discard important discriminative attributes/information. This is in line with prior works \cite{ng2008feature} which report that simple feature selection strategies ignore non-linear correlation between the input and output, ultimately impairing model performance in OOD settings. This highlights the need for an effective strategy to learn embedding-level representations that are robust to domain shifts while retaining predictive relevance.}






\iffalse
\textcolor{black}{Tables \ref{table:training_platform_comparison} and \ref{table:inference_platform_comparison} compare training and inference phase performance on different resource-constraint and resource-rich platforms like Jetson Nano, Google Pixel 6 and Apple M1, AMD Ryzen 9 5950X and NVIDIA RTX A6000 respectively. The metrics include training / inference time (s), Process RSS memory (MBs), and power (W) for our source domain or training dataset, i.e. control dataset. We used an evaluation metric following previous work on stress detection using edge devices \cite{jaiswal2024tinystressnet,rachakonda2019stress} and recent works in the mobile computing domain \cite{xu2023practically}, to evaluate the efficiency and scalability of HHISS across various platforms during the training and inference.}
\par
\textcolor{black}{\textit{During the training phase:} HHISS required 3.03 seconds on the NVIDIA RTX and 13.22 seconds on the Jetson Nano. The memory usage was 816.44 MB on the NVIDIA RTX compared to 191.9 MB on the Jetson Nano, with power consumption at 70.43 W versus 2.2 W, respectively. These results highlight the feasibility of deploying HHISS on low-power devices, making it suitable for edge applications where power efficiency and real-time processing are critical \cite{sim2022exploring}.}
\par
\textcolor{black}{\textit{During Inference phase}: run-times are much faster across platforms. The Jetson Nano's inference time is 1.04s with 2297MB memory and 3.0W power, while the NVIDIA RTX A6000 completes inference in 0.05s with 611.83MB memory and 75.17W power. Apple M1 and mobile platforms like Google Pixel 6 perform inference in under 0.03s, with negligible power consumption (0.04W and 0.01W, respectively)}
\par
\textcolor{black}{HHISS demonstrates significant efficiency across both training and inference phases on resource-constrained platforms like Jetson Nano and Google Pixel 6, with minimal power consumption and reasonable runtimes. These results underscore the suitability of our method for mobile computing, where power efficiency and real-time processing are essential for edge applications \cite{jaiswal2024tinystressnet,xu2023practically,sim2022exploring}. The scalability across high-performance platforms like the NVIDIA RTX A6000 further highlights its versatility in mobile edge computing scenarios where mobile devices offload tasks to cloud servers for remote execution \cite{liu2022energy}.}
\fi 

\subsection{Limitations and Future Direction}\label{limitation-future-direction}
The limitations of HHISS and future research directions are outlined below.

\begin{enumerate}
    \item HHISS uses subject-wise gradient pruning and intersection, adding some computational overhead during training, though the training time across platforms remains comparable to OOD baselines. While HHISS applies unstructured pruning to identify equitable invariant features, unstructured pruning does not reduce runtime on generic platforms \cite{sadou2022inference}, making HHISS's execution time similar to that of the baselines.
    \item Despite advancements in the OOD generalization on the opioid use disorder group, a performance gap persists between the Pre-and Post-dose OUD group. The achievement of OOD fairness in performance across different distribution shifts remains a critical area for future research and development.
    \item As discussed in Section \ref{experiment-setup}, our network architectures are based on those benchmarked in the literature. We also explored self-attention and multi-head attention networks but found no performance improvement. We hypothesize this is due to limited training data and the simplicity of wearable stress signals, leading to overfitting in more complex networks and compromising OOD generalizability.
    \item This paper focuses on wearable-based stress sensing due to its practical relevance, growing popularity\cite{vos2023generalizable,gonzalez2023wearables}, and use in the health domain. However, human sensing heterogeneity extends to many other applications, and future work could apply our framework to different modalities and use cases.
    \item \textcolor{black}{The OUD dataset used in this study is limited in size, with data collected from 25 unique individuals in a controlled lab setting and 2 additional individuals in the in-the-wild field setting. This reflects a well-documented challenge in recruiting participants with substance use disorders, stemming from factors such as stigma, co-occurring mental health conditions, irregular participation, high dropout rates, and ethical and safety concerns \cite{de2012challenges,anderson2018ethical,allan2019ethics}. Prior relevant studies involving substance abuse disorder populations have reported similar recruitment difficulties and small sample sizes \cite{gullapalli2019body,gullapalli2021opitrack}.}
    
    \item While our OUD dataset is unique, it has limited condition variations related to medication use. However, stress responses in OUD individuals may vary due to other factors (Section \ref{realted-work-OUD}), and \textcolor{black}{a longitudinal study across a larger population} is needed to investigate OOD robustness across these variations, which is a future research direction.
    \item \textcolor{black}{Our approach, HHISS, does not enhance robustness across different physiological sensor types, modalities, and devices. Even sensor variability for the same modality across different devices, such as differences in sampling rates, signal quality, and device-specific preprocessing, can affect model performance \cite{bent2020investigating}. For example, the Microsoft Band 2 has an accelerometer sampling rate of 8Hz, rather than the Empatica E4's 32Hz; such a variability may have an effect on activity or stress detection efficacy across these devices. The HHISS approaches or our baselines do not incorporate mechanisms in their design choices to address such cross-device or cross-modality (i.e., sensor types) variability, which falls outside the scope of this study and can be a potential future work.}
    
\end{enumerate}



% \section{\textcolor{cyan}{Discussion}}


% \section{Broader Impact and Limitations}
% This paper pioneers the extension of state-of-the-art stress modeling architectures to \textit{marginalized} populations, such as individuals with OUD, without requiring any training or fine-tuning. Our novel HHISS approach lays the foundation for more \textbf{equitable} and \textit{inclusive} learning frameworks that generalize well to unseen populations. We collected a novel dataset by recruiting 25 OUD participants over 29 sessions, including 4 individuals who participated in both pre- and post-medication conditions. This dataset has the potential to support future human-centric computing approaches, making them more inclusive for marginalized groups.

% \textit{Limitations:} Due to data constraints, our evaluations focused on stress sensing scenarios using smaller model architectures. Future work could explore applying our framework to other stress-sensing applications, such as wireless sensors like mmWave radar \cite{liang2023mmstress}. Another possible limitation as seen in Table \ref{table:training_platform_comparison}, subject-wise IRM and gradient-based pruning introduces some overhead to on-device training times, though the performance of HHISS remains comparable to standalone IRM.

\section{Conclusion}
This paper pioneers OOD robust, wearable-based stress sensing, trained on a healthy population but generalizing to various previously unknown distributions, including health population groups like individuals with opioid use disorder (OUD). By extracting equitable, distribution-shift invariant features, HHISS sets the foundation for more \textit{equitable} and \textit{inclusive} stress sensing, applicable even to other health conditions or populations with scarce data. This enhances the accessibility and effectiveness of stress management tools across diverse contexts. Comprehensive evaluations across five different stress distributions confirm HHISS's feasibility and scalability as a practical mobile stress-sensing solution.


\bibliographystyle{ACM-Reference-Format}
\bibliography{sample-base}

\appendix

\section{Methodological Transparency \& Reproducibility Appendix}
To ensure reproducibility, we provide detail about the backbone model used for training and hyperparameters used for Algorithm \ref{alg:1}, Equation \ref{eq:finetune} in Appendix \ref{appendix:Architecture}. Additionally, Appendix \ref{appendix:code} provides details of the source code.

\textcolor{black}{\subsection{Model Architecture and Training Configuration}}
\label{appendix:Architecture}

We use a 4-layer DNN as the main classification backbone. In the ablation study, we explore ResNet and multi-head self-attention (MHA) as alternative architectures. Model details are provided below.

The 4-layer DNN takes input vectors of shape (batch size, 340) and processes them through a sequence of fully connected layers with ReLU activations and dropout for regularization. 
\begin{table}[H]
\centering
\scriptsize
\resizebox{0.7\textwidth}{!}{%
\begin{tabular}{|l|l|l|l|l|}
\hline
Layer & Type            & Input Size & Output Size & Detail          \\ \hline
fc1   & Linear          & 340        & 128         & ReLU Activation \\ \hline
fc2   & Linear          & 128        & 128         & ReLU Activation           \\ \hline
fc3   & Linear          & 128        & 128         & ReLU Activation          \\ \hline
fc4   & Linear (output) & 128        & num class  & Softmax Activation        \\ \hline
\end{tabular}
}
\caption{DNN backbone details}
\label{tab:DNN_backbone}
\end{table}

 The ResNet backbone is a 1D convolutional neural networks with residual connections and a fully connected classifier for sequence classification. It processes inputs of shape (batch size, 340) by first applying a 1D convolution (channel-inflation to 64), followed by two residual blocks that enhance gradient flow and feature reuse. A max-pooling layer reduces the sequence length by half before flattening and passing the output through a sequence of fully connected layers. The model ends with a softmax activation for class probabilities.

 \begin{table}[H]
\centering
\scriptsize
\resizebox{0.7\textwidth}{!}{%
\begin{tabular}{|l|l|l|l|l|}
\hline
Component     & Type          & Input Size & Output Size  & Details                            \\ \hline
initial\_conv & Conv1d        & (1, 340)   & (64, 340)    & Kernel=3, Padding=1                \\ \hline
res\_block1   & ResidualBlock & (64, 340)  & (64, 340)    & 2 × Conv1d + ReLU + Dropout        \\ \hline
res\_block2   & ResidualBlock & (64, 340)  & (64, 340)    & 2 × Conv1d + ReLU + Dropout        \\ \hline
pool          & MaxPool1d     & (64, 340)  & (64, 170)    & Kernel=2                           \\ \hline
flatten       & Reshape       & (64, 170)  & 10880        & 64 × 170                           \\ \hline
output\_proj  & MLP + Softmax & 10880      & num classes & 3-layer MLP + final classification \\ \hline
\end{tabular}
}
\caption{ResNet backbone details}
\label{tab:resnet_backbone}
\end{table}

 The MHA backbone is a feature-wise multi-head self-attention mechanism. Each of the 340 input features is treated as an individual token, allowing the model to learn contextual interactions between features. It uses learned query, key, and value projections and applies scaled dot-product attention over feature dimensions. After computing attention across multiple heads, the outputs are aggregated and passed through a fully connected projection head for classification.

 \begin{table}[H]
\centering
\scriptsize
\resizebox{0.7\textwidth}{!}{%
\begin{tabular}{|l|l|l|l|l|}
\hline
Component      & Type                & Input Shape      & Output Shape      & Details                            \\ \hline
input\_proj    & Linear              & (B, 340, 1)      & (B, 340, 128)     & Projects scalar to embedding dim   \\ \hline
qkv\_proj      & Linear              & (B, 340, 128)    & (B, 340, 384)     & Combined Q, K, V projection        \\ \hline
split\_heads   & Reshape + Transpose & (B, 340, 128)    & (B, 4, 340, 32)   & 4 heads, 32-dim each               \\ \hline
attention      & Scaled Dot Product  & (B, 4, 340, 340) & (B, 4, 340, 32)   & Softmax over similarity matrix     \\ \hline
combine\_heads & Reshape             & (B, 4, 340, 32)  & (B, 340, 128)     & Concatenate head outputs           \\ \hline
attended.mean  & Reduce (mean)       & (B, 340, 128)    & (B, 128)          & Feature-wise average               \\ \hline
output\_proj   & MLP + Softmax       & (B, 128)         & (B, num classes) & 3-layer MLP + final classification \\ \hline
\end{tabular}
}
\caption{MHA backbone details}
\label{tab:mha_backbone}
\end{table}

For all evaluations, we use consistent training configurations to ensure fair comparisons in the ablation study. The Adam optimizer is used with a fixed learning rate of 0.0001, and cross-entropy loss serves as the objective for binary stress detection. A dropout rate of 0.1 is applied across layers to mitigate overfitting. Input features are standardized to a length of 340, and hidden dimensions are set to 128 based on the architecture. For Algorithm \ref{alg:1}, the sparse-to-sparse threshold (T) is set to 70\%, the pruning amount (K) to 50\%, and the number of training rounds (R) to 50. In Equation \ref{eq:finetune}, the weighting factor for the continuous label ($\lambda$) is 0.5. The weighting factor for IRM regularization ($\beta$) is 0.3.

The optimization goal of HHISS method can be formulate as :

\begin{equation}
\begin{aligned}
    Loss = CrossEntropy(y,\hat{y})+ \beta \sum_{S_i \in S} \Vert \nabla_{w} R^{e} (W,\Phi)  \Vert  + \lambda CrossEntropy(\hat{y}_{o},\hat{y})
\end{aligned}
\label{eq:finetune}
\end{equation}

Here, $y$ denotes the ground-truth labels, and $\hat{y}$ is the model's output logits. The loss function consists of three components: The first term is the supervised learning loss using cross-entropy. The second term is an IRM regularization term adopted from \cite{arjovsky2019invariant}, weighted by a factor $\beta$ and $S$ representing all subjects in the training set. The third term introduces consistency with continuous labels, where $\hat{y}_{o}$ is the output of the  over-parameterized model, weighted by $\lambda$.

This loss function is used both for training the model and for computing importance scores during pruning. To determine parameter importance, we compute the loss on user data, backpropagate to obtain gradients for each layer, and then calculate the importance score by multiplying the gradient with the corresponding weight value. The bottom K\% of parameters with the lowest importance scores are then pruned by setting them to zero.

\subsection{Code}
\label{appendix:code}
 The code is provided at \href{https://anonymous.4open.science/r/HHISS_IMWUT-B665/README.md}{anonymous link}. It includes the pre-trained HHISS model checkpoint, source code for training both the IRM-regularized over-parameterized and HHISS models, feature extraction scripts, \textcolor{black}{stats analysis code and results using a Linear Mixed Effects Model(LMM),} and instructions for running the experiments. Seed values used for evaluation are specified within the source files. 

\textcolor{black}{\section{ WESAD Training with complex backbone network architecture}}
State-of-the-art work (SOTA) has reported over 90\% (in-distribution) accuracy on the WESAD dataset \cite{choi2022attention}. To evaluate the performance on this benchmark, we apply our domain generalization method HHISS to an SOTA model designed for WESAD \cite{choi2022attention}. This model uses raw PPG signals as input and employs an LSTM with an attention mechanism for stress detection. To better assess the model's generalizability, we deviate from the original paper's evaluation setup, which used only one subject for testing, by following the evaluation setup discussed in Section \ref{dataset_setup}, which uses three subjects in the test set and the remaining subjects for training. As shown in Table~\ref{table:rawppg}, our domain generalization methods, including HHISS, improve performance in the in-distribution setting (in WESAD testset). Specifically, our HHISS method boosts balanced accuracy by over 5\% compared to normal ERM training. However, under the out-of-distribution setting, all methods perform poorly. This is expected, as the original SOTA model was not designed for domain generalization and only uses the PPG modality. Notably, even in this evaluation, HHISS outperforms all baselines. These results demonstrate that our HHISS approach can be applied across different model architectures and highlight the importance of using multi-modal inputs (all of our other evaluations used multimodal input), and possibly simpler network architecture for effective out-of-distribution generalization.



 \begin{table}[]
\centering
\resizebox{0.7\linewidth}{!}{ 
\begin{tabular}{l|r|rrr}
\hline
            & \multicolumn{1}{l|}{In distribution}                     & \multicolumn{3}{l}{Out of distribution}                    \\ \hline
Dataset     & \multicolumn{1}{l|}{WESAD} & \multicolumn{1}{l}{Control} & \multicolumn{1}{l}{Predose} & \multicolumn{1}{l}{Postdose} \\ \hline
ERM         & 0.8866                    & 0.4735                       & 0.6477                      & 0.5621                       \\ \hline
IRM         & 0.8976                    & 0.5354                       & 0.6718                      & 0.5514                       \\ \hline
DRO        &0.8707&0.5307&0.6436&0.5451        \\ \hline
Vrex        & 0.8993                    & 0.5537                       & 0.6367                      & 0.5532                       \\ \hline
TTP &0.9121&0.4700&0.6402&0.5540 \\ \hline



ERM pruning  & 0.9184                    & 0.5192                       & 0.6552                      & 0.5419                       \\ \hline
KD          & 0.9272                    & 0.5404                       & 0.6609                      & 0.5336                       \\ \hline
SparseTrain &         0.8423                  & 0.5285                             &    0.6562                         &     0.537                         \\ \hline
HHISS       & 0.9331                    & 0.5454                       & 0.6669                      & 0.5791                       \\ \hline
\end{tabular}
}
\caption{Applying Domain Generalization Methods to the SOTA Model on the WESAD Dataset}
\vskip -5ex
\label{table:rawppg}
\end{table}





\textcolor{black}{\section{Detailed results for LMM evaluations}}

\label{LMM_results_appendix}
This section presents the detailed LLM results for each pair-wise evaluation: Control vs Predose (Table \ref{tab:lmm_detailed_control_predose}), Control vs Postdose (Table \ref{tab:lmm_detailed_control_postdose}), Predose vs Postdose (Table \ref{tab:lmm_detailed_predose_postdose}), Control vs AffectiveRoad (Table \ref{tab:lmm_detailed_control_affectiveroad}),Control vs WESAD (Table \ref{tab:lmm_detailed_control_wesad}), WESAD vs AffectiveRoad (Table \ref{tab:lmm_detailed_wesad_affectiveroad}). 

Each table presents the features which showed statistical significance ($p<0.05$) consistently across both the stress and calm task along with the coefficient estimates, standard errors, and $95\%$ confidence intervals $[CI\ Low-CI\ High]$. 
\subsection{Control vs Pre-Dose}
\begin{table}[H]
\centering
\scriptsize
\resizebox{0.7\textwidth}{!}{%
\begin{tabular}{|c|c|c|c|c|c|c|}
\hline
\textbf{Feature} & \textbf{Condition} & \textbf{Coef.} & \textbf{Std. Err.} & \textbf{95\% CI Low} & \textbf{95\% CI High} & \textbf{p-value} \\
\hline
\multirow{2}{*}{HR L2 Kurtosis} & Calm & 2.504 & 3.127 & 0.935 & 4.074 & 0.002 \\ \cline{2-7}
& Stress & 9.283 & 2.337 & 4.702 & 13.863 & 0.0000 \\ \hline
\multirow{2}{*}{HR Kurtosis} & Calm & 2.845 & 1.148 & 0.594 & 5.096 & 0.0132 \\ \cline{2-7}
& Stress & 6.477 & 1.426 & 3.682 & 9.272 & 0.0000 \\ \hline
\multirow{2}{*}{HR n below mean} & Calm & 5.172 & 1.380 & 2.467 & 7.877 & 0.0002 \\ \cline{2-7}
& Stress & 5.118 & 1.634 & 1.915 & 8.321 & 0.0017 \\ \hline
\multirow{2}{*}{HR Peaks} & Calm & 3.853 & 1.890 & 0.150 & 7.557 & 0.0414 \\ \cline{2-7}
& Stress & 12.642 & 5.131 & 2.586 & 22.698 & 0.0137 \\ \hline
\multirow{2}{*}{HR Skewness} & Calm & 1.225 & 0.571 & 0.106 & 2.344 & 0.0319 \\ \cline{2-7}
& Stress & 9.586 & 3.395 & 2.932 & 16.240 & 0.0048 \\ \hline
\multirow{2}{*}{HR L2 Skewness} & Calm & 1.377 & 0.631 & 0.141 & 2.613 & 0.0290 \\ \cline{2-7}
& Stress & 5.215 & 1.739 & 1.806 & 8.623 & 0.0027 \\ \hline
\multirow{2}{*}{Phasic EDA L2 Root Mean Square} & Calm & 2.594 & 1.009 & 0.618 & 4.571 & 0.0101 \\ \cline{2-7}
& Stress & 3.438 & 1.491 & 0.515 & 6.362 & 0.0211 \\ \hline
\multirow{2}{*}{Phasic EDA Kurtosis} & Calm & -5.505 & 2.135 & -9.689 & -1.321 & 0.0099 \\ \cline{2-7}
& Stress & -9.262 & 3.604 & -16.327 & -2.198 & 0.0102 \\ \hline
\multirow{2}{*}{Skin Temp Kurtosis} & Calm & 4.393 & 1.521 & 1.411 & 7.375 & 0.0039 \\ \cline{2-7}
& Stress & 9.079 & 1.918 & 5.319 & 12.838 & 0.0000 \\ \hline
\multirow{2}{*}{Skin Temp Min} & Calm & 2.014 & 0.908 & 0.234 & 3.795 & 0.0266 \\ \cline{2-7}
& Stress & 3.295 & 0.964 & 1.406 & 5.184 & 0.0006 \\ \hline
\multirow{2}{*}{Skin Temp n below mean} & Calm & 3.313 & 1.376 & 0.615 & 6.010 & 0.0161 \\ \cline{2-7}
& Stress & 4.557 & 1.307 & 1.996 & 7.117 & 0.0005 \\ \hline
\multirow{2}{*}{Skin Temp Skewness} & Calm & 4.379 & 1.297 & 1.837 & 6.921 & 0.0007 \\ \cline{2-7}
& Stress & 6.944 & 3.303 & 0.470 & 13.418 & 0.0355 \\ \hline
\multirow{2}{*}{Skin Temp L2 Lineintegral} & Calm & 67.715 & 31.701 & 5.581 & 129.848 & 0.0327 \\ \cline{2-7}
& Stress & 138.485 & 63.309 & 14.401 & 262.569 & 0.0287 \\ \hline
\multirow{2}{*}{Skin Temp L2 peaks} & Calm & 11.990 & 3.824 & 4.494 & 19.485 & 0.0017 \\ \cline{2-7}
& Stress & 21.888 & 9.808 & 2.664 & 41.113 & 0.0256 \\ \hline
\multirow{2}{*}{Tonic EDA L2 Kurtosis} & Calm & -3.862 & 1.624 & -7.044 & -0.680 & 0.0174 \\ \cline{2-7}
& Stress & -5.951 & 2.271 & -10.403 & -1.500 & 0.0088 \\ \hline
\multirow{2}{*}{Tonic EDA L2 95th Percentile} & Calm & 0.308 & 0.090 & 0.132 & 0.485 & 0.0006 \\ \cline{2-7}
& Stress & 0.558 & 0.209 & 0.150 & 0.967 & 0.0074 \\ \hline
\multirow{2}{*}{Tonic EDA Entropy} & Calm & 0.218 & 0.092 & 0.038 & 0.398 & 0.0178 \\ \cline{2-7}
& Stress & 0.507 & 0.215 & 0.087 & 0.927 & 0.0181 \\ \hline
\end{tabular}}
\caption{LMM results for common significant features across stress and calm tasks (Control vs Predose)}
\label{tab:lmm_detailed_control_predose}
\end{table}
\subsection{Control vs Post-Dose}

\begin{table}[H]
\centering
\scriptsize
\resizebox{0.7\textwidth}{!}{%
\begin{tabular}{|c|c|c|c|c|c|c|}
\hline
\textbf{Feature} & \textbf{Condition} & \textbf{Coef.} & \textbf{Std. Err.} & \textbf{95\% CI Low} & \textbf{95\% CI High} & \textbf{p-value} \\
\hline
\multirow{2}{*}{HR n below mean} & Calm & 6.187 & 1.390 & 3.463 & 8.910 & 0.0000 \\ \cline{2-7}
& Stress & 6.005 & 1.860 & 2.361 & 9.650 & 0.0001 \\ \hline
\multirow{2}{*}{BVP Energy} & Calm & 6.735 & 2.216 & 2.393 & 11.078 & 0.0024 \\ \cline{2-7}
& Stress & 5.408 & 2.701 & 0.114 & 10.702 & 0.0453 \\ \hline
\multirow{2}{*}{BVP Sum} & Calm & -6.735 & 2.216 & -11.078 & -2.393 & 0.0024 \\ \cline{2-7}
& Stress & -5.408 & 2.701 & -10.702 & -0.114 & 0.0453 \\ \hline
\multirow{2}{*}{Skin Temp min} & Calm & 2.497 & 0.922 & 0.691 & 4.304 & 0.0067 \\ \cline{2-7}
& Stress & 3.932 & 1.179 & 1.621 & 6.242 & 0.0009 \\ \hline
\multirow{2}{*}{Skin Temp n below mean} & Calm & 3.608 & 1.373 & 0.917 & 6.298 & 0.0086 \\ \cline{2-7}
& Stress & 4.291 & 1.291 & 1.760 & 6.822 & 0.0009 \\ \hline
\end{tabular}}
\caption{LMM results for common significant features across calm and stress tasks (Control vs Postdose)}
\label{tab:lmm_detailed_control_postdose}
\end{table}

\subsection{Pre-Dose vs Post-Dose}

\begin{table}[H]
\centering
\scriptsize
\resizebox{0.7\textwidth}{!}{%
\begin{tabular}{|c|c|c|c|c|c|c|}
\hline
\textbf{Feature} & \textbf{Condition} & \textbf{Coef.} & \textbf{Std. Err.} & \textbf{95\% CI Low} & \textbf{95\% CI High} & \textbf{p-value} \\
\hline
\multirow{2}{*}{Phasic EDA peaks} & Calm & -2.646 & 1.093 & -4.788 & -0.503 & 0.0155 \\ \cline{2-7}
 & Stress & -2.607 & 0.994 & -4.555 & -0.659 & 0.0087 \\
\hline
\end{tabular}}
\caption{LMM results for common significant features across stress and calm tasks (Predose vs Postdose)}
\label{tab:lmm_detailed_predose_postdose}
\end{table}
\subsection{Control vs AffectiveRoad}

\begin{table}[h!]
\centering
\scriptsize
\resizebox{0.7\textwidth}{!}{%
\begin{tabular}{|c|c|c|c|c|c|c|}
\hline
\textbf{Feature} & \textbf{Condition} & \textbf{Coef.} & \textbf{Std. Err.} & \textbf{95\% CI Low} & \textbf{95\% CI High} & \textbf{p-value} \\
\hline
\multirow{2}{*}{ACC L2 Lineintegral} & Calm & 27.257 & 4.379 & 18.675 & 35.839 & 0.0000 \\ \cline{2-7}
& Stress & 40.891 & 13.940 & 13.569 & 68.212 & 0.003 \\ \hline
\multirow{2}{*}{ACC y 95th Percentile} & Calm & 25.130 & 5.175 & 14.987 & 35.273 & 0.0000 \\ \cline{2-7}
& Stress & 29.348 & 13.523 & 2.845 & 55.852 & 0.0300 \\ \hline
\multirow{2}{*}{ACC z Lineintegral} & Calm & 27.257 & 4.379 & 18.675 & 35.839 & 0.0000 \\ \cline{2-7}
& Stress & 40.891 & 13.940 & 13.569 & 68.212 & 0.0034 \\ \hline
\multirow{2}{*}{ACC z 95th Percentile} & Calm & 25.130 & 5.175 & 14.987 & 35.273 & 0.0000 \\ \cline{2-7}
& Stress & 29.348 & 13.523 & 2.845 & 55.852 & 0.0300 \\ \hline
\multirow{2}{*}{BVP Energy} & Calm & 2.853 & 1.455 & 0.001 & 5.705 & 0.0499 \\ \cline{2-7}
& Stress & 16.073 & 4.349 & 7.549 & 24.597 & 0.0002 \\ \hline
\multirow{2}{*}{BVP Skewness} & Calm & 2.894 & 1.284 & 0.376 & 5.411 & 0.0243 \\ \cline{2-7}
& Stress & 12.981 & 4.509 & 4.144 & 21.818 & 0.0040 \\ \hline
\multirow{2}{*}{BVP Sum} & Calm & -2.853 & 1.455 & -5.705 & -0.001 & 0.0499 \\ \cline{2-7}
& Stress & -16.073 & 4.349 & -24.597 & -7.549 & 0.0002 \\ \hline
\multirow{2}{*}{HR L2 skewness} & Calm & 8.510 & 2.246 & 4.108 & 12.912 & 0.0002 \\ \cline{2-7}
& Stress & 32.158 & 6.491 & 19.437 & 44.879 & 0.0000 \\ \hline
\multirow{2}{*}{Skin Temp n below mean} & Calm & -7.745 & 3.766 & -15.126 & -0.364 & 0.0397 \\ \cline{2-7}
& Stress & 6.046 & 1.512 & 3.083 & 9.010 & 0.0001 \\ \hline
\end{tabular}
}
\caption{LMM results for common significant features across stress and calm task (Control vs AffectiveRoad)}
\label{tab:lmm_detailed_control_affectiveroad}
\end{table}
\newpage
\subsection{Control vs WESAD}

\begin{table}[H]
\centering
\scriptsize
\resizebox{0.65\textwidth}{!}{%
\begin{tabular}{|c|c|c|c|c|c|c|}
\hline
\textbf{Feature} & \textbf{Condition} & \textbf{Coef.} & \textbf{Std. Err.} & \textbf{95\% CI Low} & \textbf{95\% CI High} & \textbf{p-value} \\
\hline
\multirow{2}{*}{ACC y Interquartile Range} & Calm & 22.815 & 7.246 & 8.614 & 37.016 & 0.002 \\ \cline{2-7}
& Stress & -126.556 & 58.136 & -240.501 & -12.611 & 0.029 \\ \hline
\multirow{2}{*}{ACC z Max} & Calm & 22.816 & 7.245 & 8.616 & 37.016 & 0.002 \\ \cline{2-7}
& Stress & -126.548 & 58.132 & -240.485 & -12.610 & 0.029 \\ \hline
\multirow{2}{*}{ACC L2 Max} & Calm & 22.816 & 7.245 & 8.616 & 37.016 & 0.0016 \\ \cline{2-7}
& Stress & -126.548 & 58.132 & -240.485 & -12.610 & 0.0295 \\ \hline
\multirow{2}{*}{ACC x Kurtosis} & Calm & -3.410 & 1.532 & -6.414 & -0.407 & 0.0261 \\ \cline{2-7}
& Stress & 5.677 & 2.699 & 0.387 & 10.967 & 0.0354 \\ \hline
\multirow{2}{*}{ACC y Kurtosis} & Calm & -3.410 & 1.532 & -6.414 & -0.407 & 0.0261 \\ \cline{2-7}
& Stress & 5.677 & 2.699 & 0.387 & 10.967 & 0.0354 \\ \hline
\multirow{2}{*}{ACC y Permutation Entropy} & Calm & 23.300 & 7.284 & 9.024 & 37.576 & 0.0014 \\ \cline{2-7}
& Stress & -125.477 & 58.184 & -239.515 & -11.439 & 0.0310 \\ \hline
\multirow{2}{*}{ACC y SVD Entropy } & Calm & 23.193 & 7.268 & 8.947 & 37.438 & 0.0014 \\ \cline{2-7}
& Stress & -125.151 & 58.029 & -238.886 & -11.416 & 0.0310 \\ \hline
\multirow{2}{*}{ACC z Interquartile Range} & Calm & 22.815 & 7.246 & 8.614 & 37.016 & 0.0016 \\ \cline{2-7}
& Stress & -126.556 & 58.136 & -240.501 & -12.611 & 0.0295 \\ \hline
\multirow{2}{*}{ACC z Permutation Entropy} & Calm & 23.300 & 7.284 & 9.024 & 37.576 & 0.0014 \\ \cline{2-7}
& Stress & -125.477 & 58.184 & -239.515 & -11.439 & 0.0310 \\ \hline
\multirow{2}{*}{ACC z SVD Entropy} & Calm & 23.193 & 7.268 & 8.947 & 37.438 & 0.0014 \\ \cline{2-7}
& Stress & -125.151 & 58.029 & -238.886 & -11.416 & 0.0310 \\ \hline
\multirow{2}{*}{HRV MeanNN} & Calm & -0.683 & 0.174 & -1.024 & -0.343 & 0.0001 \\ \cline{2-7}
& Stress & -0.713 & 0.267 & -1.236 & -0.189 & 0.0076 \\ \hline
\multirow{2}{*}{HRV Total Power} & Calm & -0.683 & 0.174 & -1.024 & -0.343 & 0.0001 \\ \cline{2-7}
& Stress & -0.713 & 0.267 & -1.237 & -0.189 & 0.0076 \\ \hline
\multirow{2}{*}{HR Entropy} & Calm & -7.940 & 2.856 & -13.538 & -2.342 & 0.0054 \\ \cline{2-7}
& Stress & -13.697 & 4.713 & -22.935 & -4.459 & 0.0037 \\ \hline
\multirow{2}{*}{HR Kurtosis} & Calm & -1.786 & 0.711 & -3.180 & -0.391 & 0.0121 \\ \cline{2-7}
& Stress & -4.839 & 0.998 & -6.796 & -2.883 & 0.0000 \\ \hline
\multirow{2}{*}{HR 95th Percentile} & Calm & -8.294 & 3.396 & -14.951 & -1.637 & 0.0146 \\ \cline{2-7}
& Stress & -15.792 & 6.380 & -28.297 & -3.287 & 0.0133 \\ \hline
\multirow{2}{*}{HR peaks} & Calm & -5.854 & 1.826 & -9.433 & -2.275 & 0.0013 \\ \cline{2-7}
& Stress & -9.513 & 2.077 & -13.585 & -5.441 & 0.0000 \\ \hline
\multirow{2}{*}{HR root mean square} & Calm & 6.143 & 2.507 & 1.230 & 11.056 & 0.0143 \\ \cline{2-7}
& Stress & 11.723 & 4.636 & 2.636 & 20.810 & 0.0115 \\ \hline
\multirow{2}{*}{HR L2 Entropy} & Calm & -4.707 & 2.235 & -9.087 & -0.327 & 0.0352 \\ \cline{2-7}
& Stress & -9.252 & 4.312 & -17.703 & -0.801 & 0.0319 \\ \hline
\multirow{2}{*}{TEMP Root Mean Square} & Calm & 6.814 & 2.387 & 2.135 & 11.492 & 0.0043 \\ \cline{2-7}
& Stress & 14.271 & 4.746 & 4.970 & 23.573 & 0.0026 \\ \hline
\end{tabular}}
\caption{LMM results for common significant features across calm and stress task (WESAD vs Control)}
\label{tab:lmm_detailed_control_wesad}
\end{table}

\subsection{WESAD vs AffectiveRoad}
\begin{table}[h!]
\centering
\scriptsize
\resizebox{0.6\textwidth}{!}{%
\begin{tabular}{|c|c|c|c|c|c|c|}
\hline
\textbf{Feature} & \textbf{Condition} & \textbf{Coef.} & \textbf{Std. Err.} & \textbf{95\% CI Low} & \textbf{95\% CI High} & \textbf{p-value} \\
\hline
\multirow{2}{*}{HRV pNN20} & Calm & 2.178 & 1.106 & 0.010 & 4.346 & 0.049 \\ \cline{2-7}
& Stress & 5.200 & 2.598 & 0.108 & 10.293 & 0.045 \\ \hline
\multirow{2}{*}{BVP L2 Interquartile Range} & Calm & -6.123 & 2.068 & -10.177 & -2.070 & 0.0031 \\ \cline{2-7}
& Stress & -5.459 & 2.675 & -10.702 & -0.217 & 0.0412 \\ \hline
\multirow{2}{*}{BVP L2 Kurtosis} & Calm & 4.478 & 2.062 & 0.437 & 8.518 & 0.0299 \\ \cline{2-7}
& Stress & 9.369 & 4.054 & 1.423 & 17.314 & 0.0208 \\ \hline
\multirow{2}{*}{HR Kurtosis} & Calm & 2.976 & 1.421 & 0.192 & 5.761 & 0.0362 \\ \cline{2-7}
& Stress & 5.600 & 1.659 & 2.348 & 8.851 & 0.0007 \\ \hline
\multirow{2}{*}{HR L2 Peak-to-Peak} & Calm & 4.391 & 2.179 & 0.121 & 8.662 & 0.0439 \\ \cline{2-7}
& Stress & 31.148 & 7.626 & 16.202 & 46.095 & 0.0000 \\ \hline
\multirow{2}{*}{Skin Temp Root Mean Square} & Calm & -13.659 & 4.895 & -23.254 & -4.064 & 0.0053 \\ \cline{2-7}
& Stress & -15.002 & 5.610 & -25.998 & -4.006 & 0.0075 \\ \hline
\multirow{2}{*}{Tonic Peaks} & Calm & 2.178 & 1.106 & 0.010 & 4.346 & 0.0490 \\ \cline{2-7}
& Stress & 5.200 & 2.598 & 0.108 & 10.293 & 0.0453 \\ \hline
\end{tabular}}
\caption{LMM results for common significant features across stress and calm tasks (WESAD vs AffectiveRoad)}
\label{tab:lmm_detailed_wesad_affectiveroad}
\end{table}





\end{document}






\endinput
%%
%% End of file `sample-manuscript.tex'.

%%% -*-BibTeX-*-
%%% Do NOT edit. File created by BibTeX with style
%%% ACM-Reference-Format-Journals [18-Jan-2012].

\begin{thebibliography}{144}

%%% ====================================================================
%%% NOTE TO THE USER: you can override these defaults by providing
%%% customized versions of any of these macros before the \bibliography
%%% command.  Each of them MUST provide its own final punctuation,
%%% except for \shownote{}, \showDOI{}, and \showURL{}.  The latter two
%%% do not use final punctuation, in order to avoid confusing it with
%%% the Web address.
%%%
%%% To suppress output of a particular field, define its macro to expand
%%% to an empty string, or better, \unskip, like this:
%%%
%%% \newcommand{\showDOI}[1]{\unskip}   % LaTeX syntax
%%%
%%% \def \showDOI #1{\unskip}           % plain TeX syntax
%%%
%%% ====================================================================

\ifx \showCODEN    \undefined \def \showCODEN     #1{\unskip}     \fi
\ifx \showDOI      \undefined \def \showDOI       #1{#1}\fi
\ifx \showISBNx    \undefined \def \showISBNx     #1{\unskip}     \fi
\ifx \showISBNxiii \undefined \def \showISBNxiii  #1{\unskip}     \fi
\ifx \showISSN     \undefined \def \showISSN      #1{\unskip}     \fi
\ifx \showLCCN     \undefined \def \showLCCN      #1{\unskip}     \fi
\ifx \shownote     \undefined \def \shownote      #1{#1}          \fi
\ifx \showarticletitle \undefined \def \showarticletitle #1{#1}   \fi
\ifx \showURL      \undefined \def \showURL       {\relax}        \fi
% The following commands are used for tagged output and should be
% invisible to TeX
\providecommand\bibfield[2]{#2}
\providecommand\bibinfo[2]{#2}
\providecommand\natexlab[1]{#1}
\providecommand\showeprint[2][]{arXiv:#2}

\bibitem[Ajakan et~al\mbox{.}(2014)]%
        {ajakan2014domain}
\bibfield{author}{\bibinfo{person}{Hana Ajakan}, \bibinfo{person}{Pascal
  Germain}, \bibinfo{person}{Hugo Larochelle}, \bibinfo{person}{Fran{\c{c}}ois
  Laviolette}, {and} \bibinfo{person}{Mario Marchand}.}
  \bibinfo{year}{2014}\natexlab{}.
\newblock \showarticletitle{Domain-adversarial neural networks}.
\newblock \bibinfo{journal}{\emph{arXiv preprint arXiv:1412.4446}}
  (\bibinfo{year}{2014}).
\newblock


\bibitem[Akrout et~al\mbox{.}(2023)]%
        {akrout2023domain}
\bibfield{author}{\bibinfo{person}{Mohamed Akrout}, \bibinfo{person}{Amal
  Feriani}, \bibinfo{person}{Faouzi Bellili}, \bibinfo{person}{Amine Mezghani},
  {and} \bibinfo{person}{Ekram Hossain}.} \bibinfo{year}{2023}\natexlab{}.
\newblock \showarticletitle{Domain Generalization in Machine Learning Models
  for Wireless Communications: Concepts, State-of-the-Art, and Open Issues}.
\newblock \bibinfo{journal}{\emph{IEEE Communications Surveys \& Tutorials}}
  (\bibinfo{year}{2023}).
\newblock


\bibitem[Allan(2019)]%
        {allan2019ethics}
\bibfield{author}{\bibinfo{person}{Julaine Allan}.}
  \bibinfo{year}{2019}\natexlab{}.
\newblock \showarticletitle{Ethics and practice of research with people who use
  drugs}.
\newblock  (\bibinfo{year}{2019}).
\newblock


\bibitem[Allen et~al\mbox{.}(2017)]%
        {allen2017trier}
\bibfield{author}{\bibinfo{person}{Andrew~P Allen}, \bibinfo{person}{Paul~J
  Kennedy}, \bibinfo{person}{Samantha Dockray}, \bibinfo{person}{John~F Cryan},
  \bibinfo{person}{Timothy~G Dinan}, {and} \bibinfo{person}{Gerard Clarke}.}
  \bibinfo{year}{2017}\natexlab{}.
\newblock \showarticletitle{The trier social stress test: principles and
  practice}.
\newblock \bibinfo{journal}{\emph{Neurobiology of stress}}  \bibinfo{volume}{6}
  (\bibinfo{year}{2017}), \bibinfo{pages}{113--126}.
\newblock


\bibitem[Almazrouei et~al\mbox{.}(2023)]%
        {almazrouei2023method}
\bibfield{author}{\bibinfo{person}{Mohammed~A Almazrouei},
  \bibinfo{person}{Ruth~M Morgan}, {and} \bibinfo{person}{Itiel~E Dror}.}
  \bibinfo{year}{2023}\natexlab{}.
\newblock \showarticletitle{A method to induce stress in human subjects in
  online research environments}.
\newblock \bibinfo{journal}{\emph{Behavior research methods}}
  \bibinfo{volume}{55}, \bibinfo{number}{5} (\bibinfo{year}{2023}),
  \bibinfo{pages}{2575--2582}.
\newblock


\bibitem[Anderson and McNair(2018)]%
        {anderson2018ethical}
\bibfield{author}{\bibinfo{person}{Emily Anderson} {and}
  \bibinfo{person}{Lindsay McNair}.} \bibinfo{year}{2018}\natexlab{}.
\newblock \showarticletitle{Ethical issues in research involving participants
  with opioid use disorder}.
\newblock \bibinfo{journal}{\emph{Therapeutic innovation \& regulatory
  science}} \bibinfo{volume}{52}, \bibinfo{number}{3} (\bibinfo{year}{2018}),
  \bibinfo{pages}{280--284}.
\newblock


\bibitem[Arjovsky et~al\mbox{.}(2019)]%
        {arjovsky2019invariant}
\bibfield{author}{\bibinfo{person}{Martin Arjovsky}, \bibinfo{person}{L{\'e}on
  Bottou}, \bibinfo{person}{Ishaan Gulrajani}, {and} \bibinfo{person}{David
  Lopez-Paz}.} \bibinfo{year}{2019}\natexlab{}.
\newblock \showarticletitle{Invariant risk minimization}.
\newblock \bibinfo{journal}{\emph{arXiv preprint arXiv:1907.02893}}
  (\bibinfo{year}{2019}).
\newblock


\bibitem[Avery-Desmarais et~al\mbox{.}(2024)]%
        {avery2024barriers}
\bibfield{author}{\bibinfo{person}{Shannon Avery-Desmarais},
  \bibinfo{person}{Monika Schuler}, \bibinfo{person}{Jennifer Viveiros},
  \bibinfo{person}{Mary McCurry}, \bibinfo{person}{Mirinda Tyo}, {and}
  \bibinfo{person}{Brianna Kauranen}.} \bibinfo{year}{2024}\natexlab{}.
\newblock \showarticletitle{Barriers and Facilitators to Recruitment of a
  Multifaceted Population of Opioid Use Disorder Community Stakeholders}.
\newblock \bibinfo{journal}{\emph{Journal of Addictions Nursing}}
  \bibinfo{volume}{35}, \bibinfo{number}{3} (\bibinfo{year}{2024}),
  \bibinfo{pages}{137--141}.
\newblock


\bibitem[Back et~al\mbox{.}(2015)]%
        {back2015laboratory}
\bibfield{author}{\bibinfo{person}{Sudie~E Back}, \bibinfo{person}{Daniel~F
  Gros}, \bibinfo{person}{Matthew Price}, \bibinfo{person}{Steve LaRowe},
  \bibinfo{person}{Julianne Flanagan}, \bibinfo{person}{Kathleen~T Brady},
  \bibinfo{person}{Charles Davis}, \bibinfo{person}{Maryanne Jaconis}, {and}
  \bibinfo{person}{Jenna~L McCauley}.} \bibinfo{year}{2015}\natexlab{}.
\newblock \showarticletitle{Laboratory-induced stress and craving among
  individuals with prescription opioid dependence}.
\newblock \bibinfo{journal}{\emph{Drug and alcohol dependence}}
  \bibinfo{volume}{155} (\bibinfo{year}{2015}), \bibinfo{pages}{60--67}.
\newblock


\bibitem[Bao et~al\mbox{.}(2024)]%
        {bao2024adaptive}
\bibfield{author}{\bibinfo{person}{Wenxuan Bao}, \bibinfo{person}{Tianxin Wei},
  \bibinfo{person}{Haohan Wang}, {and} \bibinfo{person}{Jingrui He}.}
  \bibinfo{year}{2024}\natexlab{}.
\newblock \showarticletitle{Adaptive test-time personalization for federated
  learning}.
\newblock \bibinfo{journal}{\emph{Advances in Neural Information Processing
  Systems}}  \bibinfo{volume}{36} (\bibinfo{year}{2024}).
\newblock


\bibitem[Bartoldson et~al\mbox{.}(2020)]%
        {bartoldson2020generalization}
\bibfield{author}{\bibinfo{person}{Brian Bartoldson}, \bibinfo{person}{Ari
  Morcos}, \bibinfo{person}{Adrian Barbu}, {and} \bibinfo{person}{Gordon
  Erlebacher}.} \bibinfo{year}{2020}\natexlab{}.
\newblock \showarticletitle{The generalization-stability tradeoff in neural
  network pruning}.
\newblock \bibinfo{journal}{\emph{Advances in Neural Information Processing
  Systems}}  \bibinfo{volume}{33} (\bibinfo{year}{2020}),
  \bibinfo{pages}{20852--20864}.
\newblock


\bibitem[Beierle and Pryss(2023)]%
        {beierle2023automating}
\bibfield{author}{\bibinfo{person}{Felix Beierle} {and}
  \bibinfo{person}{R{\"u}diger Pryss}.} \bibinfo{year}{2023}\natexlab{}.
\newblock \showarticletitle{Automating the Development of Stress Detection
  Systems}. In \bibinfo{booktitle}{\emph{2023 Congress in Computer Science,
  Computer Engineering, \& Applied Computing (CSCE)}}. IEEE,
  \bibinfo{pages}{2694--2696}.
\newblock


\bibitem[Belal et~al\mbox{.}(2021)]%
        {belal2021knowledge}
\bibfield{author}{\bibinfo{person}{Atif Belal}, \bibinfo{person}{Madhu Kiran},
  \bibinfo{person}{Jose Dolz}, \bibinfo{person}{Louis-Antoine Blais-Morin},
  \bibinfo{person}{Eric Granger}, {et~al\mbox{.}}}
  \bibinfo{year}{2021}\natexlab{}.
\newblock \showarticletitle{Knowledge distillation methods for efficient
  unsupervised adaptation across multiple domains}.
\newblock \bibinfo{journal}{\emph{Image and Vision Computing}}
  \bibinfo{volume}{108} (\bibinfo{year}{2021}), \bibinfo{pages}{104096}.
\newblock


\bibitem[Bent et~al\mbox{.}(2020)]%
        {bent2020investigating}
\bibfield{author}{\bibinfo{person}{Brinnae Bent}, \bibinfo{person}{Benjamin~A
  Goldstein}, \bibinfo{person}{Warren~A Kibbe}, {and}
  \bibinfo{person}{Jessilyn~P Dunn}.} \bibinfo{year}{2020}\natexlab{}.
\newblock \showarticletitle{Investigating sources of inaccuracy in wearable
  optical heart rate sensors}.
\newblock \bibinfo{journal}{\emph{NPJ digital medicine}} \bibinfo{volume}{3},
  \bibinfo{number}{1} (\bibinfo{year}{2020}), \bibinfo{pages}{18}.
\newblock


\bibitem[Bernardes et~al\mbox{.}(2022)]%
        {bernardes2022reliable}
\bibfield{author}{\bibinfo{person}{Andr{\'e} Bernardes},
  \bibinfo{person}{Ricardo Couceiro}, \bibinfo{person}{J{\'u}lio Medeiros},
  \bibinfo{person}{Jorge Henriques}, \bibinfo{person}{C{\'e}sar Teixeira},
  \bibinfo{person}{Marco Sim{\~o}es}, \bibinfo{person}{Jo{\~a}o Dur{\~a}es},
  \bibinfo{person}{Raul Barbosa}, \bibinfo{person}{Henrique Madeira}, {and}
  \bibinfo{person}{Paulo Carvalho}.} \bibinfo{year}{2022}\natexlab{}.
\newblock \showarticletitle{How reliable are ultra-short-term HRV measurements
  during cognitively demanding tasks?}
\newblock \bibinfo{journal}{\emph{Sensors}} \bibinfo{volume}{22},
  \bibinfo{number}{17} (\bibinfo{year}{2022}), \bibinfo{pages}{6528}.
\newblock


\bibitem[Bolpagni et~al\mbox{.}(2024)]%
        {bolpagni2024personalized}
\bibfield{author}{\bibinfo{person}{Marco Bolpagni}, \bibinfo{person}{Susanna
  Pardini}, \bibinfo{person}{Marco Dianti}, {and} \bibinfo{person}{Silvia
  Gabrielli}.} \bibinfo{year}{2024}\natexlab{}.
\newblock \showarticletitle{Personalized Stress Detection Using Biosignals from
  Wearables: A Scoping Review}.
\newblock \bibinfo{journal}{\emph{Sensors}} \bibinfo{volume}{24},
  \bibinfo{number}{10} (\bibinfo{year}{2024}), \bibinfo{pages}{3221}.
\newblock


\bibitem[Boucsein(2012)]%
        {boucsein2012electrodermal}
\bibfield{author}{\bibinfo{person}{Wolfram Boucsein}.}
  \bibinfo{year}{2012}\natexlab{}.
\newblock \bibinfo{booktitle}{\emph{Electrodermal activity}}.
\newblock \bibinfo{publisher}{Springer Science \& Business Media}.
\newblock


\bibitem[Buijs and Van~Eden(2000)]%
        {buijs2000integration}
\bibfield{author}{\bibinfo{person}{Ruud~M Buijs} {and}
  \bibinfo{person}{Corbert~G Van~Eden}.} \bibinfo{year}{2000}\natexlab{}.
\newblock \showarticletitle{The integration of stress by the hypothalamus,
  amygdala and prefrontal cortex: balance between the autonomic nervous system
  and the neuroendocrine system}.
\newblock In \bibinfo{booktitle}{\emph{Progress in brain research}}.
  Vol.~\bibinfo{volume}{126}. \bibinfo{publisher}{Elsevier},
  \bibinfo{pages}{117--132}.
\newblock


\bibitem[Campanella et~al\mbox{.}(2023)]%
        {campanella2023method}
\bibfield{author}{\bibinfo{person}{Sara Campanella}, \bibinfo{person}{Ayham
  Altaleb}, \bibinfo{person}{Alberto Belli}, \bibinfo{person}{Paola Pierleoni},
  {and} \bibinfo{person}{Lorenzo Palma}.} \bibinfo{year}{2023}\natexlab{}.
\newblock \showarticletitle{A method for stress detection using empatica E4
  bracelet and machine-learning techniques}.
\newblock \bibinfo{journal}{\emph{Sensors}} \bibinfo{volume}{23},
  \bibinfo{number}{7} (\bibinfo{year}{2023}), \bibinfo{pages}{3565}.
\newblock


\bibitem[Carlson et~al\mbox{.}(2012)]%
        {carlson2012trait}
\bibfield{author}{\bibinfo{person}{Joshua~M Carlson},
  \bibinfo{person}{G{\"u}lce~N Dikecligil}, \bibinfo{person}{Tsafrir
  Greenberg}, {and} \bibinfo{person}{Lilianne~R Mujica-Parodi}.}
  \bibinfo{year}{2012}\natexlab{}.
\newblock \showarticletitle{Trait reappraisal is associated with resilience to
  acute psychological stress}.
\newblock \bibinfo{journal}{\emph{Journal of research in personality}}
  \bibinfo{volume}{46}, \bibinfo{number}{5} (\bibinfo{year}{2012}),
  \bibinfo{pages}{609--613}.
\newblock


\bibitem[Carreiro et~al\mbox{.}(2015)]%
        {carreiro2015imstrong}
\bibfield{author}{\bibinfo{person}{Stephanie Carreiro}, \bibinfo{person}{Hua
  Fang}, \bibinfo{person}{Jianying Zhang}, \bibinfo{person}{Kelley Wittbold},
  \bibinfo{person}{Shicheng Weng}, \bibinfo{person}{Rachel Mullins},
  \bibinfo{person}{David Smelson}, {and} \bibinfo{person}{Edward~W Boyer}.}
  \bibinfo{year}{2015}\natexlab{}.
\newblock \showarticletitle{iMStrong: deployment of a biosensor system to
  detect cocaine use}.
\newblock \bibinfo{journal}{\emph{Journal of medical systems}}
  \bibinfo{volume}{39} (\bibinfo{year}{2015}), \bibinfo{pages}{1--8}.
\newblock


\bibitem[Carreiro et~al\mbox{.}(2016)]%
        {carreiro2016wearable}
\bibfield{author}{\bibinfo{person}{Stephanie Carreiro}, \bibinfo{person}{Kelley
  Wittbold}, \bibinfo{person}{Premananda Indic}, \bibinfo{person}{Hua Fang},
  \bibinfo{person}{Jianying Zhang}, {and} \bibinfo{person}{Edward~W Boyer}.}
  \bibinfo{year}{2016}\natexlab{}.
\newblock \showarticletitle{Wearable biosensors to detect physiologic change
  during opioid use}.
\newblock \bibinfo{journal}{\emph{Journal of medical toxicology}}
  \bibinfo{volume}{12} (\bibinfo{year}{2016}), \bibinfo{pages}{255--262}.
\newblock


\bibitem[Cha et~al\mbox{.}(2021)]%
        {cha2021swad}
\bibfield{author}{\bibinfo{person}{Junbum Cha}, \bibinfo{person}{Sanghyuk
  Chun}, \bibinfo{person}{Kyungjae Lee}, \bibinfo{person}{Han-Cheol Cho},
  \bibinfo{person}{Seunghyun Park}, \bibinfo{person}{Yunsung Lee}, {and}
  \bibinfo{person}{Sungrae Park}.} \bibinfo{year}{2021}\natexlab{}.
\newblock \showarticletitle{Swad: Domain generalization by seeking flat
  minima}.
\newblock \bibinfo{journal}{\emph{Advances in Neural Information Processing
  Systems}}  \bibinfo{volume}{34} (\bibinfo{year}{2021}),
  \bibinfo{pages}{22405--22418}.
\newblock


\bibitem[Chai et~al\mbox{.}(2022)]%
        {chai2022fairness}
\bibfield{author}{\bibinfo{person}{Junyi Chai}, \bibinfo{person}{Taeuk Jang},
  {and} \bibinfo{person}{Xiaoqian Wang}.} \bibinfo{year}{2022}\natexlab{}.
\newblock \showarticletitle{Fairness without demographics through knowledge
  distillation}.
\newblock \bibinfo{journal}{\emph{Advances in Neural Information Processing
  Systems}}  \bibinfo{volume}{35} (\bibinfo{year}{2022}),
  \bibinfo{pages}{19152--19164}.
\newblock


\bibitem[Chandra et~al\mbox{.}(2021)]%
        {chandra2021comparative}
\bibfield{author}{\bibinfo{person}{Varun Chandra}, \bibinfo{person}{Ankit
  Priyarup}, {and} \bibinfo{person}{Divyashikha Sethia}.}
  \bibinfo{year}{2021}\natexlab{}.
\newblock \showarticletitle{Comparative study of physiological signals from
  empatica e4 wristband for stress classification}. In
  \bibinfo{booktitle}{\emph{Advances in Computing and Data Sciences: 5th
  International Conference, ICACDS 2021, Nashik, India, April 23--24, 2021,
  Revised Selected Papers, Part II 5}}. Springer, \bibinfo{pages}{218--229}.
\newblock


\bibitem[Chapman et~al\mbox{.}(2022)]%
        {chapman2022impact}
\bibfield{author}{\bibinfo{person}{Brittany~P Chapman},
  \bibinfo{person}{Bhanu~Teja Gullapalli}, \bibinfo{person}{Tauhidur Rahman},
  \bibinfo{person}{David Smelson}, \bibinfo{person}{Edward~W Boyer}, {and}
  \bibinfo{person}{Stephanie Carreiro}.} \bibinfo{year}{2022}\natexlab{}.
\newblock \showarticletitle{Impact of individual and treatment characteristics
  on wearable sensor-based digital biomarkers of opioid use}.
\newblock \bibinfo{journal}{\emph{NPJ Digital Medicine}} \bibinfo{volume}{5},
  \bibinfo{number}{1} (\bibinfo{year}{2022}), \bibinfo{pages}{123}.
\newblock


\bibitem[Cheng et~al\mbox{.}(2024)]%
        {cheng2024survey}
\bibfield{author}{\bibinfo{person}{Hongrong Cheng}, \bibinfo{person}{Miao
  Zhang}, {and} \bibinfo{person}{Javen~Qinfeng Shi}.}
  \bibinfo{year}{2024}\natexlab{}.
\newblock \showarticletitle{A Survey on Deep Neural Network Pruning: Taxonomy,
  Comparison, Analysis, and Recommendations}.
\newblock \bibinfo{journal}{\emph{IEEE Transactions on Pattern Analysis and
  Machine Intelligence}} (\bibinfo{year}{2024}).
\newblock


\bibitem[Chintha et~al\mbox{.}(2018)]%
        {chintha2018wearable}
\bibfield{author}{\bibinfo{person}{Keerthi~Kumar Chintha},
  \bibinfo{person}{Premananda Indic}, \bibinfo{person}{Brittany Chapman},
  \bibinfo{person}{Edward~W Boyer}, {and} \bibinfo{person}{Stephanie
  Carreiro}.} \bibinfo{year}{2018}\natexlab{}.
\newblock \showarticletitle{Wearable biosensors to evaluate recurrent opioid
  toxicity after naloxone administration: a Hilbert transform approach}. In
  \bibinfo{booktitle}{\emph{Proceedings of the... Annual Hawaii International
  Conference on System Sciences. Annual Hawaii International Conference on
  System Sciences}}, Vol.~\bibinfo{volume}{2018}. NIH Public Access,
  \bibinfo{pages}{3247}.
\newblock


\bibitem[Choi et~al\mbox{.}(2022)]%
        {choi2022attention}
\bibfield{author}{\bibinfo{person}{Jiho Choi}, \bibinfo{person}{Jun~Seong Lee},
  \bibinfo{person}{Moonwook Ryu}, \bibinfo{person}{Gyutae Hwang},
  \bibinfo{person}{Gyeongyeon Hwang}, {and} \bibinfo{person}{Sang~Jun Lee}.}
  \bibinfo{year}{2022}\natexlab{}.
\newblock \showarticletitle{Attention-LRCN: long-term recurrent convolutional
  network for stress detection from photoplethysmography}. In
  \bibinfo{booktitle}{\emph{2022 IEEE International Symposium on Medical
  Measurements and Applications (MeMeA)}}. IEEE, \bibinfo{pages}{1--6}.
\newblock


\bibitem[Connolly and Alloy(2018)]%
        {connolly2018negative}
\bibfield{author}{\bibinfo{person}{Samantha~L Connolly} {and}
  \bibinfo{person}{Lauren~B Alloy}.} \bibinfo{year}{2018}\natexlab{}.
\newblock \showarticletitle{Negative event recall as a vulnerability for
  depression: Relationship between momentary stress-reactive rumination and
  memory for daily life stress}.
\newblock \bibinfo{journal}{\emph{Clinical Psychological Science}}
  \bibinfo{volume}{6}, \bibinfo{number}{1} (\bibinfo{year}{2018}),
  \bibinfo{pages}{32--47}.
\newblock


\bibitem[Crielaard et~al\mbox{.}(2021)]%
        {crielaard2021understanding}
\bibfield{author}{\bibinfo{person}{Loes Crielaard}, \bibinfo{person}{Mary
  Nicolaou}, \bibinfo{person}{Alexia Sawyer}, \bibinfo{person}{Rick Quax},
  {and} \bibinfo{person}{Karien Stronks}.} \bibinfo{year}{2021}\natexlab{}.
\newblock \showarticletitle{Understanding the impact of exposure to adverse
  socioeconomic conditions on chronic stress from a complexity science
  perspective}.
\newblock \bibinfo{journal}{\emph{BMC medicine}}  \bibinfo{volume}{19}
  (\bibinfo{year}{2021}), \bibinfo{pages}{1--20}.
\newblock


\bibitem[Dai et~al\mbox{.}(2019)]%
        {dai2019nest}
\bibfield{author}{\bibinfo{person}{Xiaoliang Dai}, \bibinfo{person}{Hongxu
  Yin}, {and} \bibinfo{person}{Niraj~K Jha}.} \bibinfo{year}{2019}\natexlab{}.
\newblock \showarticletitle{NeST: A neural network synthesis tool based on a
  grow-and-prune paradigm}.
\newblock \bibinfo{journal}{\emph{IEEE Trans. Comput.}} \bibinfo{volume}{68},
  \bibinfo{number}{10} (\bibinfo{year}{2019}), \bibinfo{pages}{1487--1497}.
\newblock


\bibitem[Davis et~al\mbox{.}(2017)]%
        {davis2017prescription}
\bibfield{author}{\bibinfo{person}{Matthew~A Davis}, \bibinfo{person}{Lewei~A
  Lin}, \bibinfo{person}{Haiyin Liu}, {and} \bibinfo{person}{Brian~D Sites}.}
  \bibinfo{year}{2017}\natexlab{}.
\newblock \showarticletitle{Prescription opioid use among adults with mental
  health disorders in the United States}.
\newblock \bibinfo{journal}{\emph{The Journal of the American Board of Family
  Medicine}} \bibinfo{volume}{30}, \bibinfo{number}{4} (\bibinfo{year}{2017}),
  \bibinfo{pages}{407--417}.
\newblock


\bibitem[De~La~Rosa et~al\mbox{.}(2012)]%
        {de2012challenges}
\bibfield{author}{\bibinfo{person}{Mario De~La~Rosa}, \bibinfo{person}{Rosa
  Babino}, \bibinfo{person}{Adelaida Rosario},
  \bibinfo{person}{Natalia~Valiente Martinez}, {and} \bibinfo{person}{Lubna
  Aijaz}.} \bibinfo{year}{2012}\natexlab{}.
\newblock \showarticletitle{Challenges and strategies in recruiting,
  interviewing, and retaining recent Latino immigrants in substance abuse and
  HIV epidemiologic studies}.
\newblock \bibinfo{journal}{\emph{The American Journal on Addictions}}
  \bibinfo{volume}{21}, \bibinfo{number}{1} (\bibinfo{year}{2012}),
  \bibinfo{pages}{11--22}.
\newblock


\bibitem[Dzie{\.z}yc et~al\mbox{.}(2020)]%
        {dziezyc2020can}
\bibfield{author}{\bibinfo{person}{Maciej Dzie{\.z}yc}, \bibinfo{person}{Martin
  Gjoreski}, \bibinfo{person}{Przemys{\l}aw Kazienko},
  \bibinfo{person}{Stanis{\l}aw Saganowski}, {and}
  \bibinfo{person}{Matja{\v{z}} Gams}.} \bibinfo{year}{2020}\natexlab{}.
\newblock \showarticletitle{Can we ditch feature engineering? end-to-end deep
  learning for affect recognition from physiological sensor data}.
\newblock \bibinfo{journal}{\emph{Sensors}} \bibinfo{volume}{20},
  \bibinfo{number}{22} (\bibinfo{year}{2020}), \bibinfo{pages}{6535}.
\newblock


\bibitem[Fishman et~al\mbox{.}(2000)]%
        {fishman2000adherence}
\bibfield{author}{\bibinfo{person}{Scott~M Fishman}, \bibinfo{person}{Barth
  Wilsey}, \bibinfo{person}{Jane Yang}, \bibinfo{person}{Gary~M Reisfield},
  \bibinfo{person}{Tara~B Bandman}, {and} \bibinfo{person}{David Borsook}.}
  \bibinfo{year}{2000}\natexlab{}.
\newblock \showarticletitle{Adherence monitoring and drug surveillance in
  chronic opioid therapy}.
\newblock \bibinfo{journal}{\emph{Journal of pain and symptom management}}
  \bibinfo{volume}{20}, \bibinfo{number}{4} (\bibinfo{year}{2000}),
  \bibinfo{pages}{293--307}.
\newblock


\bibitem[Foltyn and Deuschel(2021)]%
        {foltyn2021towards}
\bibfield{author}{\bibinfo{person}{Andreas Foltyn} {and}
  \bibinfo{person}{Jessica Deuschel}.} \bibinfo{year}{2021}\natexlab{}.
\newblock \showarticletitle{Towards reliable multimodal stress detection under
  distribution shift}. In \bibinfo{booktitle}{\emph{Companion Publication of
  the 2021 International Conference on Multimodal Interaction}}.
  \bibinfo{pages}{329--333}.
\newblock


\bibitem[Föll et~al\mbox{.}(2021)]%
        {flirt2021}
\bibfield{author}{\bibinfo{person}{Simon Föll}, \bibinfo{person}{Martin
  Maritsch}, \bibinfo{person}{Federica Spinola}, \bibinfo{person}{Varun
  Mishra}, \bibinfo{person}{Filipe Barata}, \bibinfo{person}{Tobias Kowatsch},
  \bibinfo{person}{Elgar Fleisch}, {and} \bibinfo{person}{Felix Wortmann}.}
  \bibinfo{year}{2021}\natexlab{}.
\newblock \showarticletitle{{{FLIRT}}: A {{Feature Generation Toolkit}} for
  {{Wearable Data}}}.
\newblock \bibinfo{journal}{\emph{Computer Methods and Programs in
  Biomedicine}} (\bibinfo{year}{2021}).
\newblock
\urldef\tempurl%
\url{https://doi.org/10.1016/j.cmpb.2021.106461}
\showDOI{\tempurl}


\bibitem[Ganin et~al\mbox{.}(2016)]%
        {ganin2016domain}
\bibfield{author}{\bibinfo{person}{Yaroslav Ganin}, \bibinfo{person}{Evgeniya
  Ustinova}, \bibinfo{person}{Hana Ajakan}, \bibinfo{person}{Pascal Germain},
  \bibinfo{person}{Hugo Larochelle}, \bibinfo{person}{Fran{\c{c}}ois
  Laviolette}, \bibinfo{person}{Mario March}, {and} \bibinfo{person}{Victor
  Lempitsky}.} \bibinfo{year}{2016}\natexlab{}.
\newblock \showarticletitle{Domain-adversarial training of neural networks}.
\newblock \bibinfo{journal}{\emph{Journal of machine learning research}}
  \bibinfo{volume}{17}, \bibinfo{number}{59} (\bibinfo{year}{2016}),
  \bibinfo{pages}{1--35}.
\newblock


\bibitem[Gedam and Paul(2021)]%
        {gedam2021review}
\bibfield{author}{\bibinfo{person}{Shruti Gedam} {and}
  \bibinfo{person}{Sanchita Paul}.} \bibinfo{year}{2021}\natexlab{}.
\newblock \showarticletitle{A review on mental stress detection using wearable
  sensors and machine learning techniques}.
\newblock \bibinfo{journal}{\emph{IEEE Access}}  \bibinfo{volume}{9}
  (\bibinfo{year}{2021}), \bibinfo{pages}{84045--84066}.
\newblock


\bibitem[Ghiasi et~al\mbox{.}(2020)]%
        {ghiasi2020assessing}
\bibfield{author}{\bibinfo{person}{Shadi Ghiasi}, \bibinfo{person}{Alberto
  Greco}, \bibinfo{person}{Riccardo Barbieri}, \bibinfo{person}{Enzo~Pasquale
  Scilingo}, {and} \bibinfo{person}{Gaetano Valenza}.}
  \bibinfo{year}{2020}\natexlab{}.
\newblock \showarticletitle{Assessing autonomic function from electrodermal
  activity and heart rate variability during cold-pressor test and emotional
  challenge}.
\newblock \bibinfo{journal}{\emph{Scientific reports}} \bibinfo{volume}{10},
  \bibinfo{number}{1} (\bibinfo{year}{2020}), \bibinfo{pages}{5406}.
\newblock


\bibitem[Giles et~al\mbox{.}(2014)]%
        {giles2014stress}
\bibfield{author}{\bibinfo{person}{Grace~E Giles}, \bibinfo{person}{Caroline~R
  Mahoney}, \bibinfo{person}{Tad~T Bruny{\'e}}, \bibinfo{person}{Holly~A
  Taylor}, {and} \bibinfo{person}{Robin~B Kanarek}.}
  \bibinfo{year}{2014}\natexlab{}.
\newblock \showarticletitle{Stress effects on mood, HPA axis, and autonomic
  response: comparison of three psychosocial stress paradigms}.
\newblock \bibinfo{journal}{\emph{PloS one}} \bibinfo{volume}{9},
  \bibinfo{number}{12} (\bibinfo{year}{2014}), \bibinfo{pages}{e113618}.
\newblock


\bibitem[Gillespie et~al\mbox{.}(2009)]%
        {gillespie2009risk}
\bibfield{author}{\bibinfo{person}{Charles~F Gillespie},
  \bibinfo{person}{Justine Phifer}, \bibinfo{person}{Bekh Bradley}, {and}
  \bibinfo{person}{Kerry~J Ressler}.} \bibinfo{year}{2009}\natexlab{}.
\newblock \showarticletitle{Risk and resilience: genetic and environmental
  influences on development of the stress response}.
\newblock \bibinfo{journal}{\emph{Depression and anxiety}}
  \bibinfo{volume}{26}, \bibinfo{number}{11} (\bibinfo{year}{2009}),
  \bibinfo{pages}{984--992}.
\newblock


\bibitem[Gonz{\'a}lez~Ram{\'\i}rez et~al\mbox{.}(2023)]%
        {gonzalez2023wearables}
\bibfield{author}{\bibinfo{person}{Maria~Luisa Gonz{\'a}lez~Ram{\'\i}rez},
  \bibinfo{person}{Juan~Pablo Garc{\'\i}a~V{\'a}zquez},
  \bibinfo{person}{Marcela~D Rodr{\'\i}guez}, \bibinfo{person}{Luis~Alfredo
  Padilla-L{\'o}pez}, \bibinfo{person}{Gilberto~Manuel Galindo-Aldana}, {and}
  \bibinfo{person}{Daniel Cuevas-Gonz{\'a}lez}.}
  \bibinfo{year}{2023}\natexlab{}.
\newblock \showarticletitle{Wearables for Stress Management: A Scoping Review}.
  In \bibinfo{booktitle}{\emph{Healthcare}}, Vol.~\bibinfo{volume}{11}. MDPI,
  \bibinfo{pages}{2369}.
\newblock


\bibitem[Granger et~al\mbox{.}(2021)]%
        {granger2021progressive}
\bibfield{author}{\bibinfo{person}{Eric Granger}, \bibinfo{person}{Madhu
  Kiran}, \bibinfo{person}{Marco Pedersoli}, \bibinfo{person}{Louis-Antoine
  Blais-Morin}, {et~al\mbox{.}}} \bibinfo{year}{2021}\natexlab{}.
\newblock \showarticletitle{Progressive gradient pruning for classification,
  detection and domain adaptation}. In \bibinfo{booktitle}{\emph{2020 25th
  International Conference on Pattern Recognition (ICPR)}}. IEEE,
  \bibinfo{pages}{2795--2802}.
\newblock


\bibitem[Gullapalli et~al\mbox{.}(2021)]%
        {gullapalli2021opitrack}
\bibfield{author}{\bibinfo{person}{Bhanu~Teja Gullapalli},
  \bibinfo{person}{Stephanie Carreiro}, \bibinfo{person}{Brittany~P Chapman},
  \bibinfo{person}{Deepak Ganesan}, \bibinfo{person}{Jan Sjoquist}, {and}
  \bibinfo{person}{Tauhidur Rahman}.} \bibinfo{year}{2021}\natexlab{}.
\newblock \showarticletitle{Opitrack: a wearable-based clinical opioid use
  tracker with temporal convolutional attention networks}.
\newblock \bibinfo{journal}{\emph{Proceedings of the ACM on interactive,
  mobile, wearable and ubiquitous technologies}} \bibinfo{volume}{5},
  \bibinfo{number}{3} (\bibinfo{year}{2021}), \bibinfo{pages}{1--29}.
\newblock


\bibitem[Gullapalli et~al\mbox{.}(2019)]%
        {gullapalli2019body}
\bibfield{author}{\bibinfo{person}{Bhanu~Teja Gullapalli},
  \bibinfo{person}{Annamalai Natarajan}, \bibinfo{person}{Gustavo~A Angarita},
  \bibinfo{person}{Robert~T Malison}, \bibinfo{person}{Deepak Ganesan}, {and}
  \bibinfo{person}{Tauhidur Rahman}.} \bibinfo{year}{2019}\natexlab{}.
\newblock \showarticletitle{On-body sensing of cocaine craving, euphoria and
  drug-seeking behavior using cardiac and respiratory signals}.
\newblock \bibinfo{journal}{\emph{Proceedings of the ACM on Interactive,
  Mobile, Wearable and Ubiquitous Technologies}} \bibinfo{volume}{3},
  \bibinfo{number}{2} (\bibinfo{year}{2019}), \bibinfo{pages}{1--31}.
\newblock


\bibitem[Haigis and Yankner(2010)]%
        {haigis2010aging}
\bibfield{author}{\bibinfo{person}{Marcia~C Haigis} {and}
  \bibinfo{person}{Bruce~A Yankner}.} \bibinfo{year}{2010}\natexlab{}.
\newblock \showarticletitle{The aging stress response}.
\newblock \bibinfo{journal}{\emph{Molecular cell}} \bibinfo{volume}{40},
  \bibinfo{number}{2} (\bibinfo{year}{2010}), \bibinfo{pages}{333--344}.
\newblock


\bibitem[Haleem et~al\mbox{.}(2021)]%
        {haleem2021biosensors}
\bibfield{author}{\bibinfo{person}{Abid Haleem}, \bibinfo{person}{Mohd Javaid},
  \bibinfo{person}{Ravi~Pratap Singh}, \bibinfo{person}{Rajiv Suman}, {and}
  \bibinfo{person}{Shanay Rab}.} \bibinfo{year}{2021}\natexlab{}.
\newblock \showarticletitle{Biosensors applications in medical field: A brief
  review}.
\newblock \bibinfo{journal}{\emph{Sensors International}}  \bibinfo{volume}{2}
  (\bibinfo{year}{2021}), \bibinfo{pages}{100100}.
\newblock


\bibitem[Han et~al\mbox{.}(2024)]%
        {han2024systematic}
\bibfield{author}{\bibinfo{person}{Yunjo Han}, \bibinfo{person}{Panyu Zhang},
  \bibinfo{person}{Minseo Park}, {and} \bibinfo{person}{Uichin Lee}.}
  \bibinfo{year}{2024}\natexlab{}.
\newblock \showarticletitle{Systematic Evaluation of Personalized Deep Learning
  Models for Affect Recognition}.
\newblock \bibinfo{journal}{\emph{Proceedings of the ACM on Interactive,
  Mobile, Wearable and Ubiquitous Technologies}} \bibinfo{volume}{8},
  \bibinfo{number}{4} (\bibinfo{year}{2024}), \bibinfo{pages}{1--35}.
\newblock


\bibitem[Haouij et~al\mbox{.}(2018)]%
        {haouij2018affectiveroad}
\bibfield{author}{\bibinfo{person}{Neska~El Haouij},
  \bibinfo{person}{Jean-Michel Poggi}, \bibinfo{person}{Sylvie
  Sevestre-Ghalila}, \bibinfo{person}{Raja Ghozi}, {and}
  \bibinfo{person}{M{\'e}riem Ja{\"\i}dane}.} \bibinfo{year}{2018}\natexlab{}.
\newblock \showarticletitle{AffectiveROAD system and database to assess
  driver's attention}. In \bibinfo{booktitle}{\emph{Proceedings of the 33rd
  Annual ACM Symposium on Applied Computing}}. \bibinfo{pages}{800--803}.
\newblock


\bibitem[Hoffman et~al\mbox{.}(2014)]%
        {hoffman2014asymmetric}
\bibfield{author}{\bibinfo{person}{Judy Hoffman}, \bibinfo{person}{Erik
  Rodner}, \bibinfo{person}{Jeff Donahue}, \bibinfo{person}{Brian Kulis}, {and}
  \bibinfo{person}{Kate Saenko}.} \bibinfo{year}{2014}\natexlab{}.
\newblock \showarticletitle{Asymmetric and category invariant feature
  transformations for domain adaptation}.
\newblock \bibinfo{journal}{\emph{International journal of computer vision}}
  \bibinfo{volume}{109} (\bibinfo{year}{2014}), \bibinfo{pages}{28--41}.
\newblock


\bibitem[Hosseini et~al\mbox{.}(2022)]%
        {hosseini2022multimodal}
\bibfield{author}{\bibinfo{person}{Seyedmajid Hosseini}, \bibinfo{person}{Raju
  Gottumukkala}, \bibinfo{person}{Satya Katragadda}, \bibinfo{person}{Ravi~Teja
  Bhupatiraju}, \bibinfo{person}{Ziad Ashkar}, \bibinfo{person}{Christoph~W
  Borst}, {and} \bibinfo{person}{Kenneth Cochran}.}
  \bibinfo{year}{2022}\natexlab{}.
\newblock \showarticletitle{A multimodal sensor dataset for continuous stress
  detection of nurses in a hospital}.
\newblock \bibinfo{journal}{\emph{Scientific Data}} \bibinfo{volume}{9},
  \bibinfo{number}{1} (\bibinfo{year}{2022}), \bibinfo{pages}{255}.
\newblock


\bibitem[Jacoby et~al\mbox{.}(2021)]%
        {jacoby2021individual}
\bibfield{author}{\bibinfo{person}{Rebecca Jacoby}, \bibinfo{person}{Keren
  Greenfeld~Barsky}, \bibinfo{person}{Tal Porat}, \bibinfo{person}{Stav Harel},
  \bibinfo{person}{Tsipi Hanalis~Miller}, {and} \bibinfo{person}{Gil
  Goldzweig}.} \bibinfo{year}{2021}\natexlab{}.
\newblock \showarticletitle{Individual stress response patterns: Preliminary
  findings and possible implications}.
\newblock \bibinfo{journal}{\emph{PLoS One}} \bibinfo{volume}{16},
  \bibinfo{number}{8} (\bibinfo{year}{2021}), \bibinfo{pages}{e0255889}.
\newblock


\bibitem[Jaiswal et~al\mbox{.}(2024)]%
        {jaiswal2024tinystressnet}
\bibfield{author}{\bibinfo{person}{Dibyanshu Jaiswal}, \bibinfo{person}{Shalini
  Mukhopadhyay}, {and} \bibinfo{person}{Varsha Sharma}.}
  \bibinfo{year}{2024}\natexlab{}.
\newblock \showarticletitle{Tinystressnet: On-device stress assessment with
  wearable sensors on edge devices}. In \bibinfo{booktitle}{\emph{2024 IEEE
  International Conference on Pervasive Computing and Communications Workshops
  and other Affiliated Events (PerCom Workshops)}}. IEEE,
  \bibinfo{pages}{166--171}.
\newblock


\bibitem[Jiang et~al\mbox{.}(2022)]%
        {jiang2022transferability}
\bibfield{author}{\bibinfo{person}{Junguang Jiang}, \bibinfo{person}{Yang Shu},
  \bibinfo{person}{Jianmin Wang}, {and} \bibinfo{person}{Mingsheng Long}.}
  \bibinfo{year}{2022}\natexlab{}.
\newblock \bibinfo{title}{Transferability in Deep Learning: A Survey}.
\newblock
\newblock
\showeprint[arxiv]{2201.05867}~[cs.LG]


\bibitem[Jin(2022)]%
        {jin2022neural}
\bibfield{author}{\bibinfo{person}{Tian Jin}.} \bibinfo{year}{2022}\natexlab{}.
\newblock \emph{\bibinfo{title}{On neural network pruning’s effect on
  generalization}}.
\newblock \bibinfo{thesistype}{Ph.\,D. Dissertation}.
  \bibinfo{school}{Massachusetts Institute of Technology}.
\newblock


\bibitem[Junguang~Jiang(2020)]%
        {tllib}
\bibfield{author}{\bibinfo{person}{Bo~Fu Mingsheng~Long Junguang~Jiang,
  Baixu~Chen}.} \bibinfo{year}{2020}\natexlab{}.
\newblock \bibinfo{title}{Transfer-Learning-library}.
\newblock
  \bibinfo{howpublished}{\url{https://github.com/thuml/Transfer-Learning-Library}}.
\newblock


\bibitem[Kang et~al\mbox{.}(2023)]%
        {kang2023fashapley}
\bibfield{author}{\bibinfo{person}{Mintong Kang}, \bibinfo{person}{Linyi Li},
  {and} \bibinfo{person}{Bo Li}.} \bibinfo{year}{2023}\natexlab{}.
\newblock \showarticletitle{Fashapley: Fast and approximated shapley based
  model pruning towards certifiably robust dnns}. In
  \bibinfo{booktitle}{\emph{2023 IEEE Conference on Secure and Trustworthy
  Machine Learning (SaTML)}}. IEEE, \bibinfo{pages}{575--592}.
\newblock


\bibitem[Kirschbaum et~al\mbox{.}(1993)]%
        {kirschbaum1993trier}
\bibfield{author}{\bibinfo{person}{Clemens Kirschbaum},
  \bibinfo{person}{Karl-Martin Pirke}, {and} \bibinfo{person}{Dirk~H
  Hellhammer}.} \bibinfo{year}{1993}\natexlab{}.
\newblock \showarticletitle{The ‘Trier Social Stress Test’--a tool for
  investigating psychobiological stress responses in a laboratory setting}.
\newblock \bibinfo{journal}{\emph{Neuropsychobiology}} \bibinfo{volume}{28},
  \bibinfo{number}{1-2} (\bibinfo{year}{1993}), \bibinfo{pages}{76--81}.
\newblock


\bibitem[Koch et~al\mbox{.}(2015)]%
        {koch2015siamese}
\bibfield{author}{\bibinfo{person}{Gregory Koch}, \bibinfo{person}{Richard
  Zemel}, \bibinfo{person}{Ruslan Salakhutdinov}, {et~al\mbox{.}}}
  \bibinfo{year}{2015}\natexlab{}.
\newblock \showarticletitle{Siamese neural networks for one-shot image
  recognition}. In \bibinfo{booktitle}{\emph{ICML deep learning workshop}},
  Vol.~\bibinfo{volume}{2}. Lille, \bibinfo{pages}{1--30}.
\newblock


\bibitem[Kross et~al\mbox{.}(2012)]%
        {kross2012asking}
\bibfield{author}{\bibinfo{person}{Ethan Kross}, \bibinfo{person}{David Gard},
  \bibinfo{person}{Patricia Deldin}, \bibinfo{person}{Jessica Clifton}, {and}
  \bibinfo{person}{Ozlem Ayduk}.} \bibinfo{year}{2012}\natexlab{}.
\newblock \showarticletitle{“Asking why” from a distance: Its cognitive and
  emotional consequences for people with major depressive disorder.}
\newblock \bibinfo{journal}{\emph{Journal of abnormal psychology}}
  \bibinfo{volume}{121}, \bibinfo{number}{3} (\bibinfo{year}{2012}),
  \bibinfo{pages}{559}.
\newblock


\bibitem[Krueger et~al\mbox{.}(2021)]%
        {krueger2021out}
\bibfield{author}{\bibinfo{person}{David Krueger}, \bibinfo{person}{Ethan
  Caballero}, \bibinfo{person}{Joern-Henrik Jacobsen}, \bibinfo{person}{Amy
  Zhang}, \bibinfo{person}{Jonathan Binas}, \bibinfo{person}{Dinghuai Zhang},
  \bibinfo{person}{Remi Le~Priol}, {and} \bibinfo{person}{Aaron Courville}.}
  \bibinfo{year}{2021}\natexlab{}.
\newblock \showarticletitle{Out-of-distribution generalization via risk
  extrapolation (rex)}. In \bibinfo{booktitle}{\emph{International conference
  on machine learning}}. PMLR, \bibinfo{pages}{5815--5826}.
\newblock


\bibitem[Lambert et~al\mbox{.}(2024)]%
        {lambert2024comparison}
\bibfield{author}{\bibinfo{person}{Tamara~P Lambert}, \bibinfo{person}{Michael
  Chan}, \bibinfo{person}{Jesus~Antonio Sanchez-Perez},
  \bibinfo{person}{Mohammad Nikbakht}, \bibinfo{person}{David~J Lin},
  \bibinfo{person}{Afra Nawar}, \bibinfo{person}{Syed~Khairul Bashar},
  \bibinfo{person}{Jacob~P Kimball}, \bibinfo{person}{Jonathan~S Zia},
  \bibinfo{person}{Asim~H Gazi}, {et~al\mbox{.}}}
  \bibinfo{year}{2024}\natexlab{}.
\newblock \showarticletitle{A Comparison of Normalization Techniques for
  Individual Baseline-Free Estimation of Absolute Hypovolemic Status Using a
  Porcine Model}.
\newblock \bibinfo{journal}{\emph{Biosensors}} \bibinfo{volume}{14},
  \bibinfo{number}{2} (\bibinfo{year}{2024}), \bibinfo{pages}{61}.
\newblock


\bibitem[Lecic-Tosevski et~al\mbox{.}(2011)]%
        {lecic2011stress}
\bibfield{author}{\bibinfo{person}{D Lecic-Tosevski}, \bibinfo{person}{O
  Vukovic}, {and} \bibinfo{person}{J Stepanovic}.}
  \bibinfo{year}{2011}\natexlab{}.
\newblock \showarticletitle{Stress and personality}.
\newblock \bibinfo{journal}{\emph{Psychiatriki}} \bibinfo{volume}{22},
  \bibinfo{number}{4} (\bibinfo{year}{2011}), \bibinfo{pages}{290--297}.
\newblock


\bibitem[Leshner and Dzau(2019)]%
        {leshner2019medication}
\bibfield{author}{\bibinfo{person}{Alan~I Leshner} {and}
  \bibinfo{person}{Victor~J Dzau}.} \bibinfo{year}{2019}\natexlab{}.
\newblock \showarticletitle{Medication-based treatment to address opioid use
  disorder}.
\newblock \bibinfo{journal}{\emph{Jama}} \bibinfo{volume}{321},
  \bibinfo{number}{21} (\bibinfo{year}{2019}), \bibinfo{pages}{2071--2072}.
\newblock


\bibitem[Li et~al\mbox{.}(2018b)]%
        {li2018learning}
\bibfield{author}{\bibinfo{person}{Da Li}, \bibinfo{person}{Yongxin Yang},
  \bibinfo{person}{Yi-Zhe Song}, {and} \bibinfo{person}{Timothy Hospedales}.}
  \bibinfo{year}{2018}\natexlab{b}.
\newblock \showarticletitle{Learning to generalize: Meta-learning for domain
  generalization}. In \bibinfo{booktitle}{\emph{Proceedings of the AAAI
  conference on artificial intelligence}}, Vol.~\bibinfo{volume}{32}.
\newblock


\bibitem[Li et~al\mbox{.}(2018a)]%
        {li2018visualizing}
\bibfield{author}{\bibinfo{person}{Hao Li}, \bibinfo{person}{Zheng Xu},
  \bibinfo{person}{Gavin Taylor}, \bibinfo{person}{Christoph Studer}, {and}
  \bibinfo{person}{Tom Goldstein}.} \bibinfo{year}{2018}\natexlab{a}.
\newblock \showarticletitle{Visualizing the loss landscape of neural nets}.
\newblock \bibinfo{journal}{\emph{Advances in neural information processing
  systems}}  \bibinfo{volume}{31} (\bibinfo{year}{2018}).
\newblock


\bibitem[Li and Liu(2020)]%
        {li2020stress}
\bibfield{author}{\bibinfo{person}{Russell Li} {and} \bibinfo{person}{Zhandong
  Liu}.} \bibinfo{year}{2020}\natexlab{}.
\newblock \showarticletitle{Stress detection using deep neural networks}.
\newblock \bibinfo{journal}{\emph{BMC Medical Informatics and Decision Making}}
   \bibinfo{volume}{20} (\bibinfo{year}{2020}), \bibinfo{pages}{1--10}.
\newblock


\bibitem[Liang et~al\mbox{.}(2021)]%
        {liang2021pruning}
\bibfield{author}{\bibinfo{person}{Tailin Liang}, \bibinfo{person}{John
  Glossner}, \bibinfo{person}{Lei Wang}, \bibinfo{person}{Shaobo Shi}, {and}
  \bibinfo{person}{Xiaotong Zhang}.} \bibinfo{year}{2021}\natexlab{}.
\newblock \showarticletitle{Pruning and quantization for deep neural network
  acceleration: A survey}.
\newblock \bibinfo{journal}{\emph{Neurocomputing}}  \bibinfo{volume}{461}
  (\bibinfo{year}{2021}), \bibinfo{pages}{370--403}.
\newblock


\bibitem[Liu and Liu(2022)]%
        {liu2022energy}
\bibfield{author}{\bibinfo{person}{Jun Liu} {and} \bibinfo{person}{Xi Liu}.}
  \bibinfo{year}{2022}\natexlab{}.
\newblock \showarticletitle{Energy-efficient allocation for multiple tasks in
  mobile edge computing}.
\newblock \bibinfo{journal}{\emph{Journal of Cloud Computing}}
  \bibinfo{volume}{11}, \bibinfo{number}{1} (\bibinfo{year}{2022}),
  \bibinfo{pages}{71}.
\newblock


\bibitem[Liu et~al\mbox{.}(2023)]%
        {liu2023don}
\bibfield{author}{\bibinfo{person}{Shiwei Liu}, \bibinfo{person}{Yuesong Tian},
  \bibinfo{person}{Tianlong Chen}, {and} \bibinfo{person}{Li Shen}.}
  \bibinfo{year}{2023}\natexlab{}.
\newblock \showarticletitle{Don’t be so dense: Sparse-to-sparse gan training
  without sacrificing performance}.
\newblock \bibinfo{journal}{\emph{International Journal of Computer Vision}}
  \bibinfo{volume}{131}, \bibinfo{number}{10} (\bibinfo{year}{2023}),
  \bibinfo{pages}{2635--2648}.
\newblock


\bibitem[Liu et~al\mbox{.}(2020)]%
        {GP-soa}
\bibfield{author}{\bibinfo{person}{Xue Liu}, \bibinfo{person}{Weijie Xia},
  {and} \bibinfo{person}{Zhimiao Fan}.} \bibinfo{year}{2020}\natexlab{}.
\newblock \showarticletitle{A Deep Neural Network Pruning Method Based on
  Gradient L1-norm}. In \bibinfo{booktitle}{\emph{2020 IEEE 6th International
  Conference on Computer and Communications (ICCC)}}.
  \bibinfo{pages}{2070--2074}.
\newblock
\urldef\tempurl%
\url{https://doi.org/10.1109/ICCC51575.2020.9345039}
\showDOI{\tempurl}


\bibitem[Lu et~al\mbox{.}(2022)]%
        {lu2022semantic}
\bibfield{author}{\bibinfo{person}{Wang Lu}, \bibinfo{person}{Jindong Wang},
  \bibinfo{person}{Yiqiang Chen}, \bibinfo{person}{Sinno~Jialin Pan},
  \bibinfo{person}{Chunyu Hu}, {and} \bibinfo{person}{Xin Qin}.}
  \bibinfo{year}{2022}\natexlab{}.
\newblock \showarticletitle{Semantic-discriminative mixup for generalizable
  sensor-based cross-domain activity recognition}.
\newblock \bibinfo{journal}{\emph{Proceedings of the ACM on Interactive,
  Mobile, Wearable and Ubiquitous Technologies}} \bibinfo{volume}{6},
  \bibinfo{number}{2} (\bibinfo{year}{2022}), \bibinfo{pages}{1--19}.
\newblock


\bibitem[Luo et~al\mbox{.}(2017)]%
        {ThiNet-ICCV17}
\bibfield{author}{\bibinfo{person}{Jian-Hao Luo}, \bibinfo{person}{Jianxin Wu},
  {and} \bibinfo{person}{Weiyao Lin}.} \bibinfo{year}{2017}\natexlab{}.
\newblock \showarticletitle{ThiNet: A Filter Level Pruning Method for Deep
  Neural Network Compression}. In \bibinfo{booktitle}{\emph{ICCV}}.
  \bibinfo{pages}{5058--5066}.
\newblock


\bibitem[MacLean et~al\mbox{.}(2019)]%
        {maclean2019stress}
\bibfield{author}{\bibinfo{person}{R~Ross MacLean}, \bibinfo{person}{Jessica~L
  Armstrong}, {and} \bibinfo{person}{Mehmet Sofuoglu}.}
  \bibinfo{year}{2019}\natexlab{}.
\newblock \showarticletitle{Stress and opioid use disorder: A systematic
  review}.
\newblock \bibinfo{journal}{\emph{Addictive behaviors}}  \bibinfo{volume}{98}
  (\bibinfo{year}{2019}), \bibinfo{pages}{106010}.
\newblock


\bibitem[Makowski et~al\mbox{.}(2021)]%
        {makowski2021neurokit2}
\bibfield{author}{\bibinfo{person}{Dominique Makowski}, \bibinfo{person}{Tam
  Pham}, \bibinfo{person}{Zen~J Lau}, \bibinfo{person}{Jan~C Brammer},
  \bibinfo{person}{Fran{\c{c}}ois Lespinasse}, \bibinfo{person}{Hung Pham},
  \bibinfo{person}{Christopher Sch{\"o}lzel}, {and} \bibinfo{person}{SH~Annabel
  Chen}.} \bibinfo{year}{2021}\natexlab{}.
\newblock \showarticletitle{NeuroKit2: A Python toolbox for neurophysiological
  signal processing}.
\newblock \bibinfo{journal}{\emph{Behavior research methods}}
  (\bibinfo{year}{2021}), \bibinfo{pages}{1--8}.
\newblock


\bibitem[Mathur et~al\mbox{.}(2019)]%
        {mathur2019unsupervised}
\bibfield{author}{\bibinfo{person}{Akhil Mathur}, \bibinfo{person}{Anton
  Isopoussu}, \bibinfo{person}{Nadia Berthouze}, \bibinfo{person}{Nicholas~D
  Lane}, {and} \bibinfo{person}{Fahim Kawsar}.}
  \bibinfo{year}{2019}\natexlab{}.
\newblock \showarticletitle{Unsupervised domain adaptation for robust sensory
  systems}. In \bibinfo{booktitle}{\emph{Adjunct Proceedings of the 2019 ACM
  International Joint Conference on Pervasive and Ubiquitous Computing and
  Proceedings of the 2019 ACM International Symposium on Wearable Computers}}.
  \bibinfo{pages}{505--509}.
\newblock


\bibitem[Mauri et~al\mbox{.}(2010)]%
        {mauri2010psychophysiological}
\bibfield{author}{\bibinfo{person}{Maurizio Mauri}, \bibinfo{person}{Valentina
  Magagnin}, \bibinfo{person}{Pietro Cipresso}, \bibinfo{person}{Luca
  Mainardi}, \bibinfo{person}{Emery~N Brown}, \bibinfo{person}{Sergio Cerutti},
  \bibinfo{person}{Marco Villamira}, {and} \bibinfo{person}{Riccardo
  Barbieri}.} \bibinfo{year}{2010}\natexlab{}.
\newblock \showarticletitle{Psychophysiological signals associated with
  affective states}. In \bibinfo{booktitle}{\emph{2010 Annual International
  Conference of the IEEE Engineering in Medicine and Biology}}. IEEE,
  \bibinfo{pages}{3563--3566}.
\newblock


\bibitem[Maxhuni(2017)]%
        {maxhuni2017managing}
\bibfield{author}{\bibinfo{person}{Alban Maxhuni}.}
  \bibinfo{year}{2017}\natexlab{}.
\newblock \emph{\bibinfo{title}{Managing the Scarcity of Monitoring Data
  through Machine Learning in Healthcare Domain}}.
\newblock \bibinfo{thesistype}{Ph.\,D. Dissertation}.
  \bibinfo{school}{University of Trento}.
\newblock


\bibitem[McCarthy et~al\mbox{.}(2016)]%
        {mccarthy2016validation}
\bibfield{author}{\bibinfo{person}{Cameron McCarthy},
  \bibinfo{person}{Nikhilesh Pradhan}, \bibinfo{person}{Calum Redpath}, {and}
  \bibinfo{person}{Andy Adler}.} \bibinfo{year}{2016}\natexlab{}.
\newblock \showarticletitle{Validation of the Empatica E4 wristband}. In
  \bibinfo{booktitle}{\emph{2016 IEEE EMBS international student conference
  (ISC)}}. IEEE, \bibinfo{pages}{1--4}.
\newblock


\bibitem[McCaul et~al\mbox{.}(1982)]%
        {mccaul1982short}
\bibfield{author}{\bibinfo{person}{Mary~E McCaul}, \bibinfo{person}{George~E
  Bigelow}, \bibinfo{person}{Maxine~L Stitzer}, {and} \bibinfo{person}{Ira
  Liebson}.} \bibinfo{year}{1982}\natexlab{}.
\newblock \showarticletitle{Short-term effects of oral methadone in methadone
  maintenance subjects}.
\newblock \bibinfo{journal}{\emph{Clinical Pharmacology \& Therapeutics}}
  \bibinfo{volume}{31}, \bibinfo{number}{6} (\bibinfo{year}{1982}),
  \bibinfo{pages}{753--761}.
\newblock


\bibitem[McEwen(2008)]%
        {mcewen2008central}
\bibfield{author}{\bibinfo{person}{Bruce~S McEwen}.}
  \bibinfo{year}{2008}\natexlab{}.
\newblock \showarticletitle{Central effects of stress hormones in health and
  disease: Understanding the protective and damaging effects of stress and
  stress mediators}.
\newblock \bibinfo{journal}{\emph{European journal of pharmacology}}
  \bibinfo{volume}{583}, \bibinfo{number}{2-3} (\bibinfo{year}{2008}),
  \bibinfo{pages}{174--185}.
\newblock


\bibitem[Meegahapola et~al\mbox{.}(2024)]%
        {meegahapola2024m3bat}
\bibfield{author}{\bibinfo{person}{Lakmal Meegahapola}, \bibinfo{person}{Hamza
  Hassoune}, {and} \bibinfo{person}{Daniel Gatica-Perez}.}
  \bibinfo{year}{2024}\natexlab{}.
\newblock \showarticletitle{M3BAT: Unsupervised Domain Adaptation for
  Multimodal Mobile Sensing with Multi-Branch Adversarial Training}.
\newblock \bibinfo{journal}{\emph{Proceedings of the ACM on Interactive,
  Mobile, Wearable and Ubiquitous Technologies}} \bibinfo{volume}{8},
  \bibinfo{number}{2} (\bibinfo{year}{2024}), \bibinfo{pages}{1--30}.
\newblock


\bibitem[Menghini et~al\mbox{.}(2019)]%
        {menghini2019stressing}
\bibfield{author}{\bibinfo{person}{Luca Menghini}, \bibinfo{person}{Evelyn
  Gianfranchi}, \bibinfo{person}{Nicola Cellini}, \bibinfo{person}{Elisabetta
  Patron}, \bibinfo{person}{Mariaelena Tagliabue}, {and}
  \bibinfo{person}{Michela Sarlo}.} \bibinfo{year}{2019}\natexlab{}.
\newblock \showarticletitle{Stressing the accuracy: Wrist-worn wearable sensor
  validation over different conditions}.
\newblock \bibinfo{journal}{\emph{Psychophysiology}} \bibinfo{volume}{56},
  \bibinfo{number}{11} (\bibinfo{year}{2019}), \bibinfo{pages}{e13441}.
\newblock


\bibitem[Nagaraj et~al\mbox{.}(2023)]%
        {nagaraj2023dissecting}
\bibfield{author}{\bibinfo{person}{Sujay Nagaraj}, \bibinfo{person}{Sarah
  Goodday}, \bibinfo{person}{Thomas Hartvigsen}, \bibinfo{person}{Adrien Boch},
  \bibinfo{person}{Kopal Garg}, \bibinfo{person}{Sindhu Gowda},
  \bibinfo{person}{Luca Foschini}, \bibinfo{person}{Marzyeh Ghassemi},
  \bibinfo{person}{Stephen Friend}, {and} \bibinfo{person}{Anna Goldenberg}.}
  \bibinfo{year}{2023}\natexlab{}.
\newblock \showarticletitle{Dissecting the heterogeneity of “in the wild”
  stress from multimodal sensor data}.
\newblock \bibinfo{journal}{\emph{NPJ Digital Medicine}} \bibinfo{volume}{6},
  \bibinfo{number}{1} (\bibinfo{year}{2023}), \bibinfo{pages}{237}.
\newblock


\bibitem[National Academies~of Sciences et~al\mbox{.}(2018)]%
        {national2018medication}
\bibfield{author}{\bibinfo{person}{Engineering National Academies~of Sciences},
  \bibinfo{person}{Medicine}, {et~al\mbox{.}}} \bibinfo{year}{2018}\natexlab{}.
\newblock \showarticletitle{Medication-Assisted Treatment for Opioid Use
  Disorder}.
\newblock \bibinfo{journal}{\emph{National Academies Press (US)}}
  (\bibinfo{year}{2018}).
\newblock


\bibitem[Ng et~al\mbox{.}(2008)]%
        {ng2008feature}
\bibfield{author}{\bibinfo{person}{Wing~WY Ng}, \bibinfo{person}{Daniel~S
  Yeung}, \bibinfo{person}{Michael Firth}, \bibinfo{person}{Eric~CC Tsang},
  {and} \bibinfo{person}{Xi-Zhao Wang}.} \bibinfo{year}{2008}\natexlab{}.
\newblock \showarticletitle{Feature selection using localized generalization
  error for supervised classification problems using RBFNN}.
\newblock \bibinfo{journal}{\emph{Pattern Recognition}} \bibinfo{volume}{41},
  \bibinfo{number}{12} (\bibinfo{year}{2008}), \bibinfo{pages}{3706--3719}.
\newblock


\bibitem[Nguyen et~al\mbox{.}(2024)]%
        {nguyen2024trends}
\bibfield{author}{\bibinfo{person}{Anallely Nguyen}, \bibinfo{person}{Jing
  Wang}, \bibinfo{person}{Kristin~M Holland}, \bibinfo{person}{Daniel~C
  Ehlman}, \bibinfo{person}{Laura~E Welder}, \bibinfo{person}{Kimberly~D
  Miller}, {and} \bibinfo{person}{Deborah~M Stone}.}
  \bibinfo{year}{2024}\natexlab{}.
\newblock \showarticletitle{Trends in Drug Overdose Deaths by Intent and Drug
  Categories, United States, 1999--2022}.
\newblock \bibinfo{journal}{\emph{American Journal of Public Health}}
  \bibinfo{volume}{114}, \bibinfo{number}{10} (\bibinfo{year}{2024}),
  \bibinfo{pages}{1081--1085}.
\newblock


\bibitem[Niemeijer and Sch{\"a}fer(2022)]%
        {niemeijer2022domain}
\bibfield{author}{\bibinfo{person}{Joshua Niemeijer} {and}
  \bibinfo{person}{J{\"o}rg~Peter Sch{\"a}fer}.}
  \bibinfo{year}{2022}\natexlab{}.
\newblock \showarticletitle{Domain adaptation and generalization: A
  low-complexity approach}. In \bibinfo{booktitle}{\emph{6th Annual Conference
  on Robot Learning}}.
\newblock


\bibitem[Ollander et~al\mbox{.}(2016)]%
        {ollander2016comparison}
\bibfield{author}{\bibinfo{person}{Simon Ollander}, \bibinfo{person}{Christelle
  Godin}, \bibinfo{person}{Aur{\'e}lie Campagne}, {and} \bibinfo{person}{Sylvie
  Charbonnier}.} \bibinfo{year}{2016}\natexlab{}.
\newblock \showarticletitle{A comparison of wearable and stationary sensors for
  stress detection}. In \bibinfo{booktitle}{\emph{2016 IEEE International
  Conference on Systems, Man, and Cybernetics (SMC)}}. IEEE,
  \bibinfo{pages}{004362--004366}.
\newblock


\bibitem[Passarelli et~al\mbox{.}(2021)]%
        {passarelli2021responses}
\bibfield{author}{\bibinfo{person}{Marcello Passarelli}, \bibinfo{person}{Laura
  Casetta}, \bibinfo{person}{Luca Rizzi}, {and} \bibinfo{person}{Raffaella
  Perrella}.} \bibinfo{year}{2021}\natexlab{}.
\newblock \showarticletitle{Responses to stress: investigating the role of
  gender, social relationships, and touch avoidance in Italy}.
\newblock \bibinfo{journal}{\emph{International Journal of Environmental
  Research and Public Health}} \bibinfo{volume}{18}, \bibinfo{number}{2}
  (\bibinfo{year}{2021}), \bibinfo{pages}{600}.
\newblock


\bibitem[P{\'e}rez and Matud(2022)]%
        {perez2022gender}
\bibfield{author}{\bibinfo{person}{J~Iv{\'a}n P{\'e}rez} {and}
  \bibinfo{person}{M~Pilar Matud}.} \bibinfo{year}{2022}\natexlab{}.
\newblock \showarticletitle{Gender, stress, and well-being in adulthood}.
\newblock \bibinfo{journal}{\emph{Journal of Clinical Medicine}}
  \bibinfo{volume}{12}, \bibinfo{number}{1} (\bibinfo{year}{2022}),
  \bibinfo{pages}{110}.
\newblock


\bibitem[Pergolizzi~Jr et~al\mbox{.}(2020)]%
        {pergolizzi2020opioid}
\bibfield{author}{\bibinfo{person}{Joseph~V Pergolizzi~Jr},
  \bibinfo{person}{Robert~B Raffa}, {and} \bibinfo{person}{Melanie~H
  Rosenblatt}.} \bibinfo{year}{2020}\natexlab{}.
\newblock \showarticletitle{Opioid withdrawal symptoms, a consequence of
  chronic opioid use and opioid use disorder: Current understanding and
  approaches to management}.
\newblock \bibinfo{journal}{\emph{Journal of clinical pharmacy and
  therapeutics}} \bibinfo{volume}{45}, \bibinfo{number}{5}
  (\bibinfo{year}{2020}), \bibinfo{pages}{892--903}.
\newblock


\bibitem[Poh et~al\mbox{.}(2012)]%
        {poh2012convulsive}
\bibfield{author}{\bibinfo{person}{Ming-Zher Poh}, \bibinfo{person}{Tobias
  Loddenkemper}, \bibinfo{person}{Claus Reinsberger},
  \bibinfo{person}{Nicholas~C Swenson}, \bibinfo{person}{Shubhi Goyal},
  \bibinfo{person}{Mangwe~C Sabtala}, \bibinfo{person}{Joseph~R Madsen}, {and}
  \bibinfo{person}{Rosalind~W Picard}.} \bibinfo{year}{2012}\natexlab{}.
\newblock \showarticletitle{Convulsive seizure detection using a wrist-worn
  electrodermal activity and accelerometry biosensor}.
\newblock \bibinfo{journal}{\emph{Epilepsia}} \bibinfo{volume}{53},
  \bibinfo{number}{5} (\bibinfo{year}{2012}), \bibinfo{pages}{e93--e97}.
\newblock


\bibitem[Rachakonda et~al\mbox{.}(2019)]%
        {rachakonda2019stress}
\bibfield{author}{\bibinfo{person}{Laavanya Rachakonda},
  \bibinfo{person}{Saraju~P Mohanty}, \bibinfo{person}{Elias Kougianos}, {and}
  \bibinfo{person}{Prabha Sundaravadivel}.} \bibinfo{year}{2019}\natexlab{}.
\newblock \showarticletitle{Stress-Lysis: A DNN-integrated edge device for
  stress level detection in the IoMT}.
\newblock \bibinfo{journal}{\emph{IEEE Transactions on Consumer Electronics}}
  \bibinfo{volume}{65}, \bibinfo{number}{4} (\bibinfo{year}{2019}),
  \bibinfo{pages}{474--483}.
\newblock


\bibitem[Ramponi and Plank(2020)]%
        {ramponi2020neural}
\bibfield{author}{\bibinfo{person}{Alan Ramponi} {and} \bibinfo{person}{Barbara
  Plank}.} \bibinfo{year}{2020}\natexlab{}.
\newblock \showarticletitle{Neural unsupervised domain adaptation in NLP---a
  survey}.
\newblock \bibinfo{journal}{\emph{arXiv preprint arXiv:2006.00632}}
  (\bibinfo{year}{2020}).
\newblock


\bibitem[Rangamani et~al\mbox{.}(2020)]%
        {rangamani2020loss}
\bibfield{author}{\bibinfo{person}{Akshay Rangamani} {et~al\mbox{.}}}
  \bibinfo{year}{2020}\natexlab{}.
\newblock \emph{\bibinfo{title}{Loss landscapes and generalization in neural
  networks: Theory and applications}}.
\newblock \bibinfo{thesistype}{Ph.\,D. Dissertation}. \bibinfo{school}{Johns
  Hopkins University}.
\newblock


\bibitem[Reddy et~al\mbox{.}(2024)]%
        {reddy2024towards}
\bibfield{author}{\bibinfo{person}{Nikhil Reddy}, \bibinfo{person}{Mahsa
  Baktashmotlagh}, {and} \bibinfo{person}{Chetan Arora}.}
  \bibinfo{year}{2024}\natexlab{}.
\newblock \showarticletitle{Towards Domain-Aware Knowledge Distillation for
  Continual Model Generalization}. In \bibinfo{booktitle}{\emph{Proceedings of
  the IEEE/CVF Winter Conference on Applications of Computer Vision}}.
  \bibinfo{pages}{696--707}.
\newblock


\bibitem[Rosenthal and McKay(2022)]%
        {rosenthal2022drugs}
\bibfield{author}{\bibinfo{person}{Martha~S Rosenthal} {and}
  \bibinfo{person}{Bruce McKay}.} \bibinfo{year}{2022}\natexlab{}.
\newblock \bibinfo{booktitle}{\emph{Drugs: mind, body, and society}}.
\newblock \bibinfo{publisher}{Oxford University Press}.
\newblock


\bibitem[Ruder et~al\mbox{.}(2017)]%
        {ruder2017knowledge}
\bibfield{author}{\bibinfo{person}{Sebastian Ruder}, \bibinfo{person}{Parsa
  Ghaffari}, {and} \bibinfo{person}{John~G Breslin}.}
  \bibinfo{year}{2017}\natexlab{}.
\newblock \showarticletitle{Knowledge adaptation: Teaching to adapt}.
\newblock \bibinfo{journal}{\emph{arXiv preprint arXiv:1702.02052}}
  (\bibinfo{year}{2017}).
\newblock


\bibitem[Sadou et~al\mbox{.}(2022)]%
        {sadou2022inference}
\bibfield{author}{\bibinfo{person}{Isma-Ilou Sadou},
  \bibinfo{person}{Seyed~Morteza Nabavinejad}, \bibinfo{person}{Zhonghai Lu},
  {and} \bibinfo{person}{Masoumeh Ebrahimi}.} \bibinfo{year}{2022}\natexlab{}.
\newblock \showarticletitle{Inference time reduction of deep neural networks on
  embedded devices: A case study}. In \bibinfo{booktitle}{\emph{2022 25th
  Euromicro Conference on Digital System Design (DSD)}}. IEEE,
  \bibinfo{pages}{205--213}.
\newblock


\bibitem[Saeed et~al\mbox{.}(2018)]%
        {saeed2018model}
\bibfield{author}{\bibinfo{person}{Aaqib Saeed}, \bibinfo{person}{Tanir
  Ozcelebi}, \bibinfo{person}{Johan Lukkien}, \bibinfo{person}{Jan~BF van Erp},
  {and} \bibinfo{person}{Stojan Trajanovski}.} \bibinfo{year}{2018}\natexlab{}.
\newblock \showarticletitle{Model adaptation and personalization for
  physiological stress detection}. In \bibinfo{booktitle}{\emph{2018 IEEE 5th
  international conference on data science and advanced analytics (DSAA)}}.
  IEEE, \bibinfo{pages}{209--216}.
\newblock


\bibitem[Sagawa et~al\mbox{.}(2019)]%
        {sagawa2019distributionally}
\bibfield{author}{\bibinfo{person}{Shiori Sagawa}, \bibinfo{person}{Pang~Wei
  Koh}, \bibinfo{person}{Tatsunori~B Hashimoto}, {and} \bibinfo{person}{Percy
  Liang}.} \bibinfo{year}{2019}\natexlab{}.
\newblock \showarticletitle{Distributionally robust neural networks for group
  shifts: On the importance of regularization for worst-case generalization}.
\newblock \bibinfo{journal}{\emph{arXiv preprint arXiv:1911.08731}}
  (\bibinfo{year}{2019}).
\newblock


\bibitem[Sanner et~al\mbox{.}(2021)]%
        {sanner2021reliable}
\bibfield{author}{\bibinfo{person}{Antoine Sanner}, \bibinfo{person}{Camila
  Gonzalez}, {and} \bibinfo{person}{Anirban Mukhopadhyay}.}
  \bibinfo{year}{2021}\natexlab{}.
\newblock \showarticletitle{How reliable are out-of-distribution generalization
  methods for medical image segmentation?}. In \bibinfo{booktitle}{\emph{DAGM
  German Conference on Pattern Recognition}}. Springer,
  \bibinfo{pages}{604--617}.
\newblock


\bibitem[Schaefer et~al\mbox{.}(2010)]%
        {schaefer2010assessing}
\bibfield{author}{\bibinfo{person}{Alexandre Schaefer},
  \bibinfo{person}{Fr{\'e}d{\'e}ric Nils}, \bibinfo{person}{Xavier Sanchez},
  {and} \bibinfo{person}{Pierre Philippot}.} \bibinfo{year}{2010}\natexlab{}.
\newblock \showarticletitle{Assessing the effectiveness of a large database of
  emotion-eliciting films: A new tool for emotion researchers}.
\newblock \bibinfo{journal}{\emph{Cognition and emotion}} \bibinfo{volume}{24},
  \bibinfo{number}{7} (\bibinfo{year}{2010}), \bibinfo{pages}{1153--1172}.
\newblock


\bibitem[Schmid et~al\mbox{.}(2024)]%
        {schmid2024individual}
\bibfield{author}{\bibinfo{person}{Regina~Franziska Schmid},
  \bibinfo{person}{Joachim Thomas}, {and} \bibinfo{person}{Katrin Rentzsch}.}
  \bibinfo{year}{2024}\natexlab{}.
\newblock \showarticletitle{Individual differences in parasympathetic nervous
  system reactivity in response to everyday stress are associated with
  momentary emotional exhaustion}.
\newblock \bibinfo{journal}{\emph{Scientific Reports}} \bibinfo{volume}{14},
  \bibinfo{number}{1} (\bibinfo{year}{2024}), \bibinfo{pages}{26662}.
\newblock


\bibitem[Schmidt et~al\mbox{.}(2018)]%
        {schmidt2018introducing}
\bibfield{author}{\bibinfo{person}{Philip Schmidt}, \bibinfo{person}{Attila
  Reiss}, \bibinfo{person}{Robert Duerichen}, \bibinfo{person}{Claus
  Marberger}, {and} \bibinfo{person}{Kristof Van~Laerhoven}.}
  \bibinfo{year}{2018}\natexlab{}.
\newblock \showarticletitle{Introducing wesad, a multimodal dataset for
  wearable stress and affect detection}. In
  \bibinfo{booktitle}{\emph{Proceedings of the 20th ACM international
  conference on multimodal interaction}}. \bibinfo{pages}{400--408}.
\newblock


\bibitem[Schwerdtfeger and Dick(2019)]%
        {schwerdtfeger2019episodes}
\bibfield{author}{\bibinfo{person}{Andreas~R Schwerdtfeger} {and}
  \bibinfo{person}{Katharina Dick}.} \bibinfo{year}{2019}\natexlab{}.
\newblock \showarticletitle{Episodes of momentary resilience in daily life are
  associated with HRV reductions to stressful operations in firefighters: an
  ambulatory assessment approach using bayesian multilevel modeling}.
\newblock \bibinfo{journal}{\emph{The Journal of Positive Psychology}}
  \bibinfo{volume}{14}, \bibinfo{number}{5} (\bibinfo{year}{2019}),
  \bibinfo{pages}{593--602}.
\newblock


\bibitem[Sharma et~al\mbox{.}(2022)]%
        {sharma2022psychophysiological}
\bibfield{author}{\bibinfo{person}{Harshit Sharma}, \bibinfo{person}{Yi Xiao},
  \bibinfo{person}{Victoria Tumanova}, {and} \bibinfo{person}{Asif Salekin}.}
  \bibinfo{year}{2022}\natexlab{}.
\newblock \showarticletitle{Psychophysiological Arousal in Young Children Who
  Stutter: An Interpretable AI Approach}.
\newblock \bibinfo{journal}{\emph{Proceedings of the ACM on Interactive,
  Mobile, Wearable and Ubiquitous Technologies}} \bibinfo{volume}{6},
  \bibinfo{number}{3} (\bibinfo{year}{2022}), \bibinfo{pages}{1--32}.
\newblock


\bibitem[Simonyan et~al\mbox{.}(2013)]%
        {simonyan2013deep}
\bibfield{author}{\bibinfo{person}{Karen Simonyan}, \bibinfo{person}{Andrea
  Vedaldi}, {and} \bibinfo{person}{Andrew Zisserman}.}
  \bibinfo{year}{2013}\natexlab{}.
\newblock \showarticletitle{Deep inside convolutional networks: Visualising
  image classification models and saliency maps}.
\newblock \bibinfo{journal}{\emph{arXiv preprint arXiv:1312.6034}}
  (\bibinfo{year}{2013}).
\newblock


\bibitem[Singh and Alistarh(2020)]%
        {singh2020woodfisher}
\bibfield{author}{\bibinfo{person}{Sidak~Pal Singh} {and} \bibinfo{person}{Dan
  Alistarh}.} \bibinfo{year}{2020}\natexlab{}.
\newblock \showarticletitle{Woodfisher: Efficient second-order approximation
  for neural network compression}.
\newblock \bibinfo{journal}{\emph{Advances in Neural Information Processing
  Systems}}  \bibinfo{volume}{33} (\bibinfo{year}{2020}),
  \bibinfo{pages}{18098--18109}.
\newblock


\bibitem[Sonkusare et~al\mbox{.}(2019)]%
        {sonkusare2019detecting}
\bibfield{author}{\bibinfo{person}{Saurabh Sonkusare}, \bibinfo{person}{David
  Ahmedt-Aristizabal}, \bibinfo{person}{Matthew~J Aburn},
  \bibinfo{person}{Vinh~Thai Nguyen}, \bibinfo{person}{Tianji Pang},
  \bibinfo{person}{Sascha Frydman}, \bibinfo{person}{Simon Denman},
  \bibinfo{person}{Clinton Fookes}, \bibinfo{person}{Michael Breakspear}, {and}
  \bibinfo{person}{Christine~C Guo}.} \bibinfo{year}{2019}\natexlab{}.
\newblock \showarticletitle{Detecting changes in facial temperature induced by
  a sudden auditory stimulus based on deep learning-assisted face tracking}.
\newblock \bibinfo{journal}{\emph{Scientific reports}} \bibinfo{volume}{9},
  \bibinfo{number}{1} (\bibinfo{year}{2019}), \bibinfo{pages}{4729}.
\newblock


\bibitem[Str{\v{z}}inar et~al\mbox{.}(2023)]%
        {strvzinar2023stress}
\bibfield{author}{\bibinfo{person}{{\v{Z}}iga Str{\v{z}}inar},
  \bibinfo{person}{Araceli Sanchis}, \bibinfo{person}{Agapito Ledezma},
  \bibinfo{person}{Oscar Sipele}, \bibinfo{person}{Bo{\v{s}}tjan Pregelj},
  {and} \bibinfo{person}{Igor {\v{S}}krjanc}.} \bibinfo{year}{2023}\natexlab{}.
\newblock \showarticletitle{Stress detection using frequency spectrum analysis
  of wrist-measured electrodermal activity}.
\newblock \bibinfo{journal}{\emph{Sensors}} \bibinfo{volume}{23},
  \bibinfo{number}{2} (\bibinfo{year}{2023}), \bibinfo{pages}{963}.
\newblock


\bibitem[{Substance Abuse and Mental Health Services Administration}(2023)]%
        {samhsa2023key}
\bibfield{author}{\bibinfo{person}{{Substance Abuse and Mental Health Services
  Administration}}.} \bibinfo{year}{2023}\natexlab{}.
\newblock \bibinfo{booktitle}{\emph{Key Substance Use and Mental Health
  Indicators in the United States: Results from the 2022 National Survey on
  Drug Use and Health}}.
\newblock \bibinfo{type}{HHS Publication No. PEP23-07-01-006, NSDUH Series
  H-58}. \bibinfo{institution}{Center for Behavioral Health Statistics and
  Quality, Substance Abuse and Mental Health Services Administration}.
\newblock


\bibitem[Suh et~al\mbox{.}(2022)]%
        {suh2022adversarial}
\bibfield{author}{\bibinfo{person}{Sungho Suh}, \bibinfo{person}{Vitor~Fortes
  Rey}, {and} \bibinfo{person}{Paul Lukowicz}.}
  \bibinfo{year}{2022}\natexlab{}.
\newblock \showarticletitle{Adversarial deep feature extraction network for
  user independent human activity recognition}. In
  \bibinfo{booktitle}{\emph{2022 IEEE International Conference on Pervasive
  Computing and Communications (PerCom)}}. IEEE, \bibinfo{pages}{217--226}.
\newblock


\bibitem[Szakonyi et~al\mbox{.}(2021)]%
        {szakonyi2021efficient}
\bibfield{author}{\bibinfo{person}{Benedek Szakonyi},
  \bibinfo{person}{Istv{\'a}n Vass{\'a}nyi}, \bibinfo{person}{Edit Schumacher},
  {and} \bibinfo{person}{Istv{\'a}n K{\'o}sa}.}
  \bibinfo{year}{2021}\natexlab{}.
\newblock \showarticletitle{Efficient methods for acute stress detection using
  heart rate variability data from Ambient Assisted Living sensors}.
\newblock \bibinfo{journal}{\emph{Biomedical engineering online}}
  \bibinfo{volume}{20} (\bibinfo{year}{2021}), \bibinfo{pages}{1--19}.
\newblock


\bibitem[Tazarv et~al\mbox{.}(2021)]%
        {tazarv2021personalized}
\bibfield{author}{\bibinfo{person}{Ali Tazarv}, \bibinfo{person}{Sina Labbaf},
  \bibinfo{person}{Stephanie~M Reich}, \bibinfo{person}{Nikil Dutt},
  \bibinfo{person}{Amir~M Rahmani}, {and} \bibinfo{person}{Marco Levorato}.}
  \bibinfo{year}{2021}\natexlab{}.
\newblock \showarticletitle{Personalized stress monitoring using wearable
  sensors in everyday settings}. In \bibinfo{booktitle}{\emph{2021 43rd Annual
  International Conference of the IEEE Engineering in Medicine \& Biology
  Society (EMBC)}}. IEEE, \bibinfo{pages}{7332--7335}.
\newblock


\bibitem[Tulen et~al\mbox{.}(1989)]%
        {tulen1989characterization}
\bibfield{author}{\bibinfo{person}{JHM Tulen}, \bibinfo{person}{P Moleman},
  \bibinfo{person}{HG Van~Steenis}, {and} \bibinfo{person}{F Boomsma}.}
  \bibinfo{year}{1989}\natexlab{}.
\newblock \showarticletitle{Characterization of stress reactions to the Stroop
  Color Word Test}.
\newblock \bibinfo{journal}{\emph{Pharmacology Biochemistry and Behavior}}
  \bibinfo{volume}{32}, \bibinfo{number}{1} (\bibinfo{year}{1989}),
  \bibinfo{pages}{9--15}.
\newblock


\bibitem[Tumanova and Backes(2019)]%
        {tumanova2019autonomic}
\bibfield{author}{\bibinfo{person}{Victoria Tumanova} {and}
  \bibinfo{person}{Nicole Backes}.} \bibinfo{year}{2019}\natexlab{}.
\newblock \showarticletitle{Autonomic nervous system response to speech
  production in stuttering and normally fluent preschool-age children}.
\newblock \bibinfo{journal}{\emph{Journal of Speech, Language, and Hearing
  Research}} \bibinfo{volume}{62}, \bibinfo{number}{11} (\bibinfo{year}{2019}),
  \bibinfo{pages}{4030--4044}.
\newblock


\bibitem[Varnava et~al\mbox{.}(2025)]%
        {varnava2025out}
\bibfield{author}{\bibinfo{person}{Yiannis Varnava}, \bibinfo{person}{Kiran
  Jakate}, \bibinfo{person}{Richard Garnett}, \bibinfo{person}{Dimitrios
  Androutsos}, \bibinfo{person}{Pascal~N Tyrrell}, {and} \bibinfo{person}{April
  Khademi}.} \bibinfo{year}{2025}\natexlab{}.
\newblock \showarticletitle{Out-of-distribution generalization for segmentation
  of lymph node metastasis in breast cancer}.
\newblock \bibinfo{journal}{\emph{Scientific Reports}} \bibinfo{volume}{15},
  \bibinfo{number}{1} (\bibinfo{year}{2025}), \bibinfo{pages}{1127}.
\newblock


\bibitem[Vos et~al\mbox{.}(2023)]%
        {vos2023generalizable}
\bibfield{author}{\bibinfo{person}{Gideon Vos}, \bibinfo{person}{Kelly Trinh},
  \bibinfo{person}{Zoltan Sarnyai}, {and} \bibinfo{person}{Mostafa~Rahimi
  Azghadi}.} \bibinfo{year}{2023}\natexlab{}.
\newblock \showarticletitle{Generalizable machine learning for stress
  monitoring from wearable devices: A systematic literature review}.
\newblock \bibinfo{journal}{\emph{International Journal of Medical
  Informatics}}  \bibinfo{volume}{173} (\bibinfo{year}{2023}),
  \bibinfo{pages}{105026}.
\newblock


\bibitem[Wang et~al\mbox{.}(2022b)]%
        {wang2022provable}
\bibfield{author}{\bibinfo{person}{Haoxiang Wang}, \bibinfo{person}{Haozhe Si},
  \bibinfo{person}{Bo Li}, {and} \bibinfo{person}{Han Zhao}.}
  \bibinfo{year}{2022}\natexlab{b}.
\newblock \showarticletitle{Provable domain generalization via
  invariant-feature subspace recovery}. In
  \bibinfo{booktitle}{\emph{International Conference on Machine Learning}}.
  PMLR, \bibinfo{pages}{23018--23033}.
\newblock


\bibitem[Wang et~al\mbox{.}(2022a)]%
        {wang2022generalizing}
\bibfield{author}{\bibinfo{person}{Jindong Wang}, \bibinfo{person}{Cuiling
  Lan}, \bibinfo{person}{Chang Liu}, \bibinfo{person}{Yidong Ouyang},
  \bibinfo{person}{Tao Qin}, \bibinfo{person}{Wang Lu},
  \bibinfo{person}{Yiqiang Chen}, \bibinfo{person}{Wenjun Zeng}, {and}
  \bibinfo{person}{S~Yu Philip}.} \bibinfo{year}{2022}\natexlab{a}.
\newblock \showarticletitle{Generalizing to unseen domains: A survey on domain
  generalization}.
\newblock \bibinfo{journal}{\emph{IEEE transactions on knowledge and data
  engineering}} \bibinfo{volume}{35}, \bibinfo{number}{8}
  (\bibinfo{year}{2022}), \bibinfo{pages}{8052--8072}.
\newblock


\bibitem[Wang et~al\mbox{.}(2023c)]%
        {wang2023cardiac}
\bibfield{author}{\bibinfo{person}{Lindsey Wang}, \bibinfo{person}{Nora~D
  Volkow}, \bibinfo{person}{Nathan~A Berger}, \bibinfo{person}{Pamela~B Davis},
  \bibinfo{person}{David~C Kaelber}, {and} \bibinfo{person}{Rong Xu}.}
  \bibinfo{year}{2023}\natexlab{c}.
\newblock \showarticletitle{Cardiac and mortality outcome differences between
  methadone, buprenorphine and naltrexone prescriptions in patients with an
  opioid use disorder}.
\newblock \bibinfo{journal}{\emph{Journal of Clinical Psychology}}
  \bibinfo{volume}{79}, \bibinfo{number}{12} (\bibinfo{year}{2023}),
  \bibinfo{pages}{2869--2883}.
\newblock


\bibitem[Wang et~al\mbox{.}(2023a)]%
        {wang2023surban}
\bibfield{author}{\bibinfo{person}{Qianru Wang}, \bibinfo{person}{Bin Guo},
  \bibinfo{person}{Lu Cheng}, {and} \bibinfo{person}{Zhiwen Yu}.}
  \bibinfo{year}{2023}\natexlab{a}.
\newblock \showarticletitle{sUrban: Stable Prediction for Unseen Urban Data
  from Location-based Sensors}.
\newblock \bibinfo{journal}{\emph{Proceedings of the ACM on Interactive,
  Mobile, Wearable and Ubiquitous Technologies}} \bibinfo{volume}{7},
  \bibinfo{number}{3} (\bibinfo{year}{2023}), \bibinfo{pages}{1--20}.
\newblock


\bibitem[Wang et~al\mbox{.}(2021)]%
        {wang2021embracing}
\bibfield{author}{\bibinfo{person}{Yufei Wang}, \bibinfo{person}{Haoliang Li},
  \bibinfo{person}{Lap-pui Chau}, {and} \bibinfo{person}{Alex~C Kot}.}
  \bibinfo{year}{2021}\natexlab{}.
\newblock \showarticletitle{Embracing the dark knowledge: Domain generalization
  using regularized knowledge distillation}. In
  \bibinfo{booktitle}{\emph{Proceedings of the 29th ACM International
  Conference on Multimedia}}. \bibinfo{pages}{2595--2604}.
\newblock


\bibitem[Wang et~al\mbox{.}(2023b)]%
        {wang2023detecting}
\bibfield{author}{\bibinfo{person}{Zhiyuan Wang}, \bibinfo{person}{Maria~A
  Larrazabal}, \bibinfo{person}{Mark Rucker}, \bibinfo{person}{Emma~R Toner},
  \bibinfo{person}{Katharine~E Daniel}, \bibinfo{person}{Shashwat Kumar},
  \bibinfo{person}{Mehdi Boukhechba}, \bibinfo{person}{Bethany~A Teachman},
  {and} \bibinfo{person}{Laura~E Barnes}.} \bibinfo{year}{2023}\natexlab{b}.
\newblock \showarticletitle{Detecting social contexts from mobile sensing
  indicators in virtual interactions with socially anxious individuals}.
\newblock \bibinfo{journal}{\emph{Proceedings of the ACM on interactive,
  mobile, wearable and ubiquitous technologies}} \bibinfo{volume}{7},
  \bibinfo{number}{3} (\bibinfo{year}{2023}), \bibinfo{pages}{1--26}.
\newblock


\bibitem[Wang et~al\mbox{.}(2010)]%
        {wang2010alterations}
\bibfield{author}{\bibinfo{person}{Zhao-Xin Wang}, \bibinfo{person}{John~X
  Zhang}, \bibinfo{person}{Qiu-Lin Wu}, \bibinfo{person}{Ning Liu},
  \bibinfo{person}{Xiao-Ping Hu}, \bibinfo{person}{Raymond~CK Chan}, {and}
  \bibinfo{person}{Zhuang-Wei Xiao}.} \bibinfo{year}{2010}\natexlab{}.
\newblock \showarticletitle{Alterations in the processing of non-drug-related
  affective stimuli in abstinent heroin addicts}.
\newblock \bibinfo{journal}{\emph{Neuroimage}} \bibinfo{volume}{49},
  \bibinfo{number}{1} (\bibinfo{year}{2010}), \bibinfo{pages}{971--976}.
\newblock


\bibitem[Weber et~al\mbox{.}(2022)]%
        {weber2022physiological}
\bibfield{author}{\bibinfo{person}{Jeannette Weber}, \bibinfo{person}{Peter
  Angerer}, {and} \bibinfo{person}{Jennifer Apolin{\'a}rio-Hagen}.}
  \bibinfo{year}{2022}\natexlab{}.
\newblock \showarticletitle{Physiological reactions to acute stressors and
  subjective stress during daily life: A systematic review on ecological
  momentary assessment (EMA) studies}.
\newblock \bibinfo{journal}{\emph{PloS one}} \bibinfo{volume}{17},
  \bibinfo{number}{7} (\bibinfo{year}{2022}), \bibinfo{pages}{e0271996}.
\newblock


\bibitem[Wu et~al\mbox{.}(2022)]%
        {wu2022multi}
\bibfield{author}{\bibinfo{person}{Qianhui Wu}, \bibinfo{person}{Huiqiang
  Jiang}, \bibinfo{person}{Haonan Yin}, \bibinfo{person}{B{\"o}rje~F Karlsson},
  {and} \bibinfo{person}{Chin-Yew Lin}.} \bibinfo{year}{2022}\natexlab{}.
\newblock \showarticletitle{Multi-level knowledge distillation for
  out-of-distribution detection in text}.
\newblock \bibinfo{journal}{\emph{arXiv preprint arXiv:2211.11300}}
  (\bibinfo{year}{2022}).
\newblock


\bibitem[Xiao et~al\mbox{.}(2024)]%
        {xiao2024reading}
\bibfield{author}{\bibinfo{person}{Yi Xiao}, \bibinfo{person}{Harshit Sharma},
  \bibinfo{person}{Zhongyang Zhang}, \bibinfo{person}{Dessa Bergen-Cico},
  \bibinfo{person}{Tauhidur Rahman}, {and} \bibinfo{person}{Asif Salekin}.}
  \bibinfo{year}{2024}\natexlab{}.
\newblock \showarticletitle{Reading between the heat: Co-teaching body thermal
  signatures for non-intrusive stress detection}.
\newblock \bibinfo{journal}{\emph{Proceedings of the ACM on Interactive,
  Mobile, Wearable and Ubiquitous Technologies}} \bibinfo{volume}{7},
  \bibinfo{number}{4} (\bibinfo{year}{2024}), \bibinfo{pages}{1--30}.
\newblock


\bibitem[Xu et~al\mbox{.}(2023b)]%
        {xu2023practically}
\bibfield{author}{\bibinfo{person}{Huatao Xu}, \bibinfo{person}{Pengfei Zhou},
  \bibinfo{person}{Rui Tan}, {and} \bibinfo{person}{Mo Li}.}
  \bibinfo{year}{2023}\natexlab{b}.
\newblock \showarticletitle{Practically Adopting Human Activity Recognition}.
  In \bibinfo{booktitle}{\emph{Proceedings of the 29th Annual International
  Conference on Mobile Computing and Networking}}. \bibinfo{pages}{1--15}.
\newblock


\bibitem[Xu and Huang(2023)]%
        {xu2023joint}
\bibfield{author}{\bibinfo{person}{Jian Xu} {and} \bibinfo{person}{Shao-Lun
  Huang}.} \bibinfo{year}{2023}\natexlab{}.
\newblock \showarticletitle{A Joint Training-Calibration Framework for
  Test-Time Personalization with Label Shift in Federated Learning}. In
  \bibinfo{booktitle}{\emph{Proceedings of the 32nd ACM International
  Conference on Information and Knowledge Management}}.
  \bibinfo{pages}{4370--4374}.
\newblock


\bibitem[Xu et~al\mbox{.}(2023a)]%
        {xu2023globem}
\bibfield{author}{\bibinfo{person}{Xuhai Xu}, \bibinfo{person}{Xin Liu},
  \bibinfo{person}{Han Zhang}, \bibinfo{person}{Weichen Wang},
  \bibinfo{person}{Subigya Nepal}, \bibinfo{person}{Yasaman Sefidgar},
  \bibinfo{person}{Woosuk Seo}, \bibinfo{person}{Kevin~S Kuehn},
  \bibinfo{person}{Jeremy~F Huckins}, \bibinfo{person}{Margaret~E Morris},
  {et~al\mbox{.}}} \bibinfo{year}{2023}\natexlab{a}.
\newblock \showarticletitle{Globem: Cross-dataset generalization of
  longitudinal human behavior modeling}.
\newblock \bibinfo{journal}{\emph{Proceedings of the ACM on Interactive,
  Mobile, Wearable and Ubiquitous Technologies}} \bibinfo{volume}{6},
  \bibinfo{number}{4} (\bibinfo{year}{2023}), \bibinfo{pages}{1--34}.
\newblock


\bibitem[Yang et~al\mbox{.}(2022)]%
        {yang2022multimodal}
\bibfield{author}{\bibinfo{person}{Yikai Yang}, \bibinfo{person}{Nhan~Duy
  Truong}, \bibinfo{person}{Jason~K Eshraghian}, \bibinfo{person}{Christina
  Maher}, \bibinfo{person}{Armin Nikpour}, {and} \bibinfo{person}{Omid
  Kavehei}.} \bibinfo{year}{2022}\natexlab{}.
\newblock \showarticletitle{A multimodal AI system for out-of-distribution
  generalization of seizure identification}.
\newblock \bibinfo{journal}{\emph{IEEE Journal of Biomedical and Health
  Informatics}} \bibinfo{volume}{26}, \bibinfo{number}{7}
  (\bibinfo{year}{2022}), \bibinfo{pages}{3529--3538}.
\newblock


\bibitem[Yfantidou et~al\mbox{.}(2023)]%
        {yfantidou2023beyond}
\bibfield{author}{\bibinfo{person}{Sofia Yfantidou}, \bibinfo{person}{Marios
  Constantinides}, \bibinfo{person}{Dimitris Spathis}, \bibinfo{person}{Athena
  Vakali}, \bibinfo{person}{Daniele Quercia}, {and} \bibinfo{person}{Fahim
  Kawsar}.} \bibinfo{year}{2023}\natexlab{}.
\newblock \showarticletitle{Beyond accuracy: a critical review of fairness in
  machine learning for mobile and wearable computing}.
\newblock \bibinfo{journal}{\emph{arXiv preprint arXiv:2303.15585}}
  (\bibinfo{year}{2023}).
\newblock


\bibitem[Yu and Sano(2022)]%
        {yu2022semi}
\bibfield{author}{\bibinfo{person}{Han Yu} {and} \bibinfo{person}{Akane Sano}.}
  \bibinfo{year}{2022}\natexlab{}.
\newblock \showarticletitle{Semi-supervised learning and data augmentation in
  wearable-based momentary stress detection in the wild}.
\newblock \bibinfo{journal}{\emph{arXiv preprint arXiv:2202.12935}}
  (\bibinfo{year}{2022}).
\newblock


\bibitem[Zhang et~al\mbox{.}(2021)]%
        {zhang2021understanding}
\bibfield{author}{\bibinfo{person}{Chiyuan Zhang}, \bibinfo{person}{Samy
  Bengio}, \bibinfo{person}{Moritz Hardt}, \bibinfo{person}{Benjamin Recht},
  {and} \bibinfo{person}{Oriol Vinyals}.} \bibinfo{year}{2021}\natexlab{}.
\newblock \showarticletitle{Understanding deep learning (still) requires
  rethinking generalization}.
\newblock \bibinfo{journal}{\emph{Commun. ACM}} \bibinfo{volume}{64},
  \bibinfo{number}{3} (\bibinfo{year}{2021}), \bibinfo{pages}{107--115}.
\newblock


\bibitem[Zhang et~al\mbox{.}(2024)]%
        {zhang2024reproducible}
\bibfield{author}{\bibinfo{person}{Panyu Zhang}, \bibinfo{person}{Gyuwon Jung},
  \bibinfo{person}{Jumabek Alikhanov}, \bibinfo{person}{Uzair Ahmed}, {and}
  \bibinfo{person}{Uichin Lee}.} \bibinfo{year}{2024}\natexlab{}.
\newblock \showarticletitle{A Reproducible Stress Prediction Pipeline with
  Mobile Sensor Data}.
\newblock \bibinfo{journal}{\emph{Proceedings of the ACM on interactive,
  mobile, wearable and ubiquitous technologies}} \bibinfo{volume}{8},
  \bibinfo{number}{3} (\bibinfo{year}{2024}), \bibinfo{pages}{1--35}.
\newblock


\bibitem[Zhang et~al\mbox{.}(2023)]%
        {zhang2023generalization}
\bibfield{author}{\bibinfo{person}{Tianli Zhang}, \bibinfo{person}{Mengqi Xue},
  \bibinfo{person}{Jiangtao Zhang}, \bibinfo{person}{Haofei Zhang},
  \bibinfo{person}{Yu Wang}, \bibinfo{person}{Lechao Cheng},
  \bibinfo{person}{Jie Song}, {and} \bibinfo{person}{Mingli Song}.}
  \bibinfo{year}{2023}\natexlab{}.
\newblock \showarticletitle{Generalization Matters: Loss Minima Flattening via
  Parameter Hybridization for Efficient Online Knowledge Distillation}. In
  \bibinfo{booktitle}{\emph{Proceedings of the IEEE/CVF Conference on Computer
  Vision and Pattern Recognition}}. \bibinfo{pages}{20176--20185}.
\newblock


\bibitem[Zhao et~al\mbox{.}(2023)]%
        {zhao2023affective}
\bibfield{author}{\bibinfo{person}{Yiran Zhao}, \bibinfo{person}{Yujie Tao},
  \bibinfo{person}{Grace Le}, \bibinfo{person}{Rui Maki},
  \bibinfo{person}{Alexander Adams}, \bibinfo{person}{Pedro Lopes}, {and}
  \bibinfo{person}{Tanzeem Choudhury}.} \bibinfo{year}{2023}\natexlab{}.
\newblock \showarticletitle{Affective Touch as Immediate and Passive Wearable
  Intervention}.
\newblock \bibinfo{journal}{\emph{Proceedings of the ACM on Interactive,
  Mobile, Wearable and Ubiquitous Technologies}} \bibinfo{volume}{6},
  \bibinfo{number}{4} (\bibinfo{year}{2023}), \bibinfo{pages}{1--23}.
\newblock


\bibitem[Zhou et~al\mbox{.}(2022)]%
        {zhou2022sparse}
\bibfield{author}{\bibinfo{person}{Xiao Zhou}, \bibinfo{person}{Yong Lin},
  \bibinfo{person}{Weizhong Zhang}, {and} \bibinfo{person}{Tong Zhang}.}
  \bibinfo{year}{2022}\natexlab{}.
\newblock \showarticletitle{Sparse invariant risk minimization}. In
  \bibinfo{booktitle}{\emph{International Conference on Machine Learning}}.
  PMLR, \bibinfo{pages}{27222--27244}.
\newblock


\bibitem[Zhu and Gupta(2017)]%
        {zhu2017prune}
\bibfield{author}{\bibinfo{person}{Michael Zhu} {and} \bibinfo{person}{Suyog
  Gupta}.} \bibinfo{year}{2017}\natexlab{}.
\newblock \bibinfo{title}{To prune, or not to prune: exploring the efficacy of
  pruning for model compression}.
\newblock
\newblock
\showeprint[arxiv]{1710.01878}~[stat.ML]


\end{thebibliography}