Health data storage and reading method and storage medium

By formulating a classification and hierarchical encryption strategy for health data, combined with intelligent data retrieval and selective decryption, the classification management, privacy protection and access rights control of health data are solved, and efficient data retrieval and security management are achieved, reducing the Data breach risk.

CN118886031AActive Publication Date: 2024-11-01XIAN DAZHIHUITONG TECHNOLOGY CO LTD

Patent Information

Application Number
CN202411000198.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-24
Publication Date
2024-11-01
Estimated Expiration
2044-07-24

AI Technical Summary

Technical Problem

There are challenges in the classification management, privacy protection, encryption security and access control of health data, especially in environments with large data volume and high sensitivity, and the existing technology is difficult to effectively solve the problems of data leakage and unauthorized access.

Method used

By classifying personal health data, formulating hierarchical encryption strategies based on privacy preference analysis, performing mixed storage and encryption, and combining intelligent data retrieval and selective decryption, flexible access control and security management are achieved.

Benefits of technology

It improves data retrieval efficiency, enhances privacy protection, ensures data security and rational use, reduces data redundancy, optimizes the use of storage resources, and reduces the risk of data leakage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118886031A_ABST
    Figure CN118886031A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of data processing, in particular to a health data storage and reading method and a storage medium. The method comprises the following steps: performing personal health data acquisition on a target object to obtain physiological and biochemical health data and behavioral life pattern data; performing privacy preference analysis on the target object based on the physiological and biochemical health data and the behavioral life pattern data to obtain a privacy sensitivity data set; performing hierarchical encryption strategy making on the physiological and biochemical health data and the behavioral life mode data according to the privacy sensitivity data set to obtain a hierarchical encryption strategy set; and performing data distribution decision on the physiological and biochemical health data and the behavioral life mode data to obtain a data distribution strategy. According to the method, the classification accuracy and effective management of the health data are improved, and the data retrieval efficiency is also improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a method for storing and reading health data and a storage medium. Background Art

[0002] In the current field of data processing technology, especially in the storage and reading of health data, there are some technical problems that need to be solved urgently. First, with the rapid increase in the amount of health data, how to effectively classify and manage this data has become a challenge. Personal health data usually includes multiple types, such as sleep data, physiological data, biochemical data, activity data, and nutritional data. These data need to be accurately classified and stored for subsequent access and analysis.

[0003] Secondly, privacy protection is an important issue in the storage and reading of health data. Health data often contains sensitive information. How to ensure data security while facilitating data retrieval and use is a difficult problem in existing technologies. Traditional data storage methods cannot fully consider the privacy sensitivity of data, leading to the risk of data leakage.

[0004] Furthermore, data encryption and secure storage are also areas that need to be focused on. Existing encryption technologies cannot meet the growing security needs, especially in terms of multi-level data protection. How to formulate an effective hierarchical encryption strategy to adapt to health data of different sensitivity levels is an important direction in technology development.

[0005] Finally, data access control is also a key issue. As health data applications become more widespread, different users have different access requirements for data. How to intelligently determine the user's access rights to health data based on their identity and needs is an important part of ensuring the rational use and security of data. Existing technologies are insufficient in terms of access control and cannot provide flexible and secure access management. Summary of the invention

[0006] Based on this, it is necessary for the present invention to provide a method and storage medium for storing and reading health data to solve at least one of the above technical problems.

[0007] To achieve the above purpose, a method for storing and reading health data includes the following steps:

[0008] Step S1: obtaining personal health data; classifying the personal health data to obtain physiological and biochemical health data and behavioral life pattern data;

[0009] Step S2: performing privacy preference analysis on the target object based on the physiological and biochemical health data and the behavioral life pattern data to obtain a privacy sensitivity data set; formulating a hierarchical encryption strategy for the physiological and biochemical health data and the behavioral life pattern data based on the privacy sensitivity data set to obtain a hierarchical encryption strategy set;

[0010] Step S3: making data diversion decisions on the physiological and biochemical health data and the behavioral life pattern data to obtain a data diversion strategy; mixing and storing and encrypting the physiological and biochemical health data and the behavioral life pattern data according to the hierarchical encryption strategy set and the data diversion strategy to obtain local encrypted health data and cloud encrypted health data;

[0011] Step S4: obtaining user query request data; performing identity authentication analysis on the user query request data to obtain user identity feature data; determining access rights for the querying user based on the user identity feature data to obtain a data access rights result;

[0012] Step S5: Based on the local encrypted health data and the cloud encrypted health data, intelligent data retrieval and selective decryption are performed according to the data access permission results to obtain authorized health data, and the authorized health data is fed back to the querying user.

[0013] The present invention not only improves the efficiency of data retrieval through accurate classification and effective management of personal health data, but also provides a solid foundation for data analysis and application. Secondly, through privacy preference analysis and the formulation of hierarchical encryption strategies, the protection of personal privacy is strengthened and the risk of data leakage is effectively reduced. In addition, through flexible security control and intelligent access permission control, the security and rational use of data are ensured, while unauthorized access is prevented. The present invention also ensures the accuracy of data use and meets the actual needs of users through intelligent data retrieval and selective decryption. Through historical access logs and storage resource monitoring, dynamically adjusted storage strategies optimize the use of storage resources, reduce data redundancy, and improve storage efficiency.

[0014] Preferably, the present invention also provides a computer-readable storage medium storing a method for storing and reading health data as described above that can be loaded and executed by a processor. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments thereof made with reference to the following drawings:

[0016] Figure 1 A schematic flow chart of the steps of a method for storing and reading health data according to an embodiment is shown.

[0017] Figure 2A detailed flow chart of step S2 of an embodiment is shown.

[0018] Figure 3 A detailed flow chart of step S25 of an embodiment is shown. DETAILED DESCRIPTION

[0019] The technical method of the present invention is described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by technicians in this field without creative work are within the scope of protection of the present invention.

[0020] In addition, the accompanying drawings are only schematic illustrations of the present invention and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. The functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor methods and / or microcontroller methods.

[0021] It should be understood that, although the terms "first", "second", etc. may be used herein to describe various units, these units should not be rejected by these terms. These terms are used only to distinguish one unit from another unit. For example, without departing from the scope of the exemplary embodiments, the first unit may be referred to as the second unit, and similarly the second unit may be referred to as the first unit. The term "and / or" used herein includes any and all combinations of one or more of the listed associated items.

[0022] To achieve this, please refer to Figures 1 to 3 The present invention provides a method for storing and reading health data, comprising the following steps:

[0023] Step S1: obtaining personal health data; classifying the personal health data to obtain physiological and biochemical health data and behavioral life pattern data;

[0024] Step S2: performing privacy preference analysis on the target object based on the physiological and biochemical health data and the behavioral life pattern data to obtain a privacy sensitivity data set; formulating a hierarchical encryption strategy for the physiological and biochemical health data and the behavioral life pattern data based on the privacy sensitivity data set to obtain a hierarchical encryption strategy set;

[0025] Step S3: making data diversion decisions on the physiological and biochemical health data and the behavioral life pattern data to obtain a data diversion strategy; mixing and storing and encrypting the physiological and biochemical health data and the behavioral life pattern data according to the hierarchical encryption strategy set and the data diversion strategy to obtain local encrypted health data and cloud encrypted health data;

[0026] Step S4: obtaining user query request data; performing identity authentication analysis on the user query request data to obtain user identity feature data; determining access rights for the querying user based on the user identity feature data to obtain a data access rights result;

[0027] Step S5: Based on the local encrypted health data and the cloud encrypted health data, intelligent data retrieval and selective decryption are performed according to the data access permission results to obtain authorized health data, and the authorized health data is fed back to the querying user.

