A chained compressed sensing data stream encoding method, decoding method and device

Through the chain compressed sensing data stream encoding method, the problems of high energy consumption and data security in WBANs are solved, the data transmission security and reconstruction performance are improved, and the security and accuracy of heart monitoring data are ensured.

CN115412903BActive Publication Date: 2024-10-15GUANGDONG UNIV OF TECH +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211047117.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-30
Publication Date
2024-10-15
Estimated Expiration
2042-08-30

AI Technical Summary

Technical Problem

In Wireless Body Area Networks (WBANs), continuous cardiac monitoring results in high energy consumption, short battery life, and biomedical data is easily leaked or modified during transmission, posing security challenges.

Method used

The chain compressed sensing data stream coding method is used to divide the signal through preset sparse matrix sampling and time windows, combine the hash algorithm and random matrix encryption to generate ciphertext, and reduce the amount of data transmission through sub-sampling to improve data transmission security and System reconstruction performance.

Benefits of technology

It reduces system energy consumption, enhances data transmission security, improves resistance to attacks, greatly improves signal reconstruction performance, avoids cumulative errors, and ensures data security and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115412903B_ABST
    Figure CN115412903B_ABST
Patent Text Reader

Abstract

The present application discloses a chained compressed sensing data stream encoding method, decoding method and device, which adopts a preset sparse matrix to sample the original signal to obtain a preprocessed signal; divides the preprocessed signal, and performs binary encoding on the divided signal to obtain a coded signal; links the coded signals of each time window based on a hash algorithm to obtain the signal chain state of each time window; mixes the coded signal and the signal chain state of the same time window, and encrypts the mixed signal through a random matrix to obtain the ciphertext of each time window, and the signal chain state and the random matrix of the first time window are obtained by key initialization; arranges the ciphertext of each time window by column to obtain a ciphertext vector, and subsamples the ciphertext vector through a preset sub-sampling matrix and restores it to a matrix to obtain the final ciphertext, thereby improving the security of data transmission, reducing the amount of data transmission, thereby reducing the energy consumption of the system, and enhancing the reconstruction performance of the system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data security technology, and in particular to a chained compressed sensing data stream encoding method, decoding method and device. Background Art

[0002] With the increase of aging population, people are susceptible to various chronic diseases, including cardiovascular diseases, which usually require continuous cardiac monitoring. Due to the increasing medical burden, the hospital-centric healthcare system can no longer meet this situation. In recent years, the family-centric monitoring model based on wireless body area networks (WBANs) has received widespread attention in academia and industry. This technology samples various physiological signals through sensor nodes and transmits them to the telemedicine system, enabling doctors to monitor the patient's physical condition in real time and provide professional medical guidance in a timely manner.

[0003] One of the main challenges of this technology is energy consumption. Because the patient's vital signs need to be continuously monitored, this process will generate a lot of data and consume a lot of energy during transmission. At the same time, in order to meet the requirements of comfort and easy implementation of WBANs, the sensor devices need to be battery-powered and as small as possible. However, about 60% of the energy in the battery is consumed by the wireless sensor nodes responsible for data transmission, and the battery needs to be constantly charged. Obviously, the life cycle of the network is determined by the energy consumption of the sensor nodes in WBANs. On the other hand, sensor data contains sensitive biomedical information, such as heart rate, which may be leaked or even modified during transmission. Therefore, ensuring the security of medical data is another challenge. Summary of the invention

[0004] The present application provides a chained compressed sensing data stream encoding method, decoding method and device for improving the security of data transmission, reducing the data transmission volume, reducing the energy consumption of the system, and enhancing the reconstruction performance of the system.

[0005] In view of this, the first aspect of the present application provides a chained compressed sensing data stream encoding method, comprising:

[0006] The original signal is sampled by using a preset sparse matrix to obtain a preprocessed signal;

[0007] Dividing the preprocessed signal by time window, and performing binary coding on the signal in each time window to obtain a coded signal;

[0008] Based on the hash algorithm, the coded signals of each time window are linked together to obtain the signal chain state of each time window, wherein the signal chain state of the first time window is obtained by key initialization;

[0009] Mixing the coded signal and the signal chain state of the same time window to obtain a mixed signal, and encrypting the mixed signal of each time window by a random matrix to obtain a ciphertext of each time window, wherein the random matrix is ​​generated by initializing the key;

[0010] The ciphertexts of each time window are arranged in columns to obtain a ciphertext vector, the first several columns of data of the ciphertext vector are sub-sampled by a preset sub-sampling matrix, and the sub-sampled ciphertext vector is restored to a matrix form to obtain a final ciphertext.

[0011] Optionally, the preprocessed signal is:

[0012] x = A × l;

[0013] Where x is the preprocessed signal, A∈{-1,0,1} N×N is the preset sparse matrix, l is the original signal.

[0014] Optionally, the preprocessed signal is processed by a sliding time window method, and the signal in each time window is binary-encoded to obtain the encoded signal, including:

