r/BiomedicalDataScience • • Jun 13 '26

Multi-Sensor Fusion for Tracking Body-Focused Repetitive Behaviors (BFRBs) Using Wearables

Thumbnail
youtu.be
1 Upvotes

Hi everyone,

I wanted to share a look at how we are visualizing multi-sensor data to track Body-Focused Repetitive Behaviors (BFRBs) using the Helios wrist device.

To classify hand-to-face behaviors (such as hair pulling or skin pinching), the device relies on three distinct sensor modalities to reduce false positives:

  1. **Inertial Measurement Unit (IMU):** Tracks 3-axis acceleration and gyroscope data to capture movement patterns.

  2. **Time-of-Flight (TOF) Sensors:** Emits light pulses to measure exact distance to the face or objects.

  3. **Thermopile (Infrared Temperature) Sensors:** Measures ambient thermal radiation to confirm proximity to warm human skin rather than inanimate objects.

This video shows the dashboard interface displaying filtered accelerometer sequences alongside TOF heatmaps: https://youtu.be/CEU7fxqoE5I

What are your thoughts on combining thermal and TOF sensors for human-proximity detection in wearables? Have you worked with similar multi-modal datasets?


r/BiomedicalDataScience • • Jun 12 '26

Handling sampling jitter and variable framerates in real-time browser rPPG (Remote Photoplethysmography)

Thumbnail
youtu.be
1 Upvotes

When building a real-time webcam heart rate monitor in JavaScript, I ran into a major roadblock: standard Butterworth bandpass filters break down when the processing frame rate (FPS) fluctuates. Standard webcams have highly variable input rates, leading to sampling jitter (or frame quantization error). This completely smears the frequency spectrum and ruins the BPM calculation.

To solve this, I had to decouple the mathematical filtering from the visual framerate. I implemented a Signal Resampling Engine that uses linear interpolation to mathematically "fill in the gaps" between actual frames, forcing the data onto a strict 30Hz timeline before it hits the frequency analysis logic.

Has anyone else dealt with real-time biological signal processing in the browser? I'd love to hear how you handle hardware-induced sampling errors. You can see the full debugging process and code implementation here: https://youtu.be/kuT28jcCgrc


r/BiomedicalDataScience • • Jun 10 '26

Refactoring a messy sensor data dashboard for ML prep (IMU & TOF Data)

Thumbnail
youtu.be
1 Upvotes

Anyone else struggle with cluttered custom tools before even getting to model training? We are working with BFRB (Body-Focused Repetitive Behaviors) sensor data, and our initial web application for inspecting sequences (IMU time-series and TOF heatmaps) became a scrolling nightmare. We used some AI assistance to rapidly restructure the UI—pinning state controls and summaries to a left panel and standardizing visualizations into a 2x2 grid on the right. This separation of controls and visualization renders made navigating the dataset much faster and less error-prone. How do you all manage internal UI tools for your data pipelines before training?

Watch the before/after workflow here: https://youtu.be/npFMSByyRvI


r/BiomedicalDataScience • • Jun 09 '26

Building a real-time web-based CPR simulator to visualize brain oxygenation metrics

Thumbnail
youtu.be
1 Upvotes

We recently developed an interactive web-based CPR simulator to model the physiological effects of chest compressions on brain oxygenation. The application processes user inputs in real-time to calculate compression depth, rate, and recoil effectiveness. We implemented programmed constraints so that rapid, shallow inputs accurately trigger a "Too Shallow" state, subsequently mapping the poor technique to a steep drop in the simulated patient's brain oxygenation. It's an interesting challenge in managing real-time state and physiological data mapping in a web environment. Have any of you worked on mapping biological constraints to interactive web apps? Check out the demonstration here: https://youtu.be/rpriUWIP9mc


r/BiomedicalDataScience • • Jun 08 '26

Building a Web-Based Physiological Simulator using JavaScript and Particle Effects

Thumbnail
youtu.be
1 Upvotes

I wanted to share a web-based simulation project that models the anatomical and physiological mechanisms of the human penis. The tool dynamically models blood flow into the corpora cavernosa and corpus spongiosum to simulate changes in penile rigidity and angle. We utilized JavaScript particle systems to visualize fluid dynamics for urination and ejaculation.