[0028] The present invention not only improves the efficiency of data retrieval through accurate classification and effective management of personal health data, but also provides a solid foundation for data analysis and application. Secondly, through privacy preference analysis and the formulation of hierarchical encryption strategies, the protection of personal privacy is strengthened and the risk of data leakage is effectively reduced. In addition, through flexible security control and intelligent access permission control, the security and rational use of data are ensured, while unauthorized access is prevented. The present invention also ensures the accuracy of data use and meets the actual needs of users through intelligent data retrieval and selective decryption. Through historical access logs and storage resource monitoring, dynamically adjusted storage strategies optimize the use of storage resources, reduce data redundancy, and improve storage efficiency.

[0029] In this embodiment, personal health data including sleep patterns, heart rate, and blood pressure are first collected through mobile health applications or wearable devices, and then data analysis tools are used to classify the data to generate physiological and biochemical health data and behavioral life pattern data. Next, the classified data is subjected to privacy preference analysis to identify privacy sensitivity and create a privacy sensitivity data set. Based on this data set, a hierarchical encryption strategy set is formulated to provide encryption protection of corresponding strength for sensitive data of different levels. Through data management tools, considering user access patterns and local storage capacity, a data diversion strategy is formulated, and then the data is mixed according to the hierarchical encryption strategy set and the data diversion strategy. After partial encryption, it is stored in a secure area of ​​the local device, such as Android Keystore or iOS Secure Enclave, and the rest is securely uploaded to a cloud storage service such as Amazon S3 or Google Cloud Storage, forming local encrypted health data and cloud encrypted health data. When a user initiates a query request, an authentication mechanism (such as OAuth 2.0 or OpenID Connect) is used to perform identity authentication parsing, extract user identity feature data, and determine data access rights according to the permission control policy to obtain data access rights. Based on the results, the encrypted data is intelligently retrieved and selectively decrypted, and the authorized health data is fed back to the user through a secure protocol (such as HTTPS, SSL / TLS) to ensure data security. Sensitive operations throughout the process are recorded in detail for security auditing and monitoring.

[0030] Preferably, step S1 comprises the following steps:

[0031] Step S11: collecting eye micro-electrophysiological signals of the target object to obtain enhanced eye movement data of the object;

[0032] Specifically, eye tracking sensors can be selected and accurately placed at key locations of the target object, and wireless synchronization technology, such as Bluetooth or Wi-Fi, can be used to ensure that data from all sensors can be transmitted to a central processing unit in real time, ultimately obtaining enhanced eye movement data and enhanced skin physiological data of the object.

[0033] Step S12: performing neuromorphic computation processing on the enhanced eye movement data of the object to obtain neural coded eye movement feature data of the object;

[0034] Specifically, the object-enhanced eye movement data can be loaded, including but not limited to the frequency, amplitude and direction information of eye movements. Then, a neuromorphic computing model that simulates the human visual system is constructed, and deep learning algorithms such as convolutional neural networks (CNN) or recurrent neural networks (RNN) are used to extract features from the object-enhanced eye movement data. The model is trained and optimized through the back-propagation algorithm to improve its prediction accuracy and generalization ability. Finally, the object neural encoding eye movement feature data is generated.

[0035] Step S13: performing a multi-spectral dynamic skin resistance scan on the target object to obtain enhanced skin physiological data of the object, and performing terahertz spectrum analysis on the enhanced skin physiological data of the object to obtain deep skin metabolism characteristic data of the object;

[0036] Specifically, a terahertz time-domain spectrometer (THz-TDS) can be used to scan the skin of the target object. The device emits terahertz pulses with a frequency range of 0.1-10THz and receives the reflected signal through a high-speed photoconductive antenna. During the acquisition process, the probe is placed on different skin parts of the target object, and each position is collected 100 times and averaged to improve the signal-to-noise ratio. The acquired time domain data is converted into frequency domain data by fast Fourier transform. Then, the principal component analysis (PCA) and partial least squares regression (PLSR) algorithms are used to reduce the dimension and extract features of the spectrum data. Finally, the extracted features are converted into specific skin metabolism indicators such as collagen content, water molecule dynamics, and subcutaneous fat distribution through a pre-trained deep neural network model, thereby obtaining the deep skin metabolism characteristic data of the object.

[0037] Step S14: non-invasively collecting physiological parameters of the target object to obtain comprehensive physiological data of the object;

[0038] Specifically, the target object can first wear a multifunctional physiological monitor that integrates multiple sensors. ECG signals are collected through dry electrodes with a sampling rate of 1000Hz; respiratory signals use a resistive respiratory belt with a sampling rate of 100Hz; blood oxygen saturation is measured by a reflective pulse oximeter, and the data is updated once per second. At the same time, an infrared thermal imaging camera (resolution 320x240, temperature resolution 0.05℃) is used to perform a full-body scan of the target object every 5 minutes. Microwave Doppler radar (operating frequency 24GHz, sampling rate 100Hz) is used to capture tiny body movements. All data are transmitted to the central processing unit in real time via the Bluetooth 5.0 protocol. Data preprocessing includes median filtering to remove baseline drift, wavelet transform denoising, and outlier detection and interpolation. Finally, all processed data are aligned by timestamp to form the comprehensive physiological data of the object.

[0039] Step S15: Performing physiological rhythm dynamic modeling analysis on the comprehensive physiological data of the subject to obtain physiological rhythm prediction data of the subject;

[0040] Specifically, fast Fourier transform (FFT) and continuous wavelet transform (CWT) can be used to perform time-frequency analysis on various physiological indicators in the comprehensive physiological data of the subject to identify significant periodic patterns. Then, nonlinear time series analysis methods such as phase space reconstruction and recursive quantitative analysis (RQA) are used to extract the dynamic characteristics of the system. Next, a multiscale entropy (MSE) model is constructed to quantify the complexity of physiological signals at different time scales. Based on these analyses, a deep learning model combining a long short-term memory network (LSTM) with an attention mechanism is designed. The model takes the physiological data of the past 72 hours as input and predicts the changes in physiological indicators in the next 24 hours. The model training uses the Adam optimizer with a learning rate of 0.001, a batch size of 64, and a training round of 200. Finally, the model prediction results are smoothed by the sliding window method to obtain the predicted data of the subject's physiological rhythm.

[0041] Step S16: Performing micro-sampling of the target object with a nano-biosensor to obtain the nano-level biochemical index data of the target object, and performing integrated monitoring of the target object with a smart wearable device to obtain the all-weather activity trajectory data of the target object;

[0042] Specifically, microfluidic chip technology can be used for nanobiosensor microsampling. The chip is made of PDMS (polydimethylsiloxane) material and contains multiple microchannels and sampling chambers. Through capillary action and micropump drive, a trace amount (about 100nL) of sweat and sebum is extracted from the skin surface of the target object. The sample is then introduced into the nanobiosensor array integrated on the chip. The array contains gold nanoparticle sensors modified with specific antibodies for detecting electrolyte (such as sodium, potassium ion) concentrations; carbon nanotube field effect transistors for measuring glucose and lactate levels; and graphene quantum dot sensors for detecting hormone content, such as cortisol. The sensor signal is amplified and processed by an on-chip integrated circuit, and the data is finally transmitted through a wireless module to form the object's nanoscale biochemical indicator data. At the same time, the target object is equipped with smart wearable devices, including a smart watch (sampling rate 100Hz) using a 9-axis inertial measurement unit (IMU) and smart clothing integrated with a flexible strain sensor. The IMU data is fused by the Kalman filter algorithm to achieve high-precision motion trajectory reconstruction. The strain sensor network on the clothing (32x32 grid, sampling rate 50Hz) detects body posture through capacitance changes. All data is transmitted to the mobile device in real time via low-power Bluetooth (BLE 5.0). After data cleaning and feature extraction, the object's all-weather activity trajectory data is generated.

[0043] Step S17: Conduct non-contact sleep monitoring on the target subject to obtain the subject's full-cycle sleep quality data;

