(gentle music)
- [Instructor] Now that you have learned
how to do machine learning audio classification,
I have an exciting challenge for you.
I thought you have to use Teachable machine
with google.com to do a demo.
So you can refer back to the same demo lesson
or you can also look at the handout
where I have given the steps for this.
So here's what you're going to do.
We talked about
so many different potential HJI use cases
in real work environment and one of them was the ability
for an AI model to understand water dripping sound.
It could be a pipe leaking our water overflowing,
and that sound could be a separate class
that you can train right here on Teachable machine.
So that's what we are going do.
So I would like you
to record background noise
just like we did in the demo as one class.
And you can use the mic here and just stay quiet
and record the background noise
and make it generate samples for you.
The second class, you can make a similar one to the bell
so that we have three classes.
One is going to be the background noise,
one is going to be another class like bell
or any sound that you want.
And the third is going to be the dripping water sound.
And what did we do with the bell? I literally clicked mic.
The mic was ready to listen and said add sample
and I took a bell and made some noise.
So you could do something like that.
You can use a bell or if you don't have a bell handy,
you can find any other sound
but consistent sound so that you can get some samples.
And we want the sample sizes to be close, okay?
So it cannot be like a hundred samples of bell
and you know, 20 samples of water or something like that
because the more the number of samples,
the model is going to learn.
So we don't want to bias the model.
So the second sound is bell or some other song.
Similarly, in this challenge, you add a third class
and you can call it water, you can call it any name.
The class name doesn't actually have to say
what the sample is about, but I like to just call it water.
So I'll call it water. Add a third class.
And now actually take water in a cup, take some spoon,
and create that pipe leak sound that you want
to emulate from your environment
and collect some samples.
Similarly, it'll collect the sample
and then it'll extract the one second samples from there.
And your sample set, three classes will all be ready.
And then what do you do? Do you remember from the demo?
You simply press model, train model.
You keep the AP science acid is and done
and you will be able to preview the model.
Now you can test the model with the sound
of water dripping and then you're done.
And if you want, you can export it
like we saw in another exercise.
If you want to take this to another mobile application
or integrate this programmatically anywhere else,
then you have the option of generating the code,
doing everything from the expert model option.
That's it.
So good luck and think about the use case.
Think about the use case of where the water is dripping,
where the pipe is leaking, what would you do?
And I will give you the solution in the next video.
Good luck.