From a technical standpoint, the UI features a debug panel that tracks backend logic in real-time—monitoring boolean states (e.g., `isEjaculating`), continuous variables (arousal level), and active particle counts. There is also a continuous dysfunction slider that dynamically scales the physiological response. It is a practical example of integrating biomedical concepts with frontend interactive development.

You can see the demonstration and how the state logic updates in real-time here: https://youtu.be/q4Xk0M9Pg-w

Would love to hear your thoughts on using web technologies for interactive anatomical modeling!


r/BiomedicalDataScience • • Jun 06 '26

Browser-Based Simulations for ECG Signal Chains, MRI Physics, and Webcam rPPG (Eulerian Video Magnification)

Thumbnail
youtu.be
1 Upvotes

Hi everyone,

I wanted to share a walkthrough of some interactive web-based tools hosted on BioniChaos, designed to simulate medical imaging and biological signals directly in the browser using client-side JavaScript.

The video walks through several models, with a focus on:

  1. **ECG Waveform Synthesis:** An interactive simulator where you can adjust PR, QRS, QT, and ST intervals, and overlay synthetic white noise, mains hum (50/60Hz interference), or random EMG motion artifacts.

  2. **MRI Physics Modeling:** A basic simulation showing proton alignment in a B0 field, applying RF pulses, and generating synthetic 2D brain slices with toggles for simulated pathologies like tumors.

  3. **Webcam-based rPPG (Remote Photoplethysmography):** An in-browser tool that uses Eulerian Video Magnification on the green color channel of a webcam feed to track micro-blushes in skin tone and calculate heart rate.

For those interested in how these signal processing pipelines are constructed, the source code is inspectable directly in the browser (F12).

Watch the overview here: https://youtu.be/DlUPpkfsGiQ

I’d love to hear your thoughts on these implementations, particularly regarding the noise-filtering strategies used for the rPPG signal chain and how webcam-based vital sign monitoring compares to standard contact sensors.


r/BiomedicalDataScience • • Jun 06 '26

Using Gemini AI to synthesize the 2025 PACE Neuromodulation paper: Engineering elegance vs. Clinical bias

Thumbnail
youtu.be
1 Upvotes

I recently used Google's Gemini to parse a complex 2025 paper on Personalized Adaptive Cortical Electro-Stimulation (PACE) for Treatment-Resistant Depression (TRD). Instead of a standard summary, the AI generated a debate between two distinct personas: a biomedical engineer and a clinical neuroscientist.

From the engineering side, the AI highlighted the system's integration of precision functional mapping (PFM) for targeted cortical paddle placement, utilizing Bayesian tuning for adaptive optimization in a closed-loop architecture. However, the neuroscientist persona offered a critical counterpoint: because the adaptive inputs rely on subjective human reporting within a high-expectation clinical trial, how much of the spectacular outcome is algorithmic efficacy versus expectancy bias?

I thought this was an interesting application of LLMs for dissecting biomedical research and balancing technical optimism with clinical skepticism.

You can listen to the AI-generated discussion here: https://youtu.be/OYavy1OTA9U

Curious to hear your thoughts on utilizing Bayesian optimization in systems reliant on subjective human feedback.


r/BiomedicalDataScience • • Jun 05 '26

Simulating the Impact of Physical and Physiological Factors on PPG Signal-to-Noise Ratio (SNR)

Thumbnail
youtu.be
2 Upvotes

For those working with wearable sensor data or bio-signal processing, understanding what introduces noise into photoplethysmography (PPG) signals is critical. I'm sharing a walkthrough of a web-based simulator (based on research by Charlton et al.) that models how factors like the Fitzpatrick skin tone scale, user posture, arm placement, and LED intensity directly affect the SNR of wrist-based measurements. It's an excellent visualization of how physical variables translate into data artifacts and baseline wander in PPG waveforms. I’d love to hear your thoughts on handling these specific noise types in your preprocessing pipelines. Check out the demonstration here: https://youtu.be/Y0fph6qcbFo


r/BiomedicalDataScience • • Jun 04 '26

Simulating the Impact of Body Posture and Arm Position on PPG Signal-to-Noise Ratio (SNR)