[0044] Specifically, a high-precision pressure-sensing mattress (sampling rate 100Hz) can be installed in the sleeping environment, paired with an infrared thermal imaging camera (resolution 640x480, frame rate 30fps) and an environmental sensor kit. The pressure-sensing mattress uses a capacitive sensor array (64x128 grid) to capture body movements and breathing patterns. The infrared thermal imaging camera analyzes changes in body temperature distribution in real time through a thermal image processing algorithm. The environmental sensor kit includes a thermometer (accuracy ±0.1°C), a hygrometer (accuracy ±2%RH), and a decibel meter (measurement range 30-130dB). All data is processed in real time by edge computing devices, and a convolutional neural network (CNN) model is applied to identify sleep stages, and a recursive neural network (RNN) analyzes changes in sleep cycles. Ultimately, the sleep monitoring data forms the subject's full-cycle sleep quality data.

[0045] Step S18: classify and integrate the subject's neural coding eye movement feature data, the subject's deep skin metabolism feature data, the subject's physiological rhythm prediction data, and the subject's nanoscale biochemical indicator data to obtain physiological and biochemical health data, and classify and integrate the subject's all-day activity trajectory data and the subject's full-cycle sleep quality data to obtain behavioral life pattern data.

[0046] Specifically, data preprocessing methods can be used to standardize and normalize various types of data. For time series data (such as physiological rhythm prediction data and activity trajectory data), the dynamic time warping (DTW) algorithm is applied for time alignment. Then, a multi-label classifier (such as ML-kNN or BP-MLL) is used to preliminarily label the data, and the data is divided into five categories: sleep, physiology, biochemistry, activity and nutrition, and then the five categories are classified into physiological and biochemical health data and behavioral life pattern data. Next, a hierarchical clustering algorithm (such as AGNES) is applied to subdivide the data in each major category to form a multi-level data structure. In order to handle the complex relationship between data, a knowledge graph is constructed, and entity recognition and relationship extraction techniques are used to convert data points into nodes and edges in the graph. Subsequently, a graph neural network (such as Graph Convolutional Network) is used to perform deep learning on the knowledge graph to extract high-order features and implicit relationships. Finally, an integrated learning method (such as Stacking) is used to combine the outputs of each model to generate the final classification result. The entire process is parallelized through a distributed computing framework (such as Apache Spark) to improve efficiency. The final output physiological and biochemical health data and behavioral life pattern data are stored in a hierarchical JSON format, and each data point contains the original value, standardized value, category label, and associated information.

[0047] The present invention realizes comprehensive health monitoring of the physiological and biochemical state of the target object by utilizing a multimodal biosensor array, thereby providing a more comprehensive health status analysis. The application of micro-electrophysiological signal acquisition technology makes the collection of eye movement and skin physiological data more accurate, enhancing the quality and depth of the data. Terahertz spectroscopy analysis technology deeply analyzes the metabolic characteristics of the deep layer of the skin and reveals more health information. The physiological rhythm dynamic modeling and analysis technology can predict the physiological rhythm changes of the target object and provide forward-looking guidance for health management. The use of nano-biosensors makes the sampling of biochemical indicators more refined and provides more accurate health data. The application of smart wearable devices records the all-weather activity trajectory of the target object, providing data support for the analysis of activity habits and lifestyles. Contactless sleep monitoring technology comprehensively evaluates the sleep quality of the target object. Intelligent digestive tract nutrition monitoring technology accurately monitors nutrient absorption. Category labeling and integration technology effectively integrates various types of health data to form comprehensive and systematic personal health data. The comprehensive application of these technologies improves the personalization and effectiveness of health management.

[0048] Preferably, step S2 comprises the following steps:

[0049] Step S21: extracting semantic labels from physiological and biochemical health data and behavioral life pattern data to obtain a health data semantic label set;

[0050] Specifically, a machine learning-based text analysis module can be deployed to process and analyze classified personal health data. The module first receives physiological and biochemical health data and behavioral life pattern data input in text form, such as sleep data and physiological data, and then uses natural language processing technology to perform word segmentation to decompose the text into separate elements. Through part-of-speech tagging, the module identifies nouns and adjectives, which are candidates for label semantics. The module further uses ontologies and terminologies in the medical field to match and verify these candidate words. Next, the named entity recognition (NER) model is used to identify specific medical entities in the text, such as disease names or physiological indicators, and extract them as key semantic tags. Dependency syntactic analysis helps the system understand the semantic relationship between words, thereby refining the context and importance of the tag. Finally, all extracted semantic tags are integrated into a set to obtain a health data semantic tag set, which records in detail the keywords and concepts associated with each health data category.

[0051] Step S22: presenting the health data semantic tag set and the preset privacy sensitivity options to the target object, and recording the privacy sensitivity options checked by the target object to obtain a privacy sensitivity data set;

[0052] Specifically, a user-friendly interface can be developed that is integrated into the health data recording software of the mobile terminal. The interface is designed to display the semantic label set of health data and provide a set of preset privacy sensitivity options, such as "insensitive", "medium sensitive", and "highly sensitive". Through this interface, users can view the semantic label of each health record and select the corresponding privacy sensitivity level by checking or sliding the slider. The software uses a database to store the user's selections, and each time the user makes a selection, the software updates the records in the database in real time. In this way, each label is associated with the privacy sensitivity defined by the user, forming a privacy sensitivity dataset.

[0053] Step S23: labeling the physiological and biochemical health data and the behavioral life pattern data with corresponding sensitivity according to the privacy sensitivity data set to obtain sensitivity-labeled health data;

[0054] Specifically, an automated script can be run on the backend of the software, which reads the records in the privacy sensitivity dataset and traverses the health data records in the database. The script will use the data labeling tool to label each piece of health data accordingly based on the privacy sensitivity level selected by the user for each semantic tag. For example, if the user's sleep data is labeled as "highly sensitive", the script will attach a "high privacy" label to this data. In this way, each piece of health data will be given a clear privacy sensitivity label, thus forming a sensitivity-labeled health dataset.

[0055] Step S24: performing same-level clustering on the sensitivity-labeled health data to obtain several groups of hierarchical health data;

[0056] Specifically, clustering algorithms, such as k-means or hierarchical clustering, can be used to process sensitivity-labeled data sets. The algorithm groups data points according to the privacy sensitivity labels of the data to ensure that the data in the same group has the same privacy level. For example, all data marked as "high privacy" will be clustered into the same group. The clustering results can be presented to the user by the software in a visual way, such as through a list or chart, clearly showing the data groupings at different privacy levels. Finally, several groups of hierarchical health data are obtained.

[0057] Step S25: Formulate hierarchical encryption strategies for several groups of hierarchical health data to obtain a hierarchical encryption strategy set.

[0058] Specifically, please refer to the sub-steps of step S25 for the specific implementation process of this embodiment.

[0059] The present invention enhances the retrievability of data through precise semantic tag extraction. Personalized privacy preference identification ensures that data protection measures can meet the actual needs of users. By displaying preset privacy sensitivity options and recording user selections, personalized identification of user privacy preferences is achieved. The privacy level of data is clearly distinguished through data sensitivity labeling, which provides a basis for hierarchical encryption and strengthens privacy protection. Efficient data clustering through the same-level clustering method simplifies the complexity of data management and improves data processing efficiency. By taking corresponding encryption measures according to the sensitivity level of the data, the flexibility and pertinence of data security protection are achieved, ensuring the security of key data. The formulation of hierarchical encryption strategies optimizes data security, effectively prevents data leakage or unauthorized access, and improves the security of overall data.

[0060] Preferably, step S25 comprises the following steps:

[0061] Step S251: Collect network security event logs from the local terminal to obtain local historical security event data;

[0062] Specifically, a security information and event management (SIEM) system on a local terminal can be configured to collect network security event logs. The system captures events indicating security threats by monitoring network traffic and system activities. For example, SIEM agents are deployed at various key nodes in the local network to collect logs such as login attempts, data access, and system change events. These logs are then transmitted to the central SIEM server, and the parsing tools running on the server convert logs of different formats into a unified format for easy analysis, ultimately obtaining local historical security event data.