[0015] Dividing the preprocessed signal into t time windows to obtain signals of t time windows, where the signal of each time window is n-dimensional;

[0016] Set the number of bits of the signal B x , through B x The signal of each time window is binary-encoded by bits to obtain the encoded signal X i , where X i ∈Z(B x ) n , Z(B x )={-2 Bx -1,...,0,...,2 Bx -1}.

[0017] Optionally, linking the coded signals of each time window based on a hash algorithm to obtain the signal chain state of each time window includes:

[0018] Set i=1, and obtain the signal chain state of the i-th time window through key initialization;

[0019] Perform hash operation on the signal chain state of the i-th time window and the coded signal of the i-th time window to obtain the signal chain state of the i+1-th time window;

[0020] Set i=i+1, return to the step of performing hash operation on the signal chain state of the i-th time window and the encoded signal of the i-th time window to obtain the signal chain state of the i+1-th time window, until i=t, to obtain the signal chain state of each time window.

[0021] Optionally, the hashing process is:

[0022]

[0023] In the formula, C i+1 is the signal chain state of the i+1th time window, H() is the hash function, C i is the signal chain state of the i-th time window, X i is the coded signal of the i-th time window, η=1 is the intermediate parameter, B C is the number of bits in the chain state, and mod is the modulus operation.

[0024] Optionally, the encryption process of the ciphertext is:

[0025] Z i =Φ (i) Q i ;

[0026] In the formula, Z i is the ciphertext of the i-th time window, Φ (i) ∈{-1,1} n×n is the random matrix of the i-th time window, n is the length of the signal in each time window, Q i is the mixing matrix of the i-th time window, Q i =X i +C i , C i is the signal chain state of the i-th time window, X i is the coded signal of the i-th time window.

[0027] A second aspect of the present application provides a chained compressed sensing data stream decoding method, comprising:

[0028] S1. Decoding the ciphertext received at the first moment through the signal chain state at the first moment to obtain the pre-processed signal after subsampling at the first moment, wherein the signal chain state at the first moment is obtained by key initialization;

[0029] S2, obtaining the signal chain state at the next moment according to the signal chain state at the first moment and the pre-processed signal after sub-sampling, and decoding the ciphertext received at the next moment through the signal chain state at the next moment to obtain the pre-processed signal after sub-sampling at the next moment;

[0030] S3, taking the preprocessed signal and signal chain state at the next moment as the preprocessed signal and signal chain state at the first moment, and returning to step S2, gradually obtaining the sub-sampled preprocessed signal at each moment;

[0031] S4. Generate a structured random matrix by presetting a sub-sampling matrix and a pre-set sparse matrix, use the structured random matrix as a measurement matrix, and reconstruct the signal according to the measurement matrix and the pre-processed signal after subsampling at each moment by a compressed sensing reconstruction method to obtain the original signal.

[0032] Optionally, generating a structured random matrix by presetting a sub-sampling matrix and a presetting a sparse matrix includes:

[0033] The preset sub-sampling matrix and the preset sparse matrix are multiplied to obtain a structured random matrix.

[0034] The third aspect of the present application provides a chained compressed sensing data stream encoding device, comprising:

[0035] A preprocessing unit, used for sampling the original signal by using a preset sparse matrix to obtain a preprocessed signal;

[0036] An encoding unit, used for dividing the preprocessed signal by time window, and performing binary encoding on the signal in each time window to obtain an encoded signal;

[0037] A chaining unit, used for chaining the coded signals of each time window based on a hash algorithm to obtain the signal chain state of each time window, wherein the signal chain state of the first time window is obtained by initializing the key;

[0038] An encryption unit, used for mixing the coded signal and the signal chain state of the same time window to obtain a mixed signal, and encrypting the mixed signal of each time window by a random matrix to obtain a ciphertext of each time window, wherein the random matrix is ​​generated by initializing the key;

[0039] The sub-sampling unit is used to arrange the ciphertext of each time window by column to obtain a ciphertext vector, sub-sample the first several columns of data of the ciphertext vector by presetting the sub-sampling matrix, and restore the sub-sampled ciphertext vector to a matrix form to obtain a final ciphertext.

[0040] A fourth aspect of the present application provides a chained compressed sensing data stream decoding device, comprising:

[0041] A decoding unit, configured to decode the ciphertext received at the first moment through the signal chain state at the first moment to obtain a sub-sampled pre-processed signal at the first moment, wherein the signal chain state at the first moment is obtained through key initialization;

[0042] an acquisition unit, configured to acquire a signal chain state at a next moment according to the signal chain state at a first moment and the preprocessed signal after subsampling, and decode the ciphertext received at the next moment by the signal chain state at the next moment to obtain the preprocessed signal after subsampling at the next moment;

[0043] A trigger unit, used to use the preprocessed signal and the signal chain state at the next moment as the preprocessed signal and the signal chain state at the first moment, and trigger the acquisition unit to gradually obtain the sub-sampled preprocessed signal at each moment;