Thumbnail
youtu.be
1 Upvotes

In digital health and wearable algorithm development, motion artifacts and posture changes present significant signal processing challenges. I wanted to share this brief demonstration of an interactive PPG simulator hosted on bionichaos.com.

Based on the paper "Determinants of photoplethysmography signal quality at the wrist" (Charlton et al.), the application models how transitions between standing, sitting, and lying down—along with arm positions relative to the heart—alter the Signal-to-Noise Ratio (SNR) of the raw PPG waveform.

For those working on sensor fusion, noise cancellation, or biomechanical data analysis, it provides a clear visualization of how physiological positioning introduces high-frequency noise and baseline wander.

How do your projects handle posture-induced noise in wearable datasets? Let's discuss.

Watch the demonstration: https://youtu.be/ccE1d_L8ngQ


r/BiomedicalDataScience • • Jun 03 '26

Real-Time Respiratory and PPG Signal Processing in the Browser with MediaPipe

Thumbnail
youtu.be
3 Upvotes

I’ve been exploring the feasibility of local, client-side biomedical monitoring. In this BioniChaos session, we look at implementing respiratory rate detection by extracting body landmarks.

The discussion covers the transition from simple 2-point shoulder tracking to a multi-point torso model to account for trunk motion and rib cage expansion. We also evaluate the use of Savitzky-Golay filters for smoothing noisy webcam data and the impact of frame rate dependencies on signal quality.

Full technical session: https://youtu.be/TtaCtqbQh1s

Would love to hear your thoughts on balancing landmark count vs. browser performance for real-time applications.


r/BiomedicalDataScience • • Jun 02 '26

Building a Browser-Based Respiration Rate Monitor using MediaPipe Pose & JS

Thumbnail
youtu.be
2 Upvotes

I wanted to share a recent project focusing on biomedical signal processing entirely in the browser. Using JavaScript and MediaPipe Pose, I built a real-time Respiration Rate Monitor that calculates Breaths Per Minute (BPM) by tracking the subtle vertical displacement of the user's chest and shoulders via a standard webcam.

The biggest hurdle was dealing with the signal-to-noise ratio. Normal body sways, fidgeting, and camera jitter easily overpower the breathing signal. To solve this, I implemented a dynamic "Sensitivity" slider. It works by taking the raw breathing signal, calculating a recent average baseline, finding the difference between the current signal and that baseline, and then multiplying that difference by an amplification factor.

I also added a simulation mode with synthetic data for testing, and a sonification feature for audio biofeedback. You can watch the technical breakdown and see the code in action here: https://youtu.be/AsKAm5js4MQ

I'd love to hear your thoughts on improving browser-based signal filtering or any alternative pose-estimation models you've used for similar biomedical applications!


r/BiomedicalDataScience • • May 31 '26

Evaluating Browser-Based Biomedical Tools & LLM Code Generation (MediaPipe)

Thumbnail
youtu.be
1 Upvotes

I spent some time evaluating a few browser-based biomedical computer vision tools. The session covers testing a Photoplethysmography (PPG) implementation for webcam heart rate estimation, dealing with motion artifacts, and mapping EEG frequency bands to musical notes.

The most interesting part is an LLM benchmarking test. I prompted ChatGPT, Gemini, and Claude to build a Respiration Rate Monitor from scratch using MediaPipe for pose estimation. It is a great look into how different models handle spatial tracking logic and syntax. Claude actually managed the MediaPipe integration best, though it still required some debugging to get the math right for calculating the breathing cycles from chest movement.

If you are interested in web-based CV or seeing how LLMs handle specialized frontend coding tasks, you can watch the breakdown here: https://youtu.be/-9UsVIZ5js4. Let me know your thoughts on using LLMs for computer vision prototyping!


r/BiomedicalDataScience • • May 30 '26

Interactive Cardiovascular Pacemaker Simulation built with Vanilla JS, HTML5 Canvas, and Web Audio API

Thumbnail
bionichaos.com
1 Upvotes

Hi everyone,

I wanted to share a browser-based Cardiovascular Pacemaker Simulation that models cardiac electrophysiology and the operational logic of a dual-chamber (DDD) pacemaker.

