Health data communication transmission method of intelligent health detection cup
By realizing encrypted communication and multi-level encryption technology between the water cup and smart devices in the intelligent health detection water cup, the existing intelligent health detection water cup has been solved, and the secure transmission and personalized health analysis of multi-dimensional health data is realized.
Patent Information
- Application Number
- CN202411664104.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-20
- Publication Date
- 2025-03-14
AI Technical Summary
The existing intelligent health detection water cup has a single function, making it difficult to comprehensively analyze multi-dimensional health indicators, and lacks strong encryption protection, resulting in user health data being susceptible to cyber attacks or data leakage during transmission.
Design a health data communication transmission method for intelligent health detection water cups. Through encrypted communication between the water cups and smart devices, multi-dimensional health data is collected and encrypted to ensure the security of data transmission. Specific steps include key negotiation and management of the water cup and smart device, data collection, encryption processing, packaging and transmission.
Through encrypted communication and multi-level encryption technology, we ensure the security and integrity of user health data in transmission, prevent data breaches and unauthorized access, and provide comprehensive analysis of multi-dimensional health data and personalized health advice.
Smart Images

Figure CN119629611A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of smart water cups, and in particular to a health data communication transmission method for a smart health detection water cup. Background Art
[0002] With the improvement of health management awareness, smart health devices are becoming more and more popular, especially smart devices that can collect and analyze user physiological data in real time, such as those shown in the patent with authorization announcement number CN110827940B and application publication number CN118734337A. However, the smart health devices with rich functions on the market are usually wearable devices, while most of the smart health detection water cup devices have a single function and can only collect limited health data. They fail to conduct a comprehensive analysis of the user's multi-dimensional health indicators such as electrocardiogram, body temperature, and water intake, making it difficult to provide users with accurate health assessments and personalized recommendations.
[0003] In addition, many smart health devices currently lack strong encryption protection, and users' health data are vulnerable to network attacks or data leakage during transmission, which puts sensitive user data at risk of illegal access or tampering. In order to solve these problems, a smart health detection water cup that integrates multi-dimensional health data collection, analysis, and communication encryption protection is needed. Summary of the invention
[0004] The purpose of the present invention is to solve the deficiencies of the prior art and provide a health data communication transmission method for an intelligent health detection water cup.
[0005] In order to solve the above problems, the present invention adopts the following technical solutions: A health data communication transmission method for a smart health detection water cup comprises the following steps: Step 1: Connect the water cup to the smart device to achieve data transmission; Step 2: The water cup and the smart device negotiate and manage keys; Step 3: The sensor in the water cup collects the user's health data; the health data includes two parts: human body data and water cup data; Step 4: The microcontroller in the water cup encrypts the health data; Step 5: The microcontroller in the water cup encapsulates the encrypted health data and sends it to the smart device; Step 6: The smart device receives the encrypted health data and performs message decryption and verification; Step 7: Smart devices conduct multi-dimensional analysis based on the data, display health reports, and provide health advice.
[0006] Furthermore, the key negotiation and management process in step 2 includes the following sub-steps: Step 21: The water cup and the smart device generate their own keys; Step 22: The water cup negotiates with the smart device to exchange keys.
[0007] Furthermore, during the key exchange process in step 22, the water cup and the smart device will retain the old key.
[0008] Furthermore, in step 21, the water cup generates a 128-bit AES key and a 256-bit HMAC key; wherein the smart water cup derives the 128-bit AES key and the 256-bit HMAC key from the master key and the hardware identifier by using the HKDF function; the smart device generates an RSA public key and a private key in combination with the user account information identifier and the master key.
[0009] Furthermore, in the step 22, during the key exchange process, it is necessary to first authenticate the validity of the other party's digital certificate.
[0010] Furthermore, collecting health data in step 3 includes the following sub-steps: Step 31: The cup cover has an ECG sensor built in. The user places a finger on a specific area on the cup cover of the smart cup to trigger the ECG sensor to collect an electrocardiogram signal. The EGC sensor then draws an electrocardiogram based on the collected electrocardiogram signal as part of the human body data. Step 32: A flow sensor is installed in the water cup. The flow sensor monitors and records the amount of water consumed in real time each time the user drinks water, as part of the water cup data. Step 33: The water cup has a built-in temperature sensor for recording the water temperature in real time, and the water temperature data is used as part of the water cup data; Step 34: A body temperature sensor is provided on the outside of the water cup to monitor the user's body temperature and record the user's body temperature changes in real time as part of the human body data.
[0011] Furthermore, after the initial collection of the health data in step 3, it is also necessary to undergo pre-processing of noise reduction and amplification; wherein the noise reduction pre-processing adopts a Kalman filter, and the specific formula is as follows: in, represents the optimal estimate at the current moment, k-1 represents the previous moment; K k represents the Kalman gain; Z k represents the measurement value; H represents the measurement matrix.
[0012] Furthermore, the process of encrypting the health data in step 4 includes the following steps: Step 41: First, use the HMAC-SHA256 algorithm on the plain text of the health data to generate a plain text MAC; Step 42: The health data is then encrypted using the AES-128 algorithm to obtain the health data ciphertext; Step 43: Use the HMAC-SHA256 algorithm on the health data ciphertext to generate a ciphertext MAC.
[0013] Furthermore, the process of encapsulating data in step 5 includes the following sub-steps: Step 51: Encapsulate the encrypted data and MAC according to the communication frame format; Step 52: Send the encapsulated data frame to the smart device via the TCP protocol; The fields and meanings of the communication frame in step 51 are as follows: Start flag: used to mark the beginning of a data packet, making it easier for the receiver to identify the starting position of the data packet; Communication identification: used to identify the type and purpose of the data packet; Plaintext MAC: A message authentication code calculated before encryption to verify the original state of the data; Ciphertext MAC: A message authentication code calculated after encryption to verify the integrity and consistency of data; Length: indicates the total length of the data segment, including the encrypted data and MAC value; Checksum: used to detect errors that may occur during transmission; Data: encrypted health data; End flag: used to mark the end of a data packet.
[0014] Furthermore, decrypting the data in step 6 includes the following sub-steps: Step 61: After receiving the encrypted communication frame, the smart device verifies the integrity of the communication frame, including verifying the start flag, the end flag, and the checksum; Step 62: Use the AES key to decrypt the encrypted data and restore the original ECG, water intake and water temperature data; Step 63: Use HMAC-SHA256 to calculate the MAC value for the plaintext and ciphertext, and compare it with the MAC value in the received data to verify whether the data has been tampered with.
[0015] The beneficial effects of the present invention are: By establishing encrypted communication between the water cup and the smart device, the transmission security of health data is ensured to avoid the leakage of personal health data. In addition, key negotiation and management are carried out to achieve key update. By verifying digital certificates, key leakage is avoided, ensuring that the water cups and smart devices that communicate with each other are legitimate devices, and preventing unauthorized access and data leakage; By setting up multiple sensors in the water cup to collect the user's health data, and encrypting and packaging it through a set encryption algorithm, it facilitates data transmission and ensures data security; The plaintext MAC and ciphertext MAC are generated through the water cup to ensure the integrity and security of the data. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 This is an overall flow chart of Example 1; Figure 2 This is a schematic diagram of the communication process of health data in Example 1. DETAILED DESCRIPTION
[0017] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.
[0018] It should be noted that the illustrations provided in the following embodiments are only used to schematically illustrate the basic concept of the present invention. The figures only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.
[0019] Embodiment 1: like Figure 1 and Figure 2 As shown, a health data communication transmission method of a smart health detection water cup includes the following steps: Step 1: Connect the water cup to the smart device via Bluetooth for data transmission; the smart device is usually a mobile phone.
[0020] Step 2: The water cup negotiates and manages the key with the setting app on the mobile phone.
[0021] Specifically, the key negotiation work interval is set once to complete the key update for communication between the water cup and the mobile phone. The key update cycle can be adjusted on the mobile app according to actual security needs. It should be noted that during the key update process, the water cup and the mobile app will each temporarily retain the old key for a period of time to ensure the continuity of data transmission between the water cup and the mobile phone during the key switching process, to avoid the problem that the new key has not been updated, but the old key has been deleted, resulting in data transmission interruption or even key update failure. After the key update is completed and the communication is verified, the water cup and the mobile app will automatically destroy the old key to prevent multiple keys from being retained and used for a long time, causing confusion, affecting data transmission or occupying more data storage space; The key negotiation and management process in step 2 includes the following sub-steps: Step 21: The cup and the mobile app generate their own keys; The water cup generates a 128-bit AES key and a 256-bit HMAC key, while the mobile app generates its own RSA public and private keys. It should be noted that when the water cup generates AES keys and HMAC keys, it needs to combine the unique hardware identification "HID" (Hardware Identifier) of each smart water cup. The hardware identification can be a serial number or other unique identifier. The smart water cup uses the HKDF (HMAC-based Extract-and-Expand Key Derivation Function) function to derive a 128-bit AES key and a 256-bit HMAC key from the master key and hardware identification, which are used for encrypted data transmission and message authentication, respectively. Similarly, the mobile app also generates its own RSA public key and private key in the same way, in which the mobile app needs to combine the identification of the user account information.
[0022] The HKDF is a key derivation function based on HMAC, which is used to generate a series of related but independent keys from a random or non-random secret key material; the purpose is to safely expand and derive keys in a variety of scenarios, especially when multiple keys are required in protocol design, or when key material needs to be generated from a shared secret. The HKDF formula is as follows: SessionKey = HKDF(MasterKey,Salt,HID || Nonce,OutputLength) Among them, MasterKey is the master key, Salt is the random salt value, Nonce is a random number that is different for each communication session, OutputLength is the required key length, and HID is the identifier of the smart water cup or the identifier of the mobile app account.
[0023] Step 22: The cup negotiates with the mobile app to exchange keys.
[0024] Among them, the key negotiation adopts the RSA key exchange protocol; in this protocol, the water cup accepts the public key provided by the mobile app to encrypt the AES key and HMAC key, and sends it to the mobile app; the mobile app then decrypts it according to the private key to achieve key exchange. It should be noted that in order to ensure information security and avoid leakage, an identity authentication mechanism based on digital certificates is also introduced during the key exchange process. The water cup and the mobile app need to verify the validity of the other party's digital certificate to ensure the legitimacy of the communicating parties. The entire negotiation process of the session key is transmitted through the SSL / TLS encrypted channel to prevent the key from being stolen during transmission.
[0025] The RSA key exchange protocol is a secure key negotiation mechanism based on asymmetric encryption technology. It combines the powerful functions of the RSA encryption algorithm and the security requirements of key negotiation. RSA key exchange uses public keys and private keys to achieve secure transmission of symmetric keys. In the RSA key exchange process, Party A generates a symmetric key, then encrypts the symmetric key using the public key provided by Party B, and Party A sends the encrypted symmetric key to Party B; Party B uses its private key to decrypt the received symmetric key, thereby completing the key exchange.
[0026] Step 3: The set sensor in the water cup collects the user's health data; in this example, the health data includes body data and water cup data.
[0027] The step 3 of collecting health data includes the following sub-steps: Step 31: The cup cover has an ECG sensor built in. The user places a finger on a specific area on the smart cup cover to trigger the ECG sensor to collect electrocardiogram signals. The EGC sensor then draws an electrocardiogram based on the collected electrocardiogram signals as part of the human body data.
[0028] In this case, the electrocardiogram is a non-invasive examination method that records the electrical activity of the heart. It evaluates heart function by measuring the changes in the potential of the heart at different time points. In this electrocardiogram, heart rate data is included, where the heart rate is an indicator of the number of heart beats, usually expressed in beats per minute. In this case, the heart rate is calculated in the following two ways: Method 1: RR interval method for calculating heart rate. Calculate the time interval between two adjacent R waves, i.e., the RR interval. Then divide 60 seconds by the RR interval to get the heart rate. It should be noted that in order to get a more stable heart rate value, the average value of multiple RR intervals can be calculated as the final heart rate. Method 2: Heart rate method, count the number of R waves in a period of time, and then multiply it by 60 and the ratio of the time period to get the heart rate; for example, count the number of R waves within 2s, and then multiply it by 60 / 2 to get the final heart rate; but this method is greatly affected by the choice of time window, and needs to be combined with the RR interval method for comprehensive judgment.
[0029] It should be noted that the above two methods can be combined, and finally the average or weighted value is taken as the final heart rate; in some other implementations, other existing detection methods can also be used to obtain heart rate data.
[0030] Step 32: A flow sensor is installed in the water cup. Every time the user drinks water, the flow sensor will monitor and record the amount of water drunk in real time as part of the water cup data. It should be noted that the calculation method of the water drinking data adopts the existing method, such as using a pressure sensor to obtain the water volume change to obtain the water drinking amount, or using a liquid level detection sensor to detect the liquid level in the water cup to obtain the water drinking amount.
[0031] Step 33: The water cup has a built-in temperature sensor for real-time recording of water temperature, and the water temperature data is included in the water cup data. It should be noted that in this example, the water temperature data is recorded in association with the water intake data; by monitoring drinking behavior at different water temperatures, drinking habits can be analyzed more comprehensively and health status can be assessed.
[0032] Step 34: A body temperature sensor is provided on the outside of the water cup to monitor the user's body temperature and record the user's body temperature changes in real time as part of the human body data; in this example, the body temperature sensor is provided on the outer wall of the water cup, and the body temperature can be detected after the user's palm touches the body temperature sensor.
[0033] It should be noted that after completing the initial collection of the user's health data, the collected health data needs to be pre-processed by filtering, amplifying, etc., and the health data and water cup data need to be digitized together through a microcontroller to facilitate encrypted transmission.
[0034] Among them, for continuous time series data, a Kalman filter is used to eliminate data noise and make the data smoother. The Kalman filter formula is as follows: in, represents the optimal estimate at the current moment, k-1 represents the previous moment; K k represents the Kalman gain; Z k represents the measurement value; H represents the measurement matrix.
[0035] Step 4: The microcontroller in the water cup encrypts the health data.
[0036] The data encryption process in step 4 includes the following sub-steps: Step 41: First, use the HMAC-SHA256 algorithm on the plain text of the health data to generate a plain text MAC; Step 42: The health data is then encrypted using the AES-128 algorithm to obtain the health data ciphertext; Step 43: Use the HMAC-SHA256 algorithm on the health data ciphertext to generate a ciphertext MAC.
[0037] The HMAC-SHA256 algorithm in step 41 is a message authentication code (MAC) algorithm based on a hash function. It combines the concept of HMAC (Hash-based Message Authentication Code) and the function of SHA-256 (SecureHash Algorithm 256-bit) hash function. HMAC-SHA256 generates a fixed-length MAC value for verifying the integrity and source of data by using a shared key and message input into the SHA-256 hash function. It has the characteristics of high security, strong irreversibility, and high computational efficiency. Using the HMAC-SHA256 algorithm can ensure the integrity, authenticity, and security of health data during transmission.
[0038] The AES-128 algorithm in step 42 is a symmetric encryption algorithm that uses a 128-bit key length and follows the design specifications of the Advanced Encryption Standard (AES). AES-128 converts a plaintext data block into a ciphertext data block of the same length by performing a series of complex mathematical operations, including substitution, permutation, and key scheduling. This conversion process ensures that even in the face of powerful computing resources, it is difficult to recover the original data through brute force. The plaintext MAC in step 41 and the ciphertext MAC in step 43 are used to compare and verify the integrity of the health data to avoid data tampering or data omission during transmission.
[0039] Step 5: The microcontroller in the water cup encapsulates the encrypted health data and sends it to the mobile app.
[0040] The process of encapsulating data in step 5 includes the following sub-steps: Step 51: Encapsulate the encrypted data and MAC according to the communication frame format; Step 52: Send the encapsulated data frame to the mobile app via the TCP protocol.
[0041] The communication frame in step 51 includes fields such as a start flag, a communication identifier, and a MAC to ensure the integrity and security of the data. The communication frame format is shown in Table 1 below: Table 1 Communication frame format diagram The meanings of the fields in the communication frame are as follows: Start flag: used to mark the beginning of a data packet, making it easier for the receiver to identify the starting position of the data packet; Communication identification: used to identify the type and purpose of the data packet; Plaintext MAC: A message authentication code calculated before encryption to verify the original state of the data; Ciphertext MAC: A message authentication code calculated after encryption to verify the integrity and consistency of data; Length: indicates the total length of the data segment, including the encrypted data and MAC value; Checksum: used to detect errors that may occur during transmission; Data: encrypted health data; End flag: used to mark the end of a data packet.
[0042] The TCP protocol in step 52 is the Transmission Control Protocol, which is a connection-oriented, reliable transport layer protocol used to provide data packet exchange services on the Internet. It provides reliable data transmission services through the process of establishing a connection through three handshakes, data transmission, and terminating the connection through four waves. TCP ensures the orderly and error-free transmission of data through the confirmation mechanism (ACK) and retransmission mechanism. It also has flow control and congestion control functions. It controls the sending rate through the sliding window mechanism to avoid the sender sending too fast and causing the receiver to be unable to process, and avoids network congestion by adjusting the sending rate. By adopting the TCP protocol, the safe transmission of health data is ensured, and combined with encryption technology, a stable and secure data transmission channel is provided.
[0043] Step 6: The mobile app receives the encrypted health data and decrypts and verifies the message.
[0044] Decrypting data in step 6 includes the following sub-steps: Step 61: After receiving the encrypted communication frame, the mobile app verifies the integrity of the communication frame, including verifying the start flag, end flag, and checksum; Step 62: Use the AES key to decrypt the encrypted data and restore the original ECG, water intake, water temperature and other data; Step 63: Use HMAC-SHA256 to calculate the MAC value for the plaintext and ciphertext, and compare it with the MAC value in the received data to verify whether the data has been tampered with.
[0045] Step 7: The mobile app conducts multi-dimensional analysis based on the data, displays health reports, and provides health advice.
[0046] The step 7 includes the following sub-steps: Step 71: The mobile phone APP combines the collected ECG data with data such as water temperature and water intake, and performs multi-dimensional fusion analysis on different health data; Specifically, the multi-dimensional data is combined into a health score to reflect the user's overall health status. The formula is as follows: Health Score = W1×HR score +W2×Temp score +W3×Water score Among them, Health Score represents the user's overall health score; HR score Indicates the user's heart rate score; Temp score Indicates the user's body temperature score; Water score Represents the user's drinking water score; W1, W2, W3 represent the weights of various indicators; the default values of the above scores and weights can be adjusted based on medical advice.
[0047] Step 72: The mobile app provides real-time health reports and suggestions to the user based on the multi-dimensional data analysis results.
[0048] The step 71 includes the following sub-steps: Step 711: Evaluate the user's heart health status and detect abnormal conditions such as arrhythmia by analyzing the electrocardiogram data; for example, analyze the QRS complex, PR interval and other data in the electrocardiogram; Specifically, the score can be calculated based on the relationship between the heart rate value HR and age, and the deviation between the heart rate and the normal range. The formula is as follows: Among them, HR normal Indicates the normal heart rate value corresponding to the user's age.
[0049] Step 712: Analyze the individual's body temperature and water intake in combination; evaluate whether the user's water intake is sufficient through correlation analysis of body temperature and water intake data, and make personalized water drinking recommendations based on temperature changes; Specifically, the temperature score is calculated based on the ideal value of 37°C. When the temperature is higher or lower than the set value, the mobile app will issue an alarm and recommend medical treatment; in this case, when it is higher than 39°C or lower than 35°C, the mobile app will issue an alarm. The temperature score formula is as follows: Among them, Temp measures the user's body temperature.
[0050] The water drinking score is based on the comparison between the user's actual water drinking amount and the daily recommended water drinking amount to ensure whether the water drinking amount meets the standard. If the water drinking amount deviates from the recommended value, the score will decrease according to the degree of deviation. If the water drinking amount is much lower than the recommended value, the system will give a lower score and remind the user to drink more water. The formula is as follows: Among them, Water Intake is the actual amount of water the user drinks, and Recommended Water Intake is the recommended daily amount of water.
[0051] Finally, through machine learning methods, the body temperature and water intake data are correlated and analyzed to evaluate whether the user's water intake is sufficient, especially when the body temperature is high. In this example, the machine learning regression model is set as follows: HydrationLevel=β0+β1×Water Intake+β2×Temp+∈ Among them, HydrationLevel is the assessment value of water intake adequacy; β0, β1, β2 are regression coefficients; ∈ is the error term.
[0052] The step 72 includes the following sub-steps: Step 721: The mobile app generates a health report to display the changing trends of health data such as electrocardiogram and body temperature, helping users understand long-term health changes; Specifically, by calculating the data change rate over a period of time, such as the data change within a week, it is used to determine whether the user's health has deteriorated sharply; when the data change rate exceeds the set threshold, an alarm is triggered. In this example, the moving average algorithm is used to calculate the temperature change rate over the past week. The formula is as follows: Among them, △Temp is the average temperature change of the user during this period of time; n represents the amount of temperature data collected in the past week, and i represents the i-th temperature data.
[0053] Step 722: The mobile app provides users with personalized health management suggestions based on their daily health data.
[0054] During the implementation process, the multi-dimensional health data analysis and encrypted communication between the smart health detection water cup and the mobile phone app ensured the safe transmission of health data including electrocardiogram, body temperature, water intake and water temperature. The water cup and the mobile phone app transmit data via Bluetooth, and use the key negotiation and management mechanism to generate and exchange keys to ensure the security and integrity of data transmission. The key exchange uses the RSA encryption protocol, and the legitimacy of the communicating parties is verified through digital certificates to prevent unauthorized access and data leakage.
[0055] In addition, the water cup has multiple built-in sensors, including ECG sensors, flow sensors and temperature sensors, which collect data such as the user's ECG signal, water intake and water temperature. At the same time, the body temperature sensor can monitor the user's body temperature in real time. All data are filtered and digitized after collection, and the microcontroller performs data encryption processing. First, the HMAC-SHA256 algorithm is used to generate a message authentication code for the data, and then the AES encryption algorithm is used to encrypt the ECG, body temperature, water intake and water temperature data. Finally, the HMAC-SHA256 algorithm is used to generate the encrypted MAC value to ensure the integrity and security of the data.
[0056] The encrypted data and MAC value will be encapsulated into the communication frame and sent to the mobile app through the TCP protocol. After receiving the data, the mobile app first verifies the integrity of the communication frame to check whether the data has been tampered with during transmission. Then, the encrypted data is decrypted using the AES key to restore the original ECG, body temperature, water intake and water temperature data, and the integrity of the data is verified again through HMAC-SHA256.
[0057] The present invention effectively solves the privacy leakage risk that the smart health monitoring water cup may face during data transmission, and ensures the security and integrity of the user's multi-dimensional health data during transmission. Compared with the existing simple data transmission method, the present invention uses multi-level encryption technology, data integrity verification and identity authentication mechanism to prevent data from being illegally accessed or tampered with, fully protecting user privacy and data security.
[0058] The above description is only a specific example of the present invention and does not constitute any limitation to the present invention. It is obvious that for professionals in this field, after understanding the content and principle of the present invention, various modifications and changes in form and details may be made without departing from the principle and structure of the present invention, but these modifications and changes based on the idea of the present invention are still within the scope of protection of the claims of the present invention.
Claims
1. A health data communication transmission method for a smart health detection water cup, characterized in that: The steps include: Step 1: Connect the water cup to the smart device to achieve data transmission; Step 2: The water cup and the smart device negotiate and manage keys; Step 3: The sensor in the water cup collects the user's health data; the health data includes two parts: human body data and water cup data; Step 4: The microcontroller in the water cup encrypts the health data; Step 5: The microcontroller in the water cup encapsulates the encrypted health data and sends it to the smart device; Step 6: The smart device receives the encrypted health data and performs message decryption and verification; Step 7: Smart devices conduct multi-dimensional analysis based on the data, display health reports, and provide health advice.
2. The health data communication transmission method of the smart health detection water cup according to claim 1 is characterized in that: The key negotiation and management process in step 2 includes the following sub-steps: Step 21: The water cup and the smart device generate their own keys; Step 22: The water cup negotiates with the smart device to exchange keys.
3. The health data communication transmission method of the smart health detection water cup according to claim 2 is characterized in that: During the key exchange process in step 22, the water cup and the smart device will still retain the old key.
4. The health data communication transmission method of the smart health detection water cup according to claim 2 is characterized in that: In step 21, the water cup generates a 128-bit AES key and a 256-bit HMAC key; the smart water cup derives the 128-bit AES key and the 256-bit HMAC key from the master key and the hardware identifier by using the HKDF function; the smart device generates an RSA public key and a private key in combination with the user account information identifier and the master key.
5. The health data communication transmission method of the smart health detection water cup according to claim 2 is characterized in that: In the step 22, during the key exchange process, it is necessary to first authenticate the validity of the other party's digital certificate.
6. The health data communication transmission method of the smart health detection water cup according to claim 1 is characterized in that: The step 3 of collecting health data includes the following sub-steps: Step 31: The cup cover has an ECG sensor built in. The user places a finger on a specific area on the cup cover of the smart cup to trigger the ECG sensor to collect an electrocardiogram signal. The EGC sensor then draws an electrocardiogram based on the collected electrocardiogram signal as part of the human body data. Step 32: A flow sensor is installed in the water cup. The flow sensor monitors and records the amount of water consumed in real time each time the user drinks water, as part of the water cup data. Step 33: The water cup has a built-in temperature sensor for recording the water temperature in real time, and the water temperature data is used as part of the water cup data; Step 34: A body temperature sensor is provided on the outside of the water cup to monitor the user's body temperature and record the user's body temperature changes in real time as part of the human body data.
7. The health data communication transmission method of the smart health detection water cup according to claim 6 is characterized in that: After the initial collection of the health data in step 3, it is also necessary to undergo pre-processing of noise reduction and amplification; the noise reduction pre-processing adopts the Kalman filter, and the specific formula is as follows: in, represents the optimal estimate at the current moment, k-1 represents the previous moment; K k represents the Kalman gain; Z k represents the measurement value; H represents the measurement matrix.
8. The health data communication transmission method of the smart health detection water cup according to claim 1 is characterized in that: The process of encrypting the health data in step 4 includes the following steps: Step 41: First, use the HMAC-SHA256 algorithm on the plain text of the health data to generate a plain text MAC; Step 42: The health data is then encrypted using the AES-128 algorithm to obtain the health data ciphertext; Step 43: Use the HMAC-SHA256 algorithm on the health data ciphertext to generate a ciphertext MAC.
9. The health data communication transmission method of the smart health detection water cup according to claim 1, characterized in that: The process of encapsulating data in step 5 includes the following sub-steps: Step 51: Encapsulate the encrypted data and MAC according to the communication frame format; Step 52: Send the encapsulated data frame to the smart device via the TCP protocol; The fields and meanings of the communication frame in step 51 are as follows: Start flag: used to mark the beginning of a data packet, making it easier for the receiver to identify the starting position of the data packet; Communication identification: used to identify the type and purpose of the data packet; Plaintext MAC: A message authentication code calculated before encryption to verify the original state of the data; Ciphertext MAC: A message authentication code calculated after encryption to verify the integrity and consistency of data; Length: indicates the total length of the data segment, including the encrypted data and MAC value; Checksum: used to detect errors that may occur during transmission; Data: encrypted health data; End flag: used to mark the end of a data packet.
10. The health data communication transmission method of a smart health detection water cup according to claim 1, characterized in that: Decrypting data in step 6 includes the following sub-steps: Step 61: After receiving the encrypted communication frame, the smart device verifies the integrity of the communication frame, including verifying the start flag, the end flag, and the checksum; Step 62: Use the AES key to decrypt the encrypted data and restore the original ECG, water intake and water temperature data; Step 63: Use HMAC-SHA256 to calculate the MAC value for the plaintext and ciphertext, and compare it with the MAC value in the received data to verify whether the data has been tampered with.
Citation Information
Patent Citations
A Health Data Management Method Based on Wearable Devices
CN110827940B
Electrocardiogram data processing method and device, computer equipment and storage medium
CN118734337A