Remote Patient Monitoring System
Remote Patient Monitoring System
Remote Patient Monitoring System
5, September 2012
ABSTRACT
The Telemedicine system comprises of both hardware and software components at both the patient and doctor ends. A leading field for application of telemedicine is in the field of cardiology where ECG is the major tool for diagnosis. The proposed project in this paper provides an image based techniques to acquire and analyse a constant streaming of ECG signal through digital camera for image capturing, information extraction and analysis performed using MATLAB tools as well as data sending system based on internet network. The method captures the vital signs and parameters from the ICU monitoring machine using a webcam and transmits the image through the internet. This original image is then availed to the consulting doctor via an ANDROID cell phone. In case of anomaly a notification is send to the doctors phone. The paper proposes a method to capture, compare and generate alert regarding the patients condition using the heart rate and make the captured image be available to the physician.
KEYWORDS
Telemedicine, ECG, MATLAB, C2DM, Android
1. INTRODUCTION
Tele-health and telemedicine are now becoming more engrained in the delivery of everyday health care, distance education and also health care administration. Lots of patients in underserved areas are receiving services that may not have otherwise received without travelling great distance or overcoming other transportation barriers. The services provided through telemedicine range from primary health care to the highly specialised care found in leading academic medical centre. Services are provided across the spectrum, from the youngest of patients to the fragile elderly. Tele-health systems have many applications in hospitals, clinics, nursing homes, rehabilitation hospitals, homes assisted living facilities, schools, prisons or health departments. Tele-healthcare may be defined as the use of information technology to provide healthcare services at a distance. It includes anything like medical services at the inpatient or at the outpatient stage. What the doctors actually would like to see is constant monitoring of the vital parameters so they always know what the history is and how big the change from yesterday to
DOI : 10.5121/ijdps.2012.3509 99
International Journal of Distributed and Parallel Systems (IJDPS) Vol.3, No.5, September 2012
today be and when you have these findings and have these data points available, then a much earlier intervention can happen for a patient. Telemedicine can be extremely advantageous for people living in isolated communities and remote regions. It is currently being applied in almost all medical domains. Patients who live in such areas can be seen by a doctor or specialist, who can provide a precise and complete examination, so that the patient need not travel the normal distances like those from conventional hospitals. New developments in mobile collaboration technology with the use of hand-held mobile devices allow healthcare professionals the ability to view, discuss and assess patient issues. Telemedicine is being used as a teaching tool, by which experienced medical staff can observe, show and instruct medical staff in another location using more resourceful and faster examination techniques. It improved access to healthcare for patients in remote locations. Telemedicine reduces the cost of healthcare and as well as increase the efficiency through better supervision of diseases, shared health professional staffing, and reduced travel times. The Telemedicine system comprises of hardware and software at both the patient and consultant doctor ends, with some of the Diagnostic Equipments and pathology microscope or camera provided at the patient end. Through a Telemedicine system consisting of simple computer with necessary communication systems, the medical images as well as other information of the patients can be sent to the consultant doctors, through the satellite link in the form of digital data packets. For the purpose of reception of these data packets the usage of hand held devices such as the cell phone has been recognized since the day it has become commercially available at every housel hold. These packets are received at the doctors end and the data is reconstructed so that the consultant doctor can study the information, do the diagnosis, interact with the patient and put forward the appropriate treatment. Telemedicine facility together with technological advances in communication facilitates the specialist doctor and the patient, separated by thousands of kilometres to see and talk to each other. In the recent past, it has been shown that using a bio signal acquisition unit connected to a computer, vital signals can be transmitted from the hospital to any destination in a store-andforward mode or in real-time mode. Moreover, newer cellular access technologies, such as Third generation (3G), and others provide much higher data transmission speeds (rates) thus ensuring constant and high speed internet access smart phones and mobile modems than basic second generation (2G). This relatively new technology in wireless communication is utilized for our proposed method. Cardiology is one of the areas in which telemedicine is showing major growth. Lifethreatening cardiovascular diseases, such as heart attacks, arrhythmias and strokes, are the important cause of death in the world. Prevention of cardiovascular diseases (CVD) requires early detection and diagnosis. Arrhythmia is a general term used to denote disturbances in the heart's rhythm [I]. Arrhythmias can be recognized by evaluating the ECG in a systematic manner. Electrocardiogram (ECG) is one of the most frequently used diagnostic tools for heart diseases these days. The accurate interpretation of ECG is basically required in order to evaluate the important information inside the ECG signal. The electrocardiogram (ECG) is the graphical representation of the electrical activity of the heart. It is obtained by connecting electrodes to the body surface. It has been used as a diagnostic tool for over a century and is extremely useful in identifying cardiac disorders. The conventional visual analysis, of the ECG signals is absolutely not much effective and is also time consuming. Instead the use of heart rate variations as an indicator of cardiac arrhythmia can act an easier and more effective method for the detection of heart conditions.
100
International Journal of Distributed and Parallel Systems (IJDPS) Vol.3, No.5, September 2012
In Normal Sinus Rhythm the heart rate lie between 60 to 100 beats per minute for a human being as shown in the Fig. 1. This rate might vary from one person to the other. It tends to be faster in children and slower in older people but the cardiac rhythm will be regular. In the case of abnormalities such as Bradycardia the heart rate is less than 60 beats per minute and for Tachycardia the heart rate will be greater than 100 beats per minute. In both cases the cardiac rhythm is regular as indicated by Fig. 2 and Fig. 3.
Figure 2: Bradycardia
Figure 3: Tachycardia Thus variations in heart rates can lead to various cardiac arrhythmias. This paper aims at proposing a method for providing the consulting doctor with the latest information regarding the patients vitals and generate an alert signal based on the variations in the patients heart rate. This alert is then send, along with the current patient vitals to the consulting doctors cell phone, thereby facilitating quick decissions and immediate intervention for the doctor if the patients condition get worse. The next section describes the background that led to this particular project. The third section includes the details about the proposed project. Fourth section describes the methods used to chive the final result. Fifth and Sixth section explains the result and conclusion respectively.
2. BACKGROUND
The earlier system that existed introduced an ECG measurement, analysis and transmission system with a mobile phone as a base station [2]. The system was based on a small-sized mobile ECG recording device which sends measurement data wirelessly to the mobile phone [3]. In the mobile phone, the received data is analyzed and in cases of any abnormalities found among parts of the measurement data; it will be send to a server for the use of medical personnel simultaneously. However, because of the limits of electronics support and processing units within the mobile phone, the overall performance was hardly operated in an ideal condition [4]. Delay in the data transmission might also disrupt the data analysis and measurement.
101
International Journal of Distributed and Parallel Systems (IJDPS) Vol.3, No.5, September 2012
Figure 4: Previous methods Another more recent method suggests direct measurement of ECG [5] or blood pressure [6] for the detection of arrhythmias. But these systems depend completely upon the proper operation of their sensors. So they cannot be used along with the existing cardiac sensors of the bedside monitors in ICU, also a variation in the placement of the sensors of blood flow might lead to false alarms or a critical condition being over looked. Most of these systems uses a GSM module to generate an SMS to the doctor but does not convey the actual readings of the patient during the critical condition [7].
3. PROPOSED PROJECT
To avoid the limitations of the earlier system, the proposed project in this paper implements the images based techniques and digitization ECG signal through digital camera for image capturing, information extraction and analysis using MATLAB tools as well as data sending system based on internet network. That is, a predefined amount of measurement data around this event is sent through the internet network. The main aim of this project was to develop a system which captures the vital signs and parameters from the ICU monitoring machine using a webcam and make this data be available to the personal doctor who might not be present in the hospital or even in the country. The webcam will capture images from the screen of the bedside monitor at a rate of about one image every four seconds. These captured images streamed into MATLAB where it is processed and will be constantly uploaded to the application server. ANDROID application is used to get these data on the mobile phone from the users server. In case of any abnormality, the doctor is alerted by sending a notification from C2DM server to his mobile.
102
International Journal of Distributed and Parallel Systems (IJDPS) Vol.3, No.5, September 2012
Fig. 6: Block Diagram The algorithm starts with the capturing of images by using a real time operating digi digital webcam and saving them in the computer. The format of captured image above can be either jpg or jpeg. Then the algorithm consists of a series of image processing techniques that perform image conversion, image cropping and image comparison. The processed image will be processed analyzed for any anomaly in the heart rate of the patient. In case an anomaly is detected a text document is generated. The processed image along with this text document, generated in case of anomaly, is uploaded to the server using web application. The ANDROID phones are application. registered in the C2DM server and have unique IDs. The images uploaded to the server can be viewed from the server itself by using the ANDROID application. The notification is send in case of anomaly to the doctors phone.
International Journal of Distributed and Parallel Systems (IJDPS) Vol.3, No.5, September 2012
4. METHODOLOGY
4.1. Image Acquisition and Processing
A low cost webcam is used to acquire the images from the monitor of the bedside ICU monitoring machine. MATLAB is used for further processing of the captured images. Initially, a connection is established between the webcam and MATLAB. Once the connection is established an object is initiated which is in charge of capturing the required image frames using the webcam. This object runs commands to capture an image of the screen of the bedside monitor of the cardiac ICU using the webcam, at the rate of one image every four seconds. This is achieved by running the program in an infinite loop inside the MATLAB. The images thus obtained are then used for image processing.
Fig 7: Screen of the ICU Monitor The image captured will contain information regarding the patients heart rate and other information such as ECG, blood oxygen content, breathing rate etc. From the image the part containing the heart rate is cropped out for analysis. The image is cropped such that each cropped image will contain a single digit of the numerical value representing the heart rate.
Fig. 8: Digits representing the heart rate which was cropped from the image These cropped images are then converted from RGB to black and white for comparison. This conversion enables the images to be compared with sample images easily. These black and white, cropped images are then compared with the already saved black and white sample images sample images inside the computer.
104
International Journal of Distributed and Parallel Systems (IJDPS) Vol.3, No.5, September 2012
Fig. 9: Digits converted from RGB to black and white The comparison is achieved by performing the subtraction function in MATLAB. For this the sample images are subtracted from the cropped image and the resultant image is checked to determine if no resultant grey or white pixel values remained above the threshold value. If an almost perfect match is achieved then the numerical value of the cropped image is fixed as the value of the sample image. This comparison helps obtain the numerical value of the heart rate of the patient from the images.
= =
Fig. 10: The resultant of an imperfect comparison (so the digit is not 6)
Fig. 11: The resultant of a perfect comparison (so the digit is 7) This value is then checked to know whether the heart rate of that patient lies within the range of normal values (which is usually within 60 beats per minute to 100 beats per minute for normal humans, but this may vary from one patient to the other). Irrespective of the analysis outcome, the image captured is stored into a destination folder. If the heart rate is falling within the normal range then the destination folder will contain only the captured original image which has been saved there. This image is then uploaded to the application server, specified by the URL using MATLAB commands. This image can then be available to the doctors through his / her mobile phone. Data uploading is performed using a batch files. The batch file runs command not only to upload the images to the server from the destination folder but also to remove the image from the folder once it is uploaded. So once uploaded to the server all data stored in the destination folder is removed from the there and the folder is left empty for the next data. In case the heart rate falls outside the normal range for the patient, then a text document is generated along with the image and saved into the destination folder along with the captured image. The batch file will upload this text file along with the image, into the server. When the server detects this text file it will send an alert to the C2DM server along with the ID of the phones registered into the service. The C2DM will then send a notification to all the registered phones alerting the doctor regarding the patients condition. Since a batch file is used to upload the content of the destination folder, the image will be uploaded to the server at all time irrespective of whether an anomaly was detected or not. So the doctor can always access the patients data through his android device.
105
International Journal of Distributed and Parallel Systems (IJDPS) Vol.3, No.5, September 2012
4.2. Server
The mobile phone stores the recorded data in a SQLite database [8]. This is needed because it is not necessary that there will always be a network available to forward the biomedical data to the server. For the database on the server side, MySQL was chosen over SQLite as database management system. The reason for this was that MySQL offers the possibility to dene foreign keys whereas SQLite does not. Further consistency conditions can also be dened on the database layer. Server side should also provide a way to present the collected data to the healthcare specialists. [9] Server supports different services in real-time to the users. It continuously receives the processed data from the computer and stores it in a database. It sets up Web Application Server for different users such as physicians and medical centre to have real-time and continuous access to patients vital signs through internet [10]. The image obtained is stored into a folder in a specified memory location. In case of emergency the MATLAB will generate a .txt file which will also be stored into the same folder. The MATLAB will then call the batch file. This batch file contains the code that will upload the content of the destination folder into the server. The image uploaded is stored in the server.
106
International Journal of Distributed and Parallel Systems (IJDPS) Vol.3, No.5, September 2012
International Journal of Distributed and Parallel Systems (IJDPS) Vol.3, No.5, September 2012
The corresponding doctor who wants to see the image should initially register. The registered mobile will get a unique ID from the C2DM server. The data is uploaded to the application server. In case of any abnormality a text document is uploaded along with data and a notification is send to the phone from the C2DM server. The application that is installed in the android phone is called the RPMS. When the image is uploaded to the server this application makes it available to the doctor so that he can see the image in his cell phone. The server stores the images uploaded into its data base for future use. Doctor can view the images from the server. The images will be saved according to the date and time and there will be separate folders for each patient. In case the doctor doesnt want to view the images he can unregister unregister.
5. Results
Remote patient monitoring system enables the doctor who is not in the hospital to know about the details of his patient. The image of the monitor of the ICU device is processed and the image is uploaded to a server and it is made available to the doctor. Notification is send in case of abnormality. Here in this project we have done, the notification will be sent to all the doctors who have registered in the C2DM server. Also the detail of the patient is not available to the doctor. Only the name and patient ID are made available along with the image. So the future scope of this image. project is that the notification will be send only to the doctor whom the patient consults. That is, the alert send can be made specific. Along with the name and ID, more patient details can be sent.
108
International Journal of Distributed and Parallel Systems (IJDPS) Vol.3, No.5, September 2012
109
International Journal of Distributed and Parallel Systems (IJDPS) Vol.3, No.5, September 2012
ACKNOWLEDGEMENT
The authors would like to acknowledge the contributions of Royal SUT for giving us the permission to use data from their cardiac ICU and providing us with all the necessary facilities. We would also like to thank Dr. A.C. Rao, Consultant Cardiologist at SUT Royal Hospital and Mr. Richie Daniel Johnson for all their necessary support and guidance. We acknowledge our gratitude to the members of faculty in the Dept. of ECE and all our friends for their cooperation and encouragement to complete this work.
REFERENCES
[1] 'International Cardiovascular Disease Statistics, Statistical Fact Sheet-2007 Update', American Heart Association, Dallas, Texas, 2007. [2]Lai Khin Wee, Yeo Kee Jiar, Eko Supriyanto Electrocardiogram Data Capturing System and Computerized Digitization using Image Processing Techniques International Journal of Biology and Biomedical Engineering Issue 3, Volume 3, 2009 [3] Khor S, Nieberl J, Fgedi K, Kail E Internet based, GPRS, longterm ECG monitoring and nonlinear heart-rate analysis for cardiovascular telemedicine management Computers in Cardiology 2003;28:209-212. [4] Ljupco Hadzievski, Bosko Bojovic, Vladan Vukcevic, Petar Belicev, Sinisa Pavlovic, Zorana Vasiljevic-Pokrajcic, and Miodrag OstojicA Novel Mobile Transtelephonic System With Synthesized 12-Lead ECG IEEE Transaction on Information Technology in Biomedicine, Volume 8, 2004 [5] Dr.R.Sukanesh, S.Palanivel rajan, S.Vijayprasath, S.Janardhana prabhu and P.Subathra gsm based ecg tele-alert system, Department of Electronics and Communication Engineering, Dept. of Electron. & Commun. Eng., Thiagarajar Coll. of Eng., Madurai, India Innovative Computing Technologies (ICICT), International Conference 2010 [6]Sukanesh R., Gautham P. ; Arunmozhivarman P.T. ; Rajan S.P. ; Vijayprasath S. Cellular phone based biomedical system for health care Dept. of Electron. & Commun. Eng., Thiagarajar coll. of Eng., Madurai, India Communication Control and Computing Technologies (ICCCCT), IEEE International Conference 2010 [7] 1V.Ramya, 2B.Palaniappan,3Anuradha Kumari Embedded Patient Monitoring System International Journal of Embedded Systems and Applications (IJESA) Vol.1, No.2, December 2011 [8] Prof. Dr. Burkhard Stiller Mobile Healthcare on Android Devices Communication Systems Group, Diploma Thesis, Dept. of Informatics, November 2010 [9] Alma Secerbegovic, Aljo Mujcic, Nermin Suljanovic, Midhat Nurkic, Jurij Tasic The research mHealth platform for ECG monitoring, ConTel Conference, 2011 [10] Elham Dolatabadi, Serguei Primak Ubiquitous WBAN-based Electrocardiogram Monitoring System EHealth Networking Applications Conference, 2011
110