[0044] The reconstruction unit is used to generate a structured random matrix through a preset sub-sampling matrix and a preset sparse matrix, use the structured random matrix as a measurement matrix, and reconstruct the signal according to the measurement matrix and the pre-processed signal after sub-sampling at each moment through a compressed sensing reconstruction method to obtain the original signal.

[0045] It can be seen from the above technical solutions that this application has the following advantages:

[0046] The present application provides a chained compressed sensing data stream encoding method, including: using a preset sparse matrix to sample an original signal to obtain a preprocessed signal; dividing the preprocessed signal by time window, and binary encoding the signal in each time window to obtain a coded signal; linking the coded signal of each time window based on a hash algorithm to obtain a signal chain state of each time window, wherein the signal chain state of the first time window is obtained by key initialization; mixing the coded signal and the signal chain state of the same time window to obtain a mixed signal, and encrypting the mixed signal of each time window by a random matrix to obtain a ciphertext of each time window, wherein the random matrix is ​​generated by key initialization; arranging the ciphertext of each time window by column to obtain a ciphertext vector, sub-sampling the first several columns of the ciphertext vector by a preset sub-sampling matrix, and restoring the sub-sampled ciphertext vector to a matrix form to obtain a final ciphertext.

[0047] In this application, in the process of signal preprocessing, an ultra-low complexity preset sparse matrix is ​​used to sample the original signal, and the measurement information redundancy is increased by a small amount of addition operations, thereby improving the signal reconstruction capability, and the preprocessed signal is divided by time window mode, so as to group and encode the preprocessed signal, and introduce chain technology to link the signals of each time window, and mix the encoded signal of the same time window with the signal chain state, and use the chain characteristics to shield the energy characteristics of the signal to improve the resistance to ciphertext-only attacks and known plaintext attacks, and give robustness to man-in-the-middle attacks; further use a random matrix to encrypt the mixed signal to obtain a ciphertext, and subsample the front part of the ciphertext. This application hides the energy information of the plaintext by adding a chain, thereby improving the security of data transmission; reducing the amount of data transmission by the subsampling process, not only reducing the energy consumption of the system, but also this method is equivalent to combining the preset subsampling matrix and the preset sparse matrix to design a structured random matrix as a measurement matrix, and its perception performance is much better than the perception performance of using an unstructured random matrix as a measurement matrix in the classic compressed sensing model. Compared with CCS, this application can greatly improve the reconstruction performance of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0049] Figure 1 A schematic diagram of a flow chart of a chained compressed sensing data stream encoding method provided in an embodiment of the present application;

[0050] Figure 2 A schematic diagram of a signal processing process based on compressed sensing provided in an embodiment of the present application;

[0051] Figure 3 A schematic diagram of a flow chart of a chained compressed sensing data stream decoding method provided in an embodiment of the present application;

[0052] Figure 4 A schematic diagram of an equivalent structure of a measurement matrix provided in an embodiment of the present application;

[0053] Figure 5 A schematic diagram of a chained compressed sensing data stream encoding and decoding process provided in an embodiment of the present application;

[0054] Figure 6 A schematic diagram of the cross-correlation of a random Gaussian matrix provided in an embodiment of the present application;

[0055] Figure 7 A schematic diagram of the cross-correlation of a random Bernoulli matrix provided in an embodiment of the present application;

[0056] Figure 8 A schematic diagram of the cross-correlation of the structural random matrix provided in the embodiment of the present application;

[0057] Fig. 9 A schematic diagram of the structure of a chained compressed sensing data stream encoding device provided in an embodiment of the present application;

[0058] Fig.10 A structural schematic diagram of a chained compressed sensing data stream decoding device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0059] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0060] For easier understanding, see Figure 1 , the embodiment of the present application provides a chained compressed sensing data stream encoding method, including:

[0061] Step 101: Use a preset sparse matrix to sample the original signal to obtain a preprocessed signal.

[0062] After obtaining the original signal, the ultra-low complexity preset sparse matrix A∈{-1,0,1} is used N×N Sample the original signal l and get the preprocessed signal x = A × l, x∈R N , N is the length of the original signal; in each row and column of the preset sparse matrix, only a few D elements have an absolute value of 1, and the rest are 0. By sampling the original signal through the sparse matrix, the redundancy of the measurement information can be increased through a small amount of addition operations, thereby improving the reconstruction capability.

[0063] Step 102: divide the preprocessed signal into time windows, and perform binary coding on the signal in each time window to obtain a coded signal.

[0064] Use t time windows to divide the preprocessed signal to obtain signals in t time windows; the signal in each time window is n-dimensional; set the number of bits of the signal B x , through B xThe signal of each time window is binary-encoded by bits to obtain the encoded signal X i , where X i ∈Z(B x ) n , Z(B x )={-2 Bx -1,...,0,...,2 Bx -1}.

