explaingit

shiihaa-app/shiihaa-breath-detection

Analysis updated 2026-05-18

36Audience · generalComplexity · 4/5

TLDR

An app that listens to your breathing through your phone's built-in microphone and gives real-time on-device biofeedback, without a wearable or coach.

Mindmap

mindmap
  root((Shiihaa))
    What it does
      Breath phase detection
      Real time biofeedback
      On device audio
    How it works
      Signal processing
      Breathing state machine
      Quality check layer
    Use cases
      Guided breathing sessions
      Browser demo
    Audience
      Wellness seekers
      Mindfulness practice

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Try the live breath biofeedback demo in a browser without creating an account

USE CASE 2

Use the app's guided breathing sessions paced by your own detected breathing

USE CASE 3

Read the validation study docs to understand how accurate phone-only breath detection is

What is it built with?

Mobile appOn-device signal processingMachine learning

How does it compare?

shiihaa-app/shiihaa-breath-detection28998306/magicalcanvasaaaa-zhen/siri-glsl
Stars363636
LanguageTypeScriptHTML
Setup difficultymoderateeasy
Complexity4/53/52/5
Audiencegeneralgeneraldesigner

Figures from each repo's GitHub metadata at analysis time.

No license terms are stated in the explanation provided.

In plain English

Shiihaa is a breath detection system built into a mobile app, using only the phone's built-in microphone to track your breathing in real time and reflect it back to you as biofeedback. The idea behind it is to create a mindfulness tool that hands attention back to the user rather than competing for it. There is no wearable required, no coach, and no gamification. The core problem it is solving is that a phone microphone in a real room picks up a lot of noise: ambient hum, traffic, a fan, fabric against the phone, automatic gain control from the phone's own software. The system has to separate breathing signal from all of that and identify which phase you are in at any given moment, whether that is inhaling, exhaling, holding, or transitioning between them. It works in three layers. First, the audio stream is cut into short overlapping windows, and each window is analyzed for its energy level and where that energy sits in the frequency spectrum. Inhales tend to be more turbulent and higher in frequency, exhales tend to be lower and smoother. Second, a state machine tracks the current breathing phase and decides when a genuine transition has occurred versus a momentary fluctuation. It uses adaptive thresholds that recalibrate as room conditions change. Third, a quality-check layer discards ambiguous windows rather than making a guess, so the output is honest about uncertainty. Machine learning plays a supporting role, used to sharpen the model over time from quality-checked examples, but the live detection runs on the rule-based pipeline. The README is candid that microphone-only breath detection in uncontrolled conditions is genuinely difficult, and the team is running a validation study against clinical ground truth to measure how well it actually works. All audio processing happens on the device. No raw audio leaves the phone, and the pipeline is designed around breathing patterns specifically, not speech recognition. A browser-based demo lets anyone try the live biofeedback without creating an account. The full app requires an account for personal features such as saved sessions. This is described as a wellness and self-awareness tool, not a medical device, and it does not make diagnostic claims.

Copy-paste prompts

Prompt 1
Explain how Shiihaa detects breathing phases from a phone microphone using only signal processing and a state machine
Prompt 2
Summarize the privacy design of Shiihaa's on-device breath detection for someone worried about audio uploads
Prompt 3
Walk me through the three layers of Shiihaa's breath detection pipeline: signal processing, state machine, and quality checks
Prompt 4
Compare Shiihaa's microphone-only breath detection approach to wearable-based breathing sensors

Frequently asked questions

What is shiihaa-breath-detection?

An app that listens to your breathing through your phone's built-in microphone and gives real-time on-device biofeedback, without a wearable or coach.

What license does shiihaa-breath-detection use?

No license terms are stated in the explanation provided.

Who is shiihaa-breath-detection for?

Mainly general.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.