SoftwarePractice.org: Home | Courseware | Wiki | Archive

T8 Wearable Physiological Sensors

From SoftwarePractice.org

Contents

Project Team Members


Hanh Do NGUYEN

Ankush SARDANA

Xi xin HE

Patrick MAFI

About Us

We are a group of four engineers (formed up Team 8) who are here to design such a device which can measure body temperature, galvanic skin response and pulse rate of the human body. The device should be easy to use, portable and put onto human body. To design this a device we have to be brainstorming so that at the end we would get a good result of our efforts.

Introduction

Biofeedback has been developed as a valid and practiced form of alternative medicine diagnosis. Studies have found that by analysing the bodily functions of a subject, such as changes in temperature, electric conductance and heart pulse they are able to determine reactions of the sympathetic nervous system and more over the emotional state of the person.

Effectively its aimed at mapping the physical changes of the body to mental/emotional and nervous states aiding the diagnosis of various ailments and fortifying of mental health and control of the body.

This wiki documents the development of a protoype device that will measure the more common indicative areas of biofeedback.

Usage Scenario

Computing exercise

David wants to build muscular body so he goes to gym 5 days a week. But after exercising for a while he feels that his body temperature gets very low and pulse rate starts rising so he gets frustrated. Initially he decided to go to doctor for a checkup and after understanding the whole problem doctor advised him to wear the device which can measure body temperature, pulse rates and galvanic skin response.

David went to market and bought one wrist watch which can measure body temperature, pulse rate and galvanic skin response. Next time when he went to gym he tied that watch around his wrist and put the device on master mode to measure all the 3 things together. After a while he saw all the readings with graphs on the screen of his watch and he saved it in the memory stick. Later he connected the device with computer using USB and sent all the readings and graphs to the doctor for a checkup.


Self Awareness

Anks is doing engineering at the University of Technology, Sydney. He is stressing because of study load, he gets so many projects, assignments, tests, quizzes and other works from the university. Because he thinks too much about his studies so he feels illness and his body temperature gets lower.

Now he wants to know whether he behaves alright or not so he bought one wrist watch which can measure his body temperature, pulse rate and galvanic skin response. He wears that watch all the time at his work, at university, at home and everywhere. Whenever he feels illness he switch on the mode which measures body temperature and galvanic skin response to get the result and readings. If the watch shows low body temperature and sad galvanic skin response then he made himself calm down and take a rest so that he can start working again properly.


Usecase Scenario

Usecase for gym scenario

Image:Drawing2.JPG



1.Starting the device- By pressing the power button on the device, user can switch it ON. After turn on the device, it will take around 30 seconds to perform all of its functions.

2.Enter personal data- This is to keep the record details of the users with some information such as name, age, gender and brief description about their status.

3.Select the mode- User has to select the mode by using control button that allows them to measure body temperature(BT) or galvanic skin response(GSR) or pulse rate(PR).

4.Show readings and graphs- After successfully measuring the selected mode screen will display the results with all the readings and also the graphs. User can choose which mode they want to display on the screen by using control button.

5.Store data- All the data will be stored in memory stick for the records. It is transferable to the other portable devices such as computer, laptop.

6.Connect to other devices- User can connect the device (wrist watch) to the other devices such as computer, laptop as well as using USB 2.0 for the data transferring.

7.Send data- After connecting the equipment to the other devices via high-speed USB 2.0 connection, user can transfer all stored data to other device for more storage and record purposes.

8.Reset the device- This function is using to bring the device back to the new fresh ready status so that it will not mix the previous readings with new coming ones.

9.Turn it off- User can turn the device OFF by pressing the power button when it is on so that they can save the battery whenever they don't need to use it.


The following are the usecases for the physiological sensor device: Image:PMafi_Usecase2.jpeg

Project Plan

Project Scope

The scope of this group project is to design a device which will be carried on user's body in some way. It will consist of an assortment of software and hardware components. There are three hardware sensors which will provide data readings of skin temperature, pulses and galvanic skin responses.

For these requirements, the device will present a dynamically updated graph(s) of sensor readings. The sensor data are time-stamped and can be stored into the files. The historical data can be retrieved and displayed over a selected timeframe. The historical data can also be transferable to an external portable devices. Hence, the user interface may need supports all of the above functions.

The scope of this project shall be limited to a working logical software prototype in doing so the system will be created in a test environment using the application components and will test simulation for the external data that is passed to the system by the sensor hardware.

Assumptions on this hardware have been made and is described in the following section.

Existing Technology (Hardware)

