About

I'm an Edge AI engineer at VinRobotics in Hanoi, where I do research with Dr. An Thai Le, and a senior embedded engineer and founding member of the core team at VoriaSolutions. I study machine learning on the hardware it actually runs on: small sensors, embedded processors, GPUs, and analog and neuromorphic accelerators. Two questions run through the work: how to keep a model accurate when its hardware is noisy, drifting or faulty, and how to measure it so the result holds outside the lab.

The engineering asks the same of real devices. I have written firmware for bedside monitors and battery-powered sensors, real-time control over EtherCAT, inference on embedded Linux, and, with a colleague, a Rust core that feeds batch inference on GPUs, and I check the result on the hardware itself: timing, power draw, and recovery when something breaks.

If you work on learning with unconventional hardware, embedded systems or evaluating robot perception, I'd be glad to hear from you.

The path so far

Each stage moved one layer closer to where a model runs.

  1. Undergraduate research

    One sensor, small models

    Can one ECG lead and a tiny model screen for sleep apnea?

    With Dr. Cuong Do and Dr. Hieu Pham, I worked on sleep-apnea detection from a single ECG lead, published in IEEE JBHI. Giving small models the whole waveform instead of just its R-peaks made them more accurate without making them bigger: on small hardware, a better input beats a bigger model.

  2. Robot builds

    Robots, from the wiring up

    What does real hardware do to an algorithm?

    I then built robots end to end: a Stewart-platform neck, a vision-guided arm and a life-sized humanoid. Leading a small student team, I pooled our own money to build a 24-DOF animatronic head for a Vingroup-wide technology showcase; keeping it running in live demos earned me a place at VinRobotics, where I rebuilt its control on a real-time stack and took it through ten days in the field in Nha Trang. Power, timing and electrical noise decided whether an algorithm worked at all.

  3. Engineering, now

    Models and firmware on real boards

    What does it take for a device to run on its own?

    At VinRobotics I brought up embedded Linux on NXP i.MX93 and Qualcomm RB8 boards, ran a robot's control policy on them, and wrote an EtherCAT master in Rust for real-time control. At VoriaSolutions, as a founding member of the core team, I build for devices that have to work unattended, such as a gateway for ICU monitors that I deployed in hospital pilots and a battery-powered sensor node, and I co-designed rstch, a Rust core for batch inference on GPUs.

  4. Research, now

    Learning on imperfect hardware

    Can learning survive the chip, and can we trust the score?

    Deployed analog accelerators drift and usually run forward passes only, so I study how to recover them without gradients and what choosing the step size costs. I also ask how much fault tolerance a model's structure can carry, with a spiking network that keeps its accuracy when neurons fail. Event cameras suit fast collision warning, so I test whether its benchmarks reward detecting a collision or shortcuts such as clip length.

News

  • Two papers under double-blind review: step selection for analog accelerators and a paired CARLA benchmark.
  • With the VoriaSolutions team, reached the Top 15 of the Qualcomm Vietnam Innovation Challenge.
  • Joined VoriaSolutions as a senior embedded engineer and founding member of the core team.
  • Started as an Edge AI Engineer at VinRobotics.
  • Joined VinRobotics as an intern.
  • Finalist in the Eureka Scientific Research Student Award.
  • MPCNN, my first paper, appeared in the IEEE Journal of Biomedical and Health Informatics.

Research

Current work

Method diagram: noise scale and radius measured on donor devices are pooled into a step scale, which selects the largest eligible learning rate from a grid before two-point zeroth-order updates recover the target device with noisy keep-or-revert validation

Under review

Budget-Aware Step Selection for Forward-Only Recovery of Analog Accelerators

Duong V. Nguyen and An Thai Le

Analog accelerators drift. Recovering one with forward-only optimization spends device queries twice: on the parameter updates, and on choosing those updates. In a controlled testbed, single-step descent boundaries exceed whole-run failure boundaries by 27.2× in geometric mean, so early progress is a poor guide to a full recovery run. We derive a finite-horizon bound on noise-driven displacement and use its step scale to pick a rate from donor devices without searching on the target. On 36 held-out simulated crossbar targets, a selector with a fine rate grid and condition-matched donors uses 93.62% fewer operational forward evaluations than target search at a 0.399 percentage-point accuracy cost, and a transferred fixed setting is more accurate at lower cost still. The case is for reporting accuracy and configuration cost together.

Paper, code and project page will be linked after review.

In progress

Vernier: A Fault-Tolerant Spiking Path Integrator

Duong V. Nguyen and An Thai Le

A network that integrates its inputs carries every error forward, and one trained on short episodes is constrained only on them. Vernier, a group-structured spiking phasor network for path integration, builds the structure of the problem into its neurons: self-motion rotates the phases of resonate-and-fire neurons, so integration is exact by construction, and the error corrections leave every valid code unchanged. Trained on 20-step trajectories, it ends 0.64 cm from the truth after 1,000 steps and stays within 5 cm with 20% faulty or 40% silenced neurons, where trained recurrent networks and learned grid-cell models drift by decimetres to metres. An integer version is bit-exact in a Lava simulation, which separates what the structure guarantees from what depends on numerical precision.

