according to a world health organization ( who ) estimate , cardiovascular disease kills almost seventeen million people around the globe each year , with around twenty million people at a risk of sudden heart failure .  
some of these lives can often be saved if acute care and cardiac surgery are provided within the so - called golden hour .
therefore , patients who are at risk require that their cardiac health to be monitored frequently whether they are indoors or outdoors so that emergency treatment can be given if problems arise .  
telemedicine is widely considered to be part of the inevitable future of the modern practice of medicine .  
it is gaining more and more momentum as a new approach for patients ' surveillance outside of hospitals ( at home ) to encourage public safety and to facilitate early diagnosis , treatment , and increased convenience .  
defined as the  use of advanced telecommunication technologies to exchange health information and provide health care services across geographic , time , social , and cultural barriers ,  telemedicine is currently being used by doctors , hospitals , and other healthcare providers around the world .  
conventional telemedicine systems using public switched telephone network ( pstn ) land lines are already available to enable a doctor to monitor a patient remotely for home care or emergency applications [ 4 , 5 ] .  
also , the mobile phone has been recognized as a possible tool for telemedicine since it became commercially available , and in the past few years , some parties have shown that with a biosignal acquisition unit connected to a notebook computer , which interfaces to a cellular phone equipped with a built - in wireless modem , vital signs can be transmitted from an ambulance to a hospital in a store - and - forward mode [ 6 , 7 ] or in real - time mode
.   moreover , newer cellular access technologies , such as gprs , edge , 3 g , and wimax provide for much higher data transmission speeds ( rates ) than the basic 2 g gsm cellular system offering future telemedicine solutions endless choices for high - end designs .  
however , these relatively new wireless technologies are deployed mostly in or around crowded high - income metropolitan areas
.   therefore , the majority ( 80.8% ) of the 3.8 billion cellular phone users in the world are still 2 g gsm users . in this paper
, we describe a telemedicine system based on mobile messaging services , namely , short messaging service ( sms ) , which is an integral part of the original 2 g gsm cellular system and subsequent generations , and multimedia messaging service ( mms ) , which became available as part of the 2.5 g cellular technologies and onward .
this system transfers a patient 's electrocardiogram ( ecg ) signal and body temperature and can also be expanded to include other vital signs .  
our motivation to use mobile messaging services is that not only does it provide an alternative means of transmission in a cellular communication system but it is a more versatile and convenient option since all new phones are sms and mms capable .  
additionally , under certain circumstances , as explained in section 5 , sms can be the only means of transmission in a cellular system . in section 2 of this paper
, we describe the architecture of the mobile telemedicine system and the underlying principles .  
the proposed mobile telemedicine system is shown in figure 1 .   the patient ( client ) and the health - care professional can be located anywhere in the globe where there is 2 g or 2.5 g cellular network coverage .  
the patient 's ecg , body temperature , and other vital - signs if desired , can be acquired by the patient himself under follow - up scenario , for example .   alternatively , the patient can be assisted by a family member or a health - care professional in more serious cases depending on particular patient 's case .   the primary purpose is to monitor patients cardiac activity if there is a chance that patient has cardiac problems such as an irregular heartbeat or arrhythmia that require close monitoring or that occur intermittently .
the signal acquisition process is performed by attaching the ecg electrodes ( three in the present setup ) to the patient 's body at designated places as is normally done in a typical single - lead ecg setup , and the infrared temperature sensor is pointed to the forehead .   the ecg signal and temperature acquisition unit acts as a temporary storage for the acquired ecg signal and temperature readings
; then it communicates with the smart mobile phone via a bluetooth connection , which can be established through a bluetooth transceiver .  
the mobile phone in - turn is tasked with plotting the ecg signal before it is captured and saved as an image , and then sent as an mms if desired .  
the other option is to send an sms that contains the ecg samples and a temperature reading if only 2 g cellular network coverage is available .  
additionally , the received data on the smart - phone is written continuously in blocks of 16 kbyte to the secure digital ( sd ) memory of the smart - phone for future retrieval and analysis , where a one - hour long single - channel ecg will occupy 900 kbyte of memory space .
when the mms or sms message reaches their destination mobile phone ( or pda ) , it is displayed directly on the screen , or it can be downloaded on to a personal computer for more convenient and larger display and storage .
the patient unit is comprised of the ecg signal and temperature ( vital - signs ) acquisition module and a smart mobile phone .
the core of the signal acquisition module is a microcontroller ( pic 16f877 ) as shown in figure 2 .  
the microcontroller acquires the amplified and conditioned signals and then performs the interface with the bluetooth transceiver using the built - in uart .
the resulting heart dipole vector is used as a source for the ecg signal , which is the spatial sum in space of all distributed dipoles in cardiac tissue .  
a normal electrocardiogram with its characteristic patterns and significant points and intervals is shown in figure 3 .
the amplitude of a qrs - complex is typically about   1 2 mv .  
we feed the signals from the three ecg electrodes , left arm ( la ) , right arm ( ra ) , and right leg ( rl ) , into the inputs of the designed instrumentation amplifier conditioning circuit of an overall gain of 800 .  
the single - channel ecg signal that is fed into the microcontroller is composed of lead - i ( i.e. ,   la , ra ) , which is the lead most often chosen for cardiac monitoring .
the signal is bandpass - filtered with a frequency range from 0.15 to 50 hz .  
the ecg derived from the surface bears frequency components up to a maximum frequency of 100 hz , but most of the spectrum is concentrated below 40 hz .
we used a special rapid response , low - cost , integrated , noncontact , infrared ( ir ) temperature sensor ic , the mlx90614 , that delivers medical accuracy over a wide operating range in our reference design .
this particular temperature ic delivers   0.1c measurement accuracy in the object temperature range of 36c39c and the wide ambient temperature range .  
we interfaced the temperature sensor to the pic16f877 microcontroller using the ic port on the microcontroller , which supports smbus voltage levels .
the pic 16f877 is an 8-bit microcontroller , which has an on - chip eight - channel 10-bit analog - to - digital converter ( adc ) .  
also , upon command , the   microcontroller reads the temperature sample stored in the ram of the mlx90614 through the ic port and then converts and stores it in its ram as two 8-bit unsigned integers ( 0255 ) .  
the microcontroller also continuously samples the ecg signal on channel-0 with a sampling interval of 4 milliseconds ( 250 hz ) , which is sufficient to resolve a maximum frequency component of about 125 hz in the frequency content of the ecg signal according to the sampling theorem .  
we oversample to get a smoother plot of the ecg signal , but it is a modest oversampling because we do not want to overburden the microprocessor of the smart - phone while continuously plotting and refreshing the screen .  
samples are written directly to the serial port in asynchronous mode using the built - in uart of the pic16f877 , which is used to communicate with the bluetooth transceiver using ttl voltage levels .  
bluetooth provides a way to connect and exchange information between devices such as mobile phones , laptops , pcs , printers , digital cameras , and video game consoles over a secure , globally unlicensed short - range radio frequency .
it is a standard communications protocol primarily designed for low power consumption , with a short range ( 1 meter ( 0 dbm ) , 10 meter ( 4 dbm ) , and 100 meter ( 20 dbm ) ) .
we used the linkmatik 2.0 bluetooth transceiver module , which is a class 1 model that has an approximate range of 100 meters .  
the asynchronous data from the pic16f877 microcontroller is delivered to the linkmatik bluetooth module on the serial port at a speed of 9600 bps .
the bluetooth module is configured as a master , and the mobile phone is considered to be functioning as a slave .  
the signal acquisition unit sends data to the bluetooth module , which transmits data continuously , in blocks of 500 ecg samples ( a duration of 2 seconds long of lead - i ) ) plus a one temperature reading .
the bluetooth standard aims at guaranteeing reliability and robustness with acceptable security that stems from the fact that it uses frequency - hopped spread spectrum ( fhss ) technique , which generated an increased demand for applying bluetooth technology in the healthcare world .
also , bluetooth requires authentication to restrict connectivity to devices when configured in security modes .  
additionally , it uses encryption to employ secret keys where only authorized users can make data intelligible again .
gprs allows any handset to exchange data with a network entity through a packet - designed protocol on a multiple traffic channel circuit .
then , depending on the network and handset capabilities , the throughput of data exchange can reach 64 kbps .   with this technology ,
it is possible for a mobile phone to send more sophisticated data than sms messages can to the network entities .  
mms technology was introduced to provide gsm subscribers with the ability to send messages that are a combination of text , images or video , and sounds .  
mms is an essential component of 2.5 g cellular mobile phone systems and their evolution toward current 3.5 g systems .  
moreover , since mms messages can contain various forms of media data such as sound and video , this will give a more realistic and lively experience to the health - care provider , which will enable other diagnosis tests to be integrated into that mms message along with the ecg and body temperature .  
most importantly , since most new phones are mms capable , there is no need for special application software to display the ecg on the mobile phone directly , which is received as bitmap / jpeg image .  
additionally , even on smart - phones and pdas that have small to medium sized screens , most devices have a zoom - in function that will enable enlargement of an ecg graph to be inspected .
the setup for the patient ( client ) unit is composed of mobile application software running on a smart - phone ( or pda ) in our mms - based telemedicine system that we have developed to transfer a patient 's ecg signal and body temperature .  
this mobile application is capable of opening a virtual communication serial port of the smart mobile phone , where in this case it is the bluetooth driver .  
the software application takes the received bytes from the buffer and plots 500 bytes of ecg samples at a time ( 2 seconds ) and displays the temperature in degrees celsius .  
it also accumulates 16 kb of data samples before they are written to sd memory card of the device . the platform or operating system ( os ) used to run the application software
will influence the choice of the preferred programming language used in implementing the software .  
the smart - phone we have used was the motorola q mobile phone with windows mobile 5 operating system , which has 64 mb ram and 64 mb of mini - sd   .  
the application software was developed using the c # programming language on microsoft visual studio in conjunction with the windows mobile 5 software development kit ( sdk ) .  
figure 5 shows the motorola q smart - phone with the application software running and displaying the received 500 byte ecg signal and temperature via bluetooth .  
the application software has a capture button , which allows for saving the display as an image for storage and to be sent as an mms message when desired .  
the wave form is plotted in window   with an area of 320  130 pixels .  
the amplitude resolution is 0.0144 mv / pixel for the single - lead ecg display , and the temporal resolution is 0.00625 s / pixel .
also , stored ecg plots and raw data samples can be downloaded to a pc for further processing or storage .  
figure 6 shows a sample ecg plot and displayed body temperature image , which was downloaded using bluetooth on to a windows xp - based personal computer .  
as we have pointed out in the introduction , newer wireless access technologies that offer dedicated data services beyond the basic 2 g cellular system are deployed mostly in or around crowded high - income metropolitan areas .  
however , sms is an integral part of the original 2 g gsm system and its evolution .   not only does sms offer an alternative means of transmission in a 2 g cellular communication system like gsm but also at times it can be the only available or most efficient option .   this can be evident when considering the vulnerable nature of the traditional wireless voice channel used by a cellular phone to establish a connection with the serving base station , including dropped calls and service denials during peak hours .  
sms uses different sets of channels that are more robust than those assigned for voice ( or wireless modems ) , which can enable a user to send and receive sms messages at times when s / he can not get access to the network for voice calls .
this is because sms uses control channels of a cellular system , which are used for the initial call setup rather than the regular voice traffic channels .
furthermore , sms is being used for many commercial and government transactions and services , and this use is rapidly expanding .
our sms - based transmission scheme of the ecg signal and body temperature in the proposed telemedicine system uses the same hardware components and application software on the client smart mobile phone as those of the mms - based one but requires additional application software to be installed on the consultation ( doctor ) unit at the receiving device .  
also , an alternate simpler arrangement where the application software installed on the patient   unit can be eliminated was demonstrated in , but the microcontroller program had to be augmented to perform sms message construction and transmission .   here , as was done in the mms transmission scenario , and in identical steps
, the software application takes the received bytes from the buffer and plots 500 bytes of ecg samples at a time and displays the temperature in degrees celsius .  
however , when the sms option is selected from the menu button to activate transmission via sms , we derive an ecg signal sampled with an interval of 8 milliseconds ( 125 hz ) .  
this is done by taking alternate samples from the temporarily stored ecg signal which was sampled with intervals of 4 milliseconds ( 250 hz ) .  
the new samples are stored in another buffer in memory , along with the temperature reading , for further processing .   according to the sampling theorem , this sampling frequency is sufficient to resolve a maximum frequency of about 62 hz in the ecg spectrum .  
we use this particular lower frequency for reasons that will be discussed subsequently when demonstrating sms message structure and capacity .  
after completion of signals acquisition , the application software feeds the data bytes of the desired length to the sms message construction application program interface ( api ) , which will prompt the user to enter the consultation / server unit mobile number .
there are two ways of sending and receiving sms messages :   by text mode and by protocol description unit ( pdu ) mode .  
the text mode is just an encoding of the bit stream represented by the pdu mode .  
the pdu mode offers to send binary information in 7 bit , 8 bit , and 16 bit format .   when using the default 7-bit characters , the sms message , as specified by the etsi organization documents gsm 03.40 and gsm 03.38 , can be up to 160 characters long , while
messages that use 8-bit characters are not usually viewable by the phones as text messages ; instead they are used for data in smart messaging .  
unicode ( ucs2 ) text messages use 16-bit characters , and the maximum length of the message is reduced to 70 characters only .
it directs constructing the entity of the message when sending an sms and unconstructing sms messages when receiving them to extract the contents under the operating system environment .   in pdu mode , we are able to specify the desired destination mobile number , encoding of the message content , and length of time an sms message stored in the network if the mobile device is turned - off , and delivery receipts can be requested .  
also , a received sms message can display several specifications like the sender phone number , time and date , and type of content to undertake the appropriate decoding process . at the client unit , the api packs the temperature and ecg samples in a predetermined number of sms messages that depends on the desired length of duration of the patient 's ecg .  
since we have originally sampled our ecg signal using the microcontroller adc with 8-bit resolution and subsequently stored as 8-bit unsigned integers ( bytes ) in the api buffer , we use 8-bit data encoding when constructing the sms messages .   as was previously mentioned , this will allow us to load 140 samples ( bytes ) in each sms message .   and with a sampling frequency of 125 hz ( 8 milliseconds intervals ) , each sms message is capable of displaying an ecg segment of 1.12 seconds .  
however , we only transmit 130 samples of ecg signal and one sample ( three bytes ) of the temperature in each sms message ; this will leave seven unused bytes for other vital signs if desired .  
although , in principle , the gsm standard allows for 255 ( 2  1 ) messages to be concatenated and received as one long sms message , the maximum limit set by most gsm networks allows sms concatenation up to six messages .   in our case
, this will allow us to transmit up to 6.24 seconds of ecg at a time .
the at commands are standard control tools based on gsm ( 07.07 ) to establish communication with the mobile gsm phone or modem .  
the command sets consist of strings , which will enable the exchange of serial data , according to certain syntax rules , between the mobile and the laptop or pc at the consultation / server unit if this arrangement is preferred . as an example ,  at   +   cmgs   =   140  is a command for sending an sms message , where  at  is a prefix used for all commands ,
 cmgs  is a description to the kind of task to be performed , and  140  is the message length . similarly , when a message is received by the laptop according to the at command 