[0065] A block cipher is a deterministic method based on fixed-length bits. In a block cipher, a unit is called a block, which maps a plaintext block of a specific length to a ciphertext block of the same length. The signal waveform is obtained in the form of a time window sequence, where i represents the time window, i = 1, 2, ..., t, a total of t time windows, and the signal in each time window is n-dimensional; using B x The signal of each time window is encoded by bits to obtain the encoded signal of the corresponding time window; the integer set Z(B) can be defined as B -1,...,0,...,2 B -1}, the set of non-negative integers N(B) = {0,...,2 B -1}, set the number of bits of a signal B x , use B x The signal is encoded in binary format, that is, the value of the signal is converted into Z (B x ) range. Each coded signal is stored in the matrix X∈R n×t In the equation, n×t=N, where the coded signal X i ∈Z(B x ) n .

[0066] Step 103: Link the coded signals of each time window based on a hash algorithm to obtain the signal chain state of each time window, wherein the signal chain state of the first time window is obtained by key initialization.

[0067] Number of bits of preset signal chain state B c , B c The bits represent the range of chain states in different time windows, and the signals in each time window are linked together through the hash algorithm. Specifically, set i = 1, and pass the key k ab Initialize the signal chain state of the i-th time window, that is, initialize C1 = k ab; Perform hash operation on the signal chain state of the i-th time window and the coded signal of the i-th time window to obtain the signal chain state of the i+1-th time window; set i=i+1, return to the step of performing hash operation on the signal chain state of the i-th time window and the coded signal of the i-th time window to obtain the signal chain state of the i+1-th time window, until i=t, and obtain the signal chain state of each time window. The hash operation process is:

[0068]

[0069] In the formula, C i+1 is the signal chain state of the i+1th time window, H() is the hash function, C i is the signal chain state of the i-th time window, X i is the coded signal of the i-th time window, η=1 is the intermediate parameter, and mod is the modulo operation.

[0070] Step 104: Mix the coded signal and the signal chain state of the same time window to obtain a mixed signal, and encrypt the mixed signal of each time window by a random matrix to obtain the ciphertext of each time window, wherein the random matrix is ​​generated by key initialization.

[0071] Please refer to Figure 2 In the compressed sensing (CS) framework, for an N-dimensional K-sparse signal x, the high-dimensional signal is projected onto the M-dimensional space through the measurement matrix, M<<N, that is, y=Φx, Φ∈R M×N is the measurement matrix. The whole process compresses the high-dimensional signal (N dimension) into a low-dimensional signal (M dimension), and y is transmitted as the observation signal. When it reaches the observation end, the sparse signal x can be recovered from the observation signal y.

[0072] In the embodiment of the present application, the coded signal and the signal chain state in the same time window are mixed and paired to obtain a mixed signal Q i =X i +C i , the mixed signal is encrypted by the random matrix Φ to obtain the ciphertext Z, that is, Z i =Φ (i) Q i , Φ (i) ∈{-1,1} n×n is the random matrix of the i-th time window, the random matrix is ​​a square matrix, and n is the length of the signal in each time window. In order to facilitate hardware implementation, the random matrix is ​​a random number generated by a pseudo-random number generator with a known seed, using the key k ab Serves as a seed for a pseudo-random number generator.

[0073] In CCS (a chained CS scheme), a non-square measurement matrix Φ∈{-1,1} is used. m×n Partial sampling of the mixed signal is performed to compress the signal, reduce the amount of data transmission, and reduce system energy consumption, but this will result in cumulative errors. Each time a signal is reconstructed through compressed sensing, an error will be generated, and it will be brought into the next reconstruction process to accumulate errors. In order to improve this problem, in the embodiment of the present application, a random matrix of a square matrix is ​​used to fully sample (i.e., encrypt) the mixed signal, which can avoid errors in the reconstruction process, thereby eliminating cumulative errors.

[0074] Step 105: Arrange the ciphertexts of each time window by columns to obtain a ciphertext vector, subsample the first several columns of the ciphertext vector using a preset subsampling matrix, and restore the subsampled ciphertext vector to a matrix form to obtain a final ciphertext.

[0075] In order to reduce the amount of data transmission and reduce the transmission cost, the embodiment of the present application arranges the ciphertext Z of each time window by column to obtain the ciphertext vector z, and presets the sub-sampling matrix D M×N Subsample the first several columns of the ciphertext vector z, and restore the subsampled ciphertext vector to matrix form to obtain the final ciphertext That is, the ciphertext vector after subsampling is z′=D×z. The ciphertext vector after subsampling is restored to matrix form to obtain the final ciphertext s represents the number of columns after subsampling, n×s = M. This method is equivalent to combining a preset subsampling matrix and a preset sparse matrix to design a structured random matrix as a measurement matrix, and its perception performance is much better than that of the unstructured random matrix as a measurement matrix in the classic compressed sensing model. Compared with CCS, this application can greatly improve the reconstruction performance of the system.