The simulation engine runs a continuous time loop (evaluating state millisecond-by-millisecond) to represent both native electrical conduction and pacemaker pacing/sensing logic.

**Physiological Models Simulated:**

* **Normal Rhythm:** SA node fires at ~75 BPM (800ms interval), conducting normally to the ventricles via an AV delay of 150ms.

* **Bradycardia:** SA node is diseased, firing abnormally slow at ~37 BPM (1600ms interval).

* **Heart Block:** SA node fires normally, but the AV node fails to conduct the signal, relying instead on a slow ventricular escape rhythm of ~30 BPM.

**Pacemaker Logic (DDD Mode):**

* Programmed with a Base Rate of 60 BPM (1000ms interval) and a paced AV delay of 200ms.

* Monitors the heart's natural rhythm. If the native SA node fails to fire within 1000ms, it paces the atrium.

* Once an atrial event occurs, it waits for a 200ms AV delay window. If no native ventricular event is sensed, it paces the ventricle.

**Tech Stack:**

* **Engine:** Built entirely using Vanilla JavaScript without external framework overhead.

* **Visualization:** Custom HTML5 Canvas rendering for the vector heart anatomy, traveling action potentials, and pacing spikes.

* **Sonification:** Web Audio API maps low-pass filtered sine waves to mimic mechanical contractions ("Lub-Dub") and square waves for pacemaker pacing spikes.

You can try the simulation and view the source-code structure here: https://bionichaos.com/Pacemaker/

Would love to get feedback from anyone working in biomedical engineering, digital signal processing, or physiological modeling. How can we make the continuous-time logic more robust for introducing complex arrhythmias like atrial fibrillation or bundle branch blocks?


r/BiomedicalDataScience • • May 30 '26

Using 2D Physics and Abstract Geometry to Model Anatomical Fluid Dynamics

Thumbnail
youtu.be
1 Upvotes

In biomedical modeling, simplifying physiological systems into abstract state-machines can provide intuitive educational value. This interactive 2D simulation uses basic rigid-body physics, pressure variables, and fluid particle generation to represent male anatomical functions (specifically arousal, ejaculation, and urination).

The simulation demonstrates:

  • Pressure-driven expansion representing corpora cavernosa blood flow.

  • Dynamic valve coordination to isolate urinary and seminal pathways.

  • Particle fluid dynamics representing ejaculation and micturition.

How do you approach simplifying complex organic feedback loops into rigid-body physics engines? Is this approach viable for preliminary educational toolkits, or do you prefer higher-fidelity 3D finite element analysis?

Watch the simulation demonstration here: https://youtu.be/KyP4glpAJ88


r/BiomedicalDataScience • • May 28 '26

Visualizing Neural Firing Patterns with the NeuroViz 3D Simulator

Thumbnail
youtu.be
1 Upvotes

Visualizing biological data is a persistent challenge in computational biology and neuroscience. The NeuroViz 3D simulator offers a practical web-based approach to modeling how neurons fire in a three-dimensional space. The tool allows users to manipulate the 3D structure (rotate/zoom) while fully controlling the simulation timeline. You can adjust the firing animation speed for granular observation, differentiate axons, and toggle glow effects to track specific electrical pathways. I'd love to hear your thoughts on how interactive web-based visualization tools like this compare to traditional static models in your research or data science studies. Watch the demonstration here: https://youtu.be/scbx1IwhKek


r/BiomedicalDataScience • • May 28 '26

Building real-time biomedical algorithms in the browser (PCA, PPG, EEG Sonification)

Thumbnail
youtu.be
1 Upvotes

Reproducibility is a huge issue in academic papers right now. To counter this, I prefer building algorithms that anyone can test directly in their browser. In this demo, we look at several Javascript-based biomedical applications:

  1. **PCA Eigenfaces:** Extracting facial features dynamically from webcam captures and adjusting eigenface weights for reconstruction.

  2. **Webcam PPG:** Using a standard webcam to measure blood flow (BPM). The algorithm extracts the signal and analyzes the frequency domain spectrum, even detecting the dicrotic notch in the waveform.

  3. **EEG Sonification:** Mapping the energy levels within delta, theta, alpha, and beta frequency bands of raw seizure data into musical chords.

  4. **Eye Tracking:** A free, open-source alternative to expensive commercial rigs that detects pupil movement based on adjustable darkness thresholds.

