Last month, I have fallen to the ground on a bicycle and made a bleeding wound on the elbow, but nobody noticed that and helped, which reminded me of my grandpa who had been through the same thing with a worse result. However, when elder people have fallen, the situation will be much worse than I have. If an accident occurs to the elderly and they are not treated in time, their lives may be in danger.
Here I use Codecraft platform to start the project, since I have no code experience. Codecraft is a graphical programming platform based on Scratch 3.0 language. It enables programming by simply clicking “drag and drop” options. It supports the online programming of Seeed Studio Wio Terminal, which is really simple and convenient for newbies.
Here is the link of Codecraft: https://ide.tinkergen.com/
Since we need to detect the status of motions, so we start with motion recognition based on the built-in accelerometer sensor of Wio Terminal. Here my model is named "falling".
Step 2: Data Acquisition and Machine LearningIn the next step, we need to collect the data from the built-in accelerometer during different motion statuses, including idle, move and fall. As you can see from the picture above, I have collected 90s of 3 kinds of motion status.
After finishing collecting the data set, let's move to the section of Training and Deployment. Since we got the data set ready, click the start training button, then the model will be self-learning based on your sample data.
When the training is done, you can see below there is a model training report, showing the accuracy and loss of your own model, and the button for Model deployment, there you go! Click the button and let's move to the next step.
Since the model is also ready, we can deploy the model to our device Wio Terminal, and here are the details of what I programmed by using Codecraft.
Dragging all the components needed, then click the upload button and the Wio Terminal becomes the warning device for fall status! (The battery chassis is not charged when I took pics, so it is powered by the USB type-c lol)
Comments