[0063] Step S252: Collect network security event logs from a preset health data cloud storage platform to obtain cloud historical security event data;

[0064] Specifically, you can configure the log service of the cloud storage platform to collect and store security event information. Use the log management tools provided by the cloud platform, such as Amazon CloudWatch or Google Cloud Logging, to monitor and record security-related events in all cloud environments. These tools can track API calls, data access requests, and configuration change events, and export event logs to a secure repository, ultimately obtaining historical security event data in the cloud.

[0065] Step S253: Perform frequency distribution statistics of various health data attacks on local historical security event data to obtain the frequency distribution data of local health data attacks;

[0066] Specifically, data analysis tools can be used to process and analyze local historical security event data. Specifically, run data analysis tool queries to filter out security events related to health data, such as unauthorized access attempts or data leakage events. Then, use statistical analysis software, such as R or Python's Pandas library, to classify these events and calculate the frequency of occurrence of each type of event. In this way, the frequency distribution of local health data attacks can be obtained, the most frequently attacked data types or time periods can be identified, and finally the frequency distribution data of local health data attacks can be obtained.

[0067] Step S254: Perform frequency distribution statistics of various health data attacks on the cloud historical security event data to obtain the frequency distribution data of health data attacks on the cloud;

[0068] Specifically, data analysis software, such as Python's data analysis library or professional business intelligence (BI) tools, can be used to perform statistical analysis of historical security event data in the cloud. Scripts are written to identify and classify security events related to health data, such as data leaks, unauthorized access attempts, or malware attacks. The script will do the following: Filter logs to identify specific types of health data events. Classify events, such as grouping by event type, timestamp, or affected data category. Calculate the event frequency for each category to determine which types of health data are more frequently targeted. After the analysis is completed, the frequency distribution data of cloud health data attacks is generated.

[0069] Step S255: Formulate hierarchical encryption strategies for several groups of hierarchical health data according to the attack frequency distribution data of local health data and the attack frequency distribution data of cloud health data to obtain a hierarchical encryption strategy set.

[0070] Specifically, please refer to the sub-steps of step S255 for the specific implementation process of this embodiment.

[0071] The present invention achieves a comprehensive understanding and assessment of health data security threats by comprehensively collecting and analyzing local and cloud network security event logs, providing a solid data foundation for formulating effective data protection measures. This enhanced data security analysis capability, combined with accurate attack frequency assessment, enables the present invention to customize and design appropriate hierarchical encryption strategies for health data of different sensitivity levels, thereby achieving differentiated and personalized data protection. In addition, the present invention improves preventive security measures by optimizing resource allocation, focusing on protecting data that is more vulnerable to attack or has higher privacy sensitivity, and quickly strengthens the response mechanism after identifying high-risk data, thereby improving the response speed to security threats. Through hierarchical encryption, the present invention ensures the integrity and availability of data, and reduces the risk of data loss or damage even when security incidents occur.

[0072] Preferably, step S255 includes the following steps:

[0073] Step S2551: Perform data category statistics on a group of hierarchical health data to obtain the number of health data categories and health data category name data for a single group;

[0074] Specifically, the category labels of the data can be first extracted from the hierarchical health data set by executing a SQL query statement, such as using SELECT category FROM health_data to retrieve the category field from the data table named health_data, which contains category labels such as "sleep data" and "physiological data". The data set returned by the query is then imported into Python's Pandas library for processing. Using Pandas' value_counts() function, these category labels are counted to count the number of times each category label appears in the data set. Next, by accessing the index attribute of the obtained frequency sequence, all unique category names can be collected to create a list containing all categories. Finally, a single set of health data category counts and health data category name data is obtained.

[0075] Step S2552: Perform comprehensive attack frequency calculation based on the attack frequency distribution data of local health data and the attack frequency distribution data of cloud health data to obtain attack frequency data of various types of data;

[0076] Specifically, the attack frequency distribution data of local health data and the attack frequency distribution data of cloud health data can be combined to calculate the attack frequency of each type of health data. The two sets of data are merged through data fusion technology. Then, data analysis software such as Excel, R or Python is used to calculate the comprehensive attack frequency of each type of health data, and finally the attack frequency data of each type of data is obtained. This includes finding the total number, average or weighted average of attack events.

[0077] Step S2553: if the number of categories of a single group of health data indicates that there is only one category of health data in the corresponding group of hierarchical health data, then a single category attack frequency is extracted from the attack frequency data of each category of data according to the health data category name data to obtain a single group of attack frequency data;

[0078] Specifically, if the number of categories in a single group of health data indicates that there is only one category of health data in the corresponding group of hierarchical health data, data filtering tools, such as the WHERE clause of SQL or the Pandas library of Python, can be used to select the attack frequency data related to the single category. For example, if a certain group of hierarchical health data only contains the "blood pressure" category, all attack event records related to the "" data are filtered out. Then, the filtered data is counted and summarized to obtain the attack frequency data of the single category, that is, the single group of attack frequency data.

[0079] Step S2554: If the number of categories of a single group of health data indicates that there are at least two or more categories of health data in the corresponding group of hierarchical health data, then the attack frequency data of each type of data is cumulatively calculated based on the health data category name data to obtain a single group of attack frequency data;

[0080] Specifically, if the number of categories of a single group of health data indicates that there are at least two or more categories of health data in the corresponding group of hierarchical health data, data analysis tools, such as Excel or Python, can be used to process the categories of a single group of health data and the corresponding attack frequency data. By loading the attack frequency data of each category of data into a worksheet or DataFrame, the attack frequency of at least two categories is summarized and calculated. For example, in Python, the Pandas library can be used to group the DataFrame (groupby) and apply the sum function to accumulate the attack frequency of each category. This will generate a new data set containing each health data category and its total number of attacks, that is, a single group of attack frequency data.

[0081] Step S2555: extracting the privacy sensitivity level of a set of graded health data to obtain privacy sensitivity level data;

[0082] Specifically, the preset privacy sensitivity level of each group of graded health data can be directly retrieved from the data management system. If the data is stored in a relational database, execute an SQL query, such as SELECT sensitivity_levelFROM health_data_group, to extract the level information from the health_data_group table that stores the grouped health data and its privacy level. The result returned by this query is the privacy sensitivity level of the data group.

[0083] Step S2556: If the single group of attacked frequency data is greater than or equal to the preset attack frequency threshold data, and the privacy sensitivity level data is the highest privacy sensitivity or the intermediate privacy sensitivity, quantum secure homomorphic encryption is performed on the corresponding group of hierarchical health data to obtain a quantum secure encryption strategy; otherwise, lightweight lattice cryptographic encryption is performed on the corresponding group of hierarchical health data to obtain a lightweight encryption strategy;

[0084] Specifically, it can be determined whether a single set of attacked frequency data is greater than or equal to a preset attack frequency threshold. This can be done through simple comparison operations, such as using conditional statements in Python to check the frequency data. Next, the privacy sensitivity level data is checked to determine whether it is the highest or intermediate privacy sensitivity. If both conditions are met, the data is encrypted using a quantum-safe homomorphic encryption library, such as Microsoft's SEAL library, to obtain a quantum-safe encryption strategy. If the conditions are not met, a lightweight lattice cryptographic encryption scheme is used, such as using a public lattice cryptographic library to encrypt the data. The encryption process will be carried out according to the specific guidelines of the selected encryption scheme to ensure that the data is encrypted in a secure manner to resist potential attacks, thereby obtaining a lightweight encryption strategy.

[0085] Step S2557: Execute steps S2551 to S2556 on each group of hierarchical health data to obtain a hierarchical encryption strategy set, wherein the hierarchical encryption strategy set includes several hierarchical encryption strategies, and each hierarchical encryption strategy corresponds to a group of hierarchical health data.