[0076] In the embodiment of the present application, in the process of signal preprocessing, an ultra-low complexity preset sparse matrix is ​​used to sample the original signal, and the measurement information redundancy is increased by a small amount of addition operation, thereby improving the signal reconstruction capability, and the preprocessed signal is divided by time window mode, so as to group and encode the preprocessed signal, and introduce chain technology to link the signals of each time window, and mix the encoded signal of the same time window with the signal chain state, and use the chain characteristics to shield the energy characteristics of the signal to improve the resistance to ciphertext-only attacks and known plaintext attacks, and give robustness to man-in-the-middle attacks; further use a random matrix to encrypt the mixed signal to obtain a ciphertext, and subsample the front part of the ciphertext. The present application hides the energy information of the plaintext by adding a chain, thereby improving the security of data transmission; reducing the amount of data transmission by the subsampling process, not only reducing the energy consumption of the system, but also the method is equivalent to combining the preset subsampling matrix and the preset sparse matrix to design a structured random matrix as a measurement matrix, and its perception performance is much better than the perception performance of using the unstructured random matrix as the measurement matrix in the classic compressed sensing model. Compared with CCS, the present application can greatly improve the reconstruction performance of the system.

[0077] Please refer to Figure 3 , a chained compressed sensing data stream decoding method provided by an embodiment of the present application includes:

[0078] Step 301: decode the ciphertext received at the first moment through the signal chain state at the first moment to obtain the sub-sampled preprocessed signal at the first moment, wherein the signal chain state at the first moment is obtained by key initialization.

[0079] You can use Y i =Z i -Φ (i) C i =Φ (i) X i Decryption is performed. When the key k is known ab , the signal chain state C1 at the first moment can be determined. Therefore, the preprocessed signal after subsampling at the first moment can be solved by the inverse operation.

[0080] Step 302: Obtain the signal chain state at the next moment according to the signal chain state at the first moment and the preprocessed signal after subsampling, and decode the ciphertext received at the next moment through the signal chain state at the next moment to obtain the preprocessed signal after subsampling at the next moment.

[0081] The pre-processed signal after subsampling at the first moment of reconstruction is chained by a hash algorithm to obtain the signal chain state at the next moment. in, η=1.

[0082] Step 303: Use the preprocessed signal and signal chain state at the next moment as the preprocessed signal and signal chain state at the first moment, and return to step 302 to gradually obtain the sub-sampled preprocessed signal at each moment.

[0083] The preprocessed signal and signal chain state at the next moment are used as the preprocessed signal and signal chain state at the first moment, and the above steps 301 and 302 are repeated to gradually solve the sub-sampled preprocessed signal at each moment (i=1, 2, ..., s) in,

[0084] Step 304: Generate a structured random matrix by presetting a sub-sampling matrix and a pre-set sparse matrix, use the structured random matrix as a measurement matrix, and reconstruct the signal according to the measurement matrix and the pre-processed signal after sub-sampling at each moment by a compressed sensing reconstruction method to obtain the original signal.

[0085] SRM (Structured Random Matrix) obtains CS measurement values ​​by integrating three steps. First, the original signal is randomized by permutation matrix R to obtain a random signal; then, the fast calculation transformation F is applied to the random signal to obtain the transformation coefficient; finally, the transformation coefficient is sampled by subsampling matrix D to obtain the measurement matrix. In the embodiment of the present application, at the decoding end, a new measurement matrix is ​​constructed, which is structurally equivalent to SRM. In the embodiment of the present application, the subsampling matrix D is preset. M×N Multiply it with the preset sparse matrix A to get the new measurement matrix W M×N =D M×N A N×N , you can refer to Figure 4 The embodiment of the present application constructs a new measurement matrix, which is structurally equivalent to SRM. Compared with the unstructured random matrix, SRM has the characteristics of fast and high efficiency, and by changing the structure, it can eliminate the cumulative error caused by reconstruction in CCS (a chained CS scheme), while ensuring the integrity of the information, reduce the transmission cost as much as possible, and enhance the reconstruction capability of the system.

[0086] After obtaining the measurement matrix, the process of reconstructing the original signal can be converted into a compressed sensing model, that is, Equivalent to the measurement value y, the measurement matrix W is equivalent to the measurement matrix Φ. The original signal l can be reconstructed through the measurement matrix and the measurement value, that is, Rec() is a compressed sensing reconstruction algorithm, which belongs to the prior art and its specific process will not be described in detail here. Figure 5 .

[0087] In remote medical monitoring systems, not only the two key issues of energy consumption and safety must be addressed, but also the accuracy of information extraction from sensitive data such as ECG and the ability to extract key information are crucial. Therefore, it is necessary to pay attention to the quality of signal reconstruction under various compression ratios, which determines whether the method can be used for applications such as ECG monitoring in the long term.

