666 points · by lukko · 3y ago · 215 comments
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!
Using the microphone and camera makes sense. When the camera required calibration, my excitement grew. Then my anticipation gave way to disappointment when the bar had no sensitivity to silent breathing, nor 'shoulder breathing.' I'm now struggling to know what the camera is needed for - ideally you want to see if someone is shrugging their shoulders instead of filling their diaphragm, but the camera positioning isn't suited for that - nor did my experimentation reveal the app's sensitivity to that input.
Further, while one can 'cancel out' the audio stimulus from the audio input in software, I wonder if there's interference. I found it takes a significantly 'loud' breathing to get the bar to move along with me - and even still, the bar shifts before I'm ready to shift. In some sense, I guess that's the intended behavior change - however, not all loud breathing is good breathing and leaving us without feedback that we should change our breath tempo doesn't help us get better.
This overall is a wonderful idea - and would be perfectly fine (really better in my opinion) without the request for camera and microphone access.
see Steffen Urban, Thomas Lindemeier, David Dobbelstein, Matthias Haenel, "On the Issues of TrueDepth Sensor Data for Computer Vision Tasks Across Different iPad Generations" and Andreas Breitbarth, Timothy Schardt, Cosima Kind, Julia Brinkmann, Paul-Gerald Dittrich, Gunther Notni, "Measurement accuracy and dependence on external influences of the iPhone X TrueDepth sensor".
It’s a well thought app. The core function is really good, I will enjoy trying out the different exercises! The design of the homescreen could be better, looks a bit cluttered.
Maybe some background information if it takes off in the future would be nice for people who don’t know the science behind each breath type.
Other than that, I wish you success!
There is an exact distance and tilt the phone needs to get the best sound, and its not really possible to nail that without the help of the camera.
I agree the home screen could be clearer and the layout could be improved on the exercises to include more info. Thank you for the feedback!
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.
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
One of my COVID readings was Breath: The New Science of a Lost Art, by James Nestor. Its author says, "humans have lost the ability to breathe correctly". Like your app, it proposes a lot of breathing exercises. It explains their benefits in terms of increasing CO2 tolerance, and believes that we've all got too much O2 in our systems.
That smells like horse puckey to me, but I've been unable to find an informed review either way. I'm sure that slow, deep breathing as a focus for meditation is a very good thing, and I'm sure that your particular app is well founded. But I'm curious to know if you've read that particular book, and what your opinions are.
Thanks!
Breath exercises that increase CO2 tolerance like Buteyko breathing allow one to interrupt this process. It's not clear to me exactly what the increased CO2 is doing, if anything, but it's clear that this works to escape this chronic stress state, which is really unhealthy.
I think the Radiolab breath episode discusses this well: https://radiolab.org/episodes/breath
I noticed I would get fairly fatigued, and have to take a nap around 11am every morning, and eventually found that it was basically every 4-5 hours, even mid-day too. I would take a 10-20m power nap and usually wake up feeling really good, I would even hit REM in that time.
Then a few months ago, I noticed when I was having this feeling I was usually ruminating about something, and it was something like grappling or repressed anger, AND what this did was cause very shallow breathing and "breath holding" patterns. And I've been doing a lot of work around Gabor Mate, MD's work lately and processing trauma responses so I was able to identify this and feel the feelings in a more present way, and in doing so, start very intentional deep, slow breath and exhales.
Compared to my shallow breathing and holding, my breaths became like 3-4x longer. And... to my surprise, the fatigue would pass in about 5minutes or so and I would not need a nap, and get my brain back to an "alert" state, as opposed to that "foggy" state.
I have been doing this for months now, and it keeps working. And now, this was really blurry because sometimes I would be genuinely tired from sleep debt from pulling a late night, and it was a similar feeling. So when I get a solid nights sleep for multiple nights in a row, then the breathing works to keep me alert, and helps me get more in touch with my emotions and subconscious thoughts rise up and become concious. I can detect the shallow breathing/breath holding fairly well now, but not always, and it is still a work in progress to make these breaths the default. The breathing does help me move through life much better now, and I walk slower, and not so rushed, and am more at peace with doing things in the present.
This actually wouldn't really be possible though if it weren't for a discovery that I breathed through my mouth my whole life (40 years) recently too. I learned about the "nasal cycle" and in combination with a deviated septum I have, my nose would plug up every now and then with no rhyme or reason, I thought it was diet for a long time but eventually learned about the "nasal cycle" where the turbinates in our noses swap the swelling to change the airflow every 4-6 hours or so. And when it swapped to my non-blocked septum side, my airflow would stop and I would be forced to breathe through my mouth. What this meant is that I could never develop a habit of nasal breathing my entire life. I started using Afrin about 5 months ago, and then stopped because it says not to use it continuously and you get a rebound when you stop using it. But then I found a Ear Nose Throat doctor/surgeon and presented my hypothesis to him and he confirmed that the nasal cycle + deviated septum hypothesis was correct! And he suggested I use Afrin plus a nasal steroid (Sensimist) together and that will reduce the rebound effect and that enabled me to use Afrin long term to stop the natural swelling of the turbinates in my nose. And, so I've been using Afrin for 3 months now and can breath so good through my nose now, and it is so sweet, and so precious, I can't imagine going back to mouth breathing ever again. I do have increased sensitivity to cold with the Afrin and my nose drips like a faucet. Or maybe that was because I never breathed through my nose in the cold to begin with? Regardless, I need to bring tissues with me in cold weather wherever I go.
And that leads to the fact that now when I noticed the breathing pausing, I can take big deep breaths through my nose and it feels so good, and calming, I can break out of the trauma/anxiety cycle and self-regulate with breathing.
I think the breathing cycle issue is mostly a trauma response from a young age and then it turns into a learned habit. This is the result of a caretaker not being there for me/us to help us self-regulate at a young age. The Wisdom of Trauma film and In the Realm of the Hungry Ghosts book by Gabor Mate, MD. really was trans-formative in my understanding of all this and success here, combined with other things as I mentioned above.
Sleep debt is also super duper real, and from what I learned in The Promise of Sleep by William Dement, MD. is that if I miss 2 hours of sleep one night, it can take 4 nights to actually catch up on that, like 30 minutes extra a night. I can't pay it back in 1 night, and that I still need to take naps. If we don't have sleep we will be in a chronic stress state forever.
I also was recently diagnosed with sleep apnea, after going to the doctor for fatigue and mentioning how frequent and predictable my naps were, I thought I had narcolepsy. They had to do a sleep apnea test first for insurance reasons before narcolepsy testing could be approved. This was when I was still mouth breathing, and I was waking up like 10 times a night from chronic back pain, trying to find that perfect position, so never really slept more than an hour without waking. I was fatigued. So Sleep Apnea came back positive and one of the explanations for the waking up, (had to pee a lot too), was that when the airway closes the body releases adrenaline to wake up or do something with the airway, the adrenaline increases urine production, and so I was also waking up because of having to pee, not enough air, or back pain.
I finally got rid of all the back and neck pain (of 20 years) using Pain Reprocessing Therapy (Gordon) and Compassion-based trauma therapy (Compassionate Inquiry (Mate) + Internal Family Systems (Schwartz) and started sleeping through the night, without CPAP, and then I tried CPAP for a month and was still tired and fatigued during the day. So I stopped using CPAP and only later realized that I may have been getting enough oxygen at night but wasn't during the day.
This is all one giant hurried mess of a story, but I wasn't going to post anything and figured "perfect is the enemy of good" and that this could help some people connect some dots in their lives so I just blotted it all out here.
-I have the exact same issue, I feel overwhelming fatigue that lifts with a 10 minute nap, and need to do it many times per day. I work from home, and can't really work in person because without a nap I just crash, despite getting a good nights sleep -My girlfriend pointed out that I normally breath unusually fast and shallow, about twice as fast as her -I've had some very traumatic experiences in the last few years that I still haven't dealt with fully. Around the time of these experiences I couldn't sleep well because I had to constantly get up to urinate, and also at the same time felt an "air hunger" where I felt no amount of breathing was enough
Could you recommend something specific to start working on with these things? I actually just started reading the Mate book "The Myth of Normal" but haven't gotten very far in it yet.
It seems like there are quite a few people here discovering these things, I wish we could form a discussion group or something.
I read the book a week ago, said, why not. Instant improvement. Before, I'd have to wake up to go to the bathroom every night for the past 10 years, and when I woke up I'd have this eye pain every day leading to these giant eye bags. On top of those, if I didn't get that last sleep cycle in, I'd have to take a nap to get rid of this weird headache which made the time in the morning before nap seem pointless. In the book he mentioned how face skin can improve, and less bathroom in the middle of the night because apparently the body releases something to tell the body to hold water because we're sleeping. Mouth breating at night didn't cause this to happen.
I did the mouth tape and instantly, first night and every night in the past week, eye pain is gone, I don't have get up to use the bathroom, and the amount of consistent energy is absurd compared to before.
Seriously, I want to shout it out to everyone to tape their mouths at night.
For practicing breath holding, "co2 tables" is the exercise to go for, btw. I find it very relaxing in a sort of meditative "ignore the burning pain" sense, but not sure I'd recommend it vs the app in the OP hehe.
One thing I would suggest, and I know it's a bit of a balancing act, but it's what always irritates me about breathing exercise apps. When it comes to the "Breathe In" and "Breathe Out" instructions, I wish you would hold off on switching to telling me to "Breathe In" when I am still clearly breathing out (which you know based on the microphone). It always makes me feel rushed when I am not perfectly in sync with what the app wants me to do and I feel like the responsive way in which this app works could make this a bit better.
Ideas to consider
- I went through the tutorial and it taught me to breathe in through nose, out through mouth. When I was trying my first day, those tips weren’t there or available so it was hard to know if I was doing what you wanted
- the labels (breathe in, etc) fade to transparent before next one ends meaning there is a gap where it’s not clear what I should be doing. Would be nice to fade in incoming direction or push the old out
- not clear the relationship between bar and box. I think I’m the box, trying to match the pace of the bar, but that’s not totally clear. Would be nice to get some feedback of “too fast” or “slow down” when out of bounds
- I like the idea of the textured backgrounds but the one I got was high contrast and made me a little dizzy. Maybe more subtle colors? Also making sure the text is distinct. Also I wasn’t clear if I was effecting them. Shouldn’t they pause when I hold?
- when inside the exercise the button says “skip” but shouldn’t it be “end early”?
A quick suggestion, I’d love to see you add the “cyclic sighing” pattern from [1] as it’s recently gotten some amount of attention for it’s effectiveness, and is potentially less common than the others.
[1]: https://www.cell.com/cell-reports-medicine/fulltext/S2666-37...
I have not used the breathing app, so ultimately there may be some context to which I am unware, however, my first thought when hearing the description of the App is why? Why do we as technologists insist on making things more complicated? Breathing is as old as life, and though I concede that there can be tremendous depth to the study of breathing, particular in relation to disciplines such as singing, meditation, anxiety, couldn't you more effectively teach someone a technique by simply informing them rather than making an app to accomplish that same goal?
I apologize if in any way this feels as if I am criticizing your creative work. I am a software engineer and medical student and I appreciate when the two fields collide. I also never want to put any creative work down because I understand the effort and risk one takes when doing anything of the sort.
I am much more likely to engage with beautiful app than remember "that guy pointed out breathing is simple i should do it more"
I was not sure what to expect when it requested microphone access, but the way you've done it is really clever.
The interactive tutorial is really cool as well. The visuals, also, are different and fun.
Never seen anything quite like this. Really great work. I'm going to share this with some friends.
The idea is that we hold our breaths when anticipating an outcome.
The term was coined in relation to email, but I believe that programmers probably have it even worse, because we basically spend our entire day in a a loop where we, try something, anticipate the results try again, repeat...
I personally find myself doing it. I guess the best analogy for it is that we "wait with bated breath" to see the results of our last command or compilation. I think it's a problem inherent in all disembodied work.
We are supposed to move the body and the mind as a unit, instead, we are increasingly making ourselves into brains in a jar, and I think our breathing patterns reflect it.
1: https://www.msn.com/en-us/health/medical/email-apnea-is-a-re...
Never had an easier time porting UI to so many, different platforms.
Flutter alone saved a year of work.
It’s interesting and beautifully done, but unless there’s something I’m doing wrong I’m afraid it’s just not usable for me in its current form. Perhaps there could be an advanced setting tucked away that let me bump up the exhale and hold times to prevent over breathing?
Maybe not the most useful feedback, but I’m always happy to see more apps in this space and I’d love it if this became part of my routine. And, as a side note, some information about what Lungy Deluxe actually adds would be useful to know if I want to unlock it.
If you get some traction you might consider porting the app to run on smart watches. Current Garmin wearable devices are apparently able to detect individual breaths using the wrist optical heart rate sensor based on slight difference in heartbeat timing. They have a breathwork app built in but functionality is very limited.
At least in the US, this could be a good candidate for an NIH or similar grant, and partnering with an academic researcher who has done it before would lessen the workload.
My former colleagues at the Center for Behavioral Health and Technology at UVA https://bht.Virginia.edu (for example) conduct research similar to this.
I run a medical device software development firm. I'm a software engineer who has moved into the medical-device regulatory affairs. I've helped several software teams learn to develop (and document) software for medical devices.
Even if you're not planning to make the jump from a wellness app to a medical device for a while, there are some things you can start documenting now that will make the transition a lot easier for you when you get there. E.g., starting to track formal requirements (https://innolitics.com/articles/2022-04-27-design-inputs/) and tracing them to verification protocols (e.g., automated or manual tests).
We have a bunch of Notion templates that we use with our clients that I could share with you to help you get started. Feel free to email me at jdgiese AT Innolitics.com
- I like the concept as I was using mindfulness app mostly for the breathing exercises but ended up downloading the video and playing it to myself. I like that the whole app is just around this.
- I personally would enjoy a mood tracker and a daily notification or quiet time moment reminder to increase adherence.
- on top of this some motivational aspects and smileys can help :)
Good job by the way.
PS: I manage a patient facing MS app will many trackers:).
I was really impressed by the UX and design aspects, but the way you’ve integrated camera and mic is really cool.
Often I get the sense that HN is an accessory to adhd and leads me astray. It is nice to see a counter example of how a person can fuse their interests to create an amalgamation that contains the elements and focuses them to a purpose.
Sure hope you meant per minute!
> 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.
https://www.fda.gov/regulatory-information/search-fda-guidan...
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.
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.
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.
This all feels like the same old crap with a coat of government health grant money on top.
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!
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..
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!
The anatomical term "pia" can be pronounced as if it starts with either "pea" or "pie". Writing "pi-a" is very strongly suggestive of a pronunciation like the Greek letter pi (i.e., like "pie", not "pea"), especially as the website's favicon is the letter pi. However, the website says it's pronounced "pea-uh".
So I would think that the hyphen would bias people towards the "wrong" pronunciation.
More breathy and airy than organ-y and meaty. Probably already 900 apps called "Breathe" though
It also makes me think of lunge exercises.
It also seems like an expensive domain name to buy.
While it is my personal opinion that the visuals are distracting from the purpose of breath work, I understand it will help someone discover that beauty with time.
If you found a way to combine a proprietary device like the PowerBreathe into a breathing exercise app and provided recommendations/trainings, I think it would appeal more to me.
Best of luck!
I use the free Oak app (with no fees anywhere, it’s just one of Kevin Rose’s old hobby projects) for its basic breathing exercises.
What does “respond to every breath mean?” The video shows someone holding the phone up to their face but I’m not sure that will work for breathing exercises as I’m usually trying to sit and relax and not even holding the phone.
I’m glad you’ve built this app and that you’re seeking feedback. I’d suggest less “marketing blargh” and just some examples of the app in use.
The only suggestion I have is to make it paid, instead of free so I can maintain low anxiety that you're not going to sell my data, or show me ads in the middle of box breathing.
Hopefully this lowers the probability of them selling your data.
I prefer an app purchase price rather than in app purchases as it allows for family use and use by people with multiple apple ids that are linked.
I want that probability to be zero though. So until it is, there's a fundamental conflict at the root that prevents full trust
Fwiw
GP’s site is just a non-commercialized prototype so seems more like showing vis level of interest vs self promotion.
Thanks!
Can recommend kubios app on phone and their desktop software is stunning, too. There are other apps i use - hrv4, for example and there are others. I prefer kubios as it is minimal and to the point.
Https://intervals.icu (sports/ body performance analysis) may be another place to show this.
I had to pause a bit for this while reading the page. This was a brand new phrase for me, never expected to see it in a mobile app.
Is there a paper showing the accuracy of measuring breath volume and frequency using a phone microphone as compared to other known methods (i.e, medical sensors, but also more consumer-focused devices such as chest straps)? The frequency seems like an easy problem to solve, volume much less so.
Lung diseases aside, I think many people would be interested in an app that lets them know when their breathing becomes shallow or non-tidal, and helps them refocus and get back to baseline.
EDIT: found it: https://somnox.com/
They are quite expensive.
(Not affiliated)
Brief structured respiration practices enhance mood and reduce physiological arousal
https://www.cell.com/cell-reports-medicine/fulltext/S2666-37...
What a boring future, "pay $9.99 to unlock this secret tip to survive in case you have trouble breathing!"
health is not a thing that should available with a pay-wall, we must advocate for a better world
For the first year or so it was self-developed and self-funded, and then in 2021 I won a couple of grants to develop the prototype for release. I don't suggest it directly to patients as there would be a conflict of interest, but I'm hoping it could be useful in both respiratory disease and stress/anxiety.
Love the UI on the first glance, will try it for a longer time to understand if UX is comfortable
The lack of bloat and small download size is something I gained appreciation while traveling last year, good job on this!
I wonder if you will consider Ukrainian & Polish translations in the future too
And on this embeded video I couldn't even change the volume!
It's frustrating me to the point that I just opted not to watch the video on this website :(
Maybe it's CDN location serving up the videos? I'm near Toronto. Also I checked your webpage and perhaps, by being in the business of video streaming, you're more attuned to these things than the average person? (P.S. your website is so elegant!)
I was actually going to say, Wistia has a nice player but it’s expensive - and then I just checked their pricing and they actually have lowered prices quite a bit! There’s even a generous free tier now.
I’ve also been curious about how hard it’d be to self-host an embedded video. Naively it seems like the hardest part would be encoding it into a bunch of sizes and chunks… and then keeping an eye on bandwidth. I found a good blog on it a while ago and can’t find it now.
I've done yoga on and off for a number of years and the synchronization of breath and moderately difficult physical exercise to me, seems like the sweet spot that breathing alone would fail to accomplish.
A question for you: I have a relative who has been recovering from a pneumonectomy – is this a use case that you currently support or plan to support in the future (i.e. are the breathing exercises on the app similar to the ones prescribed for these patients)?
A small portion of the app reminds me of this demo: https://paveldogreat.github.io/WebGL-Fluid-Simulation/ (click/tap/drag)
How was the appstore approval process for you?
I made an app that helps with sleep apnea (https://snurk.app/) but Apple keeps denying my app submissions stating it’s a medical app.
Edit: Health is a gray topic of internet. I wouldn't promote it like "developed by doctors". Medical field has different concerns as you knew. You developed the app as a developer.
I don't have an iPhone, but just from watching the demo videos I am impressed by the design and UX. Good luck!
>Amazing, you're a natural!
Well, I hope so... lol
I’m any case, the app looks polished.
1. googleapis.com
2. cloudfront.net
3. embedly.com
4. google.com
5. googletagmanager.com
6. sibforms.com
7. vimeo.com
8. webflow.com
Which of these are required for the app to function?
Just screams, "Placebo!" to me.
https://www.scientificamerican.com/article/wheres-the-proof-...
https://www.kcl.ac.uk/lsm/research/divisions/hscr/study/unde...
Slow deep intentional breaths work in the above. If you haven't experienced these first hand, then maybe you think it's a bunch of crap. But it is in no way a placebo.
Even if you are a "healthy adult", I think the point is that you should practice these types of breathing exercises so you know how to handle situations where you need it. Additionally, I would say even if you don't have extreme stuff like above, teaching yourself how to breathe properly even for exercising is very important. It may sound stupid but a lot of people just don't breath properly when exercising, it's not natural.
Just sit there yourself and do some intentional deep breathing for a few moments.. it will feel very different and probably 'good'.
Because of how the placebo effect works, I could do any number of things to feel that “good” effect, and I think that’s important to know.
I don't think anyone pushes for that, but "breath more mindful".
And that breathing exercies work, can be quite good shown for example with people doing extensive ice bathing for example. If you won't breath right there, you will get sick.
edit: But your point seems to be more stress related - well, I don't know what all those apps claim, but breathing is a very important body regulation and on of the easiest to influence. Meaning if you pay attention to your breathing and notice they are short and shallow - just starting to breath deep and conscious can put your body into a different state.
0: https://www.forbes.com/sites/brucelee/2017/01/28/fda-toxic-b...