A universal fast calculation system and method for heart rate and electrocardiogram
By using the pre-interactive processing module and remote reception center method in the heart rate ECG data transmission, the protection documents are generated using binary conversion and cutting, the problems of key leakage and network attacks are solved, and the security and integrity of the data are improved. sex.
Patent Information
- Application Number
- CN202411595598.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-11
- Publication Date
- 2025-01-17
- Estimated Expiration
- 2044-11-11
AI Technical Summary
There are security risks of key leakage and network attacks in the existing heart rate ECG data transmission, resulting in illegal acquisition and tampering of data, making key management difficult and affecting data security.
The pre-interactive processing module is used to perform specific processing of heart rate ECG data, generate protection documents, and store and backup through the remote reception center. It uses binary conversion and cutting to generate matching lists and preservation arrays, dynamically determine the relationship between the binary array to avoid dense Risks of key encryption methods.
Reduces the risk of keys being stolen or lost, improves data confidentiality and integrity, and adapts to different data characteristics and security needs.
Smart Images

Figure CN119138871B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of heart rate and electrocardiogram data processing, and in particular to a universal and rapid heart rate and electrocardiogram calculation system and method. Background Art
[0002] As people pay more and more attention to health, heart rate and ECG monitoring are becoming more and more important in medical diagnosis and daily health management. Heart rate data reflects the frequency of heart beats, while ECG data provides detailed information about the heart's electrical activity, which plays a key role in diagnosing cardiovascular diseases.
[0003] At present, there are many devices for collecting heart rate and ECG data on the market, such as smart bracelets, smart watches, ECG patches, etc. These devices can easily collect users' heart rate and ECG data, and to a certain extent meet the needs of users to understand their own health conditions; however, in actual applications, the data collected by these devices often need to be transmitted to a remote end for further analysis and processing, such as to a doctor's computer terminal, cloud server, etc., so that doctors can perform remote diagnosis or provide backup for users to provide long-term health monitoring services;
[0004] In the process of data transmission, in order to protect the privacy and data security of users, key encryption is usually used; however, this encryption method has certain security risks; on the one hand, the key may be stolen or cracked by hackers. Once the key is leaked, the user's heart rate and ECG data will face the risk of illegal acquisition and abuse; on the other hand, the key encryption method may be subject to network attacks during the data transmission process, such as man-in-the-middle attacks, resulting in data tampering or theft; in addition, the management and distribution of keys are also difficult. If the key management is not good, it will also affect the security of the data;
[0005] In order to solve the above problems, the present invention proposes a solution. Summary of the invention
[0006] The purpose of the present invention is to provide a universal and fast heart rate and electrocardiogram calculation system and method, in order to solve the problems raised in the above background technology;
[0007] The purpose of the present invention can be achieved through the following technical solutions:
[0008] A universal and rapid heart rate and electrocardiogram calculation system, comprising:
[0009] A pre-interaction processing module is used to pre-process the specific data of a target user in a specific collection period according to a preset pre-processing rule after receiving the specific data, so as to obtain a specific protection document corresponding to the target user in the specific collection period, wherein the specific data includes a heart rate value, an electrocardiogram waveform and an interval data;
[0010] The remote receiving center is used to restore a specific protection document of a target user in a specific collection period after receiving the specific protection document to obtain specific data of the target user in the specific collection period, and store and back up the specific data.
[0011] Furthermore, it also includes a specific acquisition module for periodically acquiring the heart rate and electrocardiogram data of the target user. At each specific acquisition period, the specific acquisition module acquires the heart rate and electrocardiogram data of the target user to obtain specific data of the target user corresponding to the specific acquisition period.
[0012] Furthermore, the pre-processing rules for obtaining a specific protected document of a target user in a specific collection period are as follows:
[0013] S11: performing binary conversion on the received specific data of the target user in the current specific collection period, and recalibrating the converted binary data into pre-binary data;
[0014] S12: specifying a cutting step length of 4, cutting the preceding binary data in order from left to right to obtain a plurality of binary arrays, and then marking all the obtained binary arrays as A1, A2, ..., Aa, a≥1, from left to right in accordance with the order of each binary array in the preceding binary data before cutting;
[0015] S13: Generate matching lists B1, B2, B3 and B4 in sequence, wherein matching list B1 contains four-bit binary numbers of 0, 1, 2 and 3 from left to right, matching list B2 contains four-bit binary numbers of 4, 5, 6 and 7 from left to right, matching list B3 contains four-bit binary numbers of 8, 9, 10 and 11 from left to right, and matching list B4 contains four-bit binary numbers of 12, 13, 14 and 15 from left to right;
[0016] S14: Generate a preservation array of the base array A2 according to the base array A1 according to a preset adjacent processing rule;
[0017] S15: Generate preservation arrays of base arrays A3, A4, ..., Aa in accordance with base arrays A2, A3, ..., Aa-1 in sequence according to S14, and obtain several groups of specific arrays at the same time, and mark all the obtained groups of specific arrays as E1, E2, ..., Ee in the order in which each group of specific arrays is obtained, where e≥1;
[0018] S16: sequentially obtain the subscripts F1, F2, ..., Fe of the specific arrays E1, E2, ..., Ee when they are used as base arrays; in the order of base arrays A1, A2, ..., Aa, separate base array A1 from base arrays A2, A3, ..., Aa. F1 The preservation arrays are concatenated to obtain the first set of preservation sequences, and then from the base array A F1+1 First, we will take the binary array A F1+1 , A F1+2 , ..., A F2 The preservation arrays of the base arrays A1, A2, ..., Aa are concatenated in the order of base arrays A1, A2, ..., Aa to obtain the second preservation sequence. Similarly, the preservation sequences of the base arrays A1, A2, ..., Aa are concatenated in the order of base arrays A1, A2, ..., Aa to obtain the second preservation sequence. F2+1 , A F3+1 , ..., A Fe Start by concatenating the preservation arrays of several binary arrays to obtain f-2 sets of preservation sequences;
[0019] S17: Generate a specific protection document for the target user in the current specific collection period according to the obtained f groups of preservation sequences.
[0020] A universal and rapid method for calculating heart rate and electrocardiogram, comprising the following steps:
[0021] Step 1: In the current specific collection period, the specific collection module collects the heart rate and electrocardiogram data of the target user to obtain the specific data of the target user in the current specific collection period, and transmits the specific data to the front-end interaction processing module;
[0022] Step 2: After receiving the specific data of the target user in the current specific collection period, the pre-interaction processing module pre-processes the specific data according to the preset pre-processing rules to obtain the specific protection document of the target user in the current specific collection period, and transmits the specific protection document to the remote receiving center;
[0023] Step 3: After receiving the specific protection document of the target user in the current specific collection period, the remote receiving center restores the specific protection document to obtain the specific data of the target user in the current specific collection period, and stores and backs up the specific data.
[0024] Beneficial effects of the present invention:
[0025] The present invention sets a specific acquisition module to periodically collect the heart rate and electrocardiogram data of the target user to obtain the corresponding specific data, sets a front-end interactive processing module to process the specific data to obtain a specific protection document, and sets a remote receiving center to perform remote backup processing on the specific protection document. In the process of processing the specific data, for the several groups of binary arrays obtained by cutting, the relationship between two adjacent binary arrays is determined by using the generated matching list, and the corresponding preservation array is determined according to the different relationships. On the one hand, this method avoids the use of encryption methods such as keys that need to be saved, thereby reducing the risk of the key being stolen or lost. On the other hand, by dynamically determining the relationship between the binary arrays and generating the preservation array, it can better adapt to different data characteristics and security requirements and improve the confidentiality and integrity of the data. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] The present invention will be further described below in conjunction with the accompanying drawings.
[0027] Figure 1 is a system block diagram of the present invention;
[0028] Figure 2 It is a flow chart of the method of the present invention. DETAILED DESCRIPTION
[0029] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only 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 ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0030] like Figure 1 , Figure 2 As shown, a universal and rapid heart rate and electrocardiogram calculation system and method includes a specific acquisition module, a front-end interactive processing module and a remote receiving center;
[0031] The specific acquisition module is used to periodically acquire the heart rate and ECG data of the target user. At each specific acquisition period, the specific acquisition module acquires the heart rate and ECG data of the target user to obtain specific data of the target user corresponding to the specific acquisition period, and transmits the specific data to the front-end interaction processing module. The specific data includes heart rate value, ECG waveform, and interval data, wherein the interval data includes PR interval, QT interval, and RR interval.
[0032] In this embodiment, the target user refers to a user wearing an electronic device, wherein the electronic device has a built-in photoelectric sensor and an electrical signal sensor, wherein the method for calculating the heart rate value may be a peak detection algorithm or an autocorrelation algorithm; by using a threshold method and a template matching method to perform waveform recognition on the electrocardiogram signal, the heart rate, PR interval, QT interval, RR interval and amplitude of the electrocardiogram are calculated;
[0033] It should be noted here that electronic devices include but are not limited to smart bracelets and smart watches;
[0034] In the current specific collection period, the specific collection module collects the heart rate and electrocardiogram data of the target user to obtain the specific data of the target user in the current specific collection period, and transmits the specific data to the front-end interaction processing module;
[0035] The front-end interaction processing module is used to periodically process the specific data of the target user and transmit it to the cloud;
[0036] After receiving the specific data of the target user of the current specific collection period, the pre-interaction processing module pre-processes the specific data according to the preset pre-processing rules to obtain the specific protection document of the target user of the current specific collection period. The pre-processing rules are as follows:
[0037] S11: performing binary conversion on the received specific data of the target user in the current specific collection period, and recalibrating the converted binary data into pre-binary data;
[0038] S12: specifying a cutting step length of 4, cutting the preceding binary data in order from left to right to obtain a plurality of binary arrays, and then marking all the obtained binary arrays as A1, A2, ..., Aa, a≥1, from left to right in accordance with the order of each binary array in the preceding binary data before cutting;
[0039] S13: Generate matching lists B1, B2, B3 and B4 in sequence, wherein matching list B1 contains four-bit binary numbers of 0, 1, 2 and 3 from left to right, matching list B2 contains four-bit binary numbers of 4, 5, 6 and 7 from left to right, matching list B3 contains four-bit binary numbers of 8, 9, 10 and 11 from left to right, and matching list B4 contains four-bit binary numbers of 12, 13, 14 and 15 from left to right;
[0040] S14: Generate a preservation array of the base array A2 according to the base array A1 according to a preset adjacent processing rule. The adjacent processing rule is as follows:
[0041] S141: According to the matching lists B1, B2, B3 and B4, respectively, the matching lists containing four-bit binary numbers consistent with the base arrays A1 and A2 are obtained, and the corresponding matching lists are re-marked as comparison lists of the base arrays A1 and A2;
[0042] S142: sequentially obtain the subscripts marked in the comparison lists of the base arrays A1 and A2 before they are re-marked, and mark them as C1 and C2 respectively;
[0043] S143: If C1-C2=1, it is determined that the comparison lists of the binary arrays A1 and A2 are adjacent to each other, and 00 is used as the first position marker of the binary array A2, wherein the adjacent relationship refers to the difference of the marking subscripts of the two comparison lists by 1 before they are re-marked;
[0044] Then, the index of the four-bit binary number that is consistent with the base array A2 is obtained from the comparison list of the base array A2, and the index is used as the second position identifier of the base array A2;
[0045] The first position identifier and the second position identifier of the base array A2 are concatenated in the order of the first position identifier and the second position identifier to obtain a preservation array of the base array A2;
[0046] S144: If C1-C2=2, it is determined that the comparison lists of the binary arrays A1 and A2 have an inter-relationship, and 01 is used as the first position identifier of the binary array A2, wherein the inter-relationship refers to the difference of the marking subscripts of the two comparison lists before being re-marked by 2 in value;
[0047] Then, the index of the four-bit binary number that is consistent with the base array A2 is obtained from the comparison list of the base array A2, and the index is used as the second position identifier of the base array A2;
[0048] The first position identifier and the second position identifier of the base array A2 are concatenated in the order of the first position identifier and the second position identifier to obtain a preservation array of the base array A2;
[0049] S145: If C1-C2=2, it is determined that the comparison lists of the base arrays A1 and A2 are separated, and 10 is used as the first position identifier of the base array A2, wherein the separation relationship refers to the difference of 3 in the numerical value of the marking subscripts of the two comparison lists before being re-marked;
[0050] Then, the index of the four-bit binary number that is consistent with the base array A2 is obtained from the comparison list of the base array A2, and the index is used as the second position identifier of the base array A2;
[0051] The first position identifier and the second position identifier of the base array A2 are concatenated in the order of the first position identifier and the second position identifier to obtain a preservation array of the base array A2;
[0052] S146: If C1-C2<0, it is determined that the comparison lists of the base arrays A1 and A2 are in a staggered relationship, and 11 is used as the first position marker of the base array A2, wherein the staggered relationship refers to that the marking subscripts of the two comparison lists before being re-marked show negative number characteristics in numerical comparison;
[0053] Then, the index of the four-bit binary number that is consistent with the base array A2 is obtained from the comparison list of the base array A2, and the index is used as the second position identifier of the base array A2;
[0054] The first position identifier and the second position identifier of the base array A2 are concatenated in the order of the first position identifier and the second position identifier to obtain a preservation array of the base array A2;
[0055] S147: If C1-C2=0, it is determined that the comparison lists of the base arrays A1 and A2 are compatible, and the base array A2 itself is used as the preservation array of the base array A2, and the base array A2 is re-marked as a set of specific arrays;
[0056] S15: Generate preservation arrays of base arrays A3, A4, ..., Aa in accordance with base arrays A2, A3, ..., Aa-1 in sequence according to S14, and obtain several groups of specific arrays at the same time, and mark all the obtained groups of specific arrays as E1, E2, ..., Ee in the order in which each group of specific arrays is obtained, where e≥1;
[0057] S16: sequentially obtain the subscripts F1, F2, ..., Fe of the specific arrays E1, E2, ..., Ee when they are used as base arrays; in the order of base arrays A1, A2, ..., Aa, separate base array A1 from base arrays A2, A3, ..., Aa. F1 The preservation arrays are concatenated to obtain the first set of preservation sequences, and then from the base array A F1+1 First, we will take the binary array A F1+1 , A F1+2 , ..., A F2 The preservation arrays of the base arrays A1, A2, ..., Aa are concatenated in the order of base arrays A1, A2, ..., Aa to obtain the second preservation sequence. Similarly, the preservation sequences of the base arrays A1, A2, ..., Aa are concatenated in the order of base arrays A1, A2, ..., Aa to obtain the second preservation sequence. F2+1 , A F3+1 , ..., A Fe Start by concatenating the preservation arrays of several binary arrays to obtain f-2 sets of preservation sequences;
[0058] S17: Generate a specific protection document for the target user in the current specific acquisition period according to the obtained f groups of preservation sequences, wherein the f groups of preservation sequences are arranged in sequence from top to bottom in the specific protection document, and the preservation sequences arranged from top to bottom are obtained in order from first to last;
[0059] The front-end interaction processing module transmits the specific protection document of the target user in the current specific collection period to the remote receiving center;
[0060] The remote receiving center is used to perform cloud backup storage of the target user's ECG and heart rate data for later tracing and analysis. After receiving the specific protection document of the target user in the current specific collection period, the remote receiving center extracts the f groups of preservation sequences contained therein in order from top to bottom;
[0061] For the first set of preserved sequences extracted, first extract the first four characters from left to right to obtain the base array A1, then continue to extract the next four characters to obtain the first position identifier and the second position identifier of the base array A2, and restore the base array A2 according to the extracted first position identifier and the second position identifier. Similarly, restore A2, A3, ..., A F1 ;
[0062] The binary arrays A1, A2, ..., A are concatenated to obtain the restoration sequence of the first set of preserved sequences;
[0063] According to the above, the restoration sequences of the f groups of preservation sequences are obtained in sequence, and the restoration sequences of all groups of preservation sequences are spliced and restored in the order of restoration to obtain the specific data of the target user in the current specific collection period, and the specific data is stored and backed up;
[0064] In the description of the specification, the description with reference to the terms "one embodiment", "example", "specific example", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.
[0065] The above contents are merely examples and explanations of the present invention. Those skilled in the art may make various modifications or additions to the specific embodiments described or replace them in a similar manner. As long as they do not deviate from the invention or exceed the scope defined by the claims, they shall all fall within the protection scope of the present invention.
[0066] The above is a detailed description of an embodiment of the present invention, but the content is only a preferred embodiment of the present invention and cannot be considered to limit the scope of implementation of the present invention. All equivalent changes and improvements made within the scope of the present invention should still fall within the scope of the patent coverage of the present invention.
Claims
1. A universal and rapid heart rate and electrocardiogram calculation system, characterized in that: include: A pre-interaction processing module is used to pre-process the specific data of a target user in a specific collection period according to a preset pre-processing rule after receiving the specific data, so as to obtain a specific protection document corresponding to the target user in the specific collection period, wherein the specific data includes a heart rate value, an electrocardiogram waveform and an interval data; The remote receiving center is used to restore a specific protected document of a target user in a specific collection period after receiving the specific protected document to obtain specific data of the target user in the specific collection period, and store and back up the specific data; The pre-processing rules for obtaining a specific protected document for a target user in a specific collection period are as follows: S11: performing binary conversion on the received specific data of the target user in the current specific collection period, and recalibrating the converted binary data into pre-binary data; S12: specifying a cutting step length of 4, cutting the preceding binary data in order from left to right to obtain a plurality of binary arrays, and then marking all the obtained binary arrays as A1, A2, ..., Aa, a≥1, from left to right in accordance with the order of each binary array in the preceding binary data before cutting; S13: Generate matching lists B1, B2, B3 and B4 in sequence, wherein matching list B1 contains four-bit binary numbers of 0, 1, 2 and 3 from left to right, matching list B2 contains four-bit binary numbers of 4, 5, 6 and 7 from left to right, matching list B3 contains four-bit binary numbers of 8, 9, 10 and 11 from left to right, and matching list B4 contains four-bit binary numbers of 12, 13, 14 and 15 from left to right; S14: Generate a preservation array of the base array A2 according to the base array A1 according to a preset adjacent processing rule; S15: Generate preservation arrays of base arrays A3, A4, ..., Aa in accordance with base arrays A2, A3, ..., Aa-1 in sequence according to S14, and obtain several groups of specific arrays at the same time, and mark all the obtained groups of specific arrays as E1, E2, ..., Ee in the order in which each group of specific arrays is obtained, where e≥1; S16: sequentially obtain the subscripts F1, F2, ..., Fe of the specific arrays E1, E2, ..., Ee when they are used as base arrays; in the order of base arrays A1, A2, ..., Aa, separate base array A1 from base arrays A2, A3, ..., Aa. F1 The preservation arrays are concatenated to obtain the first set of preservation sequences, and then from the base array A F1+1 First, we will take the binary array A F1+1 , A F1+2 , ..., A F2 The preservation arrays of the base arrays A1, A2, ..., Aa are concatenated in the order of base arrays A1, A2, ..., Aa to obtain the second preservation sequence. Similarly, the preservation sequences of the base arrays A1, A2, ..., Aa are concatenated in the order of base arrays A1, A2, ..., Aa to obtain the second preservation sequence. F2+1 , A F3+1 , ..., A Fe Start by concatenating the preservation arrays of several binary arrays to obtain f-2 sets of preservation sequences; S17: Generate a specific protection document for the target user in the current specific collection period according to the obtained f groups of preservation sequences; The adjacent processing rules for generating the preservation array of the binary array A2 are as follows: S141: According to the matching lists B1, B2, B3 and B4, respectively, the matching lists containing four-bit binary numbers consistent with the base arrays A1 and A2 are obtained, and the corresponding matching lists are re-marked as comparison lists of the base arrays A1 and A2; S142: sequentially obtain the subscripts marked in the comparison lists of the base arrays A1 and A2 before they are re-marked, and mark them as C1 and C2 respectively; S143: If C1-C2=1, it is determined that the comparison lists of the base arrays A1 and A2 are adjacent to each other, and 00 is used as the first position identifier of the base array A2; then, the index of the four-bit binary number that is consistent with the base array A2 is obtained from the comparison list of the base array A2, and the index is used as the second position identifier of the base array A2; The first position identifier and the second position identifier of the base array A2 are concatenated in the order of the first position identifier and the second position identifier to obtain a preservation array of the base array A2; S144: If C1-C2=2, it is determined that the comparison lists of the base arrays A1 and A2 are in a phase relationship, and 01 is used as the first position identifier of the base array A2; then, the index of the four-bit binary number that is consistent with the base array A2 is obtained from the comparison list of the base array A2, and the index is used as the second position identifier of the base array A2; The first position identifier and the second position identifier of the base array A2 are concatenated in the order of the first position identifier and the second position identifier to obtain a preservation array of the base array A2; S145: If C1-C2=2, it is determined that the comparison lists of the base arrays A1 and A2 are separated, and 10 is used as the first position identifier of the base array A2; then, the index of the four-bit binary number that is consistent with the base array A2 is obtained from the comparison list of the base array A2, and the index is used as the second position identifier of the base array A2; The first position identifier and the second position identifier of the base array A2 are concatenated in the order of the first position identifier and the second position identifier to obtain a preservation array of the base array A2; S146: If C1-C2<0, it is determined that the comparison lists of the base arrays A1 and A2 are in a wrong relationship, and 11 is used as the first position identifier of the base array A2; then, the index of the four-bit binary number that is consistent with the base array A2 is obtained from the comparison list of the base array A2, and the index is used as the second position identifier of the base array A2; The first position identifier and the second position identifier of the base array A2 are concatenated in the order of the first position identifier and the second position identifier to obtain a preservation array of the base array A2; S147: If C1-C2=0, it is determined that the comparison lists of base arrays A1 and A2 are compatible. In this case, base array A2 itself is used as a preservation array of base array A2, and base array A2 is re-marked as a set of specific arrays.
2. A universal and rapid heart rate and electrocardiogram calculation system according to claim 1, characterized in that: It also includes a specific acquisition module for periodically acquiring the heart rate and electrocardiogram data of the target user. At each specific acquisition period, the specific acquisition module acquires the heart rate and electrocardiogram data of the target user to obtain specific data of the target user corresponding to the specific acquisition period.
3. A universal and rapid heart rate and electrocardiogram calculation system according to claim 1, characterized in that: In S17, f groups of preservation sequences are arranged in sequence from top to bottom in the specific protection document, and the preservation sequences arranged from top to bottom are obtained in an order from earliest to latest.
4. A universal and rapid method for calculating heart rate and electrocardiogram, characterized in that: The following steps are involved: Step 1: In the current specific collection period, the specific collection module collects the heart rate and electrocardiogram data of the target user to obtain the specific data of the target user in the current specific collection period, and transmits the specific data to the front-end interaction processing module; Step 2: After receiving the specific data of the target user in the current specific collection period, the pre-interaction processing module pre-processes the specific data according to the preset pre-processing rules to obtain the specific protection document of the target user in the current specific collection period, and transmits the specific protection document to the remote receiving center; Step 3: After receiving the specific protection document of the target user in the current specific collection period, the remote receiving center restores the specific protection document to obtain the specific data of the target user in the current specific collection period, and stores and backs up the specific data; The pre-processing rules for obtaining a specific protected document for a target user in a specific collection period are as follows: S11: performing binary conversion on the received specific data of the target user in the current specific collection period, and recalibrating the converted binary data into pre-binary data; S12: specifying a cutting step length of 4, cutting the preceding binary data in order from left to right to obtain a plurality of binary arrays, and then marking all the obtained binary arrays as A1, A2, ..., Aa, a≥1, from left to right in accordance with the order of each binary array in the preceding binary data before cutting; S13: Generate matching lists B1, B2, B3 and B4 in sequence, wherein matching list B1 contains four-bit binary numbers of 0, 1, 2 and 3 from left to right, matching list B2 contains four-bit binary numbers of 4, 5, 6 and 7 from left to right, matching list B3 contains four-bit binary numbers of 8, 9, 10 and 11 from left to right, and matching list B4 contains four-bit binary numbers of 12, 13, 14 and 15 from left to right; S14: Generate a preservation array of the base array A2 according to the base array A1 according to a preset adjacent processing rule; S15: Generate preservation arrays of base arrays A3, A4, ..., Aa in accordance with base arrays A2, A3, ..., Aa-1 in sequence according to S14, and obtain several groups of specific arrays at the same time, and mark all the obtained groups of specific arrays as E1, E2, ..., Ee in the order in which each group of specific arrays is obtained, where e≥1; S16: sequentially obtain the subscripts F1, F2, ..., Fe of the specific arrays E1, E2, ..., Ee when they are used as base arrays; in the order of base arrays A1, A2, ..., Aa, separate base array A1 from base arrays A2, A3, ..., Aa. F1 The preservation arrays are concatenated to obtain the first set of preservation sequences, and then from the base array A F1+1 First, we will take the binary array A F1+1 , A F1+2 , ..., A F2 The preservation arrays of the base arrays A1, A2, ..., Aa are concatenated in the order of base arrays A1, A2, ..., Aa to obtain the second preservation sequence. Similarly, the preservation sequences of the base arrays A1, A2, ..., Aa are concatenated in the order of base arrays A1, A2, ..., Aa to obtain the second preservation sequence. F2+1 , A F3+1 , ..., A Fe Start by concatenating the preservation arrays of several binary arrays to obtain f-2 sets of preservation sequences; S17: Generate a specific protection document for the target user in the current specific collection period according to the obtained f groups of preservation sequences; The adjacent processing rules for generating the preservation array of the binary array A2 are as follows: S141: According to the matching lists B1, B2, B3 and B4, respectively, the matching lists containing four-bit binary numbers consistent with the base arrays A1 and A2 are obtained, and the corresponding matching lists are re-marked as comparison lists of the base arrays A1 and A2; S142: sequentially obtain the subscripts marked in the comparison lists of the base arrays A1 and A2 before they are re-marked, and mark them as C1 and C2 respectively; S143: If C1-C2=1, it is determined that the comparison lists of the base arrays A1 and A2 are adjacent to each other, and 00 is used as the first position identifier of the base array A2; then, the index of the four-bit binary number that is consistent with the base array A2 is obtained from the comparison list of the base array A2, and the index is used as the second position identifier of the base array A2; The first position identifier and the second position identifier of the base array A2 are concatenated in the order of the first position identifier and the second position identifier to obtain a preservation array of the base array A2; S144: If C1-C2=2, it is determined that the comparison lists of the base arrays A1 and A2 are in a phase relationship, and 01 is used as the first position identifier of the base array A2; then, the index of the four-bit binary number that is consistent with the base array A2 is obtained from the comparison list of the base array A2, and the index is used as the second position identifier of the base array A2; The first position identifier and the second position identifier of the base array A2 are concatenated in the order of the first position identifier and the second position identifier to obtain a preservation array of the base array A2; S145: If C1-C2=2, it is determined that the comparison lists of the base arrays A1 and A2 are separated, and 10 is used as the first position identifier of the base array A2; then, the index of the four-bit binary number that is consistent with the base array A2 is obtained from the comparison list of the base array A2, and the index is used as the second position identifier of the base array A2; The first position identifier and the second position identifier of the base array A2 are concatenated in the order of the first position identifier and the second position identifier to obtain a preservation array of the base array A2; S146: If C1-C2<0, it is determined that the comparison lists of the base arrays A1 and A2 are in a wrong relationship, and 11 is used as the first position identifier of the base array A2; then, the index of the four-bit binary number that is consistent with the base array A2 is obtained from the comparison list of the base array A2, and the index is used as the second position identifier of the base array A2; The first position identifier and the second position identifier of the base array A2 are concatenated in the order of the first position identifier and the second position identifier to obtain a preservation array of the base array A2; S147: If C1-C2=0, it is determined that the comparison lists of base arrays A1 and A2 are compatible. In this case, base array A2 itself is used as a preservation array of base array A2, and base array A2 is re-marked as a set of specific arrays.
Citation Information
Patent Citations
Encryption method and electrocardiogram monitoring system
CN115001647A
Encryption method and electrocardiogram monitoring system
CN115021886A