Abstract
Electroencephalography (EEG) data comes with a large size due to the data's high sampling rate. Therefore, compressing EEG data is very important for storing the EEG files efficiently with less space and bandwidth capacity requirement. This research develops an efficient system for EEG data compression. The recorded EEG data are preprocessed and scaled using certain Resolution Factor and truncated to integer numbers, then the scaled EEG samples are classified into small and large vectors using a proposed adaptive thresholding which is based on using three computed factors: Standard deviation, Average of samples (Mean), and the multiplier factor (α). Then, each sample is passed through one of three procedures, then saved into the output file using multi-shift coding algorithm The best values are chosen as the tradeoff between the compression ratio and the processing time. The results indicated that the value of α parameter is significantly affects the threshold calculation, where the best-proven value for α is 1.30; the system achieves a compression gain of 65% while managing a reasonable processing time of 4.007 Second. The resolution factor affected the Mean Squared Error (MSE) and Mean Absolute Error (MEA) significantly, but it had a slight effect on the Compression Ratio (Cr). The α parameter has a great effect on Cr and a slight on MSE. The findings show a consistent trend whereby, as the resolution factor gradually decreases from 2 to 0.1, a concurrent decrease is observed in the MAE, MSE, Bitrate, Cr, and the overall processing time.
Keywords
Data scaling, Electroencephalography, EEG compression, Multi-shift coding, Run length encoding, Signal thresholding
Subject Area
Computer Science
Article Type
Article
First Page
735
Last Page
746
Creative Commons License

This work is licensed under a Creative Commons Attribution 4.0 International License.
How to Cite this Article
Jasim, Hala A.; George, Loay E.; Khudhair, Eman H.; and Sultan, Bushra A.
(2026)
"EEG Lossless Signal Compression Based on Magnitude Classification and Run Length Encoding,"
Baghdad Science Journal: Vol. 23:
Iss.
2, Article 28.
DOI: https://doi.org/10.21123/2411-7986.5220
