Skip to content

OraScan H: Halitosis IoT device

Lets clinicians collect breath readings and tongue images and review them on a phone.

Company
OraLens Healthcare
Role
Lead engineer
Domains
  • Hardware
  • Mobile
  • AI/ML
Four OraScan H app screens: device status, guided upper-teeth capture, an H2S breath reading, and the experimental analysis summary.
Four OraScan H app screens: device status, guided upper-teeth capture, an H2S breath reading, and the experimental analysis summary.
BLE pairing
< 3 s
Tongue image analysis:
On the phone
On this page

Tech stack

  • Python
  • Flutter
  • Raspberry Pi
  • TFLite
  • BLE
  • PHP
  • H2S sensors
Read the product case study

The problem

Clinicians running a halitosis trial need to collect breath readings and tongue images consistently and keep each sample linked to the right session.

The challenge

The handheld had to collect reliable H2S readings and tongue images within the limits of a Raspberry Pi Zero 2W. The app needed to pair reliably over BLE, guide signed-in clinicians through capture, and save sessions locally when connectivity dropped.

System design

The handheld sends live hydrogen sulfide readings, final results, and tongue images to the Flutter clinician app over Bluetooth Low Energy. The app sends Wi-Fi settings back to the handheld, analyzes tongue images on the phone, and stores sessions offline in SQLite. It syncs over HTTPS to a PHP and MySQL backend that manages clinicians and sessions, logs audit events, and supports research export.

A Raspberry Pi Zero 2W reads H2S sensors through drivers for the DTS4H2S, the MQ316 via an ADS1115 I2C ADC, and the SC05. The Pi runs YOLO for tongue image capture and a Python BlueZ BLE GATT server with a bonded-device allowlist and Wi-Fi provisioning over BLE.

Signed-in clinicians use the Flutter app, which connects to the bonded handheld through flutter_blue_plus. The app runs the TFLite tongue-condition model in its own Dart isolate through tflite_flutter.

Results

BLE pairing establishes a stable connection in under 3 seconds. The iOS and Android app guides clinicians through pairing, breath sampling, and tongue image capture. It runs the tongue-condition model on the phone and syncs locally saved sessions to the Hostinger backend.

Gallery

Select an image to open the viewer. Choose Actual size for images that offer it.

More from OraLens Healthcare

2 other case studies from OraLens Healthcare.

All OraLens Healthcare projects

Talk through the build

I can walk you through the work covered here: Halitosis IoT device. We can discuss the design decisions and what shaped them.