DSPRelated.com
Forums

detecting white noise... shower running?

Started by briang2000 January 9, 2009
On Fri, 9 Jan 2009 10:28:44 -0800 (PST), Le Chaud Lapin
<jaibuduvin@gmail.com> wrote:

>On Jan 9, 12:03&#4294967295;pm, Eric Jacobsen <eric.jacob...@ieee.org> wrote: >> On Fri, 09 Jan 2009 11:44:03 -0600, "briang2000" >> >We've got a safety-related application where we'd like to determine if a >> >shower is running in the bathroom. &#4294967295;Does anyone have any suggestions on how >> >that determination could be made by sound? &#4294967295; Might a shower have a specific >> >white noise characteristic that could be identified as unique from music >> >playing, toilet flushing, talking, etc.? >> >> Is there a reason this has to be done via audio processing? &#4294967295; &#4294967295;A flow >> meter on the head or even just a water detector at the floor might be >> more reliable. > >Interesting application. > >Audio might be more convenient. One can imagine using a wall-wart with >integrated Wi-Fi transceiver that sends an alarm over Internet when >shower is running. Might even have small, directional camera built- >in. ;) > >This is certainly feasible. At a given flow rate, the white noise will >likely be stationary, and will have certain characteristics, among >them being power spectral density, using which you can apply several >techniques (matched filter/MMSE/etc). > >I would be surprised if you did not have almost immediate success >since the NNR ("noise"-to-noise) ratio is large. You might build-in >self-training feauture so that module determines empirically what >"shower on" is versus "shower off" with push of button on module. > >Typical 16MHz DSP should be more than enough since application is >pseudo-real-time. > >-Le Chaud Lapin-
My concern with a DSP approach would be false alarms from other "noisy" things like hairdryers, bath fans, shavers, electric toothbrush, etc., etc. Discriminating one type of "noise" from another reliably can be pretty tricky. Eric Jacobsen Minister of Algorithms Abineau Communications http://www.ericjacobsen.org Blog: http://www.dsprelated.com/blogs-1/hf/Eric_Jacobsen.php
On Jan 9, 9:24&#4294967295;pm, Eric Jacobsen <eric.jacob...@ieee.org> wrote:
> On Fri, 9 Jan 2009 10:28:44 -0800 (PST), Le Chaud Lapin > > > > <jaibudu...@gmail.com> wrote: > >On Jan 9, 12:03&#4294967295;pm, Eric Jacobsen <eric.jacob...@ieee.org> wrote: > >> On Fri, 09 Jan 2009 11:44:03 -0600, "briang2000" > >> >We've got a safety-related application where we'd like to determine if a > >> >shower is running in the bathroom. &#4294967295;Does anyone have any suggestions on how > >> >that determination could be made by sound? &#4294967295; Might a shower have a specific > >> >white noise characteristic that could be identified as unique from music > >> >playing, toilet flushing, talking, etc.? > > >> Is there a reason this has to be done via audio processing? &#4294967295; &#4294967295;A flow > >> meter on the head or even just a water detector at the floor might be > >> more reliable. > > >Interesting application. > > >Audio might be more convenient. One can imagine using a wall-wart with > >integrated Wi-Fi transceiver that sends an alarm over Internet when > >shower is running. &#4294967295;Might even have small, directional camera built- > >in. ;) > > >This is certainly feasible. At a given flow rate, the white noise will > >likely be stationary, and will have certain characteristics, among > >them being power spectral density, using which you can apply several > >techniques (matched filter/MMSE/etc). > > >I would be surprised if you did not have almost immediate success > >since the NNR ("noise"-to-noise) ratio is large. You might build-in > >self-training feauture so that module determines empirically what > >"shower on" is versus "shower off" with push of button on module. > > >Typical 16MHz DSP should be more than enough since application is > >pseudo-real-time. > > >-Le Chaud Lapin- > > My concern with a DSP approach would be false alarms from other > "noisy" things like hairdryers, bath fans, shavers, electric > toothbrush, etc., etc. &#4294967295; Discriminating one type of "noise" from > another reliably can be pretty tricky. > > Eric Jacobsen > Minister of Algorithms > Abineau Communicationshttp://www.ericjacobsen.org > > Blog:http://www.dsprelated.com/blogs-1/hf/Eric_Jacobsen.php
While most of the readers of this group will immediately start thinking acoustics, spectral properties and bandwidths, I like the simple approaches like flow meters. In my own house, the shower is the loudest appliance - what about a simple noise power threshold detector? If this is a custom install in a known environment this might be sufficient. Is this safety in the sense of electrical current? In that case, you would also need to detect trickles of water, which means the noise and spectrum changes considerably and actual, physical, liquid water sensors make more sense. Is this to detect if someone passes out in the shower and then if the shower runs for 20 minutes an alarm goes? In that case your loudness might be OK but still doesn't address the problem (someone passed out when the shower was off). - Kenn
On Jan 10, 9:12&#4294967295;am, kennheinr...@sympatico.ca wrote:
> On Jan 9, 9:24&#4294967295;pm, Eric Jacobsen <eric.jacob...@ieee.org> wrote: > > > > > On Fri, 9 Jan 2009 10:28:44 -0800 (PST), Le Chaud Lapin > > > <jaibudu...@gmail.com> wrote: > > >On Jan 9, 12:03&#4294967295;pm, Eric Jacobsen <eric.jacob...@ieee.org> wrote: > > >> On Fri, 09 Jan 2009 11:44:03 -0600, "briang2000" > > >> >We've got a safety-related application where we'd like to determine if a > > >> >shower is running in the bathroom. &#4294967295;Does anyone have any suggestions on how > > >> >that determination could be made by sound? &#4294967295; Might a shower have a specific > > >> >white noise characteristic that could be identified as unique from music > > >> >playing, toilet flushing, talking, etc.? > > > >> Is there a reason this has to be done via audio processing? &#4294967295; &#4294967295;A flow > > >> meter on the head or even just a water detector at the floor might be > > >> more reliable. > > > >Interesting application. > > > >Audio might be more convenient. One can imagine using a wall-wart with > > >integrated Wi-Fi transceiver that sends an alarm over Internet when > > >shower is running. &#4294967295;Might even have small, directional camera built- > > >in. ;) > > > >This is certainly feasible. At a given flow rate, the white noise will > > >likely be stationary, and will have certain characteristics, among > > >them being power spectral density, using which you can apply several > > >techniques (matched filter/MMSE/etc). > > > >I would be surprised if you did not have almost immediate success > > >since the NNR ("noise"-to-noise) ratio is large. You might build-in > > >self-training feauture so that module determines empirically what > > >"shower on" is versus "shower off" with push of button on module. > > > >Typical 16MHz DSP should be more than enough since application is > > >pseudo-real-time. > > > >-Le Chaud Lapin- > > > My concern with a DSP approach would be false alarms from other > > "noisy" things like hairdryers, bath fans, shavers, electric > > toothbrush, etc., etc. &#4294967295; Discriminating one type of "noise" from > > another reliably can be pretty tricky. > > > Eric Jacobsen > > Minister of Algorithms > > Abineau Communicationshttp://www.ericjacobsen.org > > > Blog:http://www.dsprelated.com/blogs-1/hf/Eric_Jacobsen.php > > While most of the readers of this group will immediately start > thinking acoustics, spectral properties and bandwidths, I like the > simple approaches like flow meters. &#4294967295;In my own house, the shower is > the loudest appliance - what about a simple noise power threshold > detector? If this is a custom install in a known environment this > might be sufficient. > > Is this safety in the sense of electrical current? In that case, you > would also need to detect trickles of water, which means the noise and > spectrum changes considerably and actual, physical, liquid water > sensors make more sense. Is this to detect if someone passes out in > the shower and then if the shower runs for 20 minutes an alarm goes? > In that case your loudness might be OK but still doesn't address the > problem (someone passed out when the shower was off). > > &#4294967295;- Kenn
Temperature sensor on the pipe to the showerhead? John
On Jan 10, 6:12 am, kennheinr...@sympatico.ca wrote:
>...
> > >> On Fri, 09 Jan 2009 11:44:03 -0600, "briang2000" > > >> >We've got a safety-related application where we'd like to determine if a > > >> >shower is running in the bathroom. Does anyone have any suggestions on how > > >> >that determination could be made by sound? Might a shower have a specific > > >> >white noise characteristic that could be identified as unique from music > > >> >playing, toilet flushing, talking, etc.?
.> .> While most of the readers of this group will immediately start .> thinking acoustics, spectral properties and bandwidths, I like the .> simple approaches like flow meters. .> ... .> - Kenn In this thread, the OP has asked for an acoustic implementation of a solution. The OP hasn't shared with us what the problem is, yet. Of course, that makes it impossible to tell if any particular implementation would actually be a solution. Dale B. Dalrymple
dbd <dbd@ieee.org> writes:

> On Jan 10, 6:12 am, kennheinr...@sympatico.ca wrote: >>... > >> > >> On Fri, 09 Jan 2009 11:44:03 -0600, "briang2000" >> > >> >We've got a safety-related application where we'd like to determine if a >> > >> >shower is running in the bathroom. Does anyone have any suggestions on how >> > >> >that determination could be made by sound? Might a shower have a specific >> > >> >white noise characteristic that could be identified as unique from music >> > >> >playing, toilet flushing, talking, etc.? > > .> > .> While most of the readers of this group will immediately start > .> thinking acoustics, spectral properties and bandwidths, I like the > .> simple approaches like flow meters. > .> ... > .> - Kenn > > In this thread, the OP has asked for an acoustic implementation of a > solution. The OP hasn't shared with us what the problem is, yet. Of > course, that makes it impossible to tell if any particular > implementation would actually be a solution.
Amen, brother! I know that, many times, a poster had a poor system design in mind and thus there was an easier/more efficient/more elegant way to skin the cat. However, in my opinion, there is too much second-guessing that occurs immediately in which people here assume the poster is an idiot. There is a world of difference between "a flow meter would be better" versus "have you considered a completely different approach such as a flow meter" - one assumes the poster is an idiot and one does not. -- % Randy Yates % "Midnight, on the water... %% Fuquay-Varina, NC % I saw... the ocean's daughter." %%% 919-577-9882 % 'Can't Get It Out Of My Head' %%%% <yates@ieee.org> % *El Dorado*, Electric Light Orchestra http://www.digitalsignallabs.com
On Jan 10, 10:58&#4294967295;am, Randy Yates <ya...@ieee.org> wrote:
> Amen, brother! > > I know that, many times, a poster had a poor system design in mind and > thus there was an easier/more efficient/more elegant way to skin the > cat. However, in my opinion, there is too much second-guessing that > occurs immediately in which people here assume the poster is an > idiot. > > There is a world of difference between "a flow meter would be better" > versus "have you considered a completely different approach such as a > flow meter" - one assumes the poster is an idiot and one does not.
Also, on the matter of simplicity, I would find it far easier to make a reliable wall-warted electronic device than a pipe-mounted electro- mechanical device. Right now, my toilet is making a funny noise constantly. I tried to fix it, and only made it worse. -Le Chaud Lapin-
X-no-archive:
On Jan 10, 12:36&#4294967295;pm, Le Chaud Lapin <jaibudu...@gmail.com> wrote:
> On Jan 10, 10:58&#4294967295;am, Randy Yates <ya...@ieee.org> wrote: > > > Amen, brother! > > > I know that, many times, a poster had a poor system design in mind and > > thus there was an easier/more efficient/more elegant way to skin the > > cat. However, in my opinion, there is too much second-guessing that > > occurs immediately in which people here assume the poster is an > > idiot. > > > There is a world of difference between "a flow meter would be better" > > versus "have you considered a completely different approach such as a > > flow meter" - one assumes the poster is an idiot and one does not. > > Also, on the matter of simplicity, I would find it far easier to make > a reliable wall-warted electronic device than a pipe-mounted electro- > mechanical device. > > Right now, my toilet is making a funny noise constantly. I tried to > fix it, and only made it worse. > > -Le Chaud Lapin-
you know, interesting you should mention that...for a simple looking device, the workings in a toilet tank are really rather complex... relying on the second order system nature of water flow... you know the flapper valve is a bimodal device with hysteresis.. man Joe the plumber should get more respect.. Mark
On Jan 10, 11:58&#4294967295;am, Randy Yates <ya...@ieee.org> wrote:
> dbd <d...@ieee.org> writes: > > On Jan 10, 6:12 am, kennheinr...@sympatico.ca wrote: > >>... > > >> > >> On Fri, 09 Jan 2009 11:44:03 -0600, "briang2000" > >> > >> >We've got a safety-related application where we'd like to determine if a > >> > >> >shower is running in the bathroom. &#4294967295;Does anyone have any suggestions on how > >> > >> >that determination could be made by sound? &#4294967295; Might a shower have a specific > >> > >> >white noise characteristic that could be identified as unique from music > >> > >> >playing, toilet flushing, talking, etc.? > > > .> > > .> While most of the readers of this group will immediately start > > .> thinking acoustics, spectral properties and bandwidths, I like the > > .> simple approaches like flow meters. > > .> ... > > .> &#4294967295;- Kenn > > > In this thread, the OP has asked for an acoustic implementation of a > > solution. The OP hasn't shared with us what the problem is, yet. Of > > course, that makes it impossible to tell if any particular > > implementation would actually be a solution. > > Amen, brother! > > I know that, many times, a poster had a poor system design in mind and > thus there was an easier/more efficient/more elegant way to skin the > cat. However, in my opinion, there is too much second-guessing that > occurs immediately in which people here assume the poster is an > idiot. > > There is a world of difference between "a flow meter would be better" > versus "have you considered a completely different approach such as a > flow meter" - one assumes the poster is an idiot and one does not. > -- > % &#4294967295;Randy Yates &#4294967295; &#4294967295; &#4294967295; &#4294967295; &#4294967295; &#4294967295; &#4294967295; &#4294967295; &#4294967295;% "Midnight, on the water... > %% Fuquay-Varina, NC &#4294967295; &#4294967295; &#4294967295; &#4294967295; &#4294967295; &#4294967295;% &#4294967295;I saw... &#4294967295;the ocean's daughter." > %%% 919-577-9882 &#4294967295; &#4294967295; &#4294967295; &#4294967295; &#4294967295; &#4294967295; &#4294967295; &#4294967295;% 'Can't Get It Out Of My Head' > %%%% <ya...@ieee.org> &#4294967295; &#4294967295; &#4294967295; &#4294967295; &#4294967295; % *El Dorado*, Electric Light Orchestrahttp://www.digitalsignallabs.com
Good point. I clearly missed the OP's stated requirement in the first post. But I know I've been guilty of allowing myself to be seduced by a "neat" or fancy theoretical solution to a problem, and spending way too much time and effort making it work, and then realizing I should have just done the obvious :-) The trick, I suppose, is to realize those times when the obvious solution is the wrong one! - Kenn
kennheinrich@sympatico.ca wrote:
> On Jan 10, 11:58 am, Randy Yates <ya...@ieee.org> wrote: >> dbd <d...@ieee.org> writes: >>> On Jan 10, 6:12 am, kennheinr...@sympatico.ca wrote: >>>> ... >>>>>>> On Fri, 09 Jan 2009 11:44:03 -0600, "briang2000" >>>>>>>> We've got a safety-related application where we'd like to determine if a >>>>>>>> shower is running in the bathroom. Does anyone have any suggestions on how >>>>>>>> that determination could be made by sound? Might a shower have a specific >>>>>>>> white noise characteristic that could be identified as unique from music >>>>>>>> playing, toilet flushing, talking, etc.? >>> .> >>> .> While most of the readers of this group will immediately start >>> .> thinking acoustics, spectral properties and bandwidths, I like the >>> .> simple approaches like flow meters. >>> .> ... >>> .> - Kenn >>> In this thread, the OP has asked for an acoustic implementation of a >>> solution. The OP hasn't shared with us what the problem is, yet. Of >>> course, that makes it impossible to tell if any particular >>> implementation would actually be a solution. >> Amen, brother! >> >> I know that, many times, a poster had a poor system design in mind and >> thus there was an easier/more efficient/more elegant way to skin the >> cat. However, in my opinion, there is too much second-guessing that >> occurs immediately in which people here assume the poster is an >> idiot. >> >> There is a world of difference between "a flow meter would be better" >> versus "have you considered a completely different approach such as a >> flow meter" - one assumes the poster is an idiot and one does not. >> -- >> % Randy Yates % "Midnight, on the water... >> %% Fuquay-Varina, NC % I saw... the ocean's daughter." >> %%% 919-577-9882 % 'Can't Get It Out Of My Head' >> %%%% <ya...@ieee.org> % *El Dorado*, Electric Light Orchestrahttp://www.digitalsignallabs.com > > Good point. I clearly missed the OP's stated requirement in the first > post. But I know I've been guilty of allowing myself to be seduced by > a "neat" or fancy theoretical solution to a problem, and spending way > too much time and effort making it work, and then realizing I should > have just done the obvious :-) The trick, I suppose, is to realize > those times when the obvious solution is the wrong one!
Like rotary position encoders on the valve handles? Jerry -- Engineering is the art of making what you want from things you can get. &#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;
On Fri, 09 Jan 2009 19:24:36 -0700, Eric Jacobsen
<eric.jacobsen@ieee.org> wrote:

>On Fri, 9 Jan 2009 10:28:44 -0800 (PST), Le Chaud Lapin ><jaibuduvin@gmail.com> wrote: > >>On Jan 9, 12:03&#4294967295;pm, Eric Jacobsen <eric.jacob...@ieee.org> wrote: >>> On Fri, 09 Jan 2009 11:44:03 -0600, "briang2000" >>> >We've got a safety-related application where we'd like to determine if a >>> >shower is running in the bathroom. &#4294967295;Does anyone have any suggestions on how >>> >that determination could be made by sound? &#4294967295; Might a shower have a specific >>> >white noise characteristic that could be identified as unique from music >>> >playing, toilet flushing, talking, etc.? >>> >>> Is there a reason this has to be done via audio processing? &#4294967295; &#4294967295;A flow >>> meter on the head or even just a water detector at the floor might be >>> more reliable. >> >>Interesting application. >> >>Audio might be more convenient. One can imagine using a wall-wart with >>integrated Wi-Fi transceiver that sends an alarm over Internet when >>shower is running. Might even have small, directional camera built- >>in. ;) >> >>This is certainly feasible. At a given flow rate, the white noise will >>likely be stationary, and will have certain characteristics, among >>them being power spectral density, using which you can apply several >>techniques (matched filter/MMSE/etc). >> >>I would be surprised if you did not have almost immediate success >>since the NNR ("noise"-to-noise) ratio is large. You might build-in >>self-training feauture so that module determines empirically what >>"shower on" is versus "shower off" with push of button on module. >> >>Typical 16MHz DSP should be more than enough since application is >>pseudo-real-time. >> >>-Le Chaud Lapin- > >My concern with a DSP approach would be false alarms from other >"noisy" things like hairdryers, bath fans, shavers, electric >toothbrush, etc., etc. Discriminating one type of "noise" from >another reliably can be pretty tricky.
Combining a flow sensor and acoustical approach, a piezo sensor attached to the pipe feeding the shower head would give a better SNR, and still wouldn't be mechanical or require re-plumbing. I just tried an automotive mechanic's stethoscope on a kitchen water pipe, and it gives quite a loud hissing when the water is running, and not much other sound. The spectrum would shift some with water temperature and flow rate, but it's a really strong signal. If you could make it low-power enough to work from a lithium battery, and using a wireless scheme, it wouldn't require any wiring inside the shower stall. -- John