Wireless LAN Based Experiment and Evaluation of Effect on the Two-State ECG Compression Algorithm

In this paper, an experiment for testing the efficacy of the two-state ECG compression algorithm in a WLAN transmission is presented. The handshaking process and UDP protocol for sending data from Client to Server, which is also used widely in many available wireless monitoring devices. In the experiment, PER, Throughput, PRD, PRDN and delay times were used to evaluate the effect of the compression on the transmission in two situations: with obstructions between Client and Server and without obstructions. The ECG arrhythmia recordings were used as database for the experiment. From the table 1 to 6, the results confirm that the compression algorithm helps both reduce the errors and the bandwidth usage with lower PER, PRD, PRDN and Throughput. The higher the compression ratio the better the results were. Besides that, the package loss which could be observed somewhere in the results was solely due to the transmission, not the compression algorithm. Also, the algorithm was proved its flexibility when adapted to different package lengths (90 and 180 samples). In conclusion, the two-state compression algorithm is proved to be ready for the practice.

pdf7 trang | Chia sẻ: huongthu9 | Lượt xem: 383 | Lượt tải: 0download
Bạn đang xem nội dung tài liệu Wireless LAN Based Experiment and Evaluation of Effect on the Two-State ECG Compression Algorithm, để tải tài liệu về máy bạn click vào nút DOWNLOAD ở trên
Journal of Science & Technology 123 (2017) 036-042 36 Wireless LAN Based Experiment and Evaluation of Effect on the Two-State ECG Compression Algorithm Duong Trong Luong*, Nguyen Thai Ha, Nguyen Minh Duc, Nguyen Tuan Linh, Nguyen Duc Thuan Hanoi University of Science and Technology - No. 1, Dai Co Viet, Hai Ba Trung, Hanoi, Viet Nam Received: November 02, 2016; Accepted: November 03, 2017 Abstract ECG signal tele-monitoring that uses WLAN has been investigated and developed in recent years in order to enhance the efficiency of cardiovascular disease treatment and monitoring. However, there are several problems that may occur during the ECG signal transmission-receiving process, including bit errors and data packet loss. The causes of such problems include obstructions signal weakening due to far distances, larger number of users accessing the network at the same time, the presence of different WiFi networks operating at the same frequencies as that of ECG-WLAN and especially transmitted data packet sizes, of which significant changes will result in data loss on the transmission line. ECG signal compressing before transmitting is, therefore, critical. A two-state ECG compression algorithm has been proposed by the same group of authors in [1] and [2]. This paper describes the experiment and evaluation of the efficiency of the proposed WLAN-based two-state ECG compression algorithm. ECG data used in this experiment was from an arrhythmia ECG database. The results of experiment were evaluated by comparing some parameters such as packet error rate-PER, signal throughput, percentage of RMS difference (PRD), PRD Normalized (PRDN) and time delay between compressed and uncompressed signals and showed that the two-state compression algorithm helped to improve efficacy in ECG signal- WLAN transmission. Keywords: Two-state ECG compression, packet error, throughput, Wireless LAN, ECG data 1. Introduction Cardiovascular* disease is among the most fatal diseases, with the sudden death rate up to 50% [1]. Therefore, quick, on-time and efficacious responses from doctors to any suspected symptoms are vital. That leads to the development of a number of ECG tele-monitoring systems using WLAN (wireless local area network) [1-5], a simple, low-cost and common wireless network being currently in operation in most of the hospitals in Vietnam and over the world. WLAN offers a bandwidth up to 100MHz and a data rate of 600Mbps (IEEE 802.11n) [6,7] that is suitable for monitoring a large number of patients from distance. However, network congestion can still occur when too many devices accessing the network in one time causing delay in data transferring. Furthermore, noise interference from surrounding environment can likely be serious enough to cause errors in data or data packet loss. A common solution for tackling these problems is to compress the ECG at the transmitters which helps reduce the bandwidth usage, the transmission delay, the network congestion and errors in data [8]. Recently, we have developed a compressing method, called two-state ECG * Corresponding author: Tel: (+84) 967008876 E-mail: luong.duongtrong@hust.edu.vn compression algorithm, which achieves a good balance between high compression ratio and low error in decompression [9,10]. This algorithm’s advantage lies in its flexibility, with its compression ratio being adjustable to suit the WLAN condition. The concept of the algorithm is to divide the ECG into two periods: (i) the simple period including P and T waves (low-frequency fluctuation) compressed with higher compression rate hCR, and (ii) the complex period including QRS complex (high-frequency) compressed with lower compression rate lCR [9,10]. In publication [10], the algorithm was tested with different pairh CR-lCRs of 2-2, 4-2, 6-2, 8-2, 10-2, 6- 3, 9-3, 12-3, 15-3, 8-4, 12-4, 16-4, 20-4, 10-5, 15-5, 20-5 and 25-5 in 48 MIT-BIH ECG recordings and 9 CU ventricular tachyarrhythmia ECG recordings [11]. The most compromised compression ratio in the test was 15-3 with good compression ratio, low PRD (Percentage RMS Difference) and low distortion in P, R and T peaks (low PMAE) [10]. In this paper, the algorithm is tested in the realistic WLAN transmission environment with different compression ratios and different packet lengths. The concept of the experiment will be presented in the next section. 2. WLAN ECG Transmission experiment using Two-state ECG Compression Algorithm. Journal of Science & Technology 123 (2017) 036-042 37 Processing Transmission Channel Setting Data receiving Repeat Yes Waiting for connection Request No Connection Waiting for User Data send to Server Connection Abort Waiting for Connection Request Processing No Data sending Transmission Channel Setting Yes Yes No 2.1. The experiment scenario In this experiment, the simple Client-Server topology is used for testing the ECG compression algorithm. The model of a Client-Server WLAN ECG transmission using the compression algorithm is shown in Fig.1. The ECG database is the ECG arrhythmia recording set, which can be found in [11]. In the transmitter (Client) side, after the signal processing stage to reduce the power-line noise and baseline drift from the signal, the ECG is compressed using the two-state compression algorithm [10] and then fed to a WiFi module (integrated in Client) and sent to a router. In the receiver (Server) side, the ECG signal received from the router will be decompressed for storing and/or displaying. The router used in the experiment is the Tenda W311R with the transmit power of 17dBm and gain of 5dBi. The reception sensitivity to different rates is: 54M:-74dBm@10% PER; 11M:-85dBm@8% PER; 6M:-88dBm@10% PER; 1M:-90dBm@8% PER. The Server is a Dell Vostro 2440 (Intel Core i5-3210M @ 2.50GHz, Windows 10 64bit), while the Client is aDell Inspiron 3548 (Intel Core i5-4200@1.6GHz, Windows 7 64bit, card Wifi Intel Wireless-N 7260). The transmit power of the Client is set at 20dBm. Fig. 1. The model of the Client-Server WLAN ECG transmission experiment with decompression. The most widely used WLAN standard in Vietnam is IEEE 802.11 due to its flexibility, simplicity and low cost [4]. There are four sub- standards in IEEE 802.11 including 802.11a, 802.11b, 802.11g and 802.11n. 802.11a uses the transmit frequency of 5GHz which is not popular in Vietnam, while 802.11n is complicated and high-cost compared to other three, although it can uses both transmit frequencies of 5Ghz and 2.4GHz [6]. The rest two (802.11b and 802.11g) use only 2.4GHz but they provide good noise immunity (802.11b), good data rate and throughput (802.11g) [12]. Meanwhile, ECG signal with a normal sampling rate of 200-500Hz and the sample resolution of 11-16bit [5] often requires such characteristics of 802.11b and 802.11g to be preserved in the Server side. As a result, the combined topology 802.11b/g is used for the experiment. We only intervened the Application layer (in the OSI model) since testing the compression algorithm is our sole focus. We also chose both TCP and UDP protocol in transmission depending on the kind of package. TCP protocol though possesses a mechanism of controlling congestion, such mechanism increases significantly the transmission delay when used in a noisy environment (high bit error rate - BER) in hospitals [13]. Meanwhile, the allowable delay time for the real-time patient monitoring applications does not exceed 3 seconds [13]. UDP, on the other hand, guarantees the real-time application but provides no package controlling mechanism (no retransmission when an error occurs). In fact, UDP is used in most of the wireless patient monitoring devices. Hence, the package loss and the transmission delay of UDP were also evaluated in the experiment. a) b) Fig. 2. Handshaking stage at the Server (a) Client (b) The process of sending-receiving is described as below: First stage: handshaking. Server has to finish the handshaking process with Client to start a data communication channel. In this stage, Client will send information related to the compression to Server containing signal sampling rate, compressed or full signal, the two compression rates hCR-lCR if compressed signal. Because of the importance of these information, this handshaking stage is done in TCP protocol. The stage is described in Fig.2. Second stage: data sending. In this stage, Client starts sending ECG to Server using UDP protocol. The effect of different compression ratios on the decompressed signal’s quality will be evaluated here. Journal of Science & Technology 123 (2017) 036-042 38 Third stage: end the channel. A notification package is sent from Client to Server using TCP protocol to close the channel 2.2. Experiment setup and parameter selection 2.2.1. Package length and compression ratio selection It is obvious that there is a delay in getting all the samples before operating the compression. However, this delay time is counted into the overall transmission delay which is not allowed to exceed 3 seconds in the real-time applications [13]. Choosing a small package length each time helps reduce the bit error [8] that leads to the package loss in the Application layer [6]. However, too small packages on the other hand increase the header-data length ratio and hence waste the bandwidth resources. In the experiment, two different package lengths of 90 samples and 180 samples are chosen, which are not too small and whose delay times are 90*1/360=0.25s and 180*1/360 = 0.5s (the sampling rate is 360Hz). The process of communication regarding the package length is shown in Fig. 5. In terms of compression ratio, a number of pair hCR- lCRs have been validated in [9] to have acceptable errors in decompression including hCR-lCR={4-2, 6- 2, 8-2, 10-2, 6-3, 9-3, 12-3, 15-3}. These ratios are also picked for this experiment. There are 500 packages of ECG in total in one experiment of transmission with one compression ratio and one package length. 2.2.2.Software Two different software are also written separately for Server and Client with their GUI shown in Fig.3 and 4. 2.2.3.Evaluating parameters Some common parameters are often used for evaluating compression algorithms including Compression Ratio – CR, Packet Error Rate – PER, throughput, Percentage RMS Difference – PRD, Percentage RMS Difference Normalized – PRDN and amd the total delay.  Compression Ratio (CR) CR = Bytes before compressionBytes after compression (1)  Packet Error Rate (PER) PER(%) = sent packages − received packagessent packages . 100% (2) The number of sent packages here is 500 packages, while the number of received packages is recorded in a .csv file generated by the Server software. The packages are numbering from 0-255 and the number is reset back to 0 after the 256th package. For each compression rate and each package length, we repeat 10 times of the transmission and take the average PER. According to [6], the maximum allowable package loss is 5% in the ECG real-time application, or it will lead to fault diagnosis. The cause could be some objects staying in between Client and Server, the distance or the network congestion, and the package will be discarded if the Datalink layer cannot fix the error bits [7]. Fig. 3. GUI of the Server’s software displaying PER and the pair hCR-lCR Fig. 4. GUI of the Client’s software while sending ECG to Server.  Throughput: Throughput (byte/s) is calculated at the output of the Client’s Application layer. Journal of Science & Technology 123 (2017) 036-042 39 Start ECG Data Reading Samples number: = 0 Packets number: = 0 Sampling with 360Hz; Samples number ++ Samples number = 90(180)? Two-state Compression/ No compression Packets number = 500?End No Yes No Yes Transfer to transport layer for transmitting; Packets number ++ 308-C9 Room 307-C9 Room 306-C9 Room Fig. 5. The communication process regarding different package lengths After each second, the total sent bytes is stored in .csv file generated by the Client’s software. After all 500 packages are sent, an average throughput is calculated.  Percentage RMS Difference ( PRD): PRD compares the original signal before compression and the signal after the decompression. In this experiment, PRD represents for the error at the final output signal at the Server caused by both the package loss and the compression algorithm itself.The lower the PRD, the better the signal is preserved [14]. Similar to PER, PRD here is taken average of the 10 transmissions for each compression ratio and each package length. PRD(%) = 100% .�∑ (yi − yı�)2N−10 ∑ (yi)2N−10 (3) yi, y�i are respectively the ith sample of the original ECG and the ECG after being decompressed. N is the total samples.  Percentage RMS Difference Normalized (PRDN) PRDN is another parameter for evaluating the error and is calculated as in (4). PRDN(%) = 100%.�∑ (𝑦𝑦𝑖𝑖 − 𝑦𝑦𝚤𝚤�)2𝑁𝑁−10 ∑ (𝑦𝑦𝑖𝑖 − 𝑦𝑦�) 2𝑁𝑁−10 (4) 𝑦𝑦�is the average value of the original ECG sample.  The total delay (𝜏𝜏𝐷𝐷𝐷𝐷𝐷𝐷𝐷𝐷𝐷𝐷) 𝜏𝜏𝐷𝐷𝐷𝐷𝐷𝐷𝐷𝐷𝐷𝐷 = t𝑐𝑐𝑐𝑐𝑐𝑐𝑐𝑐𝑐𝑐𝐷𝐷𝑐𝑐𝑐𝑐𝑖𝑖𝑐𝑐𝑐𝑐+ 𝑐𝑐𝐷𝐷𝑐𝑐𝑝𝑝𝑖𝑖𝑐𝑐𝑝𝑝 + t𝑡𝑡𝑐𝑐𝐷𝐷𝑐𝑐𝑐𝑐𝑐𝑐𝑖𝑖𝑐𝑐𝑐𝑐𝑖𝑖𝑐𝑐𝑐𝑐+ t𝑑𝑑𝐷𝐷𝑐𝑐𝑐𝑐𝑐𝑐𝑐𝑐𝑐𝑐𝐷𝐷𝑐𝑐𝑐𝑐𝑖𝑖𝑐𝑐𝑐𝑐(5) The compression and packing time is calculated in Client, while the decompression time is recorded in Server. The transmission time is approximated as a half of the Round Trip Time (RTT), also called Round Trip Delay Time (RTD), which is the time finishing sending the package from the transmitter to the receiver plus the time of confirming the package arrival. All the numbers are taken average from 500 packages and stored in a .csv file. 2.2.4. Experiment setup The system is tested in two conditions: with obstructions and without obstructions staying in between Client and Server. In the case with obstructions, Server and the router are placed inside the room 306 as shown in the Fig.6, while Client stays outside in the corridor with the objects containing the brick wall of 20cm thickness, glass door and windows with iron bars. In the transmission without obstructions experiment, Server and Client are placed on the same line and in an open space, with the distance of 150m away from each other. Fig. 6. The scenario of the transmission with obstructions between Client and Server. 3. Rerults 3.1. Transmission with obstructions between Client and Server During the experiment, the results are interestingly different between the working days and the weekends. On the working days: The distance between Client and Server was 25m (Fig.6). The signal power at this position was - 80dBm with a chosen Wifi network shown in Fig.7. With package length of 90 samples: the average delay time (𝜏𝜏𝑡𝑡𝑐𝑐ễ) with all compression ratios was 37.3ms. It proves that the compression and decompression were simple enough for the application. With the sampling time of 90*1/360=0.25 seconds, the total delay was 287,3ms Journal of Science & Technology 123 (2017) 036-042 40 which is also accepted for a real-time monitoring. The results of the experiment with different compression ratios is presented in table 1. As can be seen, in the case of sending data without compression, the PER is 8.6%, PRD=0.62423% and PRDN = 34.3185% indicating it the worst case among others. With compression and with the increase of CR (hCR-lCR=4-2, 6-2, 8-2, 10-2, 6-3, 9- 3, 12-3, 15-3), better PERs, PRDs and PRDNs were achieved. In the least CR of hCR-lCR = 4-2, PER was 7.2%, Throughput was 5 times lower (only 146 byte/s) compared the uncompressed case. While in the highest CR of hCR-lCR =15-3, PER was down to merely 1% and Throughput was nearly 1/10 of the uncompressed case. The delay time 𝜏𝜏𝑡𝑡𝑐𝑐ễ although fluctuated among cases, the numbers were generally low (below 52ms) which is fast enough for the real- time applications. Fig. 8 displays the ECG received and decompressed on working days, in case of the highest CR of hCR-lCR =15-3 and the signal power of -80dBm. Fig. 7. Available Wifi networks at the place of the experiment. Table 1. Results with the packet length of 90 samples on working days and with obstructions between Client and Server. With package length of 180 samples: the average delay time (𝜏𝜏𝑡𝑡𝑐𝑐ễ) with all compression ratioswas 35ms, similar to the case of 90-sample package. With the sampling time of 180*1/360=0.5 seconds, the total delay was 535ms, still low compared the maximum allowable delay time of 3 seconds. The results in this package length case can be found in table 2 with a same trend in 90-sample package case. It is, along with the increase of the CR, the lower PER, Throughput, PRD and PRDN we get. Throughput results were lower than in 90-sample case that is understandable because of the lower number of headers throughout the whole transmission. In order to observe a heavy distorted signal, we increased the objects by placing Client in the Room 306 (Fig.6) and repeated the transmission with the package length of 90 samples and hCR-lCR = 15-3. The distorted ECG in this situation is shown in Fig.9, with PER of 16.28% and the signal power of -90dBm only. Some periods went missing which was the result of the transmission only, not of the compression algorithm. Table 2. Results with the packet length of 180 samples on working days and with obstructions between Client and Server. Fig. 8. ECG after being decompressed in the experiment with obstructions between Client and Server on working days. The package length was 90 samples, the compression ratio was hCR-lCR = 15-3 and the signal power was -80dBm. On weekends: In the same position with the signal power of -80dBm (the distance between Client and Server is 25m), PERs were found to be small (below 5%) even in the uncompressed case, so it is hard to recognize the Chosen Wifi network Channel Security Code Network type Journal of Science & Technology 123 (2017) 036-042 41 effect of the compression algorithm. Hence, Client was moved further to a distance of 30m (Fig.6) where the signal power was -85dBm. The results corresponding with the packet length of 90 and 180 samples are respectively presented in the table 3 and 4. Fig. 9. Distorted ECG when increasing obstructions between Client and Server. Table 3. Results with the packet length of 90 samples on weekends and with obstructions between Client and Server. Table 4. Results with the packet length of 180 samples on weekends and with obstructions between Client and Server. As clearly seen in table 1, 2, 3 and 4, with both options of package lengths in the transmission with objects between, the compression ratio of 15-3 produced the best outcome of CR, PER, Throughput, PRD and PRDN. 3.2. Transmission without obstructions In this experiment, the distance between Client and Server is 150m where the measured power signal is - 78dBm in average but there was a big fluctuation in the power signal. Table 5 and 6 exhibits the results with the package length of 90 and 180 samples on working days. Table 5. Results with the packet length of 90 samples on working days and without obstructions between Client and Server Table 6. Results with the packet length of 180 samples on working days and without obstructions between Client and Server From table 5 and 6, a same trend with the transmission with obstructions can be observed, where PER, Throughput, PRD and PRDN all decreased when increasing the compression rate from 4-2 to 15-3. 4. Conclusion In this paper, an experiment for testing the efficacy of the two-state ECG compression algorithm in a WLAN transmission is presented. The Client- Server topology was used using TCP protocol for handshaking process and UDP protocol for sending data from Client to Server, which is also used widely in many available wireless monitoring devices. In the experiment, PER, Throughput, PRD, PRDN and delay times were used to evaluate the effect of the compression on the transmission in two situations: with obstructions between Client and Server and without obstructions. The ECG arrhythmia recordings were used as database for the experiment. From the table 1 to 6, the results confirm that the compression algorithm helps both reduce the errors and the Due to Package loss Journal of Science & Technology 123 (2017) 036-042 42 bandwidth usage with lower PER, PRD, PRDN and Throughput. The higher the compression ratio the better the results were. Besides that, the package loss which could be observed somewhere in the results was solely due to the transmission, not the compression algorithm. Also, the algorithm was proved its flexibility when adapted to different package lengths (90 and 180 samples). In conclusion, the two-state compression algorithm is proved to be ready for the practice. References [1]. Cai Ken, Liang Xiaoying “Development of WI-FI Based Telecardiology Monitoring System”. Intelligent Systems and Applications (ISA), May (2010), pp.1-4. [2]. Duong Trong Luong, Nguyen Duc Thuan, “Evaluation of packet errors in wireless electrocardiogram (ECG) signal transmission system using wifi technology”. Journal of Science and Technology. Technical Universities, Vietnam, No.96, (2013), pp.40-46. [3]. Upkar Varshney, “Patient monitoring using infrastructure-oriented wireless LANs”. Int.J. Electronic Healthcare, Vol. 2, No. 2, (2006), pp.149- 164. [4]. Kyungtae Kang, Kyung-Joon Park, Jae-Jin Song, Chang-Hwan Yoon, and Lui Sha “A Medical-Grade Wireless Architecture for Remote Electrocardiography”. IEEE transactions on information technology in biomedicine, vol. 15, No.2, (2011), pp.260-267. [5]. Kyungtae Kang, Junhee Ryu, Junbeom Hur, and Lui Sha, “Design and QoS of a Wireless System for Real- Time Remote Electrocardiography”. IEEE journal of biomedical and health informatics, vol. 17, no.3, (2013), pp.745-755. [6]. Rachana Khanduri, S.S. Rattan, “Performance Comparison Analysis between IEEE 802.11a/b/g/n Standards”. International Journal of Computer Applications, Vol. 78, No.1, (2013), pp.13-20. [7]. Kenguka M. Kenguka, Atindimile S. Kumchaya, “Improving WLAN performance with enhanced mac, node cooperation and two-stage FEC scheme”. Journal of Theoretical and Applied Information Technology, (2006), pp.14-20. [8]. Jun Yin, Xiaodong Wang and Dharma P. Agrawal “Optimal Packet Size in Error-prone Channel for IEEE 802.11 Distributed Coordination Function”. WCNC / IEEE Communications Society, (2004), pp. 1654-1659. [9]. Duong Trong Luong, Nguyen Minh Duc, Nguyen Tuan Linh, Nguyen Duc Thuan, “A novel two-state ECG compression Algorithm used in telemedicine”. Tạp chí khoa học và công nghệ các trường Đại học 109 (2015), pp.022-027. [10]. Duong Trong Luong, Nguyen Minh Duc, Nguyen Tuan Linh, Nguyen Thai Ha, Nguyen Duc Thuan, “Advanced Two-State Compressing Algorithm: A Versatile, Reliable and Low-Cost Computational Method for ECG Wireless Applications”. International Journal of Soft Computing and Engineering (IJSCE), Volume-5 Issue-6, (2016), pp. 56-70, [11]. [12]. Mr. Sankusu Sharma, Prof.Rinku Shah, “Comparitive Study of IEEE 802.11a, b, g & n Standards”. International Journal of Engineering Research & Technology (IJERT), Vol. 3 Issue 4, (2014), pp. 1846- 1851. [13]. Álvaro Alesanco and JoséGarcía, “Clinical Assessment of Wireless ECG Transmission in Real- Time Cardiac Telemonitoring”. IEEE transactions on information technology in biomedicine, vol. 14, no. 5, (2010), pp. 1144-1152. [14]. Mohammadreza Balouchestani, Kaamran Raahemifar and Sridhar Krishnan “High - Resolution QRS Detection Algorithm for Wireless ECG Systems Based on Compressed Sensing Theory”. IEEE explore (2013), pp. 1326-1329.

Các file đính kèm theo tài liệu này:

  • pdfwireless_lan_based_experiment_and_evaluation_of_effect_on_th.pdf
Tài liệu liên quan