Ongoing work, not yet submitted; the paper and code will follow.

Scenario overview (1:20, no sound): collision and near-miss encounters across nine scenario types, with the event camera beside the overhead view.

Under review

Beyond Collision AUC: A Paired CARLA Benchmark for Event-Based Collision Warning

Duong V. Nguyen*, Minh Vu*, and An Thai Le *equal contribution

Collision-warning detectors are usually scored by collision AUC, yet on an existing event-camera corpus, episode duration alone reaches AUC 0.980. We build 440 collision/near-miss pairs in CARLA, covering stationary and moving vehicles and pedestrians, in which each pair shares scene and camera conditions, so a detector must separate contact from a matched non-contact encounter. With an observation window that ends about 1.33 s before contact, spiking and temporal convolutional networks reach test AUCs of 0.60 and 0.57 but matched-pair concordance of 69.8% and 78.6%, so the two measures rank them in opposite orders. Thresholds set for at least 90% collision recall still raise frequent near-miss alarms.

Paper, benchmark and code will be linked after review.

Earlier work

MPCNN overview: the ECG signal is filtered, segmented and denoised; subsequences starting at each P peak are compared by Euclidean distance, and the minimum, maximum and mean of each distance column feed lightweight CNNs (SE-MSCNN, modified LeNet-5, BAFNet) for per-segment and per-recording classification

Published 2024

MPCNN: A Novel Matrix Profile Approach for CNN-Based Single Lead Sleep Apnea in Classification Problem

Hieu X. Nguyen, Duong V. Nguyen, Hieu H. Pham, and Cuong D. Do

IEEE Journal of Biomedical and Health Informatics, vol. 28, no. 8, 2024

Single-lead ECG detectors for sleep apnea usually work from R-peaks and RR intervals, which leave out most of the PQRST waveform. MPCNN borrows from Matrix Profile algorithms: it builds Euclidean distance profiles between fixed-length subsequences of the signal and feeds their minimum, maximum and mean (MinDP, MaxDP, MeanDP) to lightweight CNNs. Per-segment accuracy reaches 92.11% on PhysioNet Apnea-ECG (70 overnight recordings) and 81.25% on UCDDB (25). On PhysioNet, per-recording accuracy is 100% with a correlation of 0.989, which points toward home sleep apnea testing on IoT devices.

Each subsequence starts at a P peak, and windows that span the whole beat, from the P peak to the end of the ST segment, work best. The profiles also slot into existing lightweight detectors, BAFNet (0.29 MB) and SE-MSCNN (0.16 MB), in place of their R-peak and RR-interval inputs, and improve them with the architectures unchanged: the gain comes from what the model sees, not from a bigger model.

Experience

Work

VinRobotics Edge AI Engineer

Research

  • Research end to end, from question and protocol to experiments, statistics and writing; first author of the step-selection paper and co-first author of the CARLA benchmark, both under review, and lead on Vernier, still in progress.
  • Experiment software for simulated analog, photonic and spiking accelerators (AIHWKit, pytorch-onn, Rockpool), a spiking path integrator with a bit-exact integer version in Lava, and an event-camera data pipeline built on CARLA.
  • Evaluation built to be audited: paired tests, grouped bootstrap and multiple-comparison correction, pinned environments, and provenance that traces every reported number to its configuration, data and script.

Edge AI on NXP i.MX93

  • Board bring-up on embedded Linux: device trees, a MIPI camera driver ported into NXP's kernel, and a real-time image built with Yocto.
  • A path from PyTorch to the board: NCNN packaged with a cross-compilation SDK, and a robot control policy that runs in about a third of a millisecond on one Cortex-A55 core.

Edge AI on Qualcomm RB8

  • Brought up the board with Qualcomm Linux, built with Yocto, and with Ubuntu, and set up cross-compilation and deployment.
  • Benchmarked a humanoid robot's control policy on its CPU for inference time, CPU load and latency.

EtherCAT master in Rust

  • A heap-free no_std Rust EtherCAT master for Zephyr on STM32: slave state management, CoE mailbox transfers, cyclic process data checked against the working counter, and distributed-clock setup.
  • A hardware-independent core tested on the host; it brings slaves to the Operational state on hardware.

VoriaSolutions Senior Embedded Engineer, founding member of the core team

Smart-ICU gateway in Rust

  • Fault-tolerant embedded Rust firmware that streams live telemetry from bedside monitors and a dialysis machine, across manufacturers, to a central dashboard for a public hospital's Smart-ICU pilot.
  • Medical-device protocols (Philips IntelliVue, HL7 v2 over MLLP, Prismaflex), link-loss detection, BLE provisioning and over-the-air updates.
  • Deployed the pilots on site, flying out on weekends, and troubleshot them directly with clinicians.

