Submitted:
30 June 2026
Posted:
01 July 2026
You are already at the latest version
Abstract

Keywords:
1. Introduction
2. Methods
2.1. Improve K-Means Algorithm (IKA)
- 1
- Nc initial clustering centers ci (i∈[0, Nc-1]) are created according to the initial spatial division.
- (a)
- If the previous clustering record with the class number Nc′ exists, the previous clustering environment, including class centers, pixel status, and other important information, is rebuilt, setting nc=Nc′. Otherwise, all pixels are grouped into a single class C0, with nc=1, meaning the one-class space has Ns pixels. The clustering center c0 is calculated as (1) with i=0, and the initial clustering status, lastsign, is assigned with lastsign [0]=1. The distances d0j(j∈[0, Ns-1]) (from (2) with i=0) between the intra-class pixels e0jand their center c0 are sorted in descending order, and the maximal value of d0j(j∈[0, Ns-1]) is saved to Pd [0] corresponding to the farthest pixel P0 to the center c0.
- (b)
- The pixel eim in the class Ci that is the farthest from the center ci is noted as Pi, and this maximal distance for class i is recorded in Pd[i] (i∈ [ 0, nc-1]). Along the direction = ci -eim in (3), this class is divided according to the vertical plane passing through the middle point between the farthest pixel eim and the point that has a distance of E(di) with ci along the inverse direction of , creating two new classes Cnc and Ci′ as (4) (see Figure 2a). Ci′ will take the place of Ci, letting Ci=Ci′. Their sizes are N(Cnc) and N(Ci), respectively. The two new classes are updated, including the following values: for an instance of the new class Ci, the class center ci (1), the distance dij between the intra-class pixel eij ∈ Ci and its center (2), E(di), Pd[i], and Pi.
- 2.
- The clustering centers before division or in the previous iteration are recorded in cilast, letting cilast =ci (i∈[0, Nc - 1]), and the class modification mark in the current iteration, sign, is set as sign[i]=0 (i∈[0, Nc-1]).
- 3.
- The distance matrix D={dij, i,j∈[0, Nc - 1]} is created by calculating the Euclidean distance as (5) between any two class centers.
- 4.
- For each pixel eij∈Ciin class i∈[0, Nc - 1], dij(j≠i, j∈[0, Nc - 1]) are sorted in ascending sequence to create one array Cij (for k∈Cij, exists k≠i, k∈[0, Nc - 1], dij>0.5dik), defining the search order for pixel eij, where the class with smaller distance to the class i is in the preceding position (see Figure 2b). The class centers with a distance to the class center ci larger than 2dij are not under consideration.
- 5.
- For each neighbor class k in Cij, if lastsign[i]==0 and lastsign[k]==0 (k∈Cij), meaning the relationship between classes j and k is stable, k is removed from Cij because it is not necessary to make Euclidean analysis between them. Otherwise, the pixel eij must be re-clustered: the distance dijk between eij and the center ck is calculated. For the class l≠i with the minimal value {l|dijl=min{{dijk|k∈Cij},dij}} (6), pixel eij is combined with the class l whose center is nearest to it, modifying class sets: Ci=Ci-{eij}, Cl=Cl+{eij}, and setting the class modification marks as sign[i]=1 and sign[l]=1.
- 6.
- For each class i∈[0, Nc-1] whose sign[i]==1, ci and dij (eij∈Ci) are updated according to (5) and (6). If |clilast-cli|< εc (l∈[1, b]), class i is assumed stable, setting sign[i]=0.
- 7.
- If none of the classes are changed, sign[i]==0 (i∈[0, Nc-1]), or the iteration number reaches the limit, the clustering process ends and proceeds to step 8; otherwise, it proceeds to step 2.
- 8.
- The previous clustering status lastsign is updated to lastsign=sign to record class stability in the current iteration.
- 9.
- Current clustering results are saved, including the class structure and all the variables.
2.2. Process of Clustering Lossless Compression Algorithm
- 1
- For remotely sensed images, apply IKA clustering, creating Nc class centers Ii, i∈[0, Nc-1] (choose the intra-class pixel nearest to the original computed clustering center as the center of this class, this has less error compared with directly being rounded to integer), and classification map S={sij∈[0, Nc - 1],i∈[0, m-1],j∈[0, n-1]}. And apply statistical Huffman coding to S at the same time.
- 2
- Code clustering centers:
- (a)
- Compute spectral residue of each center:
- (b)
- Compute the residue of the first band data between all classes:
- (c)
- Apply Huffman statistical coding to the residue data , and is saved separately.
- 3.
- Code intra-class pixels:
- (a)
- Compute residue between each intra-class pixel and its center:
- (b)
- Apply statistical Huffman coding to the residue
2.3. Probability Model Analysis of CLCA
- Intra-class residue:
- 2.
- Class center residue:
- 3.
- Classification map:
- 4.
- The total number of bits in CLCA is given by (14).
2.4. Least Entropy Lossless Compression Algorithm
- Choose initial three class numbers: n1, n2, n3.
- Cluster the space into n1 classes and use CLCA to get σ1n1, σ2n1, and Huffman coding length L1; cluster the space into n2 classes and use CLCA to get σ1n2, σ2n2, and Huffman coding length L2; cluster the space into n3 classes and use CLCA to get σ1n3, σ2n3, and Huffman coding length L3.
- According to the prediction Equation (24), assuming σ1 = σ1n3 and σ2 = σ2n3, Ncbest is calculated. If Ncbest is in the list of the initial and predicted class numbers, go to step 7 to terminate.
- Cluster the space into Ncbest classes and use CLCA to get its corresponding σ1best, σ2best, and code length Lbest.
- Update n1, n2, n3: (1) sort all the initial and predicted class numbers from low value to high value as an array; (2) search the array from left to right; the class number with the lowest code length is set as n3; (3) the previous two class numbers on the left in the array are set as n1 and n2.
- Go to step 2.
- In the list of the initial and predicted class numbers, class number n with the smallest Huffman coding length L is the best.
2.5. Conditions of Ultimate Division of Classes
3. Results
3.1. IKA
3.2. CLCA
3.3. Estimation of the Best Compression of CLCA
- Setting n1=200, n2=300, n3=400 as input parameters, their σ1n1=35.407818, σ1n2=33.676117, and σ1n1=32.581664. According to Equation (24), Ncbest=1023, whose σ1= 29.458689, σ2 =232.382148, Lbest=11959639 and LCR is 2.411096.
- Updating n1=300, n2=400, n3=1023, according to Equation (24), Ncbest=934, whose σ1= 29.763009, σ2 =233.284102, Lbest=11966192 and LCR is 2.409776.
- Updating n1=400, n2=934, n3=1023, according to Equation (24), Ncbest=1040, whose σ1= 29.402593, σ2 =232.143746, Lbest=11958672 and LCR is 2.411291.
- Updating n1=934, n2=1023, n3=1040, according to Equation (24), Ncbest=1064, whose σ1= 29.360868, σ2 =231.907104, Lbest=11962256 and LCR is 2.410569.
- Updating n1=934, n2=1023, n3=1040, according to Equation (24), Ncbest=1064, which has been clustered in step 4. The LELCA converges and stops the iteration.
3.4. Comparison with DPCM/D2PCM Algorithms
5. Discussion
6. Conclusions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
Appendix A
Appendix A.1. The Density Function of Equally Distributed Space
- 2D space
- 2.
- 3D space
- 3.
- The n-dimensional Space
Appendix A.2. Probability Distribution Model of DPCM/D2PCM Algorithms
- Calculate spectral residue of each pixel according to (55).
- 2.
- Apply S+P integral wavelet transform [30] to the 1st band data, deleting spatial redundancy.
- 3.
- Apply Huffman statistical coding to residue dIk (k∈[1, b-1]) and solely save I(0,0).
- 1.
- 2.
- The 1st band residue isX={0, ±1, ±2, …}; the variable x∈Xtakes on a Gaussian distribution N(0, σ2′2); then the total number of bits for the intra-class pixels’ residue is (57).
- 3.
- The total bit number of DPCM/ D2PCM algorithm is (58).
References
- Yuen, P.W.; Richardson, M. An introduction to hyperspectral imaging and its application for security, surveillance and target acquisition. Imaging Sci. J. 2010, 58, 241–253. [Google Scholar] [CrossRef]
- Fox, N.; Parbhakar-Fox, A.; Moltzen, J.; Feig, S.; Goemann, K.; Huntington, J. Applications of hyperspectral mineralogy for geoenvironmental characterization. Miner. Eng. 2017, 107, 63–77. [Google Scholar]
- Willoughby, C.T.; Folkman, M.A.; Figueroa, M.A. Application of hyperspectral-imaging spectrometer systems to industrial inspection. In Proceedings of the Three-Dimensional and Unconventional Imaging for Industrial Inspection and Metrology, Philadelphia, PA, USA, 19 January 1996; International Society for Optics and Photonics; Volume 2599, pp. 264–272. [Google Scholar]
- Park, B.; Lu, R. Hyperspectral Imaging Technology in Food and Agriculture; Springer: Berlin/Heidelberg, Germany, 2015. [Google Scholar]
- Obermeier, W.A.; Lehnert, L.W.; Pohl, M.J.; Gianonni, S.M.; Silva, B.; Seibert, R.; Bendix, J. Grassland ecosystem services in a changing environment: The potential of hyperspectral monitoring. Remote Sens. Environ. 2019, 232, 111273. [Google Scholar] [CrossRef]
- Wiegand, T.; Schwarz, H. Source coding: Part I of fundamentals of source and video coding. Found. Trends Signal Process. 2011, 4(1–2), 1–222. [Google Scholar] [CrossRef]
- Báscones, D.; González, C.; Mozos, D. Hyperspectral image compression using vector quantization, PCA and JPEG2000. Remote Sens. 2018, 10(6), 907. [Google Scholar] [CrossRef]
- Fei, B. Chapter 3.6—Hyperspectral imaging in medical applications. In Hyperspectral Imaging;Data Handling in Science and Technology; Amigo, J.M., Ed.; Elsevier: Amsterdam, The Netherlands, 2019; Volume 32, pp. 523–565. [Google Scholar]
- Selci, S. The future of hyperspectral imaging. J. Imaging 2019, 5, 84. [Google Scholar] [CrossRef] [PubMed]
- Hussain, A. J.; Al-Fayadh, A.; Radi, N. Image compression techniques: A survey in lossless and lossy algorithms. Neurocomputing 2018, vol. 300, 44–69. [Google Scholar] [CrossRef]
- Rahman, M. A.; Hamada, M. Lossless Image Compression Techniques: A State-of-the-Art Survey. Symmetry 2019, vol. 11(no. 10), 1274. [Google Scholar] [CrossRef]
- Mielikainen, J.; Toivanen, P. Clustered DPCM for the lossless compression of hyperspectral images. IEEE Trans. Geosci. Remote Sens. 2003, 41(12), 2943–2946. [Google Scholar] [CrossRef]
- Wang, J. F.; Zhang, K.; Tang, S. Spectral and spatial decorrelation of Landsat-TM data for lossless compression. IEEE Trans. Geosci. Remote Sens. 1995, 33(5), 1277–1285. [Google Scholar]
- Arnavut, Z.; Narumalani, S. Application of permutations to lossless compression of multispectral thematic mapper images. Opt. Eng. 1996, 35(12), 3442–3448. [Google Scholar] [CrossRef]
- Báscones, D.; González, C.; Mozos, D. FPGA Implementation of the CCSDS 1.2. 3 Standard for Real-Time Hyperspectral Lossless Compression. IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens. 2018, 11(4), 1158–1165. [Google Scholar]
- Amrani, N.; Serra-Sagristà, J.; Laparra, V.; Marcellin, M. W.; Malo, J. Regression wavelet analysis for lossless coding of remote-sensing data. IEEE Trans. Geosci. Remote Sens. 2016, 54(9), 5616–5627. [Google Scholar] [CrossRef]
- Álvarez-Cortés, S.; Bartrina-Rapesta, J.; Serra-Sagristà, J. Multilevel split regression wavelet analysis for lossless compression of remote sensing data. IEEE Geosci. Remote Sens. Lett. 2018, 15(10), 1540–1544. [Google Scholar] [CrossRef]
- Swelends, W. The Lifting Scheme: A custom-design construction of biorthogonal wavelet. J. Appl. Comput. Harmon. Anal. 1996, 3(2), 186–220. [Google Scholar] [CrossRef]
- ISO/IEC 15444-1; Information Technology—JPEG 2000 Image Coding System—Part 1: Core Coding System. International Organization for Standardization: Geneva, Switzerland, 2000.
- Zhang, R.; Liu, Z.; Yu, N. Decorrelation of multispectral images for lossless compression. Proc. SPIE 2001, 4551, 215–219. [Google Scholar] [CrossRef]
- Theodoridis, S.; Koutroumba, K. Pattern Recognition; Academic Press: Cambridge, MA, 2008. [Google Scholar]
- Ulacha, G.; Łazoryszczak, M. Lossless Image Compression Using Context-Dependent Linear Prediction Based on Mean Absolute Error Minimization. Entropy 2024, 26(12), 1115. [Google Scholar] [CrossRef] [PubMed]
- Rajput, A.; Li, J.; Akhtar, F.; Khand, Z. H.; Hung, J. C.; Pei, Y.; Börner, A. A Content Awareness Module for Predictive Lossless Image Compression to Achieve High Throughput Data Sharing over Network Storage. Int. J. Distrib. Sens. Netw. 2022, 18(4). [Google Scholar] [CrossRef]
- Rhee, H.; Jang, Y. I.; Kim, S.; Cho, N. I. Lossless Image Compression by Joint Prediction of Pixel and Context Using Duplex Neural Networks. IEEE Access 2021, 9, 118830–118841. [Google Scholar] [CrossRef]
- Sun; Ma, H.; Ling, F.; Xie, H.; Sun, Y.; Yi, L. A survey and benchmark evaluation for neural-network-based lossless universal compressors toward multi-source data. Front. Comput. Sci. 2025, 19, 197360. [Google Scholar] [CrossRef]
- Memon, N. D.; Sayood, K.; Magliveras, S. S. Lossless compression of multispectral image data. IEEE Trans. Geosci. Remote Sens. 1994, 32(2), 282–289. [Google Scholar] [CrossRef]
- Altamimi, A.; Ben Youssef, B. Lossless and Near-Lossless Compression Algorithms for Remotely Sensed Hyperspectral Images. Entropy 2024, 26(4), 316. [Google Scholar] [CrossRef] [PubMed]
- Nagendran, R.; Ramadass, S.; Thilagavathi, K.; Ravuri, A. Lossless hyperspectral image compression by combining spectral decorrelation techniques with transform coding methods. Int. J. Remote Sens. 2024, 45(18), 6226–6248. [Google Scholar] [CrossRef]
- Wang, Z. Entropy Analysis for Clustering Based Lossless Compression of Remotely Sensed Images. 2021 IEEE Big Data Conference, virtual platform, Dec. 15-18, 2021. [Google Scholar]
- Kulkarni, A.; McCaslin, S. Knowledge discovery from multispectral satellite images. IEEE Geosci. Remote Sens. Lett. 2004, 1(4), 246–250. [Google Scholar]
- Calderbank, A. R.; Daubechies, I.; Sweldens, W.; Yeo, B. L. Wavelet transforms that map integers to integers. Appl. Comput. Harmon. Anal. 1998, vol. 5(no. 3), 332–369. [Google Scholar] [CrossRef]









