The Running Faucet Detection solution is a reference project for detecting if a faucet is running, utilizing Edge Impulse's machine learning platform. This solution is designed for Particle devices like the Photon 2, Boron, and M-SoM, and leverages acoustic or vibration sensors to classify water flow patterns. With Edge Impulse, the app can recognize the unique sounds or vibrations produced by a running faucet, making it ideal for water conservation, leak detection, and smart home automation applications.
- Edge Impulse Integration: Uses Edge Impulse's machine learning capabilities to train a model specifically for detecting running water.
- Water Conservation: Identifies unintended water flow, helping users conserve water and reduce waste.
- Seamless Deployment: Supports Particle devices such as the Photon 2, Boron, and M-SoM, enabling efficient edge processing.
- Versatile Applications: Suitable for applications in smart home systems, water leak detection, and environmental monitoring.
To complete this project, you will need:
- Particle Device: Photon 2, Boron, or M-SoM.
- Acoustic or Vibration Sensor: Required to capture the sound or vibration patterns associated with water flow.
- Edge Impulse Account: Sign up at Edge Impulse to train the model for faucet detection.
- Connect an microphone to your Particle device (Photon 2, Boron, or M-SoM).
- Set up your Particle device in the Particle Console to ensure it’s online and ready to transmit data.
- Log into Edge Impulse and create a new project for faucet detection.
- Go to the Data Acquisition tab and collect sample data for both running and non-running faucet states.
- Label each sample appropriately (e.g., "Running" and "Not Running").
- Ensure data is representative of real-world scenarios to improve model accuracy.
- In Edge Impulse, go to Create Impulse and select a suitable Signal Processing Block (e.g., Spectral Analysis) for audio or vibration data.
- Add a Learning Block for classification.
- Go to the Training tab, configure training parameters, and start training the model.
- Monitor the training results to ensure high accuracy in distinguishing running water sounds.
- Once the model is trained, go to the Deployment tab in Edge Impulse.
- Export the model as a C++ library or a Particle-compatible model file.
- Upload the model to your Particle device using the Particle CLI or Web IDE.
- Configure the device firmware to run the model and classify data from the sensor.
- Deploy the Particle firmware and begin testing the device in real-world conditions.
- Use the Edge Impulse Live Classification feature to validate model accuracy.
- Fine-tune the model as needed by collecting additional data or adjusting training parameters.