A secure transmission method for heterogeneous home medical and health data based on geometric transformation
By designing finite state machines and using geometric transformation methods on cloud servers and heterogeneous edge clients, we solve the problems of high device performance requirements and low data availability in secure data transmission, achieving low-consumption and efficient data transmission, which is suitable for the elderly Secure transmission of human smart home monitoring data.
Patent Information
- Application Number
- CN202410124047.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-30
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-01-30
AI Technical Summary
Existing data secure transmission methods have problems such as low data availability, high hardware requirements, long encryption and decryption time, and low storage performance. Especially in the transmission of smart home monitoring data for the elderly, this leads to excessive storage burden.
Adopt a secure data transmission method based on geometric transformation, realize secure transmission of data by designing finite state machines of cloud servers and heterogeneous edge clients, use the circular area formula for data conversion, reduce equipment performance requirements during the transmission process, and improve data Availability.
It achieves low device performance requirements, high data availability, short encryption and decryption processes, high performance and practical application value, reduces the storage burden of the cloud server, and improves the overall data transmission efficiency.
Smart Images

Figure CN117650952B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of secure data transmission, and in particular to a method for secure transmission of heterogeneous family medical and health data based on geometric transformation. Background Art
[0002] Most of the chronic diseases of the elderly are cardiovascular and cerebral diseases. To realize the intelligent monitoring of chronic diseases in the elderly, smart home applications such as vital sign monitoring pads, smart bracelets, and smart voice devices based on high-precision fiber optic sensing technology are emerging in an endless stream, realizing non-direct contact monitoring of the elderly and providing vital sign monitoring services to the elderly, such as heart rate, respiratory rate, body movement, and nighttime sleep. It can even monitor more detailed heart vibrations, and realize heterogeneous data integration by uploading to cloud servers. Based on the monitoring data of the elderly, data analysis is carried out to monitor common heart failure, respiratory and sleep diseases in the elderly, provide data monitoring for chronic disease management, emergency disease warning, rehabilitation and nursing of the elderly, and improve the comprehensive monitoring solution for the circulatory system of high-risk cardiovascular and cerebrovascular accidents in the elderly. These smart homes contain not only monitoring data, but also users' personal information, such as age, gender, medical history and other sensitive information. Since the monitoring data has great economic value, many attackers choose to intercept the data uploaded by heterogeneous edge clients.
[0003] Existing data security transmission methods include noise addition, encryption and framework. Although they have extremely high privacy protection performance, there are still many problems. The noise addition method protects privacy by adding noise to the data, and at the same time the introduction of noise reduces data availability; the encryption method can transmit data in an encrypted state, but has high hardware requirements, which brings an economic burden, and the encryption and decryption takes a long time, which brings efficiency problems; the framework method can realize data mining without uploading local data, but its parameter passing process will still leak privacy.
[0004] In addition, in the traditional solution, the cloud server receives all heterogeneous data and mines and stores them. Uploading all data without filtering will bring about data dimension disaster and cause a huge storage burden. Therefore, it is extremely important to design a lightweight, low-consumption, and high-performance data security transmission method. Summary of the invention
[0005] In order to solve the problems of low data availability, high hardware requirements, time-consuming encryption and decryption, and low storage performance in traditional data security transmission methods, the present invention provides a method for secure transmission of heterogeneous family medical and health data based on geometric transformation.
[0006] In order to achieve the purpose of the present invention, we will adopt the following technical solution to implement it.
[0007] A method for secure transmission of heterogeneous home medical and health data based on geometric transformation, comprising:
[0008] Design and define the finite state of the cloud server, and the relationship between its finite state transitions and the sending and returning of request and response packets;
[0009] Design and define the finite states of heterogeneous edge clients, and the relationship between their finite state transitions and the sending and returning of request and response packets;
[0010] The cloud server sends a request data packet to the heterogeneous edge client to initiate the request, and the heterogeneous edge client returns a response data packet to the cloud server in response to the request;
[0011] The response data packet includes a data packet containing local monitoring data, and the local monitoring data is obtained by using a geometric transformation method to realize secure transmission of data between a cloud server and a heterogeneous edge client; wherein the geometric transformation method includes the following steps:
[0012] First, confirm whether the data is 0: if the data is 0, transmit 0 directly;
[0013] Next, confirm whether the data is a character: if it is a character, find the ASCII code of the corresponding character and convert it into a number;
[0014] Then, for the data that is not 0 and the data after character conversion, convert it according to the circle area formula:
[0015] Y=πX 2
[0016] Where X is the locally monitored data, Y is the converted transmission data, and π is 3.14.
[0017] As a preferred solution of the present invention, the request data packet includes:
[0018] Ask_service package: The cloud server sends the Ask_service package to the heterogeneous edge client to inquire about the service status of the heterogeneous edge client. The Ask_service package includes five fields: P_ID, CS_Add, C_Add, R_Service, and T_Stamp. Among them, the P_ID field indicates the package sequence number, and 01 indicates the sequence number of the Ask_service package; CS_Add indicates the cloud server address; C_Add indicates the heterogeneous edge client address; R_Service indicates the request content, which is to verify the service status of the heterogeneous edge client; T_Stamp indicates the timestamp of the Ask_service package to ensure timeliness;
[0019] Ask_data package: The cloud server sends the Ask_data package to the heterogeneous edge client in normal service state to inquire about the status of monitoring data. The Ask_data package includes five fields: P_ID, CS_Add, C_Add, R_Data and T_Stamp. Among them, the P_ID field indicates the package sequence number, and 03 indicates the sequence number of the Ask_data package; CS_Add indicates the cloud server address; C_Add indicates the heterogeneous edge client address; R_Data indicates the request content, where the request content is to verify the status of monitoring data; T_Stamp indicates the timestamp of the Ask_data package to ensure timeliness;
[0020] Ask_upload package: The cloud server sends the Ask_upload package to all heterogeneous edge clients, requesting all heterogeneous edge clients to upload user data in abnormal data states. The Ask_upload package includes five fields: P_ID, CS_Add, C_Add, R_Upload, and T_Stamp. The P_ID field indicates the package sequence number, with 05 indicating the sequence number of the Ask_upload package; CS_Add indicates the cloud server address; C_Add indicates the heterogeneous edge client address; R_Upload indicates the request content, where the request content is the request to upload data; T_Stamp indicates the timestamp of the Ask_upload package to ensure timeliness;
[0021] Data_sum package: The cloud server sends Data_sum packages to all heterogeneous edge clients that upload local data to verify the integrity of the sent data. The Data_sum package includes five fields: P_ID, CS_Add, C_Add, A_Data, and T_Stamp. The P_ID field indicates the package number, with 07 indicating the sequence number of the Data_sum package; CS_Add indicates the cloud server address; C_Add indicates the heterogeneous edge client address; A_Data indicates the summary information of the uploaded data; and T_Stamp indicates the timestamp of the Data_sum package to ensure timeliness.
[0022] As a preferred solution of the present invention, the response data packet includes:
[0023] Res_service package: The heterogeneous edge client returns the Res_service package to the cloud server in response to the cloud server's request for the heterogeneous edge client's service status. The Res_service package includes five fields: P_ID, CS_Add, C_Add, Service_state, and T_Stamp. The P_ID field indicates the package sequence number, with 02 indicating the sequence number of the Res_service package; CS_Add indicates the cloud server address; C_Add indicates the heterogeneous edge client address; Service_state indicates the heterogeneous edge client service status, with 00 indicating service offline, 01 indicating normal service, and 02 indicating service failure; T_Stamp indicates the timestamp of the Res_service package to ensure timeliness;
[0024] Res_data package: The heterogeneous edge client returns the Res_data package to the cloud server in response to the cloud server's request for monitoring data status. The Res_data package includes five fields: P_ID, CS_Add, C_Add, Data_state, and T_Stamp. The P_ID field indicates the package sequence number, with 04 indicating the sequence number of the Res_data package; CS_Add indicates the cloud server address; C_Add indicates the heterogeneous edge client address; Data_state indicates the monitoring data status, with 00 indicating no monitoring data, 01 indicating normal data, and 02 indicating abnormal data; T_Stamp indicates the timestamp of the Res_data package to ensure timeliness;
[0025] Load_data packet: The heterogeneous edge client returns the Load_data packet to the cloud server in response to the cloud server's request for local abnormal monitoring data. The packet includes five fields: P_ID, CS_Add, C_Add, Data, and T_Stamp. The P_ID field indicates the packet sequence number, with 06 indicating the sequence number of the Load_data packet; CS_Add indicates the cloud server address; C_Add indicates the heterogeneous edge client address; Data indicates local monitoring data, which is represented by a set of data based on geometric transformation; T_Stamp indicates the timestamp of the Load_data packet to ensure timeliness;
[0026] Result package: All heterogeneous edge clients that upload local data return the Result package to the cloud server to verify the integrity of the sent data. The Result package includes five fields: P_ID, CS_Add, C_Add, Result, and T_Stamp. The P_ID field indicates the package sequence number, with 08 indicating the sequence number of the Result package; CS_Add indicates the cloud server address; C_Add indicates the heterogeneous edge client address; Result indicates the upload status, with 00 indicating upload completion and 01 indicating upload abnormality; T_Stamp indicates the timestamp of the Result package to ensure timeliness.
[0027] As a preferred solution of the present invention, the finite state of the heterogeneous edge client, and the association relationship between the conversion of its finite state and the sending and returning of the request data packet and the response data packet include:
[0028] Init state: This state indicates that the heterogeneous edge client is in the initial state;
[0029] Activity state: In the Init state, the heterogeneous edge client receives the service state request Ask_service package initiated by the cloud server. At this time, the heterogeneous edge client state changes from the Init state to the Activity state;
[0030] Send_service state: In the Activity state, the application state of the heterogeneous edge client is detected. At this time, the heterogeneous edge client state changes from the Activity state to the Send_service state, and the Res_service package is sent to the cloud server to respond to the service status request;
[0031] Send_data state: In the Send_service state, the heterogeneous edge client receives a data status request initiated by the cloud server. At this time, the heterogeneous edge client state changes from the Send_service state to the Send_data state, detects whether there is an abnormality in the user data, and sends a Res_data packet to the cloud server in response to the data status request;
[0032] Up_data state: In the Send_data state, the cloud server initiates a data upload request. At this time, the heterogeneous edge client state changes from the Send_data state to the Up_data state, and sends the load_data packet to the cloud server. All heterogeneous edge clients upload the heterogeneous edge client data to the cloud server;
[0033] Check state: In the Up_data state, the cloud server returns data summary information. At this time, the heterogeneous edge client state changes from the Up_data state to the Check state to verify whether the uploaded data is lost. If data is lost, the load_data package is resent to the cloud server; if data is not lost, the Result package is sent to the cloud server;
[0034] End state: In the Check state, the Result packet is sent successfully. At this time, the heterogeneous edge client state changes from the Check state to the End state to complete the data upload task.
[0035] As a preferred solution of the present invention, the finite state of the cloud server and the relationship between the conversion of its finite state and the sending and returning of the request data packet and the response data packet include:
[0036] Init state: This state indicates that the cloud server is in the initial state;
[0037] Work state: In the Init state, the cloud server sends the Ask_service packet to the heterogeneous edge client, and the cloud server state changes from the Init state to the Work state;
[0038] Check_service state: In the Work state, the cloud server receives the Res_service package returned by each heterogeneous edge client. At this time, the cloud server state changes from the Work state to the Check_service state. If the current verification of the heterogeneous edge client service is normal, the cloud server sends the Ask_data package to the heterogeneous edge client; if the current verification of the heterogeneous edge client service is abnormal, the cloud server performs abnormal diagnosis on the heterogeneous edge client and resends the Ask_service package to the heterogeneous edge client;
[0039] Cheak_data state: In the Check_service state, the cloud server receives the Res_data package returned by each heterogeneous edge client. At this time, the cloud server state changes from the Check_service state to the Cheak_data state. If the current verification of the heterogeneous edge client data is normal, the cloud server does not perform any operation and ends the task. If the current verification of the heterogeneous edge client data is abnormal, the cloud server sends a load_data package to all heterogeneous edge clients, requesting all heterogeneous edge clients to upload the heterogeneous edge client data to the cloud server.
[0040] Cheak_intact state: In the Cheak_data state, the cloud server receives the load_data package uploaded by all heterogeneous edge clients. At this time, the cloud server state changes from the Cheak_data state to the Cheak_intact state, checks the uploaded data and returns the Data_sum package to all heterogeneous edge clients; In the Cheak_intact state, the cloud server receives the load_data package returned by the heterogeneous edge client for the second time. At this time, the cloud server state remains in the Cheak_intact state, checks the uploaded data and returns the Data_sum package to the current heterogeneous edge client;
[0041] End state: In the Cheak_intact state, the cloud server receives the Result packet returned by the heterogeneous edge client. At this time, the cloud server state changes from the Cheak_intact state to the End state, completing the task.
[0042] As a preferred solution of the present invention, the transmission method comprises the following specific steps:
[0043] Step 1: The cloud server sends an Ask_service packet to the heterogeneous edge clients to inquire about the service status of each heterogeneous edge client;
[0044] Step 2: Each heterogeneous edge client returns a Res_service package response request containing the service status;
[0045] Step 3: The cloud server sends an Ask_data packet to each heterogeneous edge client to inquire whether there is abnormal data.
[0046] Step 4: Each heterogeneous edge client returns a Res_data packet containing data status in response to the request;
[0047] Step 5: The cloud server sends the Ask_upload package to the heterogeneous edge clients, requesting each heterogeneous edge client to upload local data;
[0048] Step 6: Each heterogeneous edge client returns a Load_data packet response request containing a set of geometrically transformed data;
[0049] Step 7: The cloud server sends the Data_sum package to the heterogeneous edge client to verify the data integrity;
[0050] Step 8: Each heterogeneous edge client returns the Result package to the cloud server to complete the task.
[0051] As a preferred embodiment of the present invention, the operations in Step 2, Step 3 and Step 5 are designed as follows:
[0052] Step 2 verifies the service status of heterogeneous edge clients.
[0053] If the current heterogeneous edge client service status is normal, then perform Step 3 data status verification;
[0054] If the current heterogeneous edge client service status is offline, no operation is performed;
[0055] If the current heterogeneous edge client service status is abnormal, the current heterogeneous edge client is monitored for abnormalities and an early warning is issued to the user;
[0056] Step 3: Verify the data status of heterogeneous edge clients in normal service status.
[0057] If the data of the current heterogeneous edge client in this collection cycle differs greatly from that in the previous cycle, then abnormal data upload is performed in Step 5;
[0058] If the error between the data of the current heterogeneous edge client in this collection cycle and the data of the previous cycle is within the threshold, no operation is performed;
[0059] Step 5 requests each heterogeneous edge client to upload local data. For users with abnormal data in Step 3, the cloud server requires all heterogeneous edge clients to upload the user's monitoring data to the cloud server. Beneficial effects: (1) The cloud server regularly accesses the service and data status of heterogeneous edge clients, and screens out abnormal heterogeneous edge clients and user monitoring data, thereby achieving equipment maintenance and mining data screening, reducing the storage burden of the cloud server, and improving overall performance;
[0060] (2) Design the state and conversion rules of heterogeneous edge clients and cloud servers based on finite state machines, and design data transmission methods in a more standardized and reasonable way;
[0061] (3) Design a data transmission method based on geometric transformation. This method has low requirements on device performance, high data availability, and low encryption and decryption time. It has high performance and practical application value. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] Figure 1 It is the overall flow chart of the present invention;
[0063] Figure 2 This is a schematic diagram of the Ask_service package format in the present invention;
[0064] Figure 3This is a schematic diagram of the Res_service packet format in the present invention;
[0065] Figure 4 This is a schematic diagram of the Ask_data packet format in the present invention;
[0066] Figure 5 This is a schematic diagram of the Res_data packet format in the present invention;
[0067] Figure 6 This is a schematic diagram of the Ask_upload package format in the present invention;
[0068] Figure 7 It is a schematic diagram of the format of the Load_data packet in the present invention;
[0069] Figure 8 This is a schematic diagram of the Data_sum packet format in the present invention;
[0070] Fig. 9 This is a schematic diagram of the Result package format in the present invention;
[0071] Fig.10 It is a schematic diagram of the state transition of the heterogeneous edge client in the present invention;
[0072] Fig.11 Schematic diagram of cloud server state transition in the present invention. DETAILED DESCRIPTION
[0073] As an embodiment of the present invention, Figure 1 As shown, a method for secure transmission of heterogeneous home medical and health data based on geometric transformation includes:
[0074] Step 1: The cloud server sends an Ask_service packet to the heterogeneous edge clients to inquire about the service status of each heterogeneous edge client;
[0075] Step 2: Each heterogeneous edge client returns a Res_service package response request containing the service status;
[0076] Step 3: The cloud server sends an Ask_data packet to each heterogeneous edge client to inquire whether there is abnormal data.
[0077] Step 4: Each heterogeneous edge client returns a Res_data packet containing data status in response to the request;
[0078] Step 5: The cloud server sends the Ask_upload package to the heterogeneous edge clients, requesting each heterogeneous edge client to upload local data;
[0079] Step 6: Each heterogeneous edge client returns a Load_data packet containing local monitoring data in response to the request;
[0080] Step 7: The cloud server sends the Data_sum package to the heterogeneous edge client to verify the data integrity;
[0081] Step 8: Each heterogeneous edge client returns a Result packet to the cloud server to complete the task;
[0082] The local monitoring data is represented by a set of data based on geometric transformation to achieve secure transmission of data between the cloud server and heterogeneous edge clients.
[0083] As an embodiment of the present invention, the operation design of Step 2, Step 3 and Step 5 in a method for secure transmission of heterogeneous data of family medical health based on geometric transformation is as follows: Step 2 verifies the service status of the heterogeneous edge client. If the current service status of the heterogeneous edge client is normal, Step 3 data status verification is performed; if the current service status of the heterogeneous edge client is offline, no operation is performed; if the current service status of the heterogeneous edge client is abnormal, the current heterogeneous edge client is monitored for abnormalities and an early warning is issued to the user; Step 3 verifies the data status of the heterogeneous edge client in normal service status. If the error between the data of the current heterogeneous edge client in this collection cycle and the previous cycle is outside the threshold, Step 5 abnormal data upload is performed; if the error between the data of the current heterogeneous edge client in this collection cycle and the previous cycle is within the threshold, no operation is performed; Step 5 requests each heterogeneous edge client to upload local monitoring data. For users with abnormal data in Step 3, the cloud server requires all heterogeneous edge clients to upload the monitoring data of the user to the cloud server.
[0084] As an embodiment of the present invention, Figure 2-Figure 9 As shown, the data packet format of the present invention is:
[0085] Ask_service package: The cloud server sends the Ask_service package to the heterogeneous edge client to inquire about the service status of the heterogeneous edge client. The Ask_service package includes five fields: P_ID, CS_Add, C_Add, R_Service, and T_Stamp. Among them, the P_ID field indicates the package sequence number, and 01 indicates the sequence number of the Ask_service package; CS_Add indicates the cloud server address; C_Add indicates the heterogeneous edge client address; R_Service indicates the request content, which is to verify the service status of the heterogeneous edge client; T_Stamp indicates the timestamp of the Ask_service package to ensure timeliness;
[0086] Res_service package: The heterogeneous edge client returns the Res_service package to the cloud server in response to the cloud server's request for the heterogeneous edge client's service status. The Res_service package includes five fields: P_ID, CS_Add, C_Add, Service_state, and T_Stamp. The P_ID field indicates the package sequence number, with 02 indicating the sequence number of the Res_service package; CS_Add indicates the cloud server address; C_Add indicates the heterogeneous edge client address; Service_state indicates the heterogeneous edge client service status, with 00 indicating service offline, 01 indicating normal service, and 02 indicating service failure; T_Stamp indicates the timestamp of the Res_service package to ensure timeliness;
[0087] Ask_data package: The cloud server sends the Ask_data package to the heterogeneous edge client in normal service state to inquire about the monitoring data status. The Ask_data package includes five fields: P_ID, CS_Add, C_Add, R_Data and T_Stamp. Among them, the P_ID field indicates the package sequence number, and 03 indicates the sequence number of the Ask_data package; CS_Add indicates the cloud server address; C_Add indicates the heterogeneous edge client address; R_Data indicates the request content, where the request content is to verify the monitoring data status; T_Stamp indicates the timestamp of the Ask_data package to ensure timeliness;
[0088] Res_data package: The heterogeneous edge client returns the Res_data package to the cloud server in response to the cloud server's request for monitoring data status. The Res_data package includes five fields: P_ID, CS_Add, C_Add, Data_state, and T_Stamp. The P_ID field indicates the package sequence number, with 04 indicating the sequence number of the Res_data package; CS_Add indicates the cloud server address; C_Add indicates the heterogeneous edge client address; Data_state indicates the monitoring data status, with 00 indicating no monitoring data, 01 indicating normal data, and 02 indicating abnormal data; T_Stamp indicates the timestamp of the Res_data package to ensure timeliness;
[0089] Ask_upload package: The cloud server sends the Ask_upload package to all heterogeneous edge clients, requesting all heterogeneous edge clients to upload user data in abnormal data states. The Ask_upload package includes five fields: P_ID, CS_Add, C_Add, R_Upload, and T_Stamp. The P_ID field indicates the package sequence number, with 05 indicating the sequence number of the Ask_upload package; CS_Add indicates the cloud server address; C_Add indicates the heterogeneous edge client address; R_Upload indicates the request content, where the request content is the request to upload data; T_Stamp indicates the timestamp of the Ask_upload package to ensure timeliness;
[0090] Load_data package: The heterogeneous edge client returns the Load_data package to the cloud server in response to the cloud server's request for local abnormal monitoring data. The Load_data package includes five fields: P_ID, CS_Add, C_Add, Data, and T_Stamp. The P_ID field indicates the package sequence number, with 06 indicating the sequence number of the Load_data package; CS_Add indicates the cloud server address; C_Add indicates the heterogeneous edge client address; Data indicates local monitoring data, which is represented by a set of data based on geometric transformation; T_Stamp indicates the timestamp of the Load_data package to ensure timeliness;
[0091] Data_sum package: The cloud server sends the Data_sum package to all heterogeneous edge clients that upload local data to verify the integrity of the sent data. The Data_sum package includes five fields: P_ID, CS_Add, C_Add, A_Data, and T_Stamp. The P_ID field indicates the package sequence number, with 07 indicating the sequence number of the Data_sum package; CS_Add indicates the cloud server address; C_Add indicates the heterogeneous edge client address; A_Data indicates the summary information of the uploaded data; T_Stamp indicates the timestamp of the Data_sum package to ensure timeliness;
[0092] Result package: All heterogeneous edge clients that upload local data return the Result package to the cloud server to verify the integrity of the sent data. The Result package includes five fields: P_ID, CS_Add, C_Add, Result, and T_Stamp. The P_ID field indicates the package sequence number, with 08 indicating the sequence number of the Result package; CS_Add indicates the cloud server address; C_Add indicates the heterogeneous edge client address; Result indicates the upload status, with 00 indicating upload completion and 01 indicating upload abnormality; T_Stamp indicates the timestamp of the Result package to ensure timeliness.
[0093] As an embodiment of the present invention, Fig.10 As shown in the figure, there are seven finite states of heterogeneous edge clients, namely:
[0094] Init state: This state indicates that the heterogeneous edge client is in the initial state;
[0095] Activity state: In the Init state, the heterogeneous edge client receives a service status request initiated by the cloud server. At this time, the heterogeneous edge client state changes from the Init state to the Activity state;
[0096] Send_service state: In the Activity state, the service state of the heterogeneous edge client is detected. At this time, the heterogeneous edge client state changes from the Activity state to the Send_service state, and the Res_service package is sent to the cloud server to respond to the service status request;
[0097] Send_data state: In the Send_service state, the heterogeneous edge client receives a data status request initiated by the cloud server. At this time, the heterogeneous edge client state changes from the Send_service state to the Send_data state, detects whether there is an abnormality in the user data, and sends a Res_data packet to the cloud server in response to the data status request;
[0098] Up_data state: In the Send_data state, the cloud server initiates a data upload request. At this time, the heterogeneous edge client state changes from the Send_data state to the Up_data state, and sends a load_data packet to the cloud server. All heterogeneous edge clients upload the user data to the cloud server;
[0099] Check state: In the Up_data state, the cloud server returns data summary information. At this time, the heterogeneous edge client state changes from the Up_data state to the Check state to verify whether the uploaded data is lost. If data is lost, the load_data package is resent to the cloud server; if data is not lost, the Result package is sent to the cloud server;
[0100] End state: In the Check state, the Result packet is sent successfully. At this time, the heterogeneous edge client state changes from the Check state to the End state, completing the data upload task.
[0101] As an embodiment of the present invention, Fig.11 As shown, there are 6 finite states of the cloud server, namely:
[0102] Init state: This state indicates that the cloud server is in the initial state;
[0103] Work state: In the Init state, the cloud server sends the Ask_service packet to the heterogeneous edge client, and the cloud server state changes from the Init state to the Work state;
[0104] Check_service state: In the Work state, the cloud server receives the Res_service package returned by each heterogeneous edge client. At this time, the cloud server state changes from the Work state to the Check_service state. If the current verification of the heterogeneous edge client service is normal, the cloud server sends the Ask_data package to the heterogeneous edge client; if the current verification of the heterogeneous edge client service is abnormal, the cloud server performs abnormal diagnosis on the heterogeneous edge client and resends the Ask_service package to the heterogeneous edge client;
[0105] Cheak_data state: In the Check_service state, the cloud server receives the Res_data package returned by each heterogeneous edge client. At this time, the cloud server state changes from the Check_service state to the Cheak_data state. If the current verification of the heterogeneous edge client data is normal, the cloud server does not perform any operation and ends the task. If the current verification of the heterogeneous edge client data is abnormal, the cloud server sends a load_data package to all heterogeneous edge clients, requesting all heterogeneous edge clients to upload the heterogeneous edge client data to the cloud server.
[0106] Cheak_intact state: In the Cheak_data state, the cloud server receives the load_data package uploaded by all heterogeneous edge clients. At this time, the cloud server state changes from the Cheak_data state to the Cheak_intact state, checks the uploaded data and returns the Data_sum package to all heterogeneous edge clients; In the Cheak_intact state, the cloud server receives the load_data package returned by the heterogeneous edge client for the second time. At this time, the cloud server state remains in the Cheak_intact state, checks the uploaded data and returns the Data_sum package to the current heterogeneous edge client;
[0107] End state: In the Cheak_intact state, the cloud server receives the Result packet returned by the heterogeneous edge client. At this time, the cloud server state changes from the Cheak_intact state to the End state, completing the task.
[0108] As an embodiment of the present invention, it is assumed that within a period T, n heterogeneous edge clients monitor the user's heart rate, breathing rate, body movement, and nighttime sleep conditions.
[0109] First, the cloud server queries the service status of the heterogeneous edge clients 1, 2, ..., n, and each heterogeneous edge client returns a data packet containing the Service_state field;
[0110] Then, for heterogeneous edge clients with a Service_state field of 00, no processing is done; for heterogeneous edge clients with a Service_state field of 01, the data state of the current heterogeneous edge client is queried, and a data packet containing the Data_state field is returned; for heterogeneous edge clients with a Service_state field of 02, the cloud server starts an abnormality diagnosis program and issues an early warning to the user;
[0111] Next, for the heterogeneous edge client whose Data_state field is 00, no processing is done; for the heterogeneous edge client whose Data_state field is 01, d_normal requires the heterogeneous edge client to record the current data; for the heterogeneous edge client whose Data_state field is 02, the heterogeneous edge client 1, 2, ..., n is required to upload the user monitoring data;
[0112] The abnormal judgment rule is: if the normal data in the previous cycle is d_normal, the data in this cycle is d_abnormal, if:
[0113]
[0114] Then d_abnormal is judged to be abnormal data, and the size of D is given according to normal data.
[0115] Secondly, the designed data security transmission method based on geometric transformation is used to transmit the data; taking heart rate data as an example, the user's heart rate data is set to [92, 88, 75, 150, 170], and it is determined that the user has an abnormal heart rate. Confirm whether the data is 0. If the data to be transmitted is 0, 0 is directly transmitted; if the data to be transmitted is not 0, it is converted according to the circle area formula:
[0116] Y=πX 2
[0117] Convert the heart rate data [92, 88, 75, 150, 170] to: X1 = 92, X2 = 88, X3 = 75, X4 = 150, X5 = 170, then we have
[0118]
[0119]
[0120] Put [0, 26576.96, 24316.16, 17662.5, 70650, 90746] into the Data field of the Load_data package and transmit it to the cloud server, where 0 represents the current user sequence number to facilitate subsequent heterogeneous data fusion.
[0121] Finally, the cloud server returns a data packet containing the A_Data field to each heterogeneous edge client for data confirmation to ensure data integrity. If the uploaded data is complete, the heterogeneous edge client returns a Result packet to the cloud server; if the uploaded data is incomplete, it resends a Load_data packet containing the Data field to the cloud server.
[0122] The technical solution of the present invention is described in detail above in conjunction with the embodiments / drawings, but the present invention is not limited to the above technical solution. For ordinary technicians in this technical field, after knowing the contents recorded in the present invention, they can make several equivalent changes and substitutions without departing from the principle of the present invention. These equivalent changes and substitutions should also be regarded as belonging to the protection scope of the present invention.
Claims
1. A method for secure transmission of heterogeneous home medical and health data based on geometric transformation, comprising: Design and define the finite state of the cloud server, and the relationship between its finite state transitions and the sending and returning of request and response packets; Design and define the finite states of heterogeneous edge clients, and the relationship between their finite state transitions and the sending and returning of request and response packets; The cloud server sends a request data packet to the heterogeneous edge client to initiate the request, and the heterogeneous edge client returns a response data packet to the cloud server in response to the request; The method is characterized in that the response data packet includes a data packet containing local monitoring data, and the local monitoring data is obtained by using a geometric transformation method from the locally monitored data to achieve secure transmission of data between the cloud server and the heterogeneous edge client; wherein the geometric transformation method includes the following steps: First, confirm whether the data is 0: if the data is 0, transmit 0 directly; Next, confirm whether the data is a character: if it is a character, find the ASCII code of the corresponding character and convert it into a number; Then, for the data that is not 0 and the data after character conversion, convert it according to the circle area formula: Y=πX 2 Where X is the locally monitored data, Y is the converted transmission data, and π is 3.
14.
2. According to claim 1, a method for secure transmission of family medical and health heterogeneous data based on geometric transformation is characterized in that: The request data packet includes: Ask_service package: The cloud server sends the Ask_service package to the heterogeneous edge client to inquire about the service status of the heterogeneous edge client. The Ask_service package includes five fields: P_ID, CS_Add, C_Add, R_Service, and T_Stamp. The P_ID field indicates the package sequence number, with 01 indicating the sequence number of the Ask_service package; CS_Add indicates the cloud server address; C_Add indicates the heterogeneous edge client address; R_Service indicates the request content, where the request content is to verify the service status of the heterogeneous edge client; T_Stamp indicates the timestamp of the Ask_service package to ensure timeliness; Ask_data package: The cloud server sends the Ask_data package to the heterogeneous edge client in normal service state to inquire about the status of monitoring data. The Ask_data package includes five fields: P_ID, CS_Add, C_Add, R_Data and T_Stamp. Among them, the P_ID field indicates the package sequence number, and 03 indicates the sequence number of the Ask_data package; CS_Add indicates the cloud server address; C_Add indicates the heterogeneous edge client address; R_Data indicates the request content, where the request content is to verify the status of monitoring data; T_Stamp indicates the timestamp of the Ask_data package to ensure timeliness; Ask_upload package: The cloud server sends the Ask_upload package to all heterogeneous edge clients, requesting all heterogeneous edge clients to upload user data in abnormal data states. The Ask_upload package includes five fields: P_ID, CS_Add, C_Add, R_Upload, and T_Stamp. The P_ID field indicates the package sequence number, with 05 indicating the sequence number of the Ask_upload package; CS_Add indicates the cloud server address; C_Add indicates the heterogeneous edge client address; R_Upload indicates the request content, where the request content is the request to upload data; T_Stamp indicates the timestamp of the Ask_upload package to ensure timeliness; Data_sum package: The cloud server sends Data_sum packages to all heterogeneous edge clients that upload local data to verify the integrity of the sent data. The Data_sum package includes five fields: P_ID, CS_Add, C_Add, A_Data, and T_Stamp. The P_ID field indicates the package number, with 07 indicating the sequence number of the Data_sum package; CS_Add indicates the cloud server address; C_Add indicates the heterogeneous edge client address; A_Data indicates the summary information of the uploaded data; and T_Stamp indicates the timestamp of the Data_sum package to ensure timeliness.
3. According to claim 1, a method for secure transmission of heterogeneous family medical health data based on geometric transformation is characterized in that: The response data packet includes: Res_service package: The heterogeneous edge client returns the Res_service package to the cloud server in response to the cloud server's request for the heterogeneous edge client's service status. The Res_service package includes five fields: P_ID, CS_Add, C_Add, Service_state, and T_Stamp. The P_ID field indicates the package sequence number, with 02 indicating the sequence number of the Res_service package; CS_Add indicates the cloud server address; C_Add indicates the heterogeneous edge client address; Service_state indicates the heterogeneous edge client service status, with 00 indicating service offline, 01 indicating normal service, and 02 indicating service failure; T_Stamp indicates the timestamp of the Res_service package to ensure timeliness; Res_data package: The heterogeneous edge client returns the Res_data package to the cloud server in response to the cloud server's request for monitoring data status. The Res_data package includes five fields: P_ID, CS_Add, C_Add, Data_state, and T_Stamp. The P_ID field indicates the package sequence number, with 04 indicating the sequence number of the Res_data package; CS_Add indicates the cloud server address; C_Add indicates the heterogeneous edge client address; Data_state indicates the monitoring data status, with 00 indicating no monitoring data, 01 indicating normal data, and 02 indicating abnormal data; T_Stamp indicates the timestamp of the Res_data package to ensure timeliness; Load_data package: The heterogeneous edge client returns the Load_data package to the cloud server in response to the cloud server's request for local abnormal monitoring data. The Load_data package includes five fields: P_ID, CS_Add, C_Add, Data, and T_Stamp. The P_ID field indicates the package sequence number, with 06 indicating the sequence number of the Load_data package; CS_Add indicates the cloud server address; C_Add indicates the heterogeneous edge client address; Data indicates local monitoring data, which is represented by a set of data based on geometric transformation; T_Stamp indicates the timestamp of the Load_data package to ensure timeliness; Result package: All heterogeneous edge clients that upload local data send Result packages to the cloud server to verify the integrity of the sent data. The Result package includes five fields: P_ID, CS_Add, C_Add, Result, and T_Stamp. The P_ID field indicates the package sequence number, with 08 indicating the sequence number of the Result package; CS_Add indicates the cloud server address; C_Add indicates the heterogeneous edge client address; Result indicates the upload status, with 00 indicating upload completion and 01 indicating upload abnormality; T_Stamp indicates the timestamp of the Result package to ensure timeliness.
4. According to claim 1, a method for secure transmission of heterogeneous family medical health data based on geometric transformation is characterized in that: The finite state of the heterogeneous edge client and the relationship between the conversion of the finite state and the sending and returning of the request data packet and the response data packet include: Init state: This state indicates that the heterogeneous edge client is in the initial state; Activity state: In the Init state, the heterogeneous edge client receives the service state request Ask_service package initiated by the cloud server. At this time, the heterogeneous edge client state changes from the Init state to the Activity state; Send_service state: In the Activity state, the service state of the heterogeneous edge client is detected. At this time, the heterogeneous edge client state changes from the Activity state to the Send_service state, and the Res_service package is sent to the cloud server to respond to the service status request; Send_data state: In the Send_service state, the heterogeneous edge client receives a data status request initiated by the cloud server. At this time, the heterogeneous edge client state changes from the Send_service state to the Send_data state, detects whether there is an abnormality in the user data, and sends a Res_data packet to the cloud server in response to the data status request; Up_data state: In the Send_data state, the cloud server initiates a data upload request. At this time, the heterogeneous edge client state changes from the Send_data state to the Up_data state, and sends the load_data packet to the cloud server. All heterogeneous edge clients upload the heterogeneous edge client data to the cloud server; Check state: In the Up_data state, the cloud server returns data summary information. At this time, the heterogeneous edge client state changes from the Up_data state to the Check state to verify whether the uploaded data is lost. If data is lost, the load_data package is resent to the cloud server; if data is not lost, the Result package is sent to the cloud server; End state: In the Check state, the Result packet is sent successfully. At this time, the heterogeneous edge client state changes from the Check state to the End state, completing the data upload task.
5. According to claim 1, a method for secure transmission of heterogeneous family medical and health data based on geometric transformation is characterized in that: The finite state of the cloud server and the relationship between the transition of the finite state and the sending and returning of the request data packet and the response data packet include: Init state: This state indicates that the cloud server is in the initial state; Work state: In the Init state, the cloud server sends the Ask_service packet to the heterogeneous edge client, and the cloud server state changes from the Init state to the Work state; Check_service state: In the Work state, the cloud server receives the Res_service package returned by each heterogeneous edge client. At this time, the cloud server state changes from the Work state to the Check_service state. If the current verification of the heterogeneous edge client service is normal, the cloud server sends the Ask_data package to the heterogeneous edge client; if the current verification of the heterogeneous edge client service is abnormal, the cloud server performs abnormal diagnosis on the heterogeneous edge client and resends the Ask_service package to the heterogeneous edge client; Cheak_data state: In the Check_service state, the cloud server receives the Res_data package returned by each heterogeneous edge client. At this time, the cloud server state changes from the Check_service state to the Cheak_data state. If the current verification of the heterogeneous edge client data is normal, the cloud server does not perform any operation and ends the task. If the current verification of the heterogeneous edge client data is abnormal, the cloud server sends a load_data package to all heterogeneous edge clients, requesting all heterogeneous edge clients to upload the heterogeneous edge client data to the cloud server. Cheak_intact state: In the Cheak_data state, the cloud server receives the load_data package uploaded by all heterogeneous edge clients. At this time, the cloud server state changes from the Cheak_data state to the Cheak_intact state, checks the uploaded data and returns the Data_sum package to all heterogeneous edge clients; In the Cheak_intact state, the cloud server receives the load_data package returned by the heterogeneous edge client for the second time. At this time, the cloud server state remains in the Cheak_intact state, checks the uploaded data and returns the Data_sum package to the current heterogeneous edge client; End state: In the Cheak_intact state, the cloud server receives the Result packet returned by the heterogeneous edge client. At this time, the cloud server state changes from the Cheak_intact state to the End state, completing the task.
6. According to claim 1, a method for secure transmission of heterogeneous family medical health data based on geometric transformation is characterized in that: The specific steps include: Step 1: The cloud server sends an Ask_service packet to the heterogeneous edge clients to inquire about the service status of each heterogeneous edge client; Step 2: Each heterogeneous edge client returns a Res_service package response request containing the service status; Step 3: The cloud server sends an Ask_data packet to each heterogeneous edge client to inquire whether there is abnormal data. Step 4: Each heterogeneous edge client returns a Res_data packet containing data status in response to the request; Step 5: The cloud server sends the Ask_upload package to the heterogeneous edge clients, requesting each heterogeneous edge client to upload local data; Step 6: Each heterogeneous edge client returns a Load_data packet response request containing a set of geometrically transformed data; Step 7: The cloud server sends the Data_sum package to the heterogeneous edge client to verify the data integrity; Step 8: Each heterogeneous edge client returns the Result package to the cloud server to complete the task.
7. A method for secure transmission of heterogeneous family medical health data based on geometric transformation according to claim 6, characterized in that: The operation designs in Step 2, Step 3 and Step 5 are as follows: Step 2: Verify the service status of heterogeneous edge clients: If the current heterogeneous edge client service status is normal, then perform Step 3 data status verification; If the current heterogeneous edge client service status is offline, no operation is performed; If the current heterogeneous edge client service status is abnormal, the current heterogeneous edge client is monitored for abnormalities and an early warning is issued to the user; Step 3: Verify the data status of heterogeneous edge clients in normal service status: If the data of the current heterogeneous edge client in this collection cycle is out of the threshold compared with the previous cycle, then Step 5 abnormal data upload is performed; If the error between the data of the current heterogeneous edge client in this collection cycle and the data of the previous cycle is within the threshold, no operation is performed; Step 5 requests each heterogeneous edge client to upload local data. For users with abnormal data in Step 3, the cloud server requires all heterogeneous edge clients to upload the user's monitoring data to the cloud server.
Citation Information
Patent Citations
Security interaction method for cloud platform and health application based on power transformation
CN117411913A