at+cmgr=1  , the program will be able to divide the message contents in order to extract the binary 8-bit samples to display the temperature and plot the ecg segment in the user data ( ud ) part of the sms(s ) .
the simplest setup for a consultation ( doctor ) unit would be a mobile application running on a pda or a smart - phone .  
this mobile application is capable of opening the sms messages that carry in their payload the temperature and ecg samples , decode the sms messages , and extract the ud part to display the temperature and plot the ecg of the patient on the screen of the pda itself .  
an alternate arrangement for the server unit is to establish a serial connection between the mobile phone or modem and a laptop via a serial com port using a bluetooth transceiver or by a direct physical connection through a standard rs232 or usb cable .
the software application running on the laptop performs the background communications with the mobile phone using at commands .  
we have chosen the latter arrangement of the consultation unit for convenience and easier interface to other windows pc - based analysis software .
the platform used to run the software will influence the choice of the preferred programming language used in implementing the software .  
we used visual basic programming language to implement the server application software for a windows - based laptop .  
the software starts with initializing and registering the desired com port . as shown in figure 7 , the software main menu will be disabled until com port number selection is correct , and connection with the mobile is made . reading the sms messages from the mobile phone and decoding their contents is the heart to this software .  
the software decodes each sms message and extracts the time and date , originating mobile number , the transmitted patient 's temperature , and ecg samples in the payload .
it will also perform concatenation of received sms messages when this option is used .  
the contents of the messages are displayed in the upper - half of the interface screen as shown in figure 8 .  
the first three digits represent temperature with an implied decimal point after the first digit from the right .
when a particular sms message is selected from the list of received messages in the upper - half of the interface window , the software converts the ecg data points carried in the message to mille - volts , where they are listed in a table in the lower - left corner of the interface window and are also plotted to scale to the right in the designated area as shown in figure 8 .   simultaneously , the temperature value is displayed in degrees celsius at the top of the ecg plot .
a proposed low - cost mobile patient monitoring system that utilizes mobile messaging services ( mms / smss ) was designed , developed , and tested .  
an infrared temperature sensor was integrated with a three - electrode ecg signal acquisition circuitry in a module that communicates with a mobile smart - phone via bluetooth .  
also , application software running on the smart - phone was developed to receive and plot the ecg signal and display the body temperature before transmission via mms or storage in a secure digital memory card .  
alternatively , sms can be used for transmission , and a pc - based application software was developed to display the received biosignals at the consultation ( doctor ) unit .  
the new system has a significantly reduced size and weight , which improves its versatility .  
in addition , mms makes it a universally capable telemedicine system with a great potential for expansion .  
furthermore , sms can be the most suitable , if not the only , method of data transmission in emergency situations in a remote area where broadband data communications ( like gprs , edge ,  , etc . )
 a mobile monitoring system utilizing bluetooth and mobile messaging services ( mms / smss ) with low - cost hardware equipment is proposed . 
 a proof of concept prototype has been developed and implemented to enable transmission of an electrocardiogram ( ecg ) signal and body temperature of a patient , which can be expanded to include other vital signs . 
 communication between a mobile smart - phone and the ecg and temperature acquisition apparatus is implemented using the popular personal area network standard specification bluetooth . when utilizing mms for transmission , the mobile phone plots the received ecg signal and displays the temperature using special application software running on the client mobile phone itself , where the plot can be captured and saved as an image before transmission . 
 alternatively , sms can be selected as a transmission means , where in this scenario , dedicated application software is required at the receiving device . 
 the experimental setup can be operated for monitoring from anywhere in the globe covered by a cellular network that offers data services . 
1. Introduction
2. System Concept
3. The Patient Unit
4. ECG Transmission via MMS
5. ECG Transmission via SMS
6. Conclusion