rstch: a Rust core for batch inference

  • Co-architected a Python-facing Rust core for batch inference and training input: fixed buffer pools, bounded queues, zero-copy tensor hand-over and stream-aware GPU buffer reuse.
  • Checked for numerical parity against a Python reference. For YOLO11s at batch 8 on a Jetson AGX Orin, it is 4.2× faster than pure NumPy around ONNX Runtime.

Low-power LoRaWAN sensor node

  • Zephyr firmware for a battery-powered environmental sensor: deep sleep, wake-on-motion, remote commands and firmware updates over LoRaWAN.
  • Power profiling that traced a wake-up current spike to the sensor board, fixed in firmware.

Networking on microcontrollers

  • TCP/IP from the wire up: W5500 Ethernet bring-up in no_std Rust.
  • TCP and UDP servers on Zephyr, and MQTT over TLS to AWS IoT Core.

Internships and research

VinRobotics Intern

  • Earned the role with a 24-DOF robot head that a student team I led built with our own money for a Vingroup-wide technology showcase.
  • Rebuilt its control on Teensy 4.1, Zephyr RTOS and ROS 2, and stress-tested it in a 10-day field deployment in Nha Trang; see the 24-DOF animatronic head.

Augmented Reality Interactive Solution (ARIS)

Augmented reality for medical education; see AR anatomy.

VinUni-Illinois Smart Health Center Undergraduate researcher

Single-lead ECG methods for sleep apnea and cardiovascular screening, supervised by Dr. Cuong Do and Dr. Hieu Pham; co-authored MPCNN.

Education

VinUniversity B.Sc. Electrical and Computer Engineering

College of Engineering & Computer Science. English-medium program validated by Cornell University.

Phan Boi Chau High School for the Gifted Physics specialized class

Awards

  • Top 15, Qualcomm Vietnam Innovation Challenge, with the VoriaSolutions team
  • Dean's List, VinUniversity
  • Finalist, Eureka Scientific Research Student Award
  • Third Prize, provincial Physics merit competition

Projects

Embedded and edge AI

Model diagram: beat intervals, motion and heart-rate variability from a wrist sensor pass through four depthwise-separable convolution blocks, global average pooling and dense layers to a risk score; a recurrent head was removed because it could not be exported to INT8.

Wearable rhythm-risk model

A 23 KB screening prototype that flags risky heart-rhythm patterns from a wrist sensor, built at VoriaSolutions for an edge health hub. When the recurrent head would not survive INT8 export, I replaced it with convolutions, and the smaller model also did better on a held-out day. Its labels come from heart-rate-variability rules, not physician diagnoses, so fitting it on the device was an engineering milestone, not clinical validation.

Read more

Driver diagram: pixels go from an LVGL frame through GDMA and a 40 MHz QSPI bus to the CO5300 AMOLED panel; the driver moved from bit-banged GPIO to hardware QSPI to QSPI with DMA.

AMOLED watch display driver

Part of porting the open-source ZSWatch to an ESP32-S3 AMOLED board at VoriaSolutions. I took the panel driver from bit-banged GPIO to hardware QSPI with DMA and interrupt completion, which made redraws more than twice as fast and left the CPU free during transfers. I also added the board and its production test.

Read more

Robots and interactive systems

Stewart platform neck

A six-servo Stewart platform built as a neck for the Unitree G1 humanoid. It turns the head to follow a face at 30 FPS with 48.6 ms end-to-end latency. I designed the electrical system, a 6 V, 10 A servo supply with PCA9685 PWM from an Arduino Uno, and developed the tracking and control code. Decoupling, separate power and signal wiring and split grounds cut PWM jitter from ±8 µs to ±1.5 µs and stopped resets under current peaks above 7 A.

Read more

4-DOF arm with computer vision

A pick-and-place arm that finds red, blue and white blocks with a 1080p, 60 FPS camera, with all vision running on an NVIDIA Jetson Nano and an Arduino Uno driving the servos. I built the block detection, the camera calibration and the pixel-to-world transform. Detection IoU ranged from 0.92 to 0.96, and pick-and-place succeeded in 77–84% of trials.

Read more

24-DOF animatronic head

A student team I led built it with our own money for a Vingroup-wide showcase, on an Arduino with MyRobotLab whose execution loops I hand-optimized to survive live demos. At VinRobotics I rebuilt it as real-time firmware on Teensy 4.1 and Zephyr RTOS, driven from ROS 2, and stress-tested it for ten days in the field in Nha Trang.

InMoovXtra

A life-sized humanoid robot built on the open-source InMoov platform, with a silicone face that shows expressions and spoken conversation through an LLM. I worked on its power, wiring and servo control.

Read more

AR anatomy for medical training

A Unity/Vuforia augmented-reality app that places 3D anatomical models, such as a colour-coded skull and facial muscle layers, in front of medical students.