IoT in healthcare plays a prominent role in managing health of an individual. There are many solutions around this in terms of getting alert, predictive analytics , health card and things like that.
The basis for this is moving the data out to cloud for further data analytics.
In this blog, I will be describing how in quick 15 mins you can move your own pulse rate data to Watson IoT platform using the Mobile app developed by Lyfas (http://www.lyfas.com/)
Download the Lyfas Mobile App from playstore
Step 2: Register the device (Smart phone ) with Watson IoT platform
Here we will deploy the Watson IoT platform through Bluemix and then access the console of Watson IoT platform to register the device.
- Login to Bluemix.net
- Go to catalog page and select “Boilerplates” as shown
- Select “Internet of Things Platform starter” which has the “watson IoT platform” , “Node Red Runtime” and “Cloudant” database available as service
- Provide a name to the application that gets deployed – a unique name. Through this you can access the Watson Iot Platform and also the Node Red.
- Proceed to deploy the boiler plate. Scroll down to get the Create Button
- It takes couple of minutes to deploy the Watson IoT platform and the runtime
- Go back to the dashboard and verify the status of the application. The green button shows that the app is deployed successfully
At this stage, the Watson IoT platform and the runtime is deployed and we are ready to register the device with the platform
- As a next step, open the application to get into IoT platform
- Double click on the recently deployed application “mypulserate”, in this case
- You will see the dashboard of the app with IoT platform, Cloudant and Node Red as a service deployed.
- Double click on the Watson IoT platform to open the console of it. Here is where we need to register the device
- Launch the IoT console
- Post launching the console, you will get the dashboard of the Watson IoT Platform. Here we need to register the device.
- To register the device, on the left side menu, select the “Device” Tab as shown below:
- In the devices tab , click on ‘Add Device”
- Here we need to provide 3 details:
- (1) Device Type
- (2) Device ID and
- (3)Auth Token
- Start with providing a device type- It should be either a device or a gateway. In this case, we consider the mobile as Device and NOT as gateway. Hence configure it for Device as shown below:
- Click on Create Device:
- Provide the device name . It can be any unique name.
- Click Next and proceed to provide device ID details
- Provide any unique ID to identify the device, in this case mobile
- Proceed further and take the default for the next screen. Provide the authentication details in the screen that follows:Though it is optional, better to provide a known password so that it can be referred in the configuration file @ the mobile end
- Thats it !! proceed and add the device. Once this step is completed, you will have the device registered and the following details are to be noted down:
- (1) Device Type
- (2) Device ID
- (3) Authentication Token (Password)
- (4) Organization ID (which is created by default)
- We are proceeding to configure the Mobile App with the above parameter values
Step 3: Configure the client (Mobile App ) with the Watson IoT platform device registration details
- Open the App and go to “Settings” as shown below:
- Provide the Watson IoT platform device registration details as shown:
Thats it !!…We are all set to publish our pulse data to Watson IoT platform
Step 4: Start tracking your Pulse and publish to cloud
- Start your Mobile app
- Go to settings and select ‘Start pulse”. You will see the Mobile flash light turned on
- Place your index finger on top of the flash
- Notice that the pulse rate started displaying on the screen.
- At this stage the pulse is local to your device and now it needs to be moved out to Watson IoT platform
- Select the “Stream button” to on position. That’s it, you will see the pulse data been published to Watson IoT platform.
- To visualize the data back in Watson IoT platform, go back to the Watson IoT platform console and select the registered device .
- As shown above, the device will be shown as connected. Double click on that to see that the data is published as json object
- Content of each json payload is shown below…
Note: As a next step, using the Node Red editor available, we can move the data to cloudant seamlessly Also once the data is available in the cloud, it can be used to various data analytics like visualization, plotting , predictive analytics using various tools and platform available at Bluemix like Watson machine Learning and Data Science Experience (DSX)
Plotting the data using DSX is covered in the blog : https://ibm.biz/heartemotion
Soon we are planning to come out with a developer journey to demonstrate the predictive capability using Watson platform and Lyfas device data..Watch out for details…
Hope you find this post quite useful..The UI pertaining to the modules may change in future , but the logic of moving the data out to cloud will remain same.