# US 2017/0257649 A1 · Data adaptive compression and data encryption using kronecker products

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2017/0257649 A1
- Document ID: US20170257649A1
- Status: Published application
- Kind: A1
- Application number: 15/505,665
- Filed: 2015-08-21
- Published: 2017-09-07
- Earliest claimed: 2014-08-22
- Assignees: Nova Southeastern University
- Applicants: Nova Southeastern University
- Inventors: Abdelkrim BOUROUIHIYA
- Web page: https://patentgrep.com/patent/US20170257649A1

## CPC

- H04N 21/2347: involving video stream encryption
- G06F 17/16: Matrix or vector computation {, e.g. matrix-matrix or matrix-vector multiplication, matrix factorization (matrix transposition G06F7/78)}
- H04N 19/46: Embedding additional information in the video signal during the compression process (H04N19/517, H04N19/68, H04N19/70 take precedence)
- H04L 9/3066: {involving algebraic varieties, e.g. elliptic or hyper-elliptic curves}
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Digital files are compressed using a process including Schmidt decompositions of matrices using an algorithm, termed ‘BSD’ herein, which is based on an algebraic method generalizing QR decomposition. Software analyzes an input file and initially identifies a matrix M, with entries within a predefined set of integers, within the file. Next, essential entries are defined, extracted from M, that contain sufficient information to recover Musing BSD. The compressed file includes the essential entries and their positions within M. To achieve an encryption process, software encrypts the pattern matrix that includes the positions of the essential entries of M. To achieve a lossy compression, software identifies essential entries that contain sufficient information to recover an approximation to M for which the quality is determined by an error threshold. For a more efficient lossy compression, software uses singular value decomposition, BSD, and other signal processing of M.

## Claims

### Claim 1

A method for encoding a digital data source, comprising:
using a computer executing software stored on non-transitory media, the software configured to:
identify an mn×pq matrix M, with entries within a predefined set of integers, within the digital data;
define a left essential matrix A;
define a right essential matrix B;
define a pattern matrix P for storing positions of essential entries;
assign to matrix Me a starting value of M;
define a matrix Ae;
define a matrix Be;
assign a starting value to e;
a) select a non-zero entry de of Me;
b) store position (r, c) of the selected non-zero entry of Me at the eth column of P;
c) select from Me two matrices Ae and Be having de as a common entry and for which AeBe/de is a term in a BSD of M with respect to the shape (m, n, p, q);
d) store in the eth m×p block of A the entries of M whose positions are the positions of the entries of Ae in Me;
e) store in the eth n×q block of B the entries of M whose positions are the positions of the entries of Be in Me; and
f) calculate the matrix Me+1=Me−AeBe/de, and if a predetermined error threshold between M and Me+1 is reached, repeat steps (a)-(f) with Me+1, otherwise P, A, and B collectively represent encoded digital data corresponding to M; and
g) transfer the encoded data to digital storage on at least one of the computer executing software or another computer, the encoded data comprising fewer data bytes than the source digital data, and representing at least one of all the information in the source digital data, and an approximation of all of the information in the source digital data.

### Claim 2 (depends on 1)

The method of claim 1, wherein the non-zero number selected in step (a) corresponds to the first entry, with respect to the stereographic order, whose absolute value is the maximum of the absolute values of the entries of Me.

### Claim 3 (depends on 1)

The method of claim 1, wherein the software is further configured, in step (c), to select from Me two matrices Ae and Be by:
i) calculating the Euclidean division of c by q and find the remainder j, and if remainder j is zero, replace j with q, then compute i=(c−j)/q+1; and
ii) calculating the Euclidean division of r by n and find the remainder 1, and if remainder 1 is zero, replace 1 with n, then compute k=(r−1)/n+1.

### Claim 4 (depends on 1)

The method of claim 1, wherein the software is further configured to:
(i) carry out step (d) by, for each integer a between 1 and m, and each integer b between 1 and p, storing the entry of M at position (l+(a−1)n, j+(b−1)q) in left essential matrix A at position (a, (e−1)p+b), and storing the entry of Me at position (l+(a−1)n, j+(b−1)q) in matrix Ae at position (a, b); and
(ii) carry out step (e) by, for each integer a between 1 and n, and each integer b between 1 and q, storing the entry of M at position (l+(k−1)n, b+(i−1)q) in right essential matrix B at position (a, (e−1)q+b), and storing the entry of Me at position (l+(k−1)n, b+(i−1)q) in matrix Be at position (a, b).

### Claim 5 (depends on 1)

The method of claim 1, wherein the predetermined stop value is infinity for a lossless encoding of the digital data.

### Claim 6 (depends on 1)

The method of claim 1, wherein the predetermined stop value is a positive number for a lossy encoding of the digital data.

### Claim 7 (depends on 1)