This prototype aims to utilise already existing sensor hardware and their readings to parse data into our system for display on this single device. For this purpose we have assumed the use of digital medium forms of the sensor hardware. Digital thermometers, digital Galvanic Skin Response units and digital pulse readers are a current and real technology in todays environment all of which use a digital LCD display to out to user the reading.

We have therefore assumed that sensor hardware uses binary datatype to output on the displays. To simulate the sensor process we have incorporated a test simulator class named SensorSim to simulate the interface between our system and the three sensor hardware.

Our sensordata class will deal with processing the raw data into integers that our system will use.

Project Requirements


- The device should be small and light enough so that it can easily be worn.

- The device shall present a dynamically updated graph(s) from sensor readings.

- The device shall take readings at regular intervals.

- The sensor data are time-stamped and savable to file.

- The historical data can be retrieved and displayed over a selected timeframe.

- The historical data can be transferable to another external portable devices.

- The user interface shall need supports all of the above functions.

Project Stakeholders

- Users

- Doctors

- Government

- Manufacturers

- Distributors and retailers

Project Risks Management

As a part of the project, we have identified and managed a number of key risks that could lead the project to be delayed or to minimize its functionalities or even failed. For this purpose, we have anticipated the risks as follows:

- Cooperation from users may be limited.

- An unexpected delay can occur due to the wrong time slot allocated for each aspect of the project, changes of project requirements during the development stages or underestimation of workloads involved.

- Malfunctioning of the final product could be happened due to the poor software implementation.

- Lack of financial funding for hardwares, softwares and trainings.


Project Design


System Design

Here is our original design of the system. It was planned to use Java swing methods to create an MVC architecture. It was reconsidered after the presentation milestone section when we have had some good feedback.

Image:BCModel3.jpg

Our design was altered to show a closer relationship to the class diagrams we had planned for.

Image:PM_Model2.jpg

Design Requirements

- Sensors to measure body temperature, galvanic skin response and pulse rate.

- Memory stick to store all the data such as readings, user information and timestamp corresponding to each reading.

- Watch should be tied on the right hand side of the user around the wrist so that it will be easier to measure pulse rate.

- Touch screen

- Control button

- High-speed USB to connect it with other devices

- View of graphs

- Different modes of body temperature(BT), galvanic skin response(GSR) and pulse rate(PR).

System Interfaces

Image:Interfaces.jpg

Above shows the system interfaces that exist. As discussed, the sensor hardware is assumed to pass binary data into our system and is processed by the SensorData class.

The Storage medium is a flash drive with log files stored on the drive that is accessible via a high-speed Univseral Serial Bus connection (USB 2.0)

The User Interface (GUI) will be described in the following section.

User Interface

The user interface is to take data using a touch screen.

The touch screen will activate the numerous (graphical) buttons on the Graphical User Interface(GUI) views.

User input will be taken via a single scroll character system (pictured in the GUI section of this Wiki page) that is incremented using an enter button command into a string buffer and directed into the correspoding textfields when the user pushes the graphical enter button on the panel.

He will repeat this for all clock setting variables and for the user input fields such as: Name, Age and Weight.

CRCs

Image:GUI-CRC.jpg\n

Image:FileManager-CRC.jpg\n

Image:Clocl-CRC.jpg\n

Image:SensorSim-CRC.jpg\n

Image:SensorData-CRC.jpg\n

Image:GSRGraph-CRC.jpg\n

Image:TempGraph-CRC.jpg\n

Image:PulseGraph-CRC.jpg\n

Class Diagrams

Below is our original Class diagram it was flawed as we had not included enough classes to satisfy the project scope: Image:Picture2cd.jpg

Here is our Class Diagram we developed along the way. It is, what we called, heavily GUI oriented a design characteristic that should be reconsidered in future: Image:PMClassDiagram.jpg

Sequence Diagrams

Below is our Sequence Diagram which is using for the system:

Image:Picture1sq.jpg

This is our new squence diagram:

Image:newSequenceDiagram.jpg

Design Risks

- Sensors should work properly and get the correct readings

- Data should be save properly else the user wouldn't have any records

- Display screen should be clear to see readings and graphs

- Device shouldn't be connect to any other device which is having virus in it

- Tied the watch properly around the wrist

- Battery should be charge when measuring anything or connecting to other devices


Project Implementation

TestCase Design

The following are few sample testcases which have been designed for our system:

Image:PMafi_Testcases.jpg

GUI


Image:PMAFI_GUI2.jpg



References


Archive

Personal tools