The detection of the environment where a person is located and the state of activity he/she is currently engaged, is of extreme use for the identification of Activities of Daily Living (ADL). The concept of ADLs was originally proposed in the 1950s by Sidney Katz and his team at the Benjamin RoseHospital in Cleveland. Health professionals often use aperson's ability or inability to perform ADLs as a measurement of their functional status, particularly in regard to people post injury, with disabilities and the elderly. Younger children often require help from adults to perform ADLs, as they have not yet developed the skills necessary to performthem independently. ADLs are used as a measurement of a person’s functional status and can provide valuable data for theraputic purposes, skills / training enhancments, personal entertainment etc. Advances in sensor technologies and AIat the edge have increased significantly the ease and accuracy of ADLdetection.
IMPLEMENTATION
The project is built around the SmartEdge Agile Device on which the
- Light Intensity
- Humidity
- Sound Level and
- Temperature
sensors are activated. For instructions check https://www.avnet.com/wps/portal/us/solutions/iot/building-blocks/smartedge-agile/
and
https://blog.hackster.io/hands-on-with-the-smartedge-agile-b7b7f02b5d4b
The Gateway that communicates with the SmartEdge Agile device can be a Raspberry PI or a mobile device and the SW managing data and communications is written in PYTHON (if a mobile device is used as a gateway then an app for running PYTHON on Android must be installed).
The MQTT API provided for SmartEdge Agile is used to detect when data is available and measurements are then transferred to a Google sheet for Cloud Storage and processing. To that end a very handy PYTHON API called GSPREAD is used https://github.com/burnash/gspread .
In order to setup a Google sheet a specific procedure must be followed to obtain authentication credential and is well described in
https://gspread.readthedocs.io/en/latest/oauth2.html
Once the data start coming in the Google sheet then it can be automatically analysed with appropriate thresholds for the measured variables to determine the environment of the user (indoor - outdoors, quiet - noisy etc).
Google sheets is a very efficient and fast mechanism for managing cloud data, although some minor details must be catered for as for exampe a check for connectivity must be in place since by default a Google sheet will disconnect after one hour. But this is easily covered by the gspread API if needed.
SUMMARY
1. Install and activate SmartEdge Agile (Hardware Device and Brainium Portal)
2. Create a Google Sheet, obtain its credentials and establish user access mechanism (link or password). Set rules-thresholds for sensor data.
3. Install Python SW on Gateway (Raspberry, phone or tablet). If Gateway is a mobile device (for portability) then appropriate Python execution app must be installed first.
Comments