Experiment Orchestration App
Overview:
As part of my internship at the Cognition and Behavior Laboratory in Aarhus, I was tasked with developing a software solution to test the hypothesis that people’s heart rates synchronize during shared activities. The project involved participants engaging in both a game and a vocal task, with the aim of capturing synchronized biometric data.
flowchart LR
pair(["Participant A + participant B"]) --> game["Game activity<br/>Wii Remote input"]
pair --> vocal["Vocal task<br/>audio recording"]
Challenges and Technical Hurdles:
One of the key challenges was ensuring real-time data synchronization across multiple streams—heart rate monitors, Wii remotes, and audio recordings. The technology stack, which included C# and WPF, wasn’t inherently designed for high-throughput, low-latency applications, so I had to get creative.
flowchart LR
subgraph constraints["Constraints"]
direction TB
stack["C# + WPF stack<br/>not built for high-throughput,<br/>low-latency work"] ~~~ streams["Multi-stream data<br/>multiple simultaneous<br/>input sources"]
streams ~~~ sync["Synchronization<br/>perfect timestamp<br/>alignment required"]
end
subgraph solutions["Solutions"]
direction TB
threading["Threading model<br/>custom concurrent<br/>architecture"] ~~~ wii["Wii integration<br/>repurposed consumer<br/>hardware as input"]
wii ~~~ latency["Low-latency design<br/>optimized pipeline for<br/>real-time processing"]
end
constraints ==>|"creative solutions"| solutions
Action and Problem-Solving:
To tackle these challenges, I implemented a custom solution to use the Wii remotes as input devices, translating their accelerometer data into cursor movement on the screen. I also designed a concurrent threading model to ensure that data from all sources was perfectly synchronized. For the audio recording, I integrated standard microphones, ensuring minimal latency despite the complex data environment.
flowchart TB
heartRate["Heart rate<br/>biometric monitors<br/>multiple participants"] --> engine
wii["Wii Remotes<br/>accelerometer data<br/>motion tracking"] --> engine
audio["Audio<br/>voice recordings<br/>vocal task data"] --> engine
engine["Synchronization engine<br/>custom concurrent threading model<br/>real-time timestamp alignment"] --> dataset[("Synchronized dataset<br/>low latency · high precision")]
Skills and Innovations:
This project showcased my ability to adapt and innovate under constraints. I leveraged my proficiency in C# and WPF to create a responsive, synchronized system, balancing the technical demands of real-time data with the limitations of the technology.
flowchart LR
wii["Wii Remote<br/>accelerometer<br/>data stream"] --> translation["Translation<br/>custom C# logic<br/>motion → cursor"]
translation --> cursor["Cursor control<br/>screen movement<br/>game interaction"]
translation -.- outcome["Real-time motion tracking<br/>without specialized equipment"]
Conclusion and Impact:
While the experiment was not completed due to budget constraints, the project laid critical groundwork for future research. It highlighted my capacity to independently solve complex problems, innovate under constraints, and deliver high-quality technical solutions.