[0086] Specifically, the operations of steps S2551 to S2556 can be repeated for each group of data. This includes statistics of data categories, cumulative calculation of attack frequencies, extraction of privacy sensitivity levels, and application of appropriate encryption strategies based on the evaluation results. The encryption strategy for each group of data will be determined based on its specific attack frequency and privacy sensitivity level. After completing these operations, a hierarchical encryption strategy set will be formed, in which each strategy details the encryption method and parameters for the corresponding group of data. This strategy set can be manually organized into a document, or a script can be used to automatically generate a report.

[0087] The present invention provides detailed basic information for hierarchical health data through precise data classification and statistics, ensuring the accuracy of security assessment and encryption strategy. Through comprehensive security threat assessment, the attack frequency of local and cloud data is comprehensively analyzed, providing support for the formulation of encryption strategies based on actual needs. Flexible attack frequency data processing capabilities ensure the pertinence and effectiveness of encryption strategies by adopting corresponding single or multi-category attack frequency processing methods for health data of different categories and quantities. At the same time, the present invention deeply considers privacy sensitivity and ensures that the most sensitive data is protected at the highest level by extracting privacy sensitivity level data. For data facing high risks and high privacy sensitivity, the present invention adopts advanced quantum secure homomorphic encryption technology to provide top-level data protection, while for other data, lightweight lattice cryptographic encryption is used to achieve a balance between security and performance. The execution of step S2557 formulates a set of systematic and standardized encryption strategies for all hierarchical health data, improving the adaptability and comprehensiveness of data protection. In addition, detailed data classification and encryption strategy records enhance compliance and audit capabilities.

[0088] Preferably, step S3 comprises the following steps:

[0089] Step S31: Collect health data history access logs of the target object to obtain history access log data;

[0090] Specifically, the log management system on the local terminal can be configured to automatically collect and store historical access records of health data. This involves modifying the system log configuration to ensure that all relevant access events are recorded. For example, the syslog or rsyslog service in the Linux system can be used to monitor the logs of access files. In addition, if the health data is stored in a database, the audit function of the database can be used to capture all data access activities. The collected log data will be saved in a log file or database table, and the historical access log data will eventually be obtained.

[0091] Step S32: performing statistics on the access frequency of each category of health data on the historical access log data to obtain a category health data access frequency data set, wherein the category health data access frequency data set includes a plurality of category health data access frequency data, and each category health data access frequency data corresponds to a category of health data;

[0092] Specifically, you can use log analysis tools such as ELK Stack (Elasticsearch, Logstash, Kibana) or Graylog to parse log files and extract access frequency information. Logstash is responsible for processing and converting log data, Elasticsearch is responsible for data indexing, and Kibana is used for data visualization. By writing filter rules for Logstash, you can filter out access events for different health data categories and count these events. This will generate a data set containing the access frequency of different categories of health data.

[0093] Step S33: sorting the category health data access frequency data set in descending order to obtain a category health data access frequency sorting list;

[0094] Specifically, you can use data analysis tools, such as Python's Pandas library, to sort the category health data access frequency dataset in descending order. First, load the data into Pandas's DataFrame, and then use the sort_values() function to sort the access frequency, with the parameter set to ascending = False to achieve descending order. The sorted dataset will clearly show which categories of health data are accessed most frequently, and finally get a sorted list of category health data access frequencies.

[0095] Step S34: Dynamically monitor the storage resources of the local terminal to obtain the available storage capacity data of the terminal;

[0096] Specifically, it can be implemented through the storage API provided by the operating system. On Android devices, use the StorageManager class to query the total storage capacity and available space, access the information of each storage volume through the getStorageVolume() method, and call getAvailableBytes() to obtain the available storage space in bytes. iOS devices use the NSFileManager class of the Foundation framework and its availableDiskSpace property to obtain the current storage space. The return value is of NSNumber type and the unit is also bytes. You can create a monitoring application or script to periodically use these APIs to check and record storage space data, and finally obtain the terminal's available storage capacity data, store the results in a database or file, and realize historical data tracking and analysis. You can also implement cross-platform storage monitoring functions through the file system API of cross-platform mobile development frameworks such as Flutter or React Native, and integrate this function into health data management applications.

[0097] Step S35: Based on the historical access log data and the terminal available storage capacity data, a data diversion decision is made on the physiological and biochemical health data and the behavioral life pattern data according to the category health data access frequency sorting list to obtain a data diversion strategy;

[0098] Specifically, please refer to the sub-steps of step S35 for the specific implementation process of this embodiment.

[0099] Step S36: According to the hierarchical encryption strategy set and the data diversion strategy, the physiological and biochemical health data and the behavioral life pattern data are mixed and stored and encrypted to obtain local encrypted health data and cloud encrypted health data.

[0100] Specifically, based on the established hierarchical encryption strategy and data diversion strategy, scripting languages ​​such as Python can be used in combination with encryption libraries (such as cryptography) to encrypt physiological and biochemical health data and behavioral life pattern data. According to the sensitivity of the data, an encryption algorithm is selected, such as AES-256 for highly sensitive data. The script automatically traverses the data set, implements the corresponding encryption, and determines the data storage location according to the diversion rules. After the local data is encrypted, it is stored in a secure area, such as Android's Keystore or iOS's Keychain. After the cloud data is encrypted, it is uploaded through the API of services such as Amazon S3, Google CloudStorage, or Microsoft Azure Storage, and SSL and server-side encryption are used to ensure transmission security. At the same time, an integrated encryption management service is used to handle the full life cycle management of keys to ensure key strength and regular rotation. All encryption operations are accompanied by detailed log records, recording the details of the encrypted data, algorithms, keys, and storage locations, to achieve comprehensive and secure storage of personal health data, and ultimately obtain local encrypted health data and cloud encrypted health data.

[0101] The present invention achieves in-depth insights into user access preferences and data usage patterns through a deeper understanding of data access. Through efficient data access frequency analysis and optimized storage resource management, the present invention can monitor storage capacity in real time and identify the most frequently accessed data categories, providing an intelligent decision-making basis for resource allocation and data storage. Data diversion decisions further ensure that data is reasonably allocated locally and in the cloud based on its access frequency and storage requirements, thereby improving the efficiency and rationality of data storage. Through hybrid storage and encryption measures, the confidentiality and security of health data are improved. Flexible data storage solutions allow the most appropriate storage location to be selected based on data characteristics, while the improved data retrieval efficiency ensures a quick response to user query requests. In addition, the encryption and diversion strategies of the present invention strengthen the compliance of data protection, reduce compliance risks, and enhance user trust and satisfaction with the system.

[0102] Preferably, step S35 includes the following steps:

[0103] Step S351: classify the first three categories in the health data access frequency sorting list as local terminal storage categories, and classify the categories after the third as cloud storage categories, to obtain local storage category data and cloud storage category data;

[0104] Specifically, data analysis tools, such as Python's Pandas library, can be used to read and process the sorted list of category health data access frequencies. The script automatically retrieves the first three categories in the list and marks them as local storage categories. The remaining categories are automatically classified as cloud storage categories. This process involves list slicing and conditional filtering operations, and ultimately generates two sets of data: local storage category data and cloud storage category data, corresponding to the data categories to be stored in the local terminal and the cloud, respectively.

[0105] Step S352: Classify and map the physiological and biochemical health data and the behavioral life pattern data according to the local storage category data and the cloud storage category data to obtain a local initial screening health data set and a cloud initial screening health data set;

[0106] Specifically, Python scripts can be used in combination with the Pandas library to classify personal health data based on local storage category data and cloud storage category data. The script traverses the personal health data set and performs category mapping and diversion by matching the category labels of the data with the locally stored category data. Data that meets the conditions is assigned to the local initial screening health data set, and data that does not meet the conditions is assigned to the cloud initial screening health data set. This process involves data filtering and set operations, and ultimately forms two independent data subsets, corresponding to local and cloud storage requirements, respectively.

