Maximilian Ehrhart

Mr. Maximilian Ehrhart

orcid

Research Focus & Metrics

Academic Career Length

5Years (2022-Present)

(Calculated once Scilit publication data is synced: current year − year of first publication + 1)

Representative Publications

View All Publications
10 August 2022 in Sensors
Verified
Journal Article
Open access
PDF file
MEMaximilian Ehrhart
Maximilian Ehrhart
Bernd ReschBernd Resch
Bernd Resch
CHClemens Havas
Clemens Havas
David NiederseerDavid Niederseer
David Niederseer
Human-centered applications using wearable sensors in combination with machine learning have received a great deal of attention in the last couple of years. At the same time, wearable sensors have also evolved and are now able to accurately measure physiological signals and are, therefore, suitable for detecting body reactions to stress. The field of machine learning, or more precisely, deep learning, has been able to produce outstanding results. However, in order to produce these good results, large amounts of labeled data are needed, which, in the context of physiological data related to stress detection, are a great challenge to collect, as they usually require costly experiments or expert knowledge. This usually results in an imbalanced and small dataset, which makes it difficult to train a deep learning algorithm. In recent studies, this problem is tackled with data augmentation via a Generative Adversarial Network (GAN). Conditional GANs (cGAN) are particularly suitable for this as they provide the opportunity to feed auxiliary information such as a class label into the training process to generate labeled data. However, it has been found that during the training process of GANs, different problems usually occur, such as mode collapse or vanishing gradients. To tackle the problems mentioned above, we propose a Long Short-Term Memory (LSTM) network, combined with a Fully Convolutional Network (FCN) cGAN architecture, with an additional diversity term to generate synthetic physiological data, which are used to augment the training dataset to improve the performance of a binary classifier for stress detection. We evaluated the methodology on our collected physiological measurement dataset, and we were able to show that using the method, the performance of an LSTM and an FCN classifier could be improved. Further, we showed that the generated data could not be distinguished from the real data any longer.

6 August 2024 in Sensors
Verified
Journal Article
Open access
PDF file
MMMartin Karl Moser
Martin Karl Moser
MEMaximilian Ehrhart
Maximilian Ehrhart
Bernd ReschBernd Resch
Bernd Resch
Stress has various impacts on the health of human beings. Recent success in wearable sensor development, combined with advancements in deep learning to automatically detect features from raw data, opens several interesting applications related to detecting emotional states. Being able to accurately detect stress-related emotional arousal in an acute setting can positively impact the imminent health status of humans, i.e., through avoiding dangerous locations in an urban traffic setting. This work proposes an explainable deep learning methodology for the automatic detection of stress in physiological sensor data, recorded through a non-invasive wearable sensor device, the Empatica E4 wristband. We propose a Long-Short Term-Memory (LSTM) network, extended through a Deep Generative Ensemble of conditional GANs (LSTM DGE), to deal with the low data regime of sparsely labeled sensor measurements. As explainability is often a main concern of deep learning models, we leverage Integrated Gradients (IG) to highlight the most essential features used by the model for prediction and to compare the results to state-of-the-art expert-based stress-detection methodologies in terms of precision, recall, and interpretability. The results show that our LSTM DGE outperforms the state-of-the-art algorithm by 3 percentage points in terms of recall, and 7.18 percentage points in terms of precision. More importantly, through the use of Integrated Gradients as a layer of explainability, we show that there is a strong overlap between model-derived stress features for electrodermal activity and existing literature, which current state-of-the-art stress detection systems in medical research and psychology are based on.

16 August 2023 in IEEE Sensors Journal
Verified
Journal Article
Open access
MMMartin Karl Moser
Martin Karl Moser
Bernd ReschBernd Resch
Bernd Resch
MEMaximilian Ehrhart
Maximilian Ehrhart
Accurately measuring a person’s level of stress can have a wide variety of impacts, not only for human health, but also for the perceived feeling of safety when going after daily habits, such as walking, cycling, or driving from one place to another. While there is a vast amount of research done on stress and the related physiological responses of the human body, there is no go-to method when it comes to measuring acute stress in a live setting. This work proposes an advancement of the rule-based stress detection algorithm proposed in [1], to identify moments of stress (MOS) more reliably, through an adaptation and an individualization of the rules proposed in the original paper. The proposed algorithm leverages electrodermal activity and skin temperature, both recorded by the Empatica E4 wristband, for the assessment of an individual’s stress when exposed to an audible stimulus. The algorithm achieves an average recall of 81.31%, with a precision of 46.23%, and an accuracy of 92.74%, measured on 16 test subjects. The trade-off between precision and recall can be controlled by adjusting the MOS threshold that needs to be reached for a MOS to be detected.

9 July 2024 in Preprints.org
Verified
Preprint
Open access
PDF file
MMMartin Karl Moser
Martin Karl Moser
MEMaximilian Ehrhart
Maximilian Ehrhart
Bernd ReschBernd Resch
Bernd Resch
Stress has various impacts on the health of human beings. Recent success in wearable sensor development, combined with advancements in deep learning to automatically detect features from raw data, opens several interesting applications related to detecting emotional states. Being able to accurately detect stress-related emotional arousal in an acute setting can positively impact the imminent health status of humans, i.e., through avoiding dangerous locations in an urban traffic setting. This work proposes an explainable deep learning methodology for the automatic detection of stress in physiological sensor data, recorded through a non-invasive wearable sensor device, the Empatica E4 wristband. We propose an Long-Short Term-Memory (LSTM) network, extended through a Deep Generative Ensemble of conditional GANs (LSTM DGE) , to deal with the low data regime of sparsely labeled sensor measurements. As explainability is often a main concern of deep learning models, we leverage Integrated Gradients (IG) to highlight the most essential features used by the model for prediction and to compare the results to state-of-the-art expert-based stress detection methodologies in terms of precision, recall and interpretability. Results show that our LSTM DGE outperforms the state-of-the-art algorithm by 3 percentage points in terms of recall, and 7.18 percentage points in terms of precision. More importantly, through the use of Integrated Gradients as a layer of explainability, we show that there is a strong overlap between model-derived stress features for electrodermal activity, and existing literature, which current state-of-the-art stress detection systems in medical research and psychology are based on.

9 December 2025 in arXiv
Verified
Preprint
Open access
PDF file
LKLeon Kogler
Leon Kogler
MEMaximilian Ehrhart
Maximilian Ehrhart
BDBenedikt Dornauer
Benedikt Dornauer
Eduard EnoiuEduard Enoiu
Eduard Enoiu
With this paper, we introduce RESTifAI, an LLM-driven approach for generating reusable, CI/CD ready REST API tests, following the happy-path approach. Unlike existing tools that often focus primarily on internal server errors, RESTifAI systematically constructs valid test scenarios (happy paths) and derives negative cases to verify both intended functionality (2xx responses) and robustness against invalid inputs or business-rule violations (4xx responses). The results indicate that RESTifAI performs on par with the latest LLM tools, i.e., AutoRestTest and LogiAgent, while addressing limitations related to reusability, oracle complexity, and integration. To support this, we provide common comparative results and demonstrate the tool's applicability in industrial services. For tool demonstration, please refer to https://www.youtube.com/watch?v=2vtQo0T0Lo4. RESTifAI is publicly available at https://github.com/casablancahotelsoftware/RESTifAI.

12 April 2026
Verified
Conference Paper
Open access
LKLeon Kogler
Leon Kogler
MEMaximilian Ehrhart
Maximilian Ehrhart
BDBenedikt Dornauer
Benedikt Dornauer
Eduard EnoiuEduard Enoiu
Eduard Enoiu