| Cardiovascular disease is the leading cause of human death.Monitoring and diagnosis of cardiovascular disease,mostly in hospitals.However,patients often suffer sudden death without timely rescue,because this disease has sudden characteristics.If it can realize remote dynamic monitoring of the patient’s ECG for early prevention of cardiovascular disease,early treatment to reduce the mortality of great significance,especially for patients in remote areas enormous significance.The popularity of mobile terminal and the continuous development of Internet technology makes the concept of mobile medical attracted widespread attention.Let dynamic mobile medical monitoring disease,remote diagnostics a reality,the key technology of mobile health care has become a hot topic of research staff.In response to the needs of remote dynamic ECG monitoring,this thesis studies the design methods and related cloud processing technologies of mobile phone monitoring terminals based on wearable ECG acquisition terminals.At the same time,the adaptive R wave detection algorithm is embedded in the system by analyzing the ECG signal.Finally,the thesis developed a remote dynamic electrocardiogram monitoring system based on mobile medicine.1.Aiming at the data transmission characteristics of the system collection terminal-mobile terminal-server,the thesis designs the system transmission protocol and interface protocol,which is the wireless transmission protocol of data between the wearable ECG collection terminal and the mobile terminal,and the data between the mobile terminal and the cloud server Interactive interface protocol2.This thesis adopts a modular idea to build the functional architecture of the mobile terminal of the system,including the patient terminal and the medical terminal.The patient terminal is bound to the ECG signal acquisition device worn by the patient and the patient’s ECG data is acquired in real time for user measurement.ECG data can be uploaded to the cloud server through the xUtils framework and data can also be stored locally.Use Gson to parse the cloud server response data and display patient file information and measurement records.The medical care terminal uploads parameters to the cloud server through the xUtils framework and the Volley framework according to the cloud server interface protocol to perform network asynchronous request and image loading.And use Gson to parse and display the acquired cloud server data.The medical care terminal realizes the medical care authentication through login verification and realizes the functions of patient authentication,user management,area inquiry,user inquiry,etc.through various protocols.The early warning information and the processed time of the patient are displayed in time by screening time and abnormal records to realize the function of early warning information.3.This thesis uses a model-view-controller architecture to design the cloud server to achieve data interaction between the patient and the mobile medical terminal.The mobile terminal transmits the parameter request data to the server through the url address.JDBC serves as a bridge between the server and the database.It matches the user’s request to the persistent layer table or object and reads and saves from the database through the data access layer.Then return the response result to the mobile terminal in JSON format for display.In order to ensure the security and effectiveness of data transmission,the data transmission between the mobile terminal and the cloud server uses a combination of dynamic token and DES algorithm to verify and encrypt and decrypt the data.4.According to user needs,the system is equipped with an adaptive R wave detection algorithm.In order to achieve real-time ECG monitoring,the thesis proposed a RR interval calculation method based on adaptive differential threshold and double threshold setting median to select and sort.The algorithm can realize rapid ECG signal R wave detection,which has the characteristics of small calculation amount and high real-time performance.It is suitable for mobile medical terminals.The accuracy of the algorithm in this thesis is 99.75%in the static case and the adaptive time-consuming time is 5.8s.In the dynamic case,it reaches 93.22%and the adaptive time-consuming time is 7.3s.Heart rate error±2 beats/min under static conditions.This system tests different versions of mobile phones.Test results show that the system adapts to mainstream mobile phones with different screen resolutions and different brands.In the test,the system has no abnormal function,its data transmission is stable and the code is reliable and safe.In actual operation,the mobile terminal maintains a fluency of less than the 16ms standard line per frame.There is no stuck phenomenon or overdraw phenomenon. |