[0107] Step S353: quantifying the storage space requirement of the local initial screening health data set to obtain local storage requirement data;

[0108] Specifically, a script can be used to quantify the storage space requirements of the local initial screening health dataset. The specific operation involves calculating the size of each file in the dataset and summing up these sizes to get the total storage requirement. In Python, the os.path.getsize() function can be used to get the size of a single file and then applied to all files in the dataset. These values ​​are summed to get the local storage requirement data.

[0109] Step S354: Calculate the storage occupancy ratio of the local storage demand data and the terminal available storage capacity data to obtain local storage occupancy rate data;

[0110] Specifically, a simple mathematical calculation can be used to compare the local storage demand data with the terminal available storage capacity data to calculate the storage occupancy ratio. This ratio is obtained by dividing the storage demand by the available capacity and converted into a percentage to obtain the local storage occupancy data.

[0111] Step S355: if the local storage occupancy rate data is greater than the preset storage threshold, excess storage amount calculation is performed on the local storage occupancy rate data and the preset storage threshold to obtain storage space excess data;

[0112] Specifically, if the local storage occupancy data is greater than the preset storage threshold, a simple conditional statement can be used to determine whether subsequent calculations need to be performed. Once the condition is met, the script will use a mathematical formula to calculate the excess storage, that is, the difference between the current occupancy and the threshold. This calculation can be achieved through a subtraction operation, and the result will be stored in a variable, representing the storage space excess data.

[0113] Step S356: quantifying the time series storage requirements of each category of health data based on the local initial screening health data set, obtaining time series storage requirement data of the first category of health data, time series storage requirement data of the second category of health data, and time series storage requirement data of the third category of health data, and aligning the time axis of the time series storage requirement data of the first category of health data, the time series storage requirement data of the second category of health data, and the time series storage requirement data of the third category of health data, to obtain a time series storage matrix of multiple categories of health data;

[0114] Specifically, you can use Python scripts, combined with the Pandas library, to group each category of health data in chronological order and calculate the storage requirements for each day. This can be achieved through the groupby() function, grouping the data by date, and using the sum() function to accumulate the amount of data for each day. For each category of health data, perform the same operation and store the results in different variables, such as first_category_daily_storage, second_category_daily_storage, and third_category_daily_storage. Then, use Pandas' merge() function or concat() function to align these time series data to a unified timeline to form a multi-category health data time series storage matrix. This matrix will show the storage requirements of different categories of data over time.

[0115] Step S357: Calculate the critical date of the time series storage matrix of multiple types of health data according to the storage space excess data to obtain cloud migration date data;

[0116] Specifically, the multi-category health data time series storage matrix can be analyzed to identify the storage requirements for each day. For example, assume that the multi-category health data time series storage matrix is ​​the storage requirement data for 7 consecutive days, which are 0.5G on the first day, 0.3G on the second day, 0.6G on the third day, 0.4G on the fourth day, 0.6G on the fifth day, 0.5G on the sixth day, and 0.7G on the seventh day. Starting from 0.5G on the first day, the storage requirements are accumulated day by day, including 0.3G on the second day and 0.6G on the third day, until the accumulated value reaches 1.4G, which exceeds the storage space excess threshold of 1G. Once the threshold is exceeded, the accumulation is stopped and this day is recorded as the last day that data needs to be migrated. Next, all categories of health data from the first day to this day are listed as candidates for migration. Create a list or table that records these dates and corresponding storage requirement data in detail to form part of the data migration plan. This plan will clearly indicate which data needs to be migrated to the cloud and when, so as to effectively free up local storage space. Finally, a migration date data containing dates and storage requirements is obtained.

[0117] Step S358: extract and eliminate the time threshold data of the local initial screening health data set according to the cloud migration date data to obtain the cloud migration health data set and the final local storage health data set, and add the cloud migration health data set to the cloud initial screening health data set to obtain the final cloud storage health data set.

[0118] Specifically, the local initial screening health data set that needs to be migrated can be identified by cloud migration date data. Data records within a specific date range can be filtered out through time threshold data extraction. This involves sorting and filtering data sets, which can be implemented using database queries or data processing software such as Excel and Python's Pandas library. For example, in Pandas, you can use the query() method of the DataFrame object or Boolean indexing to select records in a specific date column. Once these records are selected, they will be removed from the local initial screening health data set and form a cloud-migrated health data set. Subsequently, the cloud-migrated health data set is merged with the cloud initial screening health data set to form the final cloud-stored health data set. This process requires data synchronization tools or scripts to automate the movement and update of data.

[0119] Step S359: Based on the physiological and biochemical health data and the behavioral life pattern data, a data diversion decision summary is performed according to the final local storage health data set and the final cloud storage health data set to obtain a data diversion strategy.

[0120] Specifically, the final local storage health data set and the final cloud storage health data set can be reviewed. Using data visualization tools, such as Tableau or Power BI, can help understand the distribution and characteristics of the data. The category, access frequency, privacy sensitivity level, and storage location of the data can be checked to determine whether the data is correctly diverted. In addition, machine learning models such as decision trees or logistic regression can be used to predict the best storage location for the data. Based on these analysis results, a set of data diversion rules are formulated to clarify which types of data should be stored locally and which should be stored in the cloud. These rules will be organized into a data diversion strategy document, and ultimately a data diversion strategy will be obtained.

[0121] The present invention ensures that health data categories with high access frequency can be quickly retrieved through priority storage allocation, greatly improving data retrieval efficiency. By intelligently allocating data to local or cloud based on access frequency and storage requirements, the use of storage resources is optimized. Through precise storage demand assessment and dynamic storage management, combined with quantitative calculation and real-time monitoring of storage occupancy ratio, storage strategies can be flexibly adjusted, effectively avoiding waste or exhaustion of storage space. In addition, time-series storage demand analysis further optimizes data storage time to ensure the timeliness and availability of data. Intelligent data migration decisions balance local and cloud storage loads through the calculation of critical dates, while the optimized data storage structure ensures that local storage concentrates the most currently and recently needed data through the extraction and elimination of time threshold data. The adaptability of the present invention to data storage strategies and the enhanced data security reduce the risk of data loss and leakage.

[0122] Preferably, step S4 comprises the following steps:

[0123] Step S41: Obtain user query request data;

[0124] Specifically, the user's query request can be captured through the integrated user interface component, thereby obtaining the user's query request data.

[0125] Step S42: Perform identity authentication analysis on the user query request data to obtain user identity feature data;

[0126] Specifically, this can be achieved by integrating OAuth or OpenID Connect authentication protocols. The user logs in to the application, the backend service verifies their credentials, and returns an authentication token (such as JWT) to the application. This token is then sent with each query request, and the server extracts the user's identity feature data by parsing the token.

[0127] Step S43: Obtaining the authorized user identity feature database;

[0128] Specifically, the authorized user identity feature library is stored in a database on the server. This library contains the user's biometric data, such as fingerprints or facial recognition information. When the application needs to verify the user's identity, it requests a copy of this library or related data from the server for local matching. This can be achieved through secure API calls.

[0129] Step S44: performing multimodal biometric matching on the authorized user identity feature database and the user identity feature data to obtain identity authentication similarity data;

[0130] Specifically, through a secure API call, the HTTPS security protocol is used to retrieve the stored authorized user identity feature library from the server database, including but not limited to the user's fingerprint or facial recognition biometric data. After receiving the data, the application activates the biometric sensor on the device to capture the user's current biometrics, and calls the biometric service of the corresponding operating system, such as Android's BiometricPrompt or iOS's LocalAuthentication framework, to perform multimodal biometric matching. The service on the device executes the matching algorithm, compares the user's identity feature data with the data in the database, generates a similarity score to reflect the confidence of the match, and finally obtains the identity authentication similarity data.

