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

Show all comments

Showing thread 2 of 85

bikeformind3 replies#
You might want to explore using haptic feedback via the devices vibrator motor to prompt the user to breathe in and out.

One short pulse for breathe in, and a longer pulse to breathe out.
This would allow the user to perform the exercises with their eyes closed and the phone on their lap.
I know the visual functionality is core to your design, but might be a good idea to provide some optionality for users who just want to do the exercises without looking at their phone.

selfportrait#
+1 to this suggestion. It’s part of what makes the breathe app on the Apple Watch engaging, the stream of tapping on your wrist really helps. I’m sure the same can be achieved with the phone.
lukko1 reply#
+1. I did add very subtle haptics (possibly too subtle) as the indicator changes, but I like the idea of making them stronger and recognisable for each breath phase
bikeformind#
pick up a cheap Fitbit on Amazon, they have a pretty good haptic breathwork flow.

another interesting thought, maybe user could lay down on their back place iPhone on chest, and you can measure breathing with accelerometer? that could be even more accurate than camera + mic

llagerlof#
Also it will allow people with impaired vision use the app.