[0088] Although CCS is a promising method, which uses chain blocks to pair it with CS to achieve lightweight encryption of data, the use of unstructured sensing matrices leads to poor reconstruction performance. At the same time, since each step of CCS is related to the previous reconstruction results and CS is a lossy compression, it is inevitable to introduce cumulative errors in the recovery process. The above two reasons will greatly reduce the reconstruction quality of the system, making doctors' diagnosis of patients' conditions inaccurate and easily causing medical accidents.

[0089] This application improves the reconstruction performance of CCS without affecting security, and proposes a chained compressed sensing data stream encoding and decoding method based on the properties of SRM. An effective measurement matrix plays a vital role in data recovery. This application constructs a fast and efficient measurement matrix to improve the reconstruction quality of the signal and enhance the privacy level of the system, greatly improving the usability of telemedicine technology.

[0090] An effective measurement matrix plays a vital role in data recovery. This application uses cross-correlation to measure the quality of the measurement matrix performance. By comparing the cross-correlation of random Gaussian matrices, random Bernoulli matrices, and the structured random matrix in this application, Figure 6 is the cross-correlation of random Gaussian matrices, Figure 7 is the cross-correlation of the random Bernoulli matrix, Figure 8 is the mutual correlation of the structured random matrix. By comparison, it can be seen that the performance of the structured random matrix proposed in the embodiment of the present application is better than that of the unstructured perception matrix.

[0091] In the IoT transmission process, the communication between the sensor and the gateway can be described as the sender (Alice) encoding the plaintext into ciphertext and sending it to the receiver (Bob). Various potential attackers (Eve, Mallory) try to use the information leaked by encryption to obtain the plaintext information. In the communication process, there are several potential attacks including COA (ciphertext only attack), KPA (known plaintext attack) and MITM (man-in-the-middle attack). Therefore, in the face of multiple potential attacks, it is crucial to strengthen the robustness of the system. Chain technology has the following characteristics: i Under the condition of a flat statistical distribution, when i→∞, C i The items are evenly distributed in N(B c), which makes it possible to ensure the security of data transmission between IoT nodes and gateways.

[0092] In COA, Eve tries to guess the plaintext by looking at the statistics of the ciphertext. In general compressed sensing, an attacker can obtain the energy information of the plaintext through the ciphertext, resulting in the leakage of the plaintext information. i =Φ (i) Q i is a linear map, from Z i The distribution of Q i Energy information, but due to C i Uniformly distributed in N(B c ) i Statistics and X i It is irrelevant, and it is difficult for an attacker to obtain the plaintext information from the ciphertext. In addition, the embodiment of the present application performs sub-sampling of the ciphertext, and the pre-processed signal obtained at the decoding end is It is difficult for an attacker to Therefore, this greatly improves the system's resistance to COA.

[0093] In KPA, Eve captures a certain number of plaintext-ciphertext pairs to calculate the measurement matrix, thereby decoding the plaintext. In general compressed sensing, Eve needs to calculate the measurement matrix by solving an underdetermined set of equations, which requires distinguishing a large number of candidate solutions and is difficult. In the embodiment of the present application, since the plaintext-ciphertext pairs at this time are l i and Z i , and the decoding end receives an incomplete z, which will make it difficult to decode the plaintext, greatly improving the system's ability to resist KPA.

[0094] In MITM, Mallory knows the key k ab , it can pretend that Alice sends a message to Bob, and Bob may receive a forged message. In the embodiment of the present application, the decoder receives the sub-sampled ciphertext according to Therefore, Mallory cannot reconstruct the plaintext, thus conferring robustness against MITM.

[0095] Please refer to Fig. 9 , a chained compressed sensing data stream encoding device provided in an embodiment of the present application is characterized by comprising:

[0096] A preprocessing unit, used for sampling the original signal by using a preset sparse matrix to obtain a preprocessed signal;

[0097] The encoding unit is used to divide the preprocessed signal by time window, and perform binary encoding on the signal in each time window to obtain an encoded signal;

[0098] A chaining unit, used for chaining the coded signals of each time window based on a hash algorithm to obtain the signal chain state of each time window, wherein the signal chain state of the first time window is obtained by initializing the key;

[0099] An encryption unit, used for mixing the coded signal and the signal chain state of the same time window to obtain a mixed signal, and encrypting the mixed signal of each time window by a random matrix to obtain a ciphertext of each time window, wherein the random matrix is ​​generated by key initialization;

[0100] The sub-sampling unit is used to arrange the ciphertexts of each time window by columns to obtain a ciphertext vector, sub-sample the first several columns of data of the ciphertext vector by presetting the sub-sampling matrix, and restore the sub-sampled ciphertext vector to a matrix form to obtain the final ciphertext.

