Lurker News
Hey HN! Some more info: I’m an NHS doctor and the founder of Pi-A (https://www.pi-a.io) which developed Lungy (https://www.lungy.app). Lungy is an app (iOS only for now) that responds to breathing in real-time and was designed to make breathing exercises more engaging and beneficial to do. It hopefully has many aspects of interest to the HN community – real-time fluid, cloth and soft body sims running on the phone’s GPU.

My background is as a junior surgical trainee and I started building Lungy in 2020 during the first COVID lockdown in London. During COVID, there were huge numbers of patients coming off ventilators and they are often given breathing exercises on a worksheet and disposable plastic devices called incentive spirometers to encourage deep breathing. This is intended to prevent chest infections and strengthen breathing muscles that have weakened. I noticed often the incentive spirometer would sit by the bedside, whilst the patient would be on their phone – this was the spark that lead to Lungy!
The visuals are mostly built using Metal, with one or two using SpriteKit. There are 20 to choose from, including boids, cloth sims, fluid sims, a hacky DLA implementation, rigid body + soft body sims. The audio uses AudioKit with a polyphonic synth and a sequencer plays generated notes from a chosen scale (you can mess around with the sequencer and synth in Settings/Create Music).
There are obviously lots of breathing and meditation apps out there, I wanted Lungy to be different - it's about tuning into your surroundings and noticing the world around you, so all the visuals are nature-inspired or have some reference to the physical world. I didn’t like other apps required large downloads and/or a wifi connection, so Lungy’s download size is very small (<50MB), with no geometry, video or audio files.
Lungy is initially a wellness app, but I’d like to develop a medical device version for patients with breathing problems such as asthma, chronic obstructive pulmonary disease (COPD) & long COVID. Thanks for reading - would love to hear feedback!

Comments (215) 85 threads

Earlier comments
leros#
This sounds really cool. I struggle from anxiety and the occasional panic attack. The only thing I've found so far that helps is the Wim Hof breathing exercise. Three rounds of that gets me grounded again no matter how bad my anxiety is. I do usually breathe off tempo from the guided exercise, so I really like the idea of an app that adjusts to you.
jasonhansel7 replies#
I find the "medical disclaimer" odd: https://www.lungy.app/medical-disclaimer

> By using this App, you confirm that : (i) you are medically fit and in sound health. (ii) you have consulted your relevant health practitioner, medical advisor, or doctor before using Lungy (iii) Lungy and Pi-A Creative Systems have made the health and medical consequences of using Lungy clear (iv) you fully agree that you are using Lungy at your sole discretion and at your own risk.
> There have been rare reports that people with certain mental health conditions such as anxiety and depression have experienced worsening symptoms after engaging in intensive breathing exercises and/or mindfulness practices. As such, you are requested to consult your doctor or medical provider before using Lungy if you are unsure or have a mental health condition.

cpncrunch1 reply#
Presumably just covering all the bases, similar to ye olde "this coffee has been shown to cause cancer in California" type warnings, i.e. nothing really to worry about, just there in case someone decides to sue.
desmosxxx1 reply#
I have/had anxiety disorder and breathing exercises can definitely trigger panic attacks. So while yes it's there to cover all the bases, it's not that odd and is definitely a thing.
cpncrunch#
I wonder if it due to reduced or increased blood oxygen. Certainly hypoxia can cause a variety of symptoms such as anxiety and panic. Did you measure your blood oxygen at the time?

Presumably if the breathing exercises are to be useful, the user should be getting the normal amount of oxygen. The problem I see is that if you're actively controlling your breathing, you're bypassing the normal automatic breathing, so it is probably easy to get too much or too little.
The only time I've deliberately used breathing exercises was to see if I was able to increase my blood O2 levels above 12000ft, and I did manage to successfully increase it from about 80% to 90+% using deliberate deep breathing.

unclekev#
What exactly do you find odd about it?

I'm one of those rare people that can't do any sort of deep breathing exercises or meditation without ending up in a manic state due to a severe anxiety disorder.

westhom#
What’s odd about it for me is not the content or wording (seems to point out pretty common issues with intensive breathing), it’s more the fact that it’s not presented to the user during onboarding in a meaningful or noticeable way.
herf#
Not a lawyer, but language like this is important. You should never represent that your software cures a disease or condition, or that it replaces a doctor (unless it's actually a FDA-cleared medical device). The general guidance from FDA can be found here:

https://www.fda.gov/regulatory-information/search-fda-guidan...

98codes#
OP mentions they're a doctor, but they don't say of what exactly, and only mention their background is as a trainee. Why on earth should that be enough to buy into something they say they created to fix problems in an entirely different field of medicine?

This all feels like the same old crap with a coat of government health grant money on top.

makestuff#
I have had a few panic attacks before and I 100% can see how a breathing excessive could trigger that. One of the things they tell you to do when having one is slow your breathing and do the 5-4-3-2-1 technique (https://www.bradencenter.com/5-4-3-2-1-grounding-technique/).

So if you usually associate slowing your breathing down with when you are having a panic attack it could trigger one for some people. For example, mine usually was triggered as soon as I laid down to go to sleep for some reason. I could fall asleep on the couch fine, but for some reason in the bed it was completely different.

mtalantikite1 reply#
First of all, congrats! This looks great. As someone that plays music and has analog synths, I was impressed you even included a tweakable synth!

One thing I was wondering is why the exhale is instructed to be out of the mouth. Does it have to do with needing the airflow to travel past the mic, or is there a medical reason for it? I have a long standing daily Buddhist meditation practice and also have a somewhat intensive yoga practice, and all the pranayama instructions I’ve ever gotten from teachers has been full on nasal breathing. I find it pretty uncomfortable and unnatural to use a mouth exhalation. Also my teachers have always taught me to make the exhale as silent as possible. The only time I’ve been instructed to use a mouth breath is in shitali pranayama, but that’s an inhale, and with lion’s breath.
Anyway, again, it looks great — congrats!

lukko1 reply#
Thanks - really glad you appreciate the synth! I had a great time building out the synths and sequencers

Exactly, so the inhalation is in through the nose and out through the mouth for the app partly to detect the exhalation, but also generally peak flow (which is a bit like lion's breath) and lung function measurements are measured by breathing through the mouth. It would also be great to have nasal breathing detected at some point..

stuaxo#
This would be good info to have in the app or in a FAQ type doc somewhere.
cvccvroomvroom#
Very cool and innovative!

I don't have direct anxiety but I have shallow breathing and inappropriate sinus tachycardia that feels like a persistent state of anxiety without a proximal cause. Anything I could do to physiologically relax would be fantastic.
Keep up the good work!

Load more comments