Go witheFlow: Real-time Emotion Driven Audio Effects Modulation

Edmund Grigoris Dervakos, Spyridon Kantarelis, Vassilis Lyberatos, Jason Liartis, Giorgos Stamou

TL;DR

This paper introduces "witheFlow," a novel system that enhances live music performance by dynamically modulating audio effects in real-time. It achieves this by analyzing both the performer's biosignals (like stress and attention) and the audio itself, creating a more expressive and collaborative human-AI musical experience.

What Problem Does This Paper Address?

While AI is increasingly capable of generating music, there's a significant gap in how AI can collaborate with human performers to enhance their existing creative process. Traditional music technology often overlooks the performer's real-time emotional and physiological state, focusing solely on audio processing. This paper addresses the challenge of creating an AI system that acts as an enhancing tool rather than a replacement, allowing performers to focus on self-expression by translating their internal emotional state into responsive sonic output through audio effects. The goal is to bridge the gap between human emotion and the sonic experience in live performance.

Methods

The witheFlow system is built around three core components:

  1. Biosignal-based 'emotional state' feature extractor: This module processes data from electroencephalography (EEG) and electrocardiography (ECG) sensors. EEG signals are used to derive "Attention" and "Relaxation" metrics based on alpha and beta wave power. ECG signals are used to calculate the Baevsky Stress Index (SI), a heart rate variability (HRV) metric that quantifies stress.
  2. Audio-based emotion regressor: This component analyzes the incoming audio signal to estimate the performer's emotional state in the Valence-Arousal (VA) space. It utilizes a pre-trained PANNs CNN10 model, fine-tuned with a linear regressor to output arousal and valence values.
  3. Rule-based mixing logic module: This is the heart of the system's dynamic control. It takes the extracted biosignal and audio features and applies a customizable set of rules (encoded in YAML) to adjust the gains of various audio effect channels. These rules dynamically map combinations of stress, attention, and VA values to specific audio effect modulations, aiming to shape the overall sonic output to align with or contrast the performer's emotional state. The system is implemented in Python and communicates via MIDI.

Datasets

The paper mentions the use of the DEAM dataset for training the audio emotion regressor. However, it also highlights a significant limitation: the lack of datasets specifically focused on solo performances with real-time annotations and biosignal data. The authors are actively working on creating such a dataset, collaborating with musicians to gather this crucial data for future research.

Key Insights and Ideas

  • Human-AI Collaboration over Replacement: The core philosophy is to empower human creativity by using AI as an intelligent assistant, not a substitute. This is crucial for maintaining the artist's agency.
  • Bridging the Bio-Sonic Gap: The system directly links physiological states (stress, attention, relaxation) to sonic output (audio effects), creating a more intuitive and expressive feedback loop for performers.
  • Lightweight and Local Processing: The emphasis on lightweight models that run locally on a laptop is key for real-time performance, avoiding latency and computational overhead, and ensuring privacy.
  • Customizable and Interpretable Logic: The use of YAML for rule-based mixing logic makes the system's behavior understandable and easily modifiable by users, fostering trust and control.
  • The Importance of Solo Performance Data: The authors identify a critical need for specialized datasets that capture the nuances of solo musical performances with accompanying biosignal data, which is currently lacking.

Key Results

The paper presents a proof-of-concept system that has been co-developed and tested with multiple musicians. While specific quantitative results are not detailed, the qualitative feedback indicates that musicians generally enjoy interacting with the system, particularly in improvisational settings. They report that the system's responsiveness to their internal and musical state opens up new expressive possibilities. The system is designed to be lightweight and capable of running locally, demonstrating the feasibility of real-time, emotion-driven audio effect modulation.

Limitations and Future Work

  • Dataset Scarcity: The most significant limitation is the lack of comprehensive datasets for training and evaluating such systems, especially those including biosignals and solo performances. The authors are actively working on creating this.
  • Hyperparameter Tuning: The audio emotion regressor's hyperparameters have not undergone extensive tuning, suggesting room for improvement.
  • Formal Evaluation Framework: The authors acknowledge the need for a robust and flexible methodology for quantitatively evaluating these types of co-creative human-AI systems.
  • Interdisciplinary Feature Exploration: Future work includes exploring more diverse and reliable features from various modalities (e.g., video) beyond current biosignals and audio.
  • Interpretable-by-Design ML: Moving from hard-coded rules to interpretable machine learning models for the mixing logic is a key research direction.
  • End-to-End Architectures: Exploring black-box, end-to-end architectures like deep reinforcement learning or DDSP for more novel expressivity is also on the horizon.
  • Hardware/Software Architecture: Balancing local processing advantages (low latency, privacy) with the potential of cloud-based systems for larger models and richer creative behavior is an ongoing consideration. Hybrid or adaptive architectures are proposed.
  • Ethical Considerations: The paper emphasizes the importance of user control, transparency, and avoiding bias, especially when dealing with sensitive biosignal data and subjective emotional annotations.

Summary updated

BibTeX
@inproceedings{dervakos2025go,
  author = {Edmund Grigoris Dervakos and Spyridon Kantarelis and Vassilis Lyberatos and Jason Liartis and Giorgos Stamou},
  title = {{Go witheFlow: Real-time Emotion Driven Audio Effects Modulation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=Kl8DZjFYDK},
}
Figure