Licensed under the Apache License, Version 2.0
Demo for element14 Connected Cloud Challenge project
LED and ALS sensor for sense the mail. Record Sound from TFT shield PDM MIC to on-board FRAM, stream via AWSIoT, pass the sound clip to SageMaker, run fine-tuning deep learning YAMNet to detect angry dog barking. Use AWS IoT shadow connected with IOS APP
Mbed and IOS reference of README.md under relative directory.
- IOS source ./ios-mailbox
- Mbed source ./mbed-os-mailbox
Build new lambda function under AWS console and paste it, set relative kinesis stream trigger.
Build a new lambda function under AWS console. follow https://docs.aws.amazon.com/lambda/latest/dg/python-package.html install python package requests and websocket
- Under Amazon SageMaker, build a new Notebook instances
- Git repositories https://github.com/tensorflow/models
- IAM add IoT, S3 access
- Open JupyterLab
- File > New > Terminal
- source activate tensorflow_p36
- conda install -c conda-forge resampy
- conda install -c conda-forge pysoundfile
- conda install -c conda-forge libsndfile
- copy iot_inference_yamnet.py iot_inference.py iot_train.py and angrydog.h5 to /home/ec2-user/SageMaker/models/research/audioset/yamnet
- for fine tuning sound sample, copy dog and other folder to S3 Buckets soundsample, and copy inside test folder to S3 Buckets soundsampletest. Inside jupyterlab terminal > cd /home/ec2-user/SageMaker/models/research/audioset/yamnet > python iot_train.py
sound sample for training collected from freesound.org (Creative Common CC0) and testing from soundbible.com (Creative Common Attribution 3.0)
AudoSet Licence CC4.0 https://research.google.com/audioset/download.html
Our fine-tuning model reference of work by laanloabs: https://github.com/laanlabs/train_detector