[0101] In the present application, during the signal preprocessing process, an ultra-low complexity preset sparse matrix is ​​used to sample the original signal, and the measurement information redundancy is increased through a small number of addition operations, thereby improving the signal reconstruction capability. The preprocessed signal is divided by a time window method, so that the preprocessed signal is grouped and encoded, and a chain technology is introduced to link the signals of each time window, and the encoded signal of the same time window is mixed with the signal chain state. The energy characteristics of the signal are shielded by the characteristics of the chain, so as to improve the resistance to ciphertext-only attacks and known plaintext attacks, and to impart robustness to man-in-the-middle attacks; further, a structured random matrix is ​​used to encrypt the mixed signal to obtain a ciphertext, and the front part of the ciphertext is sub-sampled. The present application improves the security of data transmission by hiding the energy information of plaintext through chaining; reduces the amount of data transmission through the subsampling process, which not only reduces the energy consumption of the system, but also this method is equivalent to designing a structured random matrix as a measurement matrix by combining a preset subsampling matrix and a preset sparse matrix. Its perception performance is much better than the perception performance of using an unstructured random matrix as a measurement matrix in the classic compressed sensing model. Compared with CCS, the present application can greatly improve the reconstruction performance of the system.

[0102] Please refer to Fig.10 , a chained compressed sensing data stream decoding device provided in an embodiment of the present application includes:

[0103] A decoding unit, configured to decode the ciphertext received at the first moment through the signal chain state at the first moment to obtain a sub-sampled pre-processed signal at the first moment, wherein the signal chain state at the first moment is obtained through key initialization;

[0104] an acquisition unit, configured to acquire a signal chain state at a next moment according to the signal chain state at a first moment and the preprocessed signal after subsampling, and decode the ciphertext received at the next moment by the signal chain state at the next moment to obtain the preprocessed signal after subsampling at the next moment;

[0105] A trigger unit, used to use the preprocessed signal and signal chain state at the next moment as the preprocessed signal and signal chain state at the first moment, and trigger the acquisition unit to gradually obtain the sub-sampled preprocessed signal at each moment;

[0106] The reconstruction unit is used to generate a structured random matrix through a preset sub-sampling matrix and a preset sparse matrix, use the structured random matrix as a measurement matrix, and reconstruct the signal according to the measurement matrix and the pre-processed signal after sub-sampling at each moment through a compressed sensing reconstruction method to obtain the original signal.

[0107] In the embodiment of the present application, the known key can decode the ciphertext at the first moment, and then obtain the signal chain state at the next moment, so as to gradually solve the sub-sampling pre-processed signal. At this time, the model is converted into a classic CS model, and a structured random matrix is ​​designed as a new measurement matrix by presetting the sub-sampling matrix and the pre-setting sparse matrix, and then the sub-sampled pre-processed signal and SRM can be accurately reconstructed into the original signal through the compressed sensing reconstruction method; the constructed new measurement matrix is ​​structurally equivalent to SRM. Compared with the unstructured random matrix, SRM has the characteristics of fast and efficient, and by changing the structure, the cumulative error caused by the reconstruction in CCS can be eliminated, and the transmission cost can be reduced as much as possible while ensuring the integrity of the information, and the reconstruction capability of the system is enhanced.

[0108] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0109] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein, for example. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0110] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0111] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0112] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0113] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0114] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for executing all or part of the steps of the method described in each embodiment of the present application through a computer device (which can be a personal computer, a server, or a network device, etc.). The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (full name in English: Read-Only Memory, English abbreviation: ROM), random access memory (full name in English: Random Access Memory, English abbreviation: RAM), disk or optical disk and other media that can store program codes.

[0115] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A chained compressed sensing data stream encoding method, It is characterized in that include: The original signal is sampled by using a preset sparse matrix to obtain a preprocessed signal; Dividing the preprocessed signal by time window, and performing binary coding on the signal in each time window to obtain a coded signal; Based on the hash algorithm, the coded signals of each time window are linked together to obtain the signal chain state of each time window, wherein the signal chain state of the first time window is obtained by key initialization; Mixing the coded signal and the signal chain state of the same time window to obtain a mixed signal, and encrypting the mixed signal of each time window by a random matrix to obtain a ciphertext of each time window, wherein the random matrix is ​​generated by initializing the key; The ciphertexts of each time window are arranged in columns to obtain a ciphertext vector, the first several columns of data of the ciphertext vector are sub-sampled by a preset sub-sampling matrix, and the sub-sampled ciphertext vector is restored to a matrix form to obtain a final ciphertext.

2. The chained compressed sensing data stream encoding method according to claim 1, It is characterized in that The pre-processed signal is: x=A×l; In the formula, x is the preprocessed signal, is the preset sparse matrix, l is the original signal.

3. The chained compressed sensing data stream encoding method according to claim 1, It is characterized in that The preprocessed signal is divided by time window mode, and the signal in each time window is binary-coded to obtain a coded signal, including: Dividing the preprocessed signal into t time windows to obtain signals of t time windows, where the signal of each time window is n-dimensional; Set the number of bits of the signal B x , through B x The signal of each time window is binary-encoded by bits to obtain the encoded signal X i ,in, , Z(B x )={-2 Bx -1,...,0,...,2 Bx -1}.