The method of claim 1, wherein the sum of the stored sizes of P, A, and B is less than the stored size of the digital data corresponding to M.

### Claim 8 (depends on 1)

The method of claim 1, wherein all of the entries of A and B are extracted from M and the entries of P are integers.

### Claim 9 (depends on 1)

The method of claim 1, wherein the software is further configured to use P, A, and B to decode the digital data as matrix N, the software being thus further configured to:
define R as the number of columns in P;
define E as an mn×pq matrix;
define m as the number of rows in A;
define p as the number of columns in A divided by R;
define n as the number of rows of B;
define q as the number of columns in B divided by R;
assign a starting value to e;
extract an ordered pair (r, c) from the eth column of P;
carry out steps (c)-(f) in reverse, as steps (f)-(c), placing the entries of A and B in E at the same positions they occupy in M;
fill with zero all values of E which have not been assigned an entry from A or B;
assign to matrix Ee a starting value of E;
assign a starting value to e;
a) extract an ordered pair (r, c) from the eth column of P;
b) select de the entry of Ee at the position (r, c);
c) using the method of steps (c)-(f) of claim 1, recover the matrices Ae and Be of claim 1; and
d) if e<R, compute Ee+1=Ee−AeBe/de and repeat (a)-(d) with Ee+1, and if e=R, compute N=A1B1+A2B2+ . . . +ARBR.

### Claim 10 (depends on 9)

The method of claim 9, wherein in step (d), if N=M, the digital data has been decoded without a loss of data, and if N≠M, N approximates the digital data.

### Claim 11 (depends on 1)

The method of claim 1, wherein the digital data corresponding to M is encrypted by encrypting P.

### Claim 12 (depends on 1)

The method of claim 1, wherein M is one of a plurality of matrices M identified within the digital data, and wherein steps (a)-(f) are performed for each of the plurality of matrices M, and wherein the digital data is encoded by the collective matrices of P, A, and B corresponding to the plurality of matrices M along with the size S of the matrix ME that represents the entire digital data.

### Claim 13

A method for encoding a digital data source, comprising:
using a computer executing software stored on non-transitory media, the software configured to:
define R as the number of columns in P;
define E as an mn×pq matrix;
define m as the number of rows in A;
define p as the number of columns in A divided by R;
define n as the number of rows of B;
define q as the number of columns in B divided by R;
assign a starting value to e;
extract an ordered pair (r, c) from the eth column of P;
select de the entry of Ee at the position (r, c);
calculate the Euclidean division of c by q and find the remainder j, and if remainder j is zero, replace j with q, then compute i=(c−j)/q+1;
calculate the Euclidean division of r by n and find the remainder l, and if remainder l is zero, replace l with n, then compute k=(r−l)/n+1;
for each integer a between 1 and mn, and each integer b between 1 and pq, copy the entry of A at position (a, (e−1 )p+b) into position (l+(a−1)n, j+(b−1)q) of E, and copy the entry of B at position (a, (e−1 )q+b) into position (a+(k−1)n, b+(i−1)q) of E;
fill with zero all values of E which have not been assigned an entry from A or B;
assign to matrix Ee a starting value of E;
assign a starting value to e;
a) extract an ordered pair (r, c) from the eth column of P;
b) select de the entry of Ee at the position (r, c);
c) calculate the Euclidean division of c by q and find the remainder j, and if remainder j is zero, replace j with q, then compute i=(c−j)/q+1;
d) calculate the Euclidean division of r by n and find the remainder l, and if remainder l is zero, replace l with n, then compute k=(r−l)/n+1;
e) for each integer a between 1 and m, and each integer b between 1 and p, store the entry of Ee at the position (l+(a−1)n, j+(b−1)q) at the position (a, b) of matrix Ae;
f) for each integer a between 1 and n, and each integer b between 1 and q, store the entry of Ee at the position (l+(k−1)n, b+(i−1)q) at the position (a, b) of matrix Be; and
g) if e<R, compute Ee+1=Ee−AeBe/de and repeat (a)-(g) with Ee+1, and if e=R, the encoded data is computed as A1B1+A2B2+ . . . +ARBR; and
h) transfer the encoded data to digital storage on at least one of the computer executing software or another computer, the encoded data comprising fewer data bytes than the source digital data, and representing at least one of all the information in the source digital data, and an approximation of all of the information in the source digital data.

### Claim 14 (depends on 13)

The method of claim 13, wherein the software is further configured to use P, A, and B to decode the digital data as a matrix that approximates M.

### Claim 15 (depends on 13)

The method of claim 13, wherein M is one of a plurality of matrices M identified within the digital data, and wherein steps (a)-(f) are performed for each of the plurality of matrices M, and wherein the digital data is encoded by the collective matrices of P, A, and B corresponding to the plurality of matrices M along with the size S of the matrix ME that represents the entire digital data.

### Claim 16 (depends on 15)