| Class no. Nc | Iteration number | Intra-class residue standard deviation σ1 | Spectral residue standard deviance σ2 | Lossless compression byte no. L | LCR | n1 | n2 | n3 | Ncbest | |
|---|---|---|---|---|---|---|---|---|---|---|
| 200 | 199 | 35.407818 | 230.068806 | 12214881 | 2.360714 | |||||
| 300 | 194 | 33.676117 | 231.546801 | 12121836 | 2.378834 | |||||
| 400 | 174 | 32.581664 | 232.651475 | 12075404 | 2.387981 | 200 | 300 | 400 | 1023 | |
| 1023 | 118 | 29.458689 | 232.382148 | 11959639 | 2.411096 | 300 | 400 | 1023 | 934 | |
| 934 | 98 | 29.763009 | 233.284102 | 11966192 | 2.409776 | 400 | 934 | 1023 | 1040 | |
| 1040 | 35 | 29.402593 | 232.143746 | 11958672 | 2.411291 | 934 | 1023 | 1040 | 1064 | |
| 1064 | 41 | 29.360868 | 231.907104 | 11962256 | 2.410569 | 934 | 1023 | 1040 | 1064 |
| Algorithm | D2PCM | DPCM | CLCA/200 classes | LELCA/1040 classes |
|---|---|---|---|---|
| LCR | 1.9963 | 2.0525 | 2.3607 | 2.4113 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).