[0131] Step S45: If the identity authentication similarity data is greater than a preset similarity threshold, full access permission is used as the data access permission result; otherwise, denied access permission is used as the data access permission result.

[0132] Specifically, if the similarity score is above a preset threshold, the server will generate an access rights token or update the user status in the database to reflect the user's access rights. If the similarity score is below the threshold, the server will record the failed verification attempt and trigger additional security measures, such as account locking or notifying the user. This decision-making process can be implemented by backend logic on the server, which checks the similarity score and updates the user permissions accordingly.

[0133] The present invention greatly enhances the accuracy of identity authentication by adopting multimodal biometric matching technology, effectively prevents unauthorized access and data leakage, and thus significantly improves the security of the system. Accurate identity authentication parsing not only provides personalized services for users with specific identity features, but also lays the foundation for efficient access control, ensuring rapid response and timely granting or denying of access rights based on similarity thresholds. This process enhances users' trust in system security, protects the confidentiality and integrity of user data, optimizes user experience, and reduces time delays caused by waiting for identity authentication. In addition, the strict access rights management of the present invention helps organizations comply with data protection regulations, and the flexible rights management mechanism allows organizations to adjust access control levels according to different security policies and business needs. For users whose identity authentication similarity is higher than the threshold in emergency situations, the present invention can quickly grant full access rights to meet emergency access needs. In addition, accurate identity feature matching reduces the risk of misoperation, improves the accuracy and reliability of data processing, and promotes reasonable sharing of data and cooperation across institutions or teams, thereby enhancing the efficiency and value of data utilization.

[0134] Preferably, step S5 comprises the following steps:

[0135] Step S51: If the result of the data access permission is full access permission, semantic analysis and intent recognition are performed on the user query request data to obtain query intent data;

[0136] Specifically, when a user is granted full access rights, the user's query request data is deeply processed. Natural language processing (NLP) technology is used to semantically parse the query request, for example, by calling a pre-trained language model such as BERT or its variants. These models can recognize and understand keywords and phrases in user queries, and then identify the user's query intent. Intent recognition can be achieved by training a classifier that maps query text to predefined intent categories. Once the query intent is determined, a query intent data is generated.

[0137] Step S52: intelligently retrieve and selectively decrypt the local encrypted health data and the cloud encrypted health data according to the query intention data to obtain the authorized health data, and feed back the authorized health data to the querying user;

[0138] Specifically, intelligent data retrieval can be performed based on the query intent data. This involves searching for health data that matches the query intent in local databases and cloud storage services. Use search engine technology, such as Elasticsearch, to index and query the stored data. For encrypted data, selective decryption is performed using the same encryption algorithm and key as when the data was encrypted. For example, if the data is encrypted using the AES algorithm, the corresponding decryption algorithm is applied to restore the original form of the data. The decryption process needs to ensure that only data visible to authorized users is decrypted. After retrieval and decryption, the data will be processed and formatted, and then fed back to the user as authorized health data.

[0139] Step S53: If the result of the data access permission is to deny access permission, the preset zero-trust security policy is triggered, the user session is terminated immediately and the abnormal behavior is recorded.

[0140] Specifically, if the user's data access permission is denied, the preset zero-trust security policy will be triggered immediately. This involves using a security information and event management (SIEM) system to monitor and respond to security events. When an unauthorized access attempt is detected, the SIEM system will automatically terminate the relevant user session and record the abnormal behavior in the security log. In addition, the system will update the access control list (ACL) or identity and access management (IAM) policy to prevent unauthorized users from attempting access again.

[0141] The present invention realizes accurate understanding and processing of user query requests through intelligent query response, significantly improving the intelligent level of data processing. Through efficient data retrieval capabilities, it ensures fast and accurate access to encrypted health data locally and in the cloud according to user query intent. Secure selective decryption ensures that only legally authorized users can obtain decrypted data, strengthening data security and privacy protection. For unauthorized access, the triggering of zero-trust security policies effectively prevents data leakage and privacy infringement, and enhances risk control capabilities. In addition, while quickly responding to authorized user query needs, user satisfaction is improved, and compliance is strengthened through query processing and security policies that comply with data protection regulations. The present invention also promotes the rational use of data, prevents data abuse, and supports continuous security monitoring. By recording abnormal behavior, it strengthens the monitoring and analysis of security threats, thereby enhancing the overall security and reliability of the system.

[0142] Preferably, the present invention also provides a computer-readable storage medium storing a method for storing and reading health data as described above that can be loaded and executed by a processor.

[0143] Therefore, from any point of view, the embodiments should be regarded as illustrative and non-restrictive, and the scope of the present invention is limited by the appended claims rather than the above description, and it is intended that all changes falling within the meaning and range of equivalent elements of the application documents are included in the present invention.

[0144] The above description is only a specific embodiment of the present invention, so that those skilled in the art can understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be restricted to the embodiments shown herein, but should conform to the widest scope consistent with the principles and novel features invented herein.

Claims

1. A method for storing and reading health data, characterized in that: The following steps are involved: Step S1: Collect personal health data of the target object to obtain physiological and biochemical health data and behavioral life pattern data; Step S2: Performing privacy preference analysis on the target object based on the physiological and biochemical health data and behavioral life pattern data to obtain a privacy sensitivity data set; Formulate hierarchical encryption strategies for physiological and biochemical health data and behavioral life pattern data according to the privacy sensitivity data set, and obtain a hierarchical encryption strategy set; Step S3: making data diversion decisions on physiological and biochemical health data and behavioral life pattern data to obtain a data diversion strategy; According to the hierarchical encryption strategy set and data diversion strategy, the physiological and biochemical health data and the behavioral life pattern data are mixed and stored and encrypted to obtain local encrypted health data and cloud encrypted health data; Step S4: Obtain user query request data; Perform identity authentication analysis on user query request data to obtain user identity feature data; Determine the access rights of the querying user based on the user identity feature data to obtain the data access rights result; Step S5: Based on the local encrypted health data and the cloud encrypted health data, intelligent data retrieval and selective decryption are performed according to the data access permission results to obtain authorized health data, and the authorized health data is fed back to the querying user.

2. The method for storing and reading health data according to claim 1, characterized in that: Step S1 includes the following steps: Step S11: collecting eye micro-electrophysiological signals of the target object to obtain enhanced eye movement data of the object; Step S12: performing neuromorphic computation processing on the enhanced eye movement data of the object to obtain neural coded eye movement feature data of the object; Step S13: performing a multi-spectral dynamic skin resistance scan on the target object to obtain enhanced skin physiological data of the object, and performing terahertz spectrum analysis on the enhanced skin physiological data of the object to obtain deep skin metabolism characteristic data of the object; Step S14: non-invasively collecting physiological parameters of the target object to obtain comprehensive physiological data of the object; Step S15: Performing physiological rhythm dynamic modeling analysis on the comprehensive physiological data of the subject to obtain physiological rhythm prediction data of the subject; Step S16: Performing micro-sampling of the target object with a nano-biosensor to obtain the nano-level biochemical index data of the target object, and performing integrated monitoring of the target object with a smart wearable device to obtain the all-weather activity trajectory data of the target object; Step S17: Conduct non-contact sleep monitoring on the target subject to obtain the subject's full-cycle sleep quality data; Step S18: classify and integrate the subject's neural coding eye movement feature data, the subject's deep skin metabolism feature data, the subject's physiological rhythm prediction data, and the subject's nanoscale biochemical indicator data to obtain physiological and biochemical health data, and classify and integrate the subject's all-day activity trajectory data and the subject's full-cycle sleep quality data to obtain behavioral life pattern data.