The method of claim 15, wherein each matrix M has a predetermined size, and wherein if the digital data is not evenly divisible by the predetermined size, a remaining partial matrix Mp is padded with zeros to the predetermined size, and the are discarded when the digital data is decoded.

### Claim 17

A method for encoding digital data, comprising:
using a computer executing software stored on non-transitory media, the software configured to:
identify an mn×pq matrix M, with entries within a predefined set of integers, within the digital data;
define an essential sequence S which is in two part S1 and S2;
define an essential matrix E;
define a pattern sequence PS for storing positions of n×q block matrices of E;
define a matrix Ae;
define a matrix Be;
assign to matrix Me a starting value of M and assign a starting value to e;
a) select a non-zero entry de of Me;
b) store at the eth term of PS the position of the eth n×q block of Me that includes (r, c) the position of de;
c) store the eth n×q block matrix of M at the eth n×q block matrix of E, and following the lexicographic order, store the entries of the eth n×q block of M in S1;
d) calculate the Euclidean division of c by q and find the remainder j, and if the remainder is zero, replace j with q, then compute i=(c−j)/q+1; and calculate the Euclidean division of r by n and find the remainder l, and if the remainder is zero, replace l with n, then compute k=(r−l)/n+1;
e) for each integer a between 1 and m and each integer b between 1 and p, store at position (a, b) of matrix Ae the entry of Me at position (l+(a−1)n, j+(b−1)q), and following the lexicographic order, if position (l+(a−1)n, j+(b−1)q) of E is unfilled, store in it the entry of M located at the same position and store the same entry in sequence S2; and
f) calculate the matrix Me+1=Me−AeBe/de, and if a predetermined error threshold between M and Me+1 is reached, repeat steps (a)-(f) with Me+1, otherwise, collect S1 and S2 to form a sequence S, which with PS and the shape (m, n, p, q) represent encoded digital data corresponding to M; and
g) transfer the encoded data to digital storage on at least one of the computer executing software or another computer, the encoded data comprising fewer data bytes than the source digital data, and representing at least one of all the information in the source digital data, and an approximation of all of the information in the source digital data.

### Claim 18 (depends on 17)

The method of claim 17, wherein the software is configured to de-encode the encoded digital data, by being further configured to:
define R as the number the number of terms in PS;
define E as an mn×pq matrix;
use the first Rnq terms of S to build R n×q block matrices of E, use PS to identify the positions of the R block matrices, and delete from S the used terms, then call essential position any filled position of E;
assign to matrix Me a starting value of E, and assign a starting value to e;
a) build a matrix Be whose entries are the entries of the eth n×q block matrix of Me, and following the lexicographic order compute (r, c) the position in Me of the first entry de in Be whose absolute value is equal to the maximum value of the absolute values of the entries of Be, then store de at the eth term of a sequence D;
b) calculate the Euclidean division of c by q and find the remainder j, and if the remainder is zero, then replace j with q, then compute i=(c−j)/q+1, and calculate the Euclidean division of r by n and find the remainder l, and if the remainder is zero, replace l with n, then compute k=(r−l)/n+1, and store i the eth term of a sequence I, j the eth term of a sequence J, k the eth term of a sequence K, and l the eth term of a sequence L;
c) build an an m×p matrix Ae as follows, for each (a, b), where 1≦a≦m and 1≦b≦p, if (l+(a−1)n, j+(b−1)q) is an essential position, then fill position (a, b) of Ae with the entry of Me located at position (l+(a−1)n, j+(b−1)q), fill this position of E with the first term of S and mark (l+(a−1)n, j+(b−1)q) as an essential position of E;
d) fill with zero the other positions of Ae;
f) compute Me+1=Me−AeBe/de, and if e<R, then repeat steps (a)-(d) with Me+1, and if e=R, then assign to matrix Ee a starting value of E, and assign a starting value to e;
g) compute i, j, k, and l that are, respectively, the eth term of I, the eth term J, the eth term of K, and the eth term of L;
h) build an m×p matrix Ae and an n×q matrix Be are built as follows, for each integer a between 1 and in and each integer b between 1 and p, place at position (a, b) of Ae the entry of Ee at position (l+(a−1)n,j, and assign the eth n×q block matrix of Ee to Be;
k) if e<R, then compute Ee+1=Ee−AeBe/de, where de is the eth term of D, and repeat steps (g) and (h) with Ee+1, and if e=R, then compute
N=A1B1/d1+A2B2/d2+ . . . +ARBR/dR,
wherein the matrix N is the matrix of the output file.

### Claim 19 (depends on 17)

The method of claim 17, wherein lossless compression is achieved by stopping iterative computation of steps (a)-(d) in step (f) after the Schmidt rank of M is reached.

### Claim 20 (depends on 17)

The method of claim 17, wherein error is measured by using at least one of PSNR, PEVQ, and SSIM.