4. The chained compressed sensing data stream encoding method according to claim 3, It is characterized in that The method of linking the coded signals of each time window based on the hash algorithm to obtain the signal chain state of each time window includes: Set i=1 and get the signal chain state of the i-th time window through key initialization; Perform hash operation on the signal chain state of the i-th time window and the coded signal of the i-th time window to obtain the signal chain state of the i+1-th time window; Set i=i+1, return to the step of performing hash operation on the signal chain state of the i-th time window and the encoded signal of the i-th time window to obtain the signal chain state of the i+1-th time window, until i=t, to obtain the signal chain state of each time window.

5. The chained compressed sensing data stream encoding method according to claim 4, It is characterized in that The hash operation process is: ; In the formula, C i+1 is the signal chain state of the i+1th time window, H( ) is the hash function, C i is the signal chain state of the i-th time window, X i is the coded signal of the i-th time window, , All are intermediate parameters, B C is the number of bits of the signal chain state, and mod is the modulo operation.

6. The chained compressed sensing data stream encoding method according to claim 1, It is characterized in that The encryption process of the ciphertext is: ; In the formula, Z i is the ciphertext of the i-th time window, is the random matrix of the i-th time window, n is the length of the signal in each time window, Q i is the mixing matrix of the i-th time window, Q i =X i +C i , C i is the signal chain state of the i-th time window, X i is the coded signal of the i-th time window.

7. A chained compressed sensing data stream decoding method, It is characterized in that include: S1. Decoding the ciphertext received at the first moment through the signal chain state at the first moment to obtain the pre-processed signal after subsampling at the first moment, wherein the signal chain state at the first moment is obtained by key initialization; S2, obtaining the signal chain state at the next moment according to the signal chain state at the first moment and the pre-processed signal after sub-sampling, and decoding the ciphertext received at the next moment through the signal chain state at the next moment to obtain the pre-processed signal after sub-sampling at the next moment; S3, taking the preprocessed signal and signal chain state at the next moment as the preprocessed signal and signal chain state at the first moment, and returning to step S2, gradually obtaining the sub-sampled preprocessed signal at each moment; S4. Generate a structured random matrix by presetting a sub-sampling matrix and a pre-set sparse matrix, use the structured random matrix as a measurement matrix, and reconstruct the signal according to the measurement matrix and the pre-processed signal after subsampling at each moment by a compressed sensing reconstruction method to obtain the original signal.

8. The chained compressed sensing data stream decoding method according to claim 7, It is characterized in that The method of generating a structured random matrix by presetting a sub-sampling matrix and a presetting a sparse matrix includes: The preset sub-sampling matrix and the preset sparse matrix are multiplied to obtain a structured random matrix.

9. A chained compressed sensing data stream encoding device, It is characterized in that include: A preprocessing unit, used for sampling the original signal by using a preset sparse matrix to obtain a preprocessed signal; An encoding unit, used for dividing the preprocessed signal by time window, and performing binary encoding on the signal in each time window to obtain an encoded signal; A chaining unit, used for chaining the coded signals of each time window based on a hash algorithm to obtain the signal chain state of each time window, wherein the signal chain state of the first time window is obtained by initializing the key; An encryption unit, used for mixing the coded signal and the signal chain state of the same time window to obtain a mixed signal, and encrypting the mixed signal of each time window by a random matrix to obtain a ciphertext of each time window, wherein the random matrix is ​​generated by initializing the key; The sub-sampling unit is used to arrange the ciphertext of each time window by column to obtain a ciphertext vector, sub-sample the first several columns of data of the ciphertext vector by presetting the sub-sampling matrix, and restore the sub-sampled ciphertext vector to a matrix form to obtain a final ciphertext.

10. A chained compressed sensing data stream decoding device, It is characterized in that include: A decoding unit, configured to decode the ciphertext received at the first moment through the signal chain state at the first moment to obtain a sub-sampled pre-processed signal at the first moment, wherein the signal chain state at the first moment is obtained through key initialization; An acquisition unit, used to acquire a signal chain state at a next moment according to a signal chain state at a first moment and a preprocessed signal after subsampling, and decode a ciphertext received at the next moment by using the signal chain state at the next moment to obtain a preprocessed signal after subsampling at the next moment; A trigger unit, used to use the preprocessed signal and the signal chain state at the next moment as the preprocessed signal and the signal chain state at the first moment, and trigger the acquisition unit to gradually obtain the sub-sampled preprocessed signal at each moment; The reconstruction unit is used to generate a structured random matrix through a preset sub-sampling matrix and a preset sparse matrix, use the structured random matrix as a measurement matrix, and reconstruct the signal according to the measurement matrix and the pre-processed signal after sub-sampling at each moment through a compressed sensing reconstruction method to obtain the original signal.