3. The method for storing and reading health data according to claim 1, characterized in that: Step S2 includes the following steps: Step S21: extracting semantic labels from physiological and biochemical health data and behavioral life pattern data to obtain a health data semantic label set; Step S22: presenting the health data semantic tag set and the preset privacy sensitivity options to the target object, and recording the privacy sensitivity options checked by the target object to obtain a privacy sensitivity data set; Step S23: labeling the physiological and biochemical health data and the behavioral life pattern data with corresponding sensitivity according to the privacy sensitivity data set to obtain sensitivity-labeled health data; Step S24: performing same-level clustering on the sensitivity-labeled health data to obtain several groups of hierarchical health data; Step S25: Formulate hierarchical encryption strategies for several groups of hierarchical health data to obtain a hierarchical encryption strategy set.

4. The method for storing and reading health data according to claim 3, characterized in that: Step S25 includes the following steps: Step S251: Collect network security event logs from the local terminal to obtain local historical security event data; Step S252: Collect network security event logs from a preset health data cloud storage platform to obtain cloud historical security event data; Step S253: Perform frequency distribution statistics of various health data attacks on local historical security event data to obtain the frequency distribution data of local health data attacks; Step S254: Perform frequency distribution statistics of various health data attacks on the cloud historical security event data to obtain the frequency distribution data of health data attacks on the cloud; Step S255: Formulate hierarchical encryption strategies for several groups of hierarchical health data according to the attack frequency distribution data of local health data and the attack frequency distribution data of cloud health data to obtain a hierarchical encryption strategy set.

5. The method for storing and reading health data according to claim 4, characterized in that: Step S255 includes the following steps: Step S2551: Perform data category statistics on a group of hierarchical health data to obtain the number of health data categories and health data category name data for a single group; Step S2552: Perform comprehensive attack frequency calculation based on the attack frequency distribution data of local health data and the attack frequency distribution data of cloud health data to obtain attack frequency data of various types of data; Step S2553: if the number of categories of a single group of health data indicates that there is only one category of health data in the corresponding group of hierarchical health data, then a single category attack frequency is extracted from the attack frequency data of each category of data according to the health data category name data to obtain a single group of attack frequency data; Step S2554: If the number of categories of a single group of health data indicates that there are at least two or more categories of health data in the corresponding group of hierarchical health data, then the attack frequency data of each type of data is cumulatively calculated based on the health data category name data to obtain a single group of attack frequency data; Step S2555: extracting the privacy sensitivity level of a set of graded health data to obtain privacy sensitivity level data; Step S2556: If the single group of attacked frequency data is greater than or equal to the preset attack frequency threshold data, and the privacy sensitivity level data is the highest privacy sensitivity or the intermediate privacy sensitivity, quantum secure homomorphic encryption is performed on the corresponding group of hierarchical health data to obtain a quantum secure encryption strategy; otherwise, lightweight lattice cryptographic encryption is performed on the corresponding group of hierarchical health data to obtain a lightweight encryption strategy; Step S2557: Execute steps S2551 to S2556 on each group of hierarchical health data to obtain a hierarchical encryption strategy set, wherein the hierarchical encryption strategy set includes several hierarchical encryption strategies, and each hierarchical encryption strategy corresponds to a group of hierarchical health data.

6. The method for storing and reading health data according to claim 1, characterized in that: Step S3 includes the following steps: Step S31: Collect health data history access logs of the target object to obtain history access log data; Step S32: performing statistics on the access frequency of each category of health data on the historical access log data to obtain a category health data access frequency data set, wherein the category health data access frequency data set includes a plurality of category health data access frequency data, and each category health data access frequency data corresponds to a category of health data; Step S33: sorting the category health data access frequency data set in descending order to obtain a category health data access frequency sorting list; Step S34: Dynamically monitor the storage resources of the local terminal to obtain the available storage capacity data of the terminal; Step S35: Based on the historical access log data and the terminal available storage capacity data, a data diversion decision is made on the physiological and biochemical health data and the behavioral life pattern data according to the category health data access frequency sorting list to obtain a data diversion strategy; Step S36: According to the hierarchical encryption strategy set and the data diversion strategy, the physiological and biochemical health data and the behavioral life pattern data are mixed and stored and encrypted to obtain local encrypted health data and cloud encrypted health data.

7. The method for storing and reading health data according to claim 6, characterized in that: Step S35 includes the following steps: Step S351: classify the first three categories in the health data access frequency sorting list as local terminal storage categories, and classify the categories after the third as cloud storage categories, to obtain local storage category data and cloud storage category data; Step S352: Classify and map the physiological and biochemical health data and the behavioral life pattern data according to the local storage category data and the cloud storage category data to obtain a local initial screening health data set and a cloud initial screening health data set; Step S353: quantifying the storage space requirement of the local initial screening health data set to obtain local storage requirement data; Step S354: Calculate the storage occupancy ratio of the local storage demand data and the terminal available storage capacity data to obtain local storage occupancy rate data; Step S355: if the local storage occupancy rate data is greater than the preset storage threshold, excess storage amount calculation is performed on the local storage occupancy rate data and the preset storage threshold to obtain storage space excess data; Step S356: quantifying the time series storage requirements of each category of health data based on the local initial screening health data set, obtaining time series storage requirement data of the first category of health data, time series storage requirement data of the second category of health data, and time series storage requirement data of the third category of health data, and aligning the time axis of the time series storage requirement data of the first category of health data, the time series storage requirement data of the second category of health data, and the time series storage requirement data of the third category of health data, to obtain a time series storage matrix of multiple categories of health data; Step S357: Calculate the critical date of the time series storage matrix of multiple types of health data according to the excess storage space data to obtain cloud migration date data; Step S358: extract and eliminate the time threshold data of the local initial screening health data set according to the cloud migration date data to obtain the cloud migration health data set and the final local storage health data set, and add the cloud migration health data set to the cloud initial screening health data set to obtain the final cloud storage health data set. Step S359: Based on the physiological and biochemical health data and the behavioral life pattern data, a data diversion decision summary is performed according to the final local storage health data set and the final cloud storage health data set to obtain a data diversion strategy.

8. The method for storing and reading health data according to claim 1, characterized in that: Step S4 includes the following steps: Step S41: Obtain user query request data; Step S42: Perform identity authentication analysis on the user query request data to obtain user identity feature data; Step S43: Obtaining the authorized user identity feature database; Step S44: performing multimodal biometric matching on the authorized user identity feature database and the user identity feature data to obtain identity authentication similarity data; Step S45: If the identity authentication similarity data is greater than a preset similarity threshold, full access permission is used as the data access permission result; otherwise, denied access permission is used as the data access permission result.

9. The method for storing and reading health data according to claim 1, characterized in that: Step S5 includes the following steps: Step S51: If the result of the data access permission is full access permission, semantic analysis and intent recognition are performed on the user query request data to obtain query intent data; Step S52: intelligently retrieve and selectively decrypt the local encrypted health data and the cloud encrypted health data according to the query intention data to obtain the authorized health data, and feed back the authorized health data to the querying user; Step S53: If the result of the data access permission is to deny access permission, the preset zero-trust security policy is triggered, the user session is terminated immediately and the abnormal behavior is recorded.

10. A computer-readable storage medium storing a method for storing and reading health data as described in any one of claims 1 to 8 that can be loaded and executed by a processor.

Citation Information

Patent Citations

  • Healthcare data access system for improving healthcare data usability for clinicians and patients

    CA3181881A1

  • Classified and graded fitness health big data sharing system and method

    CN114513533A

  • Mental health state assessment system and assessment method

    CN117012389A

  • Intrusion detection method and device for private data

    CN117370972A

  • Patient health data management system based on identity information identification

    CN117854663A

Cited By

  • Distributed file encryption system based on domestic OS

    CN119272310A

  • Intelligent management method for skin plastic data

    CN119274732A

  • File management system and method based on cloud storage

    CN120257350A

  • Edge side multi-mode signal hierarchical encryption and compression transmission method and system, and medium

    CN121418212A

  • Edge side multi-modal signal hierarchical encryption and compression transmission method and system, medium

    CN121418212B