← Back to Research

BLSensor: A Device-Agnostic Multi-Modal BLE Biosensing Platform

BLSensor: A Device-Agnostic BLE Platform for Multi-Modal Sensor Fusion and LLM-Powered Clinical Feedback

A BLE biosensing platform built as four swappable layers — hardware, client, sensor fusion, and LLM interpretation. I own the data layer: getting recordings to the server reliably while acquisition is still running, and answering who owns them, who touched them, and how to get them back.

Role
Student Researcher · Data layer
Period
May 2026 – Present
Institution
North Carolina State University Advisor: Dr. Abraham Vazquez-Guardado

Research question

Wearable multi-modal biosensing — EMG, ECG, SpO2 — underpins remote patient monitoring, prosthetic and exoskeleton control, and closed-loop therapeutics. Yet most BLE clients are tied to one vendor's hardware, handle a single modality, and are analysed by hand after the fact, so swapping a sensor or a compute platform means rewriting the software. BLSensor separates the problem into four layers — hardware nodes, client, fusion engine, LLM interpretation — any one of which can be replaced without touching the other three.

My part is the layer that is easiest to overlook and easiest to fail silently: how data gets from the recording machine to the server. The previous practice was to copy files by hand after the session, where copying, reconnecting, ownership and deletion could each go wrong quietly — and human-subject recordings usually cannot be repeated.

Methods & contributions

  • Built a resumable incremental uploader: it sends only the newline-terminated bytes the server has not yet acknowledged, and each file carries its own acknowledged offset, so a dropped connection resumes at that byte rather than resending the file.
  • Made retries idempotent by construction — a retry repeats the identical byte range and SHA-256, and the server rejects gaps while treating an identical resend as a duplicate rather than appending it twice.
  • Woke uploads from native filesystem events (FSEvents on macOS, inotify on Linux/Jetson) instead of polling; an acquisition rig can afford neither the latency nor the power.
  • Made completion explicit: End Session writes a SHA-256 sidecar, and idle time is never treated as proof that acquisition has finished — to a filesystem, a subject taking a break and a finished experiment look identical.
  • Implemented ownership, retrieval by user, session or individual file, recoverable deletion with a retention countdown, and an activity log covering sign-ins, permission changes and upload batches, on a FastAPI and SQLAlchemy backend.
  • Wrote a step-by-step illustrated manual so lab members without a programming background can record, recover and download unaided — a system nobody can operate is no system at all.
  • Platform-level validation is joint work: an NVIDIA Jetson running the Bumble stack impersonates a virtual PIBioMeD sensor and replays the WESAD dataset over the same GATT protocol, so latency, packet loss, throughput and cross-modal alignment can be measured against exactly known ground truth.

BLSensor is a device-agnostic BLE platform for multi-modal physiological sensing, built as four swappable layers — hardware, client, sensor fusion, and LLM interpretation. I own the data layer: getting recordings to the server reliably while acquisition is still running, and giving them an owner, an audit trail and a recovery path once they arrive.

Research poster for the BLSensor platform (Department of Electrical and Computer Engineering, NC State University; with Sina Baghbanijam and Dr. Abraham Vazquez-Guardado). The platform separates hardware, client, fusion and interpretation into four swappable layers, so any one can be replaced without touching the other three. The Data Infrastructure panel at the lower left is the part I own.
Research poster for the BLSensor platform (Department of Electrical and Computer Engineering, NC State University; with Sina Baghbanijam and Dr. Abraham Vazquez-Guardado). The platform separates hardware, client, fusion and interpretation into four swappable layers, so any one can be replaced without touching the other three. The Data Infrastructure panel at the lower left is the part I own.
The data layer end to end. Sensor data lands on the recording computer's disk first — recording never depends on the network, so a dropped connection costs nothing. The uploader sends the file in pieces while it is still growing and the server acknowledges each piece; the downloader then retrieves data by user and session.
The data layer end to end. Sensor data lands on the recording computer's disk first — recording never depends on the network, so a dropped connection costs nothing. The uploader sends the file in pieces while it is still growing and the server acknowledges each piece; the downloader then retrieves data by user and session.
The uploader. Local write rate, upload rate and backlog are shown live, so it is immediately obvious whether data is keeping up. Below is per-file progress; on first run it asks whether to backfill pre-existing files, and that decision is remembered so they can be uploaded later on demand.
The uploader. Local write rate, upload rate and backlog are shown live, so it is immediately obvious whether data is keeping up. Below is per-file progress; on first run it asks whether to backfill pre-existing files, and that decision is remembered so they can be uploaded later on demand.
The administrator view — one row per account, expandable to a session or a single file. The slider filters by upload time. Deleting moves items to that account's own trash rather than destroying them.
The administrator view — one row per account, expandable to a session or a single file. The slider filters by upload time. Deleting moves items to that account's own trash rather than destroying them.
Account management and the activity log. Above, each account's presence, last upload and active login count; below, sign-ins, sign-outs and permission changes — so who owns data and who touched it stays answerable after the fact.
Account management and the activity log. Above, each account's presence, last upload and active login count; below, sign-ins, sign-outs and permission changes — so who owns data and who touched it stays answerable after the fact.

Findings & outputs

  • Research poster, "BLSensor: A Device-Agnostic BLE Platform for Multi-Modal Sensor Fusion and LLM-Powered Clinical Feedback", with Sina Baghbanijam and Dr. Abraham Vazquez-Guardado (Department of Electrical and Computer Engineering, NC State University).
  • Measured platform performance: end-to-end latency stays within the 100 ms real-time threshold through roughly 6 concurrent BLE sensors; mean physical-event-to-GUI-render latency is about 48 ms over a 200-packet trace; 1–8 concurrent sensors profiled for latency, loss and resource footprint.

Methods & tools

  • Python
  • PyQt6
  • FastAPI
  • SQLAlchemy
  • BLE / bleak
  • Resumable upload
  • SHA-256 verification
  • FSEvents / inotify
  • Hydra
  • NVIDIA Jetson