CN-121980613-A - Visual health data management and privacy protection method based on blockchain
Abstract
The application provides a visual health data management and privacy protection method based on a blockchain, which comprises the steps of verifying the role identity of a requester through an intelligent contract if a query request is detected in an encrypted file structure, judging whether the role identity accords with a preset hierarchical authorization rule, obtaining an authorization verification result, generating a hash value of query operation by adopting an encryption algorithm after obtaining filtered data response, determining a unique identification accessed at the time for subsequent tracking, broadcasting the generated hash value and access details to all nodes of the blockchain network through a consensus algorithm, judging whether the network is agreed to obtain a confirmed log record block, retrieving historical access behaviors from the confirmed log record block, and triggering an alarm mechanism if an abnormal access mode is found, so as to obtain a complete traceable audit path to maintain data privacy.
Inventors
- LIU YI
- WU WEI
- GU ZHONGXIU
- LI YUANYUAN
- LI MENGYU
- Qi Yuanpu
- WANG HAOLEI
Assignees
- 郑州铁路职业技术学院
Dates
- Publication Date
- 20260505
- Application Date
- 20260126
Claims (8)
- 1. A vision health data management and privacy protection method based on a blockchain, the method comprising: obtaining vision data from the multiparty participation nodes through a consensus algorithm and storing the vision data on a blockchain to obtain an initial vision health file block, wherein the initial vision health file block comprises full-period records of kindergarten to senior high school so as to support subsequent sharing; according to the acquired vision health file blocks, carrying out hierarchical encryption processing on the data by adopting an encryption algorithm, and determining specific access authority ranges of different roles such as parents, schools and medical institutions so as to generate an encrypted file structure; If the inquiry request is detected in the encrypted file structure, verifying the character identity of the requester through an intelligent contract, judging whether the character identity accords with a preset hierarchical authorization rule, and obtaining an authorization verification result; Extracting a data subset which is allowed to be accessed from the authorization verification result, providing only class statistical data for school roles, and providing detailed check details for medical institutions to obtain filtered data responses; after obtaining the filtered data response, generating a hash value of the query operation by adopting an encryption algorithm, and determining a unique identifier accessed at the time so as to facilitate subsequent tracking; Broadcasting the generated hash value and the access details to all nodes of the block chain network through a consensus algorithm, judging whether the network is agreed or not, and obtaining a confirmed log record block; and retrieving the historical access behavior from the confirmed log record block, and triggering an alarm mechanism if an abnormal access mode is found, so as to obtain a complete traceable audit path to maintain data privacy.
- 2. The method for managing and protecting vision health data based on blockchain as in claim 1, wherein the obtaining vision data from the multiparty participating nodes by the consensus algorithm and storing the vision data on the blockchain to obtain an initial vision health file block, wherein the initial vision health file block comprises a kindergarten to senior high school full period record to support subsequent sharing, further comprises: According to vision health file blocks stored in the blockchain, full-period vision data of kindergarten to senior high school are extracted, and a structured file is constructed; Vision data of each stage is obtained through a structured file by adopting a distributed query technology, and a vision change trend is determined; If the vision change trend exceeds a preset threshold, classifying vision health states through K-means clustering in a machine learning algorithm to obtain health state labels; according to the health state label, a data encryption technology is adopted to generate an encrypted vision file supporting sharing, and the encrypted vision file is stored in a blockchain; And acquiring an encrypted vision file, verifying the sharing authority and outputting sharable vision health data through a distributed account book technology of a blockchain.
- 3. The method for managing and protecting eyesight health data and privacy based on blockchain according to claim 1, wherein the step of using encryption algorithm to encrypt data according to the obtained eyesight health archive block to determine specific access authority ranges of different roles such as parents, schools and medical institutions, thereby generating an encrypted archive structure comprises: acquiring vision health file data, and extracting file contents comprising personal information, vision examination records and medical advice by analyzing a data structure to obtain a structured data set; performing preliminary encryption processing on the structured data set by adopting a symmetric encryption algorithm to generate a first encrypted data set; Extracting a part related to the student vision examination record in the first encrypted data set according to the parental role authority, and distributing parental access authorities through an access control list to obtain a parental authority data subset; according to the role authority of the school, extracting a part related to student group vision statistics in the first encrypted data set, and distributing school access authority through an access control list to obtain a school authority data subset; Extracting a part related to medical advice and diagnosis records in the first encrypted data set according to medical institution authority, and distributing medical institution access authority through an access control list to obtain a medical institution authority data subset; Performing secondary encryption on the parent authority data subset, the school authority data subset and the medical institution authority data subset by adopting an asymmetric encryption algorithm to generate a final encrypted file structure; and verifying each role access request through an authority access control mechanism, and decrypting the corresponding authority data subset if the request accords with a preset authority range to obtain authorized access data.
- 4. The method for managing and protecting vision health data based on blockchain as in claim 1, wherein if the query request is detected in the encrypted file structure, verifying the identity of the role of the requester through the intelligent contract, determining whether the role meets the preset hierarchical authorization rule, and obtaining the authorization verification result comprises: if the inquiry request is detected in the encryption file, analyzing the request content, and acquiring a requester identifier and a request target to obtain structured request data; loading a preset hierarchical authorization rule through an intelligent contract, and extracting the role identity of a requester from the structured request data to obtain role identity information; According to the character identity information and the authority rule, executing identity verification, judging whether the authorization condition is met, and obtaining an authority matching result; If the right matching result is passed, extracting target data from the encrypted file, and adopting a decryption algorithm to process the target data to obtain decrypted file content; generating a response data packet according to the decrypted file content, and attaching a verification result identifier to obtain a formatted query response; Transmitting the formatted inquiry response through a block chain network, and recording a transmission log to obtain transmission confirmation information; and updating the intelligent contract state according to the transmission confirmation information, and storing the query record to obtain a final service processing result.
- 5. The blockchain-based vision health data management and privacy protection method of claim 1, wherein the extracting the subset of data from the authorized verification results that is allowed to be accessed provides only class statistics for school roles and detailed inspection details for medical institutions, resulting in filtered data responses, further comprising: acquiring user role identification and data access rights from an authorization verification result, and determining a role type; if the role type is a school role, class statistical information is extracted from the access permission data, and a first data subset is generated; if the role type is medical institution, extracting detailed checking data from the allowed access data to generate a second data subset; According to the first data subset or the second data subset, a preset data filtering rule is adopted, and a filtered data set is obtained; Through matching the data set with the role type, generating a structured data response by adopting JSON formatting; Obtaining a structured data response, and encrypting the data by adopting an encryption algorithm AES to obtain an encrypted data response; And generating a final data response through a preset transmission protocol according to the encrypted data response.
- 6. The method for managing and protecting vision health data based on blockchain as in claim 1, wherein the step of generating a hash value of the query operation by using an encryption algorithm after the filtered data response is obtained, and determining the unique identifier of the access for subsequent tracking comprises: acquiring a filtered data response, and cleaning input data by adopting a preset screening rule to obtain filtered data meeting the conditions; Encrypting the filtered data and the time stamp of the query operation through a hash algorithm to generate a hash value; carrying out hash calculation on the metadata and the filtered data of the query operation by adopting an SHA-256 encryption algorithm to obtain a unique identifier; If the generated unique identifier is repeated with the identifier in the existing tracking log, recalculating the hash value by adopting the time stamp and the random salt value to obtain a new unique identifier; Binding the unique identifier with the query record, storing the unique identifier into a preset tracking log database, and generating the query tracking record.
- 7. The method for managing and protecting vision health data based on a blockchain as in claim 1, wherein broadcasting the generated hash value and access details to all nodes of the blockchain network by a consensus algorithm, judging whether the network is agreed, and obtaining a confirmed log record block comprises: generating a hash value of input data through a preset consensus algorithm mechanism to obtain a unique hash value; broadcasting the hash value to all network nodes by adopting a distributed network protocol, and acquiring a broadcast confirmation state; If the broadcast confirmation state reaches a preset node quantity threshold value, triggering a node verification process, and judging the network consistency; collecting feedback data of each node according to the result of the node verification process, and determining the data integrity; generating a log record block according to the result of the data integrity check to obtain a block generation frequency; if the block generation frequency meets a preset threshold, storing the log record block into a block chain network to obtain confirmed block data; and updating the network node state according to the confirmed block data to obtain the synchronous record of the distributed network.
- 8. The method for managing and protecting vision health data based on blockchain as in claim 1, wherein retrieving historical access behavior from the validated log record block, if an abnormal access pattern is found, triggering an alarm mechanism to obtain a complete traceable audit path to maintain data privacy, comprises: acquiring a history log record from a storage system, and extracting access behavior data through a log analysis tool to obtain a structured access behavior data set; the method comprises the steps of performing feature extraction on a structured access behavior data set, analyzing access behavior patterns by adopting a k-means clustering algorithm, and determining potential abnormal access patterns; If an abnormal access mode is detected, triggering an alarm mechanism according to a preset threshold value, and generating alarm information comprising a time stamp and an access source; According to the alarm information, extracting relevant log records from the access behavior data set, and generating a traceable audit path by adopting a hash algorithm to obtain an audit path identifier; The encrypted audit path is obtained by encrypting the audit path identifier and adopting an AES encryption algorithm to protect private data; Extracting time sequence characteristics of access behaviors from the encrypted audit path, analyzing alarm response time, and judging whether delay problems exist or not; and updating the access data screening rule according to the time sequence characteristics, and optimizing subsequent log data analysis to obtain a more accurate abnormality detection result.
Description
Visual health data management and privacy protection method based on blockchain Technical Field The invention relates to the technical field of information, in particular to a vision health data management and privacy protection method based on a blockchain. Background The vision health problem of teenagers is increasingly concerned, and particularly in the background of continuous rising myopia rate, the establishment of a safe, continuous and credible vision health file system is of great importance. Such a system not only requires recording full-cycle vision data from kindergarten to high school, but also ensures that families, schools and medical institutions can safely share information to support scientific vision interventions and health management. The distributed storage and non-tamperable nature of blockchain technology provides new possibilities for this requirement, but how to realize secure sharing and rights management of data in complex scenarios involving multiple parties becomes a research area to be solved urgently. Currently, many vision health archive systems rely on a centralized database, which, although convenient to manage, has problems of data tampering, leakage and difficult fine control of access rights. Conventional systems typically manage data access through a unified rights allocation mechanism, but this approach is difficult to accommodate the diversity of data access needs for different roles such as parents, schools, and medical institutions. For example, parents need to view detailed vision records of children, while schools need only statistics of the class as a whole, and medical institutions may need the examination details of specific students. The existing method cannot flexibly meet the differentiated requirements while guaranteeing the data security, so that the information sharing efficiency is low or the risk of unauthorized access exists. In a vision health file system supported by a blockchain technology, a core technical difficulty is how to realize hierarchical query authorization and security of data access. The hierarchical query authorization requires that the system can accurately allocate access rights according to the requirements of different roles, so that each role can only acquire data related to the responsibilities of the role. However, such accurate rights assignment needs to be implemented on the blockchain through smart contracts, which design needs to guarantee efficient execution and data privacy in a distributed environment. This further presents another technical challenge in how to generate a tamper-proof log record at each query to track access behavior and prevent unauthorized access. The generation of log records requires that traceability of all operations be ensured while ensuring system performance. For example, a school teacher may need to query vision screening statistics for class students, but if the system cannot accurately distinguish the scope of authority of the teacher, it may result in accidental access to detailed diopter data of a student, thereby posing a risk of privacy disclosure. Therefore, how to realize hierarchical query authorization through intelligent contracts on the blockchain and ensure that each query behavior generates a tamper-proof log record at the same time so as to meet the differentiated requirements of multiparty roles and protect data privacy becomes a key problem of the vision health record management system. Disclosure of Invention The invention provides a vision health data management and privacy protection method based on a blockchain, which mainly comprises the following steps: obtaining vision data from the multiparty participation nodes through a consensus algorithm and storing the vision data on a blockchain to obtain an initial vision health file block, wherein the initial vision health file block comprises full-period records of kindergarten to senior high school so as to support subsequent sharing; according to the acquired vision health file blocks, carrying out hierarchical encryption processing on the data by adopting an encryption algorithm, and determining specific access authority ranges of different roles such as parents, schools and medical institutions so as to generate an encrypted file structure; If the inquiry request is detected in the encrypted file structure, verifying the character identity of the requester through an intelligent contract, judging whether the character identity accords with a preset hierarchical authorization rule, and obtaining an authorization verification result; Extracting a data subset which is allowed to be accessed from the authorization verification result, providing only class statistical data for school roles, and providing detailed check details for medical institutions to obtain filtered data responses; after obtaining the filtered data response, generating a hash value of the query operation by adopting an encryption algorithm, and determining