A user data security protection method for smart rings
Through the blood oxygen, heart rate and blood pressure data collected by the smart ring, frequency consistency and correlation are used to generate personalized keys, which solves the problem of key correlation in smart rings that reduces the security of the encryption system and achieves high security of user data. sexual storage.
Patent Information
- Application Number
- CN202410692635.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-05-31
AI Technical Summary
The keys generated by the smart ring in the server may be relevant due to randomness, which reduces the security of the encryption system. Attackers can infer part of the information by analyzing the key correlation, affecting data security.
Collect user data through the built-in sensors of the smart ring, use the frequency consistency and correlation of blood oxygen, heart rate and blood pressure data, and use encoding algorithms to generate personalized keys, reduce key correlation and enhance the security of the encryption system.
It realizes personalized encrypted storage of user data, reduces key correlation, ensures that the security of other user data is not affected when the key is leaked, and enhances overall data security.
Smart Images

Figure CN118282652B
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a user data security protection method for smart rings. Background Art
[0002] Smart rings are small, discreet wearable devices that combine fashion with technology and provide a variety of health monitoring functions, such as heart rate monitoring, body temperature monitoring, blood oxygen monitoring, and sleep monitoring. These functions are achieved through built-in photoelectric sensors, body temperature sensors, and infrared sensors, which can accurately measure the user's heart rate and blood oxygen saturation.
[0003] When the smart ring data is transmitted to the server, it is often necessary to encrypt and store the data to protect the data. In the AES algorithm, when generating keys, a random bit sequence is usually generated by a secure random number generator, and these bit sequences will form the binary representation of the key. However, when generating keys in the server to store user data, there will be the following problems. Since the generated keys are random, they may have certain correlations, which will have a serious impact on the security of the encryption system. When there is correlation between keys, attackers may be more likely to infer part of the key information by analyzing the correlation between the keys, thereby reducing the security of the encryption system. Summary of the invention
[0004] In order to solve the above technical problems, the present application provides a user data security protection method for smart rings to solve the existing problems.
[0005] A user data security protection method for a smart ring in this application adopts the following technical solution:
[0006] An embodiment of the present application provides a user data security protection method for a smart ring, the method comprising the following steps:
[0007] The built-in sensor of the smart ring collects user data at each moment as each time series data point, including blood oxygen data, heart rate data and blood pressure data at the same moment;
[0008] The frequency consistency between any two time series data points is obtained based on the correspondence between blood oxygen data, heart rate data and blood pressure data; the user data is encoded using a coding algorithm;
[0009] The data correlation between the coded data of any two time series data points is obtained based on the frequency consistency; the first selected key coded data is obtained based on the data correlation; the key preferred value of each coded data is obtained based on the data correlation and the similarity between each coded data and the selected key coded data; other selected key coded data are obtained based on the key preferred value of each coded data to complete personalized key selection.
[0010] Preferably, the frequency consistency is specifically:
[0011] The blood oxygen data points at each moment after the collection moment corresponding to the a-th heart rate data point are used as the blood oxygen data points to be corresponding to the a-th heart rate data point;
[0012] Calculate the absolute value of the difference between the values of the ath and a+1th heart rate data points, and use the ratio of the absolute value of the difference to the value of the ath heart rate data point as the local data change amplitude of the ath heart rate data point; obtain the local data change amplitude of each heart rate data point and each blood oxygen data point by the method of obtaining the local data change amplitude of the ath heart rate data point; record the initial correspondence between the heart rate data point a and the corresponding bth blood oxygen to-be-corresponded data point as ,calculate The expression is:
[0013]
[0014] In the formula, is an exponential function with e as the base, n represents the number of data points in each local data sequence, , They represent the heart rate data point a and the i-th data point in the local data sequence corresponding to the b-th blood oxygen waiting data point, , They respectively represent the local data change amplitude of the heart rate data point a and the i-th data point in the local data sequence corresponding to the b-th blood oxygen waiting data point, represents the DTW distance, , They respectively represent the heart rate data point a and the local data sequence corresponding to the bth blood oxygen data point to be matched;
[0015] The local data sequence includes: taking the sequence consisting of the ath heart rate data point and the n-1 heart rate data points thereafter as the local data sequence of the ath heart rate data point; obtaining the local data sequence of each blood oxygen data point by the method of obtaining the local data sequence of each heart rate data point;
[0016] Get local data sequence and The comparison data between the groups includes: The i-th data point and the local data sequence The i-th data point in is taken as the local data sequence and The i-th group of comparison data between;
[0017] The local data sequence and The corresponding distribution characteristic value between ,calculate The expression is:
[0018]
[0019] In the formula, n represents the number of data points in each local data sequence, , Represent local data sequences and The initial correspondence between two data points in the i-th group and the i+1-th group of comparison data;
[0020] Obtain the corresponding characteristic value between the heart rate data point a and the corresponding b-th blood oxygen to-be-corresponded data point according to the corresponding value distribution characteristic value and the initial correspondence;
[0021] The frequency consistency between any two time series data points is obtained according to the corresponding feature values.
[0022] Preferably, the corresponding characteristic value is: the initial correspondence between the heart rate data point a and the corresponding b-th blood oxygen to-be-corresponded data point and the local data sequence and The corresponding values between are the products of the eigenvalues of the distribution.
[0023] Preferably, the frequency consistency between any two time series data points is obtained according to the corresponding feature values, specifically:
[0024] The blood oxygen data point corresponding to the maximum value of the corresponding characteristic value of the heart rate data point a is taken as the blood oxygen data point corresponding to the heart rate data point a;
[0025] The influence factor of heart rate data on blood oxygen data is obtained according to the corresponding characteristic values between each heart rate data point and the corresponding blood oxygen data point; the influence factor of heart rate data on blood pressure data is obtained; the frequency consistency between any two time series data points is obtained according to the influence factor of heart rate data on blood oxygen and blood pressure data and the difference between each time series data point.
[0026] Preferably, the method of obtaining the influence factor of the heart rate data on the blood oxygen data according to the corresponding characteristic value between each heart rate data point and the corresponding blood oxygen data point; obtaining the influence factor of the heart rate data on the blood pressure data; and obtaining the frequency consistency between any two time series data points according to the influence factor of the heart rate data on the blood oxygen and blood pressure data and the difference between each time series data point specifically includes:
[0027] Calculate the product of the corresponding characteristic value between each heart rate data point and the corresponding blood oxygen data point and the local data change amplitude of the corresponding blood oxygen data point; and take the sum of the products of all heart rate data points as the influence factor of the heart rate data on the blood oxygen data;
[0028] The expression for calculating frequency consistency is:
[0029]
[0030] In the formula, represents the frequency consistency between the qth time series data point and the wth time series data point, , and are the blood oxygen data, heart rate data and blood pressure data of the qth time series data point respectively, , and are the blood oxygen data, heart rate data and blood pressure data of the wth time series data point, , They respectively represent the influence factor of heart rate data on blood oxygen data and the influence factor of heart rate data on blood pressure data. is a very small positive number.
[0031] Preferably, the data correlation between the encoded data of any two time series data points obtained according to the frequency consistency is expressed as:
[0032]
[0033] In the formula, To encode the data correlation between data A and B, Indicates the frequency consistency between the time series data points corresponding to the encoded data A and B, is the number of dimensions of the data, Represents the corresponding feature value between the r-th dimension data point of the time series data point corresponding to the encoded data A and its corresponding data point.
[0034] Preferably, the first selected key encoding data is obtained according to the data correlation, specifically:
[0035] The average value of the data correlations between the Ath coded data and all other coded data is recorded as the average data correlation of the Ath coded data; the coded data corresponding to the minimum value of all average data correlations is taken as the first selected key coded data.
[0036] Preferably, obtaining the key preferred value of each coded data according to the data correlation and the similarity between each coded data and the selected key coded data specifically includes:
[0037] According to the frequency consistency, the approximation between the coded data B and the selected key coded data is obtained, which is denoted as ; The preferred key value of the encoded data B is recorded as ,calculate The expression is:
[0038]
[0039] In the formula, is an exponential function with base e, Represents the average value of the data correlation between the coded data B and all other coded data.
[0040] Preferably, the degree of similarity between the coded data B and the selected key coded data is: the sum of the frequency consistency between the coded data B and all the time series data points corresponding to the selected key coded data.
[0041] Preferably, the method of obtaining other selected key encoding data according to the key preferred value of each encoding data to complete the key selection is specifically as follows:
[0042] Step 1: The coded data with the largest key preference value is used as the selected key coded data;
[0043] Step 2: Recalculate the key preferred value for the remaining coded data except the selected key coded data;
[0044] Step 3: Repeat steps 1 to 2 until the selected key encoding data fills up the key bytes, and obtain the personalized key.
[0045] This application has at least the following beneficial effects:
[0046] The present application obtains user data collected by a smart ring, encodes the user data, and obtains the user's encoded data; obtains the data correlation between the encoded data of any two time series data points based on the corresponding characteristic values and frequency consistency; obtains the first selected key encoded data based on the data correlation; obtains the key preferred value of each encoded data based on the data correlation and the similarity between each encoded data and the selected key encoded data; obtains other selected key encoded data based on the preferred value of each encoded data to complete personalized key selection; encrypts and stores user data through the user's personalized key to achieve user data security protection; reduces the correlation of keys, and at the same time, when a user key is leaked, it will not affect the security of other user data, thereby enhancing the security of user data. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present application or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0048] Figure 1 A flowchart of a user data security protection method for a smart ring provided in this application;
[0049] Figure 2 A schematic diagram of the steps of a user data security protection method for a smart ring. DETAILED DESCRIPTION
[0050] In order to further explain the technical means and effects adopted by the present application to achieve the predetermined invention purpose, the following is a detailed description of the user data security protection method for a smart ring proposed in accordance with the present application, its specific implementation method, structure, features and effects, in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.
[0051] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs.
[0052] The following is a detailed description of a specific solution of a user data security protection method for a smart ring provided by the present application in conjunction with the accompanying drawings.
[0053] An embodiment of the present application provides a user data security protection method for a smart ring.
[0054] Specifically, the following user data security protection method for smart rings is provided, please refer to Figure 1 , the method comprises the following steps:
[0055] Step S001, complete the collection of user data through the smart ring.
[0056] The built-in sensor of the smart ring collects user-related data every 1 second, and the data collected each time includes the user's blood oxygen data, heart rate data and blood pressure data. It should be noted that the time interval for data collection can be set by the implementer, and this embodiment does not impose specific restrictions. All collected blood oxygen data, heart rate data and blood pressure data are normalized by the Z-score algorithm to eliminate the dimension effect.
[0057] Step S002, constructing the influence factor of the heart rate data on the blood pressure data and the blood oxygen data according to the influence of the heart rate data on the blood pressure data and the blood oxygen data, and adaptively constructing the frequency consistency between each time series data point based on the influence factor.
[0058] A smart ring is a device used to continuously monitor a user's sleep, heart rate, blood oxygen and other health data. It is used to help users arrange their daily routines and health management, and often needs to be uploaded to a cloud platform for storage.
[0059] The collected blood oxygen data, heart rate data and blood pressure data of the user are analyzed. Since the user health data is continuous health, the data is time series data, and each time series data point corresponds to a blood oxygen data, a heart rate data and a blood pressure data. Arrange all the blood oxygen data collected in real time in ascending time order, and the obtained sequence is recorded as the blood oxygen data sequence; arrange all the heart rate data collected in real time in ascending time order, and the obtained sequence is recorded as the heart rate data sequence; arrange all the blood pressure data collected in real time in ascending time order, and the obtained sequence is recorded as the blood pressure data sequence. Since the collected data is multi-dimensional data, and the data of each dimension is correlated, when the data of any dimension changes, it will cause the data point at that moment to be different from the data points at other moments.
[0060] For the data of different dimensions of time series data points, the number of heart beats per minute directly affects the efficiency of the heart pumping blood, which in turn affects the flow of blood and the pressure on the blood vessel wall. To a certain extent, heart rate and blood pressure are positively correlated, that is, when the heart rate increases, blood pressure tends to increase. When the heart rate increases, the blood oxygen saturation will decrease, because when the heart rate increases, the body needs more oxygen to meet the needs of activity, so the oxygen carried in the blood will decrease. When the heart rate decreases, the blood oxygen saturation will increase, because when the heart rate is slower, the blood has more time to exchange oxygen in the lungs, so the blood oxygen saturation will increase. It can be seen that the change of heart rate data directly affects the change of blood pressure data and blood oxygen data, so the heart rate data is further analyzed, and the influence factors of heart rate data on blood pressure data and blood oxygen data are constructed respectively, and the frequency consistency of time series data points is adaptively constructed based on the influence factors.
[0061] The collected multi-dimensional data is analyzed. The data of each dimension is time series data. When the user's heart rate data changes, the heart's pumping efficiency increases, and then the blood flow rate increases, resulting in an increase in blood pressure and a decrease in blood oxygen. This process requires a certain amount of time, that is, the impact of heart rate data on blood pressure data and blood oxygen data has a certain lag. Therefore, for any data point a in the heart rate data sequence, it is necessary to obtain the corresponding feature points in the blood pressure data sequence and the blood oxygen data sequence based on the lag. First, obtain the collection time corresponding to the heart rate data point a, and use the blood oxygen data points corresponding to each collection time after the collection time as the blood oxygen corresponding data points of the heart rate data point a. Then, the correspondence between the heart rate data point a and each of its corresponding blood oxygen data points is analyzed, and the corresponding characteristic values are calculated. Specifically, data point a and its subsequent n-1 data points are obtained in the heart rate data sequence, and the sequence consisting of data point a and its subsequent n-1 data points in ascending time order is recorded as the local data sequence of data point a; in the blood oxygen data sequence, the local data sequence of each blood oxygen data point is obtained by obtaining the local data sequence of the heart rate data point a; wherein the number of data points in each local data sequence is n, and it should be noted that the value of n can be set by the implementer, and the value of n is set to 6 in this embodiment; taking the blood oxygen data point b to be corresponding to the heart rate data point a as an example, the initial correspondence between each data point in the heart rate data sequence and each corresponding blood oxygen data point to be corresponding is calculated:
[0062]
[0063] In the formula, Indicates the initial correspondence between the ath data point in the heart rate data sequence and the bth blood oxygen waiting data point. is an exponential function with e as the base, n represents the number of data points in each local data sequence, , They represent the heart rate data point a and the i-th data point in the local data sequence corresponding to the b-th blood oxygen waiting data point, , They respectively represent the local data change amplitude of the heart rate data point a and the i-th data point in the local data sequence corresponding to the b-th blood oxygen waiting data point, represents the DTW distance function, , They represent the local data sequence of the heart rate data point a and the corresponding b-th blood oxygen waiting data point, It means the sequence and The DTW distance between Indicates the local data change amplitude of the heart rate data point a, , Respectively represent the values of the ath and a+1th data points in the heart rate data sequence. The dynamic time warping algorithm is a well-known technology and will not be described here; the heart rate data point a is the ath heart rate data point and also the ath data point in the heart rate data sequence. The local data change amplitude of each heart rate data point and each blood oxygen data point is obtained by calculating the local data change amplitude of the heart rate data point a.
[0064] and The larger the value is, the greater the difference in the data change trend between the two local data sequences is, and the smaller the possibility that the heart rate data point a and its blood oxygen corresponding data point b are corresponding data points is; when the heart rate data changes, it is often a continuous process, and its local data change trend should be relatively close. When the difference in the data change amplitude between its local data sequences and the normalized value of the data itself in the overall sequence is smaller, it means that the change in the blood oxygen data is more likely to be caused by the change in the heart rate data, and its initial correspondence is greater.
[0065] The local data sequence The first data point in the local data sequence The first data point in is used as the first set of comparison data, and the local data sequence The second data point in the local data series The second data point in is used as the second set of comparison data, and so on. The last data point in the local data sequence The last data point in is used as the last set of comparison data to obtain the local data sequence and Get the initial correspondence between two data points in each set of comparison data, where the local data sequence and The initial correspondence between two data points in the i-th group of comparison data is expressed as Based on the initial correspondence between the heart rate data points and the blood oxygen data points, the corresponding feature values between each heart rate data point and each corresponding blood oxygen data point to be corresponded are calculated:
[0066]
[0067] In the formula, , They represent the corresponding characteristic value and initial correspondence between the ath data point in the heart rate data sequence and the bth blood oxygen waiting data point, respectively. Represents a local data sequence and The corresponding value distribution characteristic value between them, n represents the number of data points in each local data sequence, , Represent local data sequences and The initial correspondence between two data points in the i-th group and the i+1-th group of comparison data.
[0068] The greater the initial correspondence between the data points in the local data sequence of the heart rate data point a and the data points in the local data sequence of its blood oxygen corresponding data point b, and the closer they are, the greater the possibility that the heart rate data point a and its blood oxygen corresponding data point b are corresponding data points.
[0069] Finally, the blood oxygen data point with the largest corresponding eigenvalue of the heart rate data point a is taken as the blood oxygen data point corresponding to the heart rate data point a, and the blood pressure data point corresponding to the heart rate data point a is obtained by the method of obtaining the blood oxygen data point corresponding to the heart rate data point a.
[0070] According to the above steps, each heart rate data point has a corresponding data point in the blood oxygen data and the blood pressure data.
[0071] The corresponding characteristic values between the heart rate data points and the corresponding blood oxygen data points or blood pressure data points reflect the degree of influence of the heart rate data on the blood oxygen data or blood pressure data. Here, taking the blood oxygen data as an example, the influence factor of the heart rate data on the blood oxygen data is constructed:
[0072]
[0073] In the formula, is the influence factor of heart rate data on blood oxygen data, N is the number of collected heart rate data points, represents the corresponding eigenvalue between the jth heart rate data point and the corresponding blood oxygen data point, Indicates the local data change amplitude of the blood oxygen data point corresponding to the j-th heart rate data point.
[0074] The larger the local change amplitude and the larger the corresponding eigenvalue, the more likely the change in blood oxygen data here is caused by the change in heart rate data, so the impact factor is greater.
[0075] The influence factor of heart rate data on blood pressure data is obtained by calculating the influence factor of heart rate data on blood oxygen data.
[0076] The larger the impact factor, the weaker the characteristic attribute representation of the blood oxygen data or blood pressure data itself. In order to make the data of the time series data point accurately reflect the status information of the current user, the larger the impact factor, the smaller its weight should be when calculating the frequency consistency.
[0077] Since one time series data point corresponds to multiple dimensional data, a slight change in one dimensional data will result in a difference between two time series data points. As a result, when performing frequency statistics on time series data points, there are many different types of time series data points, but the meanings represented by the time series data points are consistent, which will cause resource waste. Therefore, a frequency consistency index between each time series data point is constructed to evaluate the frequency of occurrence of the time series data point. Specifically, the qth time series data point is used Indicates that , and The collected blood oxygen data, heart rate data and blood pressure data are the qth time series data point respectively. Taking any time series data point q and any time series data point w as examples, the frequency consistency between any two time series data points is calculated:
[0078]
[0079] In the formula, represents the frequency consistency between the qth time series data point and the wth time series data point, , and are the blood oxygen data, heart rate data and blood pressure data of the qth time series data point respectively, , and are the blood oxygen data, heart rate data and blood pressure data of the wth time series data point, , They respectively represent the influence factor of heart rate data on blood oxygen data and the influence factor of heart rate data on blood pressure data. It is a very small positive number, the purpose of which is to prevent the denominator from being 0. Its example value is 0.001.
[0080] Set the first threshold. It should be noted that the first threshold can be set by the implementer. In this embodiment, the first threshold is set to 0.8. Obtain the normalized value of the frequency consistency between the qth time series data point and the wth time series data point. If the normalized frequency consistency index is greater than or equal to the first threshold, the qth time series data point and the wth time series data point are time series data points of the same type; if the normalized frequency consistency index is less than the first threshold, the qth time series data point and the wth time series data point are time series data points of different types. Obtain all time series data points of the same type for the qth time series data point using the above method.
[0081] Step S003, by analyzing the user's coded data, adaptively selecting the coded data as a key in combination with frequency consistency, obtaining a user personalized key with low correlation, encrypting and storing the user data with the user personalized key, and realizing user data security protection.
[0082] The implementer may use Huffman coding, Lempel-Ziv coding, Run-Length Encoding (RLE), Burrows-Wheeler Transform (BWT) and other coding algorithms to encode the user data. This embodiment uses the Huffman coding algorithm to encode the user data.
[0083] When smart ring data is transmitted to the server, it is often necessary to encrypt and store the data to protect the data.
[0084] In the AES algorithm, when generating a key, a secure random number generator is usually used to generate a random bit sequence, which will form the binary representation of the key. However, when generating keys in the server to store user data, there will be the following problems. Since the generated keys are random, they may have certain correlations, which will have a serious impact on the security of the encryption system. When there is correlation between keys, it may be easier for attackers to infer part of the key information by analyzing the correlation between keys, thereby reducing the security of the encryption system. At the same time, the server often stores a large amount of data of different users. When the key is cracked, a large amount of user data will be lost.
[0085] Therefore, in this embodiment, by analyzing the data collected from different users, the bit sequence with low correlation in the user data is adaptively obtained to generate the user's personalized key, and then the user data is encrypted by the AES algorithm. The adaptive generation of the user's personalized key reduces the correlation of the key. At the same time, when a user's key is leaked, it will not affect the security of other users' data, thereby enhancing the security of user data.
[0086] According to the above steps, the encoded user data received by the server is analyzed. Since different codes often correspond to different user data, taking Huffman coding as an example, for each user data, after encoding, the user data corresponding to the coding table can be queried through the Huffman coding table. Assume that there are M encoded data in the Huffman coding table, and each code corresponds to a different time series data point of the user.
[0087] By analyzing the user's coded data, the coded data is adaptively selected as the key to obtain a user-personalized key with low correlation, and then the user data is encrypted and stored using the user-personalized key to improve the security of the user data. The specific process is as follows:
[0088] For any coded data in the Huffman coding table, we assume that it is coded data A. Then, we can obtain the user time series data point corresponding to the coded data A through the Huffman coding table, and build the data correlation between the user time series data point and the user time series data points corresponding to the remaining coded data based on the data features of the user time series data point. Here, we take coded data A and B as an example to calculate the data correlation between each coded data and the remaining coded data:
[0089]
[0090] In the formula, To encode the data correlation between data A and B, Indicates the frequency consistency between the time series data points corresponding to the coded data A and B. The larger its value, the greater the data correlation; is the number of dimensions of the data. In this embodiment, three types of data are included, so the number of dimensions is 3; The corresponding characteristic value between the r-th dimension data point of the time series data point corresponding to the encoded data A and its corresponding data point, the larger the value, the less likely the r-th dimension data corresponding to the encoded data A is to be interfered with, and the greater the correlation.
[0091] The greater the data correlation, the greater the correlation between the coded data and the remaining coded data, and the lower the security when it is used as a key. According to the above steps, each coded data in the Huffman coding table has corresponding data correlation with the remaining coded data. Calculate the average value of the data correlation between each coded data and all other coded data, record it as the average data correlation of each coded data, take the coded data with the smallest average data correlation as part of the key, and record the coded data as the selected key coded data, which is the first selected key coded data.
[0092] Then analyze the remaining encoded data. Here, take encoded data B as an example to obtain the preferred value of each remaining data as the key:
[0093]
[0094] In the formula, is the preferred value of the key for encoding data B, is an exponential function with base e, Indicates the similarity between the encoded data B and the selected key encoded data. The larger the value, the smaller the preferred value of the encoded data B as the key data. represents the average value of the data correlation between the coded data B and all other coded data, H represents the number of coded data with the selected key, Indicates the coded data B and The frequency consistency between the time series data points corresponding to the selected key encoded data.
[0095] According to the above steps, each remaining coded data can obtain the corresponding key preference value, and the coded data with the largest key preference value is used as part of the key, and the coded data is also used as the selected key coded data. Then, the key preference value is recalculated for each remaining coded data except the selected key coded data, and the next selected key coded data is obtained, and so on, until the key bytes are filled. At this time, the AES algorithm key selection is completed adaptively, and the user's personalized key is obtained.
[0096] The key length of the AES algorithm involved in this embodiment is 128 bytes. According to the above steps, the user's personalized key can be obtained, and the user data is encrypted and stored by the user's personalized key. The AES encryption algorithm process is a well-known technology and will not be repeated here. The steps of the above method are shown in the figure. Figure 2 shown.
[0097] In summary, the embodiment of the present application obtains the user data collected by the smart ring, encodes the user data, and obtains the user's encoded data; obtains the data correlation between the encoded data of any two time series data points according to the corresponding characteristic values and frequency consistency; obtains the first selected key encoded data according to the data correlation; obtains the key preferred value of each encoded data according to the data correlation and the similarity between each encoded data and the selected key encoded data; obtains other selected key encoded data according to the preferred value of each encoded data, and completes personalized key selection; encrypts and stores user data through user personalized keys to achieve user data security protection; reduces the correlation of keys, and at the same time, when a user key is leaked, it will not affect the security of other user data, thereby enhancing the security of user data.
[0098] It should be noted that the above sequence of the embodiments of the present application is for description only and does not represent the advantages and disadvantages of the embodiments. The above is a description of a specific embodiment of this specification. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0099] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.
[0100] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Modifications to the technical solutions recorded in the aforementioned embodiments, or equivalent replacement of some of the technical features therein, do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A user data security protection method for a smart ring, characterized in that: The method comprises the following steps: The built-in sensor of the smart ring collects user data at each moment as each time series data point, including blood oxygen data, heart rate data and blood pressure data at the same moment; The frequency consistency between any two time series data points is obtained based on the correspondence between blood oxygen data, heart rate data and blood pressure data; Encode user data using a coding algorithm; obtain data correlation between coded data of any two time series data points based on frequency consistency; obtain the first selected key coded data based on the data correlation; obtain the key preferred value of each coded data based on the data correlation and the similarity between each coded data and the selected key coded data; obtain other selected key coded data based on the key preferred value of each coded data to complete personalized key selection; The frequency consistency is specifically: The blood oxygen data points at each moment after the collection moment corresponding to the a-th heart rate data point are used as the blood oxygen data points to be corresponding to the a-th heart rate data point; Calculate the absolute value of the difference between the values of the ath and a+1th heart rate data points, and use the ratio of the absolute value of the difference to the value of the ath heart rate data point as the local data change amplitude of the ath heart rate data point; obtain the local data change amplitude of each heart rate data point and each blood oxygen data point by the method of obtaining the local data change amplitude of the ath heart rate data point; record the initial correspondence between the heart rate data point a and the corresponding bth blood oxygen to-be-corresponded data point as V a,b , calculate V a,b The expression is: In the formula, exp(*) is an exponential function with e as the base, n represents the number of data points in each local data sequence, They represent the heart rate data point a and the i-th data point in the local data sequence corresponding to the b-th blood oxygen waiting data point, They represent the local data change amplitude of the heart rate data point a and the local data sequence of the i-th data point corresponding to the b-th blood oxygen waiting data point, DTW (,) represents the DTW distance, X a , X b They respectively represent the heart rate data point a and the local data sequence corresponding to the bth blood oxygen data point to be matched; The local data sequence includes: taking the sequence consisting of the ath heart rate data point and the n-1 heart rate data points thereafter as the local data sequence of the ath heart rate data point; obtaining the local data sequence of each blood oxygen data point by the method of obtaining the local data sequence of each heart rate data point; Get local data sequence X a With X b The comparison data between the groups include: a The i-th data point and the local data sequence X b The i-th data point in is taken as the local data sequence X a With X b The i-th group of comparison data between; The local data sequence X a With X b The corresponding distribution characteristic value between is recorded as F a,b , calculate F a,b The expression is: In the formula, n represents the number of data points in each local data sequence, Represent the local data sequence X a With X b The initial correspondence between two data points in the i-th group and the i+1-th group of comparison data; Obtain the corresponding characteristic value between the heart rate data point a and the corresponding b-th blood oxygen to-be-corresponded data point according to the corresponding value distribution characteristic value and the initial correspondence; Obtain the frequency consistency between any two time series data points based on the corresponding feature values; The corresponding characteristic value is: the initial correspondence between the heart rate data point a and the corresponding b-th blood oxygen to-be-corresponded data point and the local data sequence X a With X b The product of the corresponding value distribution eigenvalues between; The frequency consistency between any two time series data points is obtained according to the corresponding feature values, specifically: The blood oxygen data point corresponding to the maximum value of the corresponding characteristic value of the heart rate data point a is taken as the blood oxygen data point corresponding to the heart rate data point a; Obtain the influence factor of heart rate data on blood oxygen data according to the corresponding characteristic values between each heart rate data point and the corresponding blood oxygen data point; obtain the influence factor of heart rate data on blood pressure data; obtain the frequency consistency between any two time series data points according to the influence factor of heart rate data on blood oxygen and blood pressure data and the difference between each time series data point; The method of obtaining the influence factor of the heart rate data on the blood oxygen data according to the corresponding feature value between each heart rate data point and the corresponding blood oxygen data point; obtaining the influence factor of the heart rate data on the blood pressure data; and obtaining the frequency consistency between any two time series data points according to the influence factor of the heart rate data on the blood oxygen and blood pressure data and the difference between each time series data point specifically includes: Calculate the product of the corresponding characteristic value between each heart rate data point and the corresponding blood oxygen data point and the local data change amplitude of the corresponding blood oxygen data point; and take the sum of the products of all heart rate data points as the influence factor of the heart rate data on the blood oxygen data; The expression for calculating frequency consistency is: In the formula, Z q,w Indicates the frequency consistency between the qth time series data point and the wth time series data point, XY q , XL q and BP q are the blood oxygen data, heart rate data, and blood pressure data of the qth time series data point, respectively. w , XL w and BP w are the blood oxygen data, heart rate data and blood pressure data of the wth time series data point, respectively, XY , YX BP They represent the influence factor of heart rate data on blood oxygen data and the influence factor of heart rate data on blood pressure data, respectively, and ε is a very small positive number; The data correlation between the encoded data of any two time series data points obtained according to frequency consistency is expressed as: In the formula, XG A,B To encode the data correlation between data A and B, Z (A,B) Indicates the frequency consistency between the time series data points corresponding to the encoded data A and B, n' is the number of dimensions of the data, V' (r,A) Represents the corresponding eigenvalue between the r-th dimension data point of the time series data point corresponding to the encoded data A and its corresponding data point; The first selected key encoding data is obtained according to the data correlation, specifically: The average value of the data correlations between the Ath coded data and all other coded data is recorded as the average data correlation of the Ath coded data; the coded data corresponding to the minimum value of all the average data correlations is taken as the first selected key coded data; The step of obtaining the key preferred value of each coded data according to the data correlation and the similarity between each coded data and the selected key coded data specifically includes: According to the frequency consistency, the approximation between the coded data B and the selected key coded data is obtained, which is denoted as LS B ; The preferred key value of the encoded data B is recorded as YX B , calculate YX B The expression is: In the formula, exp(*) is an exponential function with e as the base, Represents the average value of the data correlation between the coded data B and all other coded data.
2. A user data security protection method for a smart ring according to claim 1, characterized in that: The degree of similarity between the coded data B and the selected key coded data is: the sum of the frequency consistency between the coded data B and the time series data points corresponding to all the selected key coded data.
3. A user data security protection method for a smart ring as claimed in claim 1, characterized in that: The method of obtaining other selected key encoding data according to the key preferred value of each encoding data to complete the key selection is specifically as follows: Step 1: The coded data with the largest key preference value is used as the selected key coded data; Step 2: Recalculate the key preferred value for the remaining coded data except the selected key coded data; Step 3: Repeat steps 1 to 2 until the selected key encoding data fills up the key bytes, and obtain the personalized key.
Citation Information
Patent Citations
Key generation, certification and data transmission method based on physiological features
CN103944725A
Electrocardiosignal transmission method and device, sensor, terminal and storage medium
CN110381461A
Blood oxygen data accurate acquisition system based on intelligent ring
CN117807531A
Data processing method and system for digital currency
CN117829837A
Intelligent ring data secure transmission method and system
CN118101135A
