ML-BASED BLOCK PARTITIONING FOR ADAPTIVE HUFFMAN CODING

Read full text
Authors: M.V.Harsha Uday, P.Umesh Reddy, Srideivanai Nagarajan, Sylvia Grace.J, P Privietha, D Susitra
Cited by: 0

Abstract

This project introduces an adaptive Huffman coding method that uses machine learning to guide block partitioning during lossless compression. It extracts statistical features like byte frequency distribution, Shannon entropy, run-length statistics, and local symbol variation over sliding windows of the input stream to detect changes in data characteristics. A simple supervised model, trained with entropy-based heuristic labels, scores potential positions as block boundaries. After identifying these boundaries, adaptive Huffman coding is applied independently within each selected block. Limits on minimum and maximum block size, along with a fallback heuristic segmentation, ensure reliable compression, even when the model lacks confidence. Experimental tests across diverse datasets, including log files, source code, sensor readings, and mixed text, show that this machine learning-guided block partitioning improves the compression ratio and space savings compared to fixed-size and purely heuristic block schemes. It maintains correct decompression and keeps runtime overhead within acceptable limits.

Fields of Study & Subjects

Algorithms and Data Compression Advanced Data Compression Techniques Time Series Analysis and Forecasting

Publication details

Journal / source
Zenodo (CERN European Organization for Nuclear Research)
Publication date
7 January 2026