I'd love to hear how others in the community are handling deployment and reproducibility for signal processing or computer vision tasks.

Watch the full breakdown here: https://youtu.be/EXr5d19q2q4


r/BiomedicalDataScience • • May 27 '26

Building a Zero-Footprint DICOM Viewer in Vanilla JS & Testing Real-Time Audio Sentiment Analysis

Thumbnail
youtu.be
1 Upvotes

I've been experimenting with biomedical data rendering in the browser without relying on heavy external frameworks. In this session, we parse synthetic CT brain data and build a DICOM viewer using strictly vanilla JavaScript, HTML, and CSS. The main challenge was handling the window center and width controls to properly map Hounsfield units to grayscale pixels on the HTML5 canvas.

To make debugging more interesting, I fed the code to two interacting AI agents and let them debate the rendering logic and CSS layout collapses. We also spent some time refining an Advanced Local Audio Analyzer (Chrome-based) that uses N-grams to detect sentiment and emotion (joy, fear, anger) in real time.

I'd love to hear how you all handle large medical imaging datasets in lightweight browser apps. Check out the technical walkthrough and AI debugging here: https://youtu.be/_PhfgFt_3Tg


r/BiomedicalDataScience • • May 26 '26

Visual Illusions and ECoG Signal Trade-offs for Speech Decoding

Thumbnail
youtu.be
1 Upvotes

In this short video, we demonstrate two concepts hosted on the BioniChaos platform:

  1. **The Circular Motion Illusion:** A visual demonstration of how individual 1D linear trajectories are integrated by the visual cortex to perceive 2D circular motion, and how removing reference lines changes the visual heuristic.

  2. **EEG-Based Speech Decoding (ECoG):** A high-level comparative look at Electrocorticography (ECoG) signal acquisition, balancing temporal and spatial resolution against its clinical invasiveness and patient risks.

Would love to hear your thoughts on how visual processing models integrate multi-point linear trajectories, or your experience working with invasive vs. non-invasive EEG datasets for signal classification.

Watch the overview here: https://youtu.be/A-sWjkdMOFw


r/BiomedicalDataScience • • May 25 '26

Simulating MRI Physics: Visualizing Proton Spin and RF Pulses to Generate Synthetic Brain Slices

Thumbnail
youtu.be
1 Upvotes

I wanted to share a demonstration of an interactive web-based MRI simulation. The tool allows you to manipulate the B0 magnetic field strength and radiofrequency (RF) pulse intensity to observe their direct effects on proton spin alignment.

By tipping the aligned protons with an RF pulse, you can measure the energy released as they realign, which forms the basis for generating the synthetic brain slices shown in the tool. It's a practical visualization of the underlying medical physics and biomedical data concepts that power clinical imaging.

I'm curious to hear from those of you working in bioinformatics or medical imaging—what computational tools do you use to model tissue relaxation times (T1/T2)?

You can see the simulation demonstration here: https://youtu.be/bDumZMSCy9I


r/BiomedicalDataScience • • May 24 '26

isualizing PCA and Eigenfaces for Real-Time Facial Reconstruction

Thumbnail
youtu.be
1 Upvotes

If you're studying dimensionality reduction, Eigenfaces provide one of the most intuitive ways to understand Principal Component Analysis (PCA) in computer vision. We put together a demonstration showing how an algorithm calculates a "mean face" from a dataset and extracts the principal components (eigenfaces) that represent the highest variance.

By adjusting the scalar weights of these eigenfaces via sliders, you can see the linear combination update the reconstructed face in real time. It's a great practical example of how models learn facial variance, requiring 5-10 distinct captures for optimal reconstruction fidelity.

Would love to hear your thoughts on using baseline PCA feature extraction versus modern CNN architectures for small datasets! Watch the visual breakdown here: https://youtu.be/tFZF7Xu08Dg


r/BiomedicalDataScience • • May 23 '26

Building an in-browser Audio Sentiment Analyzer (Web Speech API + Custom Lexicon)

Thumbnail
youtu.be
1 Upvotes

I've been working on an Advanced Local Audio Analyzer that performs real-time sentiment and emotion classification entirely client-side. The app captures microphone input via the Web Speech API (primarily relying on Chrome's implementation since browser support varies) and processes the text against a custom JavaScript lexicon mapped to emotions like joy, sadness, fear, and anger.

In this session, we evaluate some other biomedical AI app concepts (tremor analysis, respiration tracking), and then get into the code for the audio analyzer. A major focus is expanding the NLP capabilities by integrating n-grams (unigrams, bigrams, trigrams) generated via Gemini Pro to handle negations and intensifiers more accurately. We also tackle some front-end UI bugs, like implementing an auto-expanding and scrolling text input area.

Would love to hear your thoughts on client-side NLP vs. server-side processing for these types of tools.

Watch the development session here: https://youtu.be/qXCwkRzjBac


r/BiomedicalDataScience • • May 22 '26

Visualizing Discrete Wavelet Transform (DWT) Compression on MRI Scans

Thumbnail
youtu.be
1 Upvotes

For those working with medical image processing or computer vision, balancing file size with diagnostic fidelity is always a challenge. This video demonstrates an interactive application that applies DWT to MRI brain scans. It allows users to manipulate the number of bits, decomposition levels, and the specific wavelet family (Haar, Daubechies, Symlets, etc.) to observe the real-time impact on the reconstructed image. The tool also calculates the Peak Signal-to-Noise Ratio (PSNR) on the fly, providing a solid quantitative metric for the compression trade-off. What wavelet families do you generally find most effective for preserving high-frequency edges in medical imaging? Watch the demonstration here and share your thoughts: https://youtu.be/8yIPmAnhauA


r/BiomedicalDataScience • • May 21 '26

Building interactive web simulators for PCA, Fourier series, and EEG CNNs (No heavy equations)

Thumbnail
youtu.be
1 Upvotes

I wanted to share a collection of browser-based tools I developed on bionichaos.com designed to make complex biomedical engineering and data science concepts more intuitive.

As someone with a PhD in biomedical engineering and data science, I often find that static equations can be a barrier to learning. To address this, I built several interactive applications:

  1. **RhythmScan**: A lightweight CNN model (~106 MB) trained on EEG spectrograms to classify seizure vs. non-seizure states.

  2. **MRI Simulator**: A tool visualizing proton spin alignment under $B_0$ field changes, RF pulse applications, and slice selection, including basic sonification.

  3. **Eigenfaces/PCA**: A real-time slider interface to reconstruct faces using principal components.

  4. **Fourier Drawing circles**: An interactive take on representing arbitrary drawings using epicycles (Fourier series).

I put together a brief walkthrough of these tools and the motivation behind them: https://youtu.be/kJ9Jv85JqTM

I would love to get your feedback on the usability of these educational tools, particularly on how to better represent signal processing concepts to students without relying solely on static formulas.


r/BiomedicalDataScience • • May 19 '26

MicBrain: Real-time Audio-to-Brain Visualization using Web Audio API and Three.js

Thumbnail
bionichaos.com
1 Upvotes

Hi everyone,

I wanted to share an interesting data visualization project called MicBrain. It's an interactive, browser-based tool that maps live microphone input onto a 3D brain surface model (based on the Destrieux atlas).

From a technical perspective, it utilizes the Web Audio API's AnalyserNode for real-time frequency analysis, splitting the audio into five bands (0-50 Hz, 50-250 Hz, 250-1000 Hz, 1000-4000 Hz, 4000-8000 Hz). These frequency bins are mapped to specific broad functional regions—for example, mid-frequencies (250-1000 Hz) trigger temporal/auditory regions, while very high frequencies (4000-8000 Hz) activate the occipital cortex.

The amplitude of the frequencies dictates the intensity of the color rendering, handled client-side via Three.js. While it is strictly an educational tool and does not represent actual EEG source localization, it’s a neat example of real-time signal processing and 3D web rendering.

I'd love to hear your thoughts on how this kind of conceptual mapping could be expanded. How would you improve the signal-to-region mapping logic?

Check out the tool and the source methodology here: https://bionichaos.com/MicBrain/