Article 12

Comparative Performance Analysis of Huffman, LZW, and Hybrid Compression Algorithms in Audio-Based Steganography

تحليل مقارن لأداء خوارزميات هوفمان وLZW والضغط الهجين في إخفاء المعلومات داخل الملفات الصوتية

Mohaned Moatasem Apass Karmalah1 and Eman Salah Eldin1

1 Assistant Professors, Nile Valley University, Sudan

Email: mohaned.cs@gmail.com, esmscs90@gmail.com

DOI: https://doi.org/10.53796/hnsj712/12

Arabic Scientific Research Identifier: https://arsri.org/10000/712/12

Volume (7) Issue (12). Pages: 212 - 223

Received at: 2026-11-10 | Accepted at: 2026-11-18 | Published at: 2026-12-01

Download PDF

Cite / الاستشهاد

Abstract: Steganography contributes to addressing several challenges, such as data loss and increased transmission time, by concealing messages without arousing the suspicion of attackers. However, traditional techniques face difficulties in handling different file types due to their diverse characteristics. This study aims to enhance file security through a multi-layered model based on compression algorithms, namely Huffman, Lempel–Ziv–Welch (LZW), and a combination of both. The compressed files generated by the preceding layers are then embedded within audio files (.wav) to enhance their confidentiality using the Least Significant Bit (LSB) technique. The main contributions of this study include improving the efficiency of hiding files within audio files while preserving audio quality. Furthermore, the proposed model improves the embedding speed and minimizes the impact on audio quality by integrating compression techniques with steganography. This integration reduces the required storage space and increases processing speed. The study also analyzes the impact of Huffman and LZW compression techniques on system performance. The results indicate that LZW achieves a better compression ratio with minimal impact on audio quality, making the proposed model effective for enhancing data security in various applications. The proposed model was implemented using Java for designing and developing the software interfaces, while MATLAB was employed to evaluate the obtained results. The proposed method was tested on several audio files. One of the most significant findings was achieving a satisfactory data recovery rate from the audio files used as cover media, without causing any noticeable distortion to the original audio files.

Keywords: LZW, Huffman compression, steganography, comparative performance.

المستخلص: يساهم علم إخفاء المعلومات في معالجة العديد من التحديات مثل فقدان البيانات وزيادة وقت الإرسال من خلال إخفاء الرسائل دون إثارة شكوك المخترقين. ومع ذلك، فإن التقنيات التقليدية تواجه صعوبة في التعامل مع الملفات المختلفة بسبب خصائصها المتنوعة. تهدف هذه الأطروحة إلى تعزيز أمن الملفات من خلال نموذج متعدد الطبقات يعتمد على خوارزميات الضغط (هوفمان Huffman وليمبل زيف وولش LZW ودمجهما معًا) ثم إخفاء الملفات الناتجة من الطبقات السابقة داخل ملفات صوتية (.wav) لزيادة سريتها باستخدام تقنية البت الأقل أهمية (LSB). تمثلت إسهامات هذه الدراسة في تعزيز كفاءة إخفاء الملفات داخل الملفات الصوتية مع الحفاظ على جودة الصوت. إضافة إلى تحسين سرعة الإخفاء وتقليل التأثير على جودة الصوت عبر دمج تقنيات الضغط مع الإخفاء، مما يقلل من المساحة المطلوبة ويزيد من سرعة تنفيذ العملية. كما تم تحليل تأثير خوارزميتي هوفمان وLZW على الأداء، وتبيّن أن خوارزمية LZW تحقق أفضل نسبة ضغط مع أقل تأثير على جودة الصوت، مما يجعل النموذج فعالًا في تعزيز أمن البيانات في التطبيقات المختلفة. تم تنفيذ هذا النموذج باستخدام لغة جافا لتصميم وتنفيذ واجهات البرنامج وبرنامج MATLAB لتقييم النتائج المتحصل عليها. وقد تم تطبيق الطريقة المقترحة على أكثر من ملف صوتي ومن أهم النتائج التوصل إليها الحصول على نسبة استرجاع جيدة للبيانات من داخل الملفات الصوتية المستخدمة كغطاء للبيانات من دون إحداث أي تشويه ملحوظ في الملف الصوتي.

الكلمات المفتاحية: LZW، ضغط هوفمان، إخفاء المعلومات، مقارنة الأداء.

1. Introduction

The emergence of the internet and the spread of multimedia and intranets made it more difficult to transmit data without unauthorized access or alteration. This created a need for methods of concealing data, collectively known as steganography. The principal aim of steganography is to transmit information without drawing attention to the hidden data. Steganography can be classified into image, text, audio, and video steganography based on the cover media used to embed the data.

Data compression is important, especially in communications and related applications, and can support information security. Text compression primarily uses features of natural languages to improve the compression ratio and performance.

This study aims to enhance security using a multi-layer model based on sequential encoding of Arabic character strings. The model then compresses the encoded data and embeds them in audio files.

2. Research Problem

With the increasing reliance on steganography techniques to protect sensitive information, technical challenges arise regarding concealing data within audio files while ensuring that the audio quality remains unaffected and the hidden information cannot be easily detected. Traditional techniques struggle to handle diverse files due to their varied characteristics. Furthermore, balancing high compression ratios, processing speed, and audio transparency remains a significant challenge. Addressing these gaps, this study aims to develop and analyze a multi-layer model for hiding Arabic text in audio files, incorporating a detailed experimental comparative analysis of different compression algorithms to evaluate their effectiveness in achieving required security and maintaining file quality.

3. Research Objectives

1. Developing an Advanced Multi-Layer Model:

To design an effective multi-layered steganography model tailored to the unique linguistic characteristics of the Arabic language and the structural properties of audio files.

2. Enhancing Security and Resistance to Detection:

To utilize a sequential multi-layer technique using advanced compression options and Least Significant Bit (LSB) steganography.

3. Conducting a Detailed Experimental Comparative Analysis

To perform a comprehensive comparative analysis of three compression options (Huffman, LZW, and their combination) within the steganography architecture, evaluating their impact on secrecy, transparency, robustness, capacity, and sound quality using objective scientific metrics and MATLAB-generated results.

4. Research Importance

1. Integration of multiple techniques: The study introduces a model that combines multi-layer encoding, compression, and steganography to improve confidentiality and performance.

2. Evaluates multiple compression technologies (Huffman, LZW, and their combination) to improve storage capacity and analyze their specific effects on audio steganography.

3. Pre-embedding Protection: Integrating compression with steganography provides prior protection for the secret message, adding an extra security layer before embedding.

4. Empirical Comparative Evaluation: It delivers a thorough comparative evaluation supported by MATLAB-generated tables and graphs to test and validate model performance.

5. Guidance for Practitioners: It offers clear performance benchmarks to help expert users select the most optimal technique based on scientific measures.

6. Foundation for Future Research: It provides a solid academic starting point for further investigations into optimizing Arabic text steganography models.

5. Research Methodology

1. Background and literature review: A review of steganography and the compression techniques used in the study.

2. First layer (experimental compression analysis): A comparison of three compression options integrated into the model: Huffman, LZW, and a combination of the two.

3. Second layer (steganography): Embedding the compressed text in WAV audio files using the least significant bit (LSB) technique.

4. Evaluation: Using MATLAB to evaluate the results, measure performance, and generate tables and graphs.

6. Research Contributions

1. Advanced Arabic Text Steganography Model:

Developing a multi-layer model utilizing multi model compression, and LSB steganography to improve hiding efficiency while preserving audio quality.

2. Detailed Experimental Comparative Analysis:

Conducting an in-depth comparative study among Huffman, LZW, and their combination, supported by MATLAB-generated tables and graphs. The results conclusively proved the superiority of the LZW algorithm in achieving the highest compression ratio with minimal impact on audio quality.

3. Optimized Execution Speed and Quality Preservation:

Demonstrating that integrating compression techniques with steganography reduces required storage space, accelerates processing speed, and prevents noticeable acoustic distortion.

4. An efficient Security Model for Arabic Text:

Providing a practical and robust model for securing sensitive Arabic text, thereby enhancing data security across various applications such as confidential communications and secure data storage.

7. Related Works

Table 1 summarizes related studies.

Table 1: Comparison of related studies

No. Researchers’ names Research Title Main Objectives of the Research Research findings
1 Arwa Aleryani “The Scientific Contribution of Arabic to Information Technology Research compared to other Languages” A study concerned with the contribution of the Arabic language to scientific research in the field of information technology The study called for taking serious steps to improve scientific research in the Arabic language, especially in technical fields, and the necessity of balancing the use of the English language with enhancing the status of other languages ​​to achieve comprehensive progress in knowledge.
2 Reema Thabit and Others “A Comparative Analysis of Arabic Text Steganography” Studying methods for hiding Arabic texts and evaluating these methods based on four basic goals for any method of hiding information, which are: robustness, invisibility, capacity, and security. The study confirmed that there is an urgent need to develop new technologies or improve existing technologies to make hiding texts in Arabic more efficient and responsive to technical challenges.
3 Abdennour Boulesnane, Adel Beggag and MustaphaZedadik “A New Steganography Technique Based on Dotted Arabic Letters Features” Presenting a new approach based on combining dot positions in Arabic letters with features of Arabic text such as kashida and semicolons to create an innovative stealth model. The proposed technology provided significant improvements in terms of capacity, security, and durability, making it an advanced step in the field of hiding information in Arabic texts, with the possibility of expanding its use and development in the future.
4 Malak G Alkhudaydi and Adnan A. Gutub “Integrating Light-Weight Cryptography with Diacritics Arabic Text Steganography Improved for Practical Security Applications” Enhancing Arabic text hiding techniques with lightweight encryption to achieve more efficient security applications, taking into account current hardware challenges and future security needs. The proposed technology represents an advanced step in the field of hiding Arabic texts, as it combines high capacity efficiency and a high level of security This makes it a promising model for future security applications
5 Ali A. Hamzah and Hanaa Bayomi “Text Steganography with High Embedding Capacity Using Arabic Calligraphy” Developing an effective and secure data hiding technique using the diversity of letter shapes in Arabic calligraphy, which enhances capacity and security in information hiding applications The proposed technology represents a significant improvement in the field of information hiding using Arabic scripts, while achieving a balance between capacity and security, and opening new horizons for future applications based on the diversity of Arabic scripts.
6 Tariq, Hasan Abu Hilal “Arabic Text Lossless Compression by Character Encoding” Developing an effective encoding technique to convert Arabic texts from UTF-8 encoding to ANSI, with the aim of improving the efficiency of using data, reducing its size, and ensuring compatibility between different systems that rely on various encoding techniques. The study found that the proposed technology for converting Arabic texts from UTF-8 encoding to ANSI provides an effective solution that reduces data size, enhances storage and processing efficiency, and supports compatibility with multiple systems. Practical results also demonstrated that the system achieves the required performance while maintaining the accuracy and integrity of Arabic texts, which makes the technology suitable for application in various technical environments.
7 Hala Mustafa Abdalraheem The Effect of Compression on Audio Steganography Design a multi-level audio steganography system that combines modulation and lossless compression to improve the security and effectiveness of the steganography process. The proposed system enhanced the security of hidden data and showed great potential in audio data steganography applications using multi-level embedding and lossless compression.
8 Hedaya Ghanim Alshammar,Dina Hamad Alghurair “Improving Compression Methods for Arabic Text Using Dedicated Character Mapping” Analyzing and applying statistical algorithms to improve data compression for Arabic texts, by using algorithms such as Golomb, Elias Gamma, and Huffman, and presenting a dedicated technique for drawing Arabic letters, while comparing performance on various sets of data to achieve an improvement in the compression ratio. The study showed a significant improvement in the compression ratio when applying statistical algorithms such as Golomb, Elias Gamma and Huffman to Arabic texts, compared to traditional methods. A specialized technology was also developed for drawing Arabic letters, which contributed to improving compression results. Experiments have shown that these algorithms were more effective when applied to random Arabic texts and real texts from Arabic stories and books, which enhances the effectiveness of the algorithms in improving data compression in the Arabic language.
9 Rubby Garg1, Dr. Vijay Laxmi “Various audio Steganography techniques for audio signals” The study aims to develop an innovative technology for hiding data in audio signals using E-LSB and Adaptive Huffman Compression techniques to improve the efficiency of hiding and increase the capacity of audio signals to accommodate large text messages, while ensuring the security of hidden data and preserving the quality of the original audio signal. It also aims to compare performance with traditional methods to confirm the superiority of the new technology and open new horizons for future applications in the field of data hiding. The proposed method achieves significant improvement in the efficiency and security of audio data hiding compared to traditional methods, while ensuring minimal impact on audio signal quality.
10 Chintan R. Nagrecha, Prof. Prashant, B. Swadas “Audio Steganography with Various Compression Algorithms to Improve Robustness and Capacity” The study aims to improve data hiding techniques in audio signals by increasing the storage capacity and the ability to resist detection of hidden messages. This is done by using a new approach that relies on embedding the data in higher random layers, which makes detecting the message more difficult. The study also takes advantage of lossless compression techniques to improve storage efficiency and maintain data quality, while developing a more efficient system compared to traditional methods. The study presented an innovative method for hiding data in audio signals, characterized by increased durability and storage capacity, while achieving a high level of security through random layers and data compression.

7.1 Comparison between Related Works and this study:

Compared to the above, this study aims to improve the security of text message data by applying multiple techniques, such as sequential coding algorithm, compression algorithms, and hiding text message data inside audio files using the least significant bit (LSB) technique. It also seeks to address the challenges associated with the text message data, evaluate the performance of the proposed method, and achieve a balance between security and quality of hidden audio.

Challenges related to the Arabic language were also successfully addressed, while maintaining sound quality and reducing distortion. In addition, the results showed that the proposed method achieves a good balance between security and quality in communications applications.

8. Theoretical framework

8.1 Security Concepts:

With the development of computers and the expansion of their use in different areas of life and work, the issue of information security has become increasingly important. We can define this science as the process of preventing data theft. While the term often describes measures and methods that increase computer security, it also refers to the protection of any type of information. Among the reasons discussed in information security is the exchange of information through covered media. To achieve this, various methods such as cryptography, steganography, encoding, etc. have been used. Steganography is one of the methods that have received attention in recent years.

8.2 Cryptography:

Cryptography is usually referred to as “the study of secret”, while nowadays is most attached to the definition of encryption. Encryption is the process of converting plain text “unhidden” to a cryptic text “hidden” to secure it against data thieves. This process has another part where cryptic text needs to be decrypted on the other end to be understood. [11]

8.3 Steganography

Steganography is the practice of concealing a file, message, image, audio or video within another file, message, image, audio or video. The word steganography combines the Greek words steganos meaning “covered, concealed, or protected”, and graphein meaning writing.

The first recorded use of the term was in 1499 by Johannes Trithemius in his Steganographia, a research on cryptography and steganography, disguised as a book on magic. Generally, the hidden messages appear to be (or to be part of) something else: images, articles, shopping lists, or some other cover text. For example, the hidden message may be in invisible ink between the visible lines of a private letter. Some implementations of steganography that lack a shared secret is forms of security through obscurity, and key-dependent steganography schemes adhere to Kerckhoffs’s principle. [12]

Figure 1: Steganography Application.

The cover signal used in steganography is called the host signal. Information hidden in the cover data is called embedded data. The hidden message need not be encrypted. Whether encryption is used depends on the security and design of the system. Steganography allows messages to be transmitted without revealing that a message was sent. Encryption may signal that the sender or receiver has something to conceal. Steganography instead aims to conceal the existence of the message from everyone except the intended recipient.

Hiding information in text is historically the most important and oldest method used in steganography. An obvious method was to hide a secret message in every nth letter of every word of a text message. Moreover, the process of encoding the secret message in a text file can be applied in different ways by using the properties of the sentences such as changing the text format or depending on the number of words. [12]

8.4 Audio steganography

Audio steganography exploits limitations of the human auditory system, such as the masking of quieter sounds by louder sounds, to conceal secret messages.

Audio steganography is embedding secret message into digital sound. The secret message is embedded by slightly altering the binary sequence of a sound file. Existing audio steganography software can embed messages in WAV, AU, and even MP3 sound files. [13]

Figure 2: Basic Audio Steganography Model.

8.5 Compression techniques

Compression uses an encoding algorithm and a decoding algorithm. The encoder produces a compressed representation of the message. The decoder reconstructs the original message or an approximation. The two main methods of data compression are lossy compression and lossless compression.

Lossless compression techniques, as their name implies, involve no loss of information. If data have been losslessly compressed, the original data can be recovered exactly from the compressed data. Lossless compression is generally used for applications that cannot tolerate any difference between the original and reconstructed data.

Text compression is an important area for lossless compression. It is very important that the reconstruction is identical to the original text, as very small differences can result in statements with very different meanings. [15]

9. Implementation of the proposed model

The proposed model uses two approaches, depending on the algorithm selected (Figure 3).

Figure 3: General steps of the proposed model

The proposed multi-layer model was implemented in Java. MATLAB was used to evaluate the effect of the compression algorithms on audio steganography.

9.1 Implementation of level one

After the desired text file is selected, the main interface displays its size before compression. Figure 4 shows the compression and decompression processes for the selected algorithm.

Figure 4: Compressed and decompressed process.

9.2 Implementation of level two

The text file is embedded in the audio file and can subsequently be extracted from the stego file. Figure 5 shows the main interface for the second level.

Figure 5: Embedded interface

To extract the original text file, select the stego file generated in the previous step and use the Browse button to specify the name and location of the output file. Table 2 lists the sizes of the audio samples.

Figure 6: Extraction interface.

Table 2: Sizes of the audio file samples

Name Size Type
Short music 61.5 KB .wav
Call 182 KB .wav
Long music 1.26 MB .wav
Arab 1.83 MB .wav

Table 3: Compression rates for the Huffman algorithm

Secret Message Size of Secret Message(Arabic text file) Text size AfterCompression Compression (%)
Text1 2.00 KB 1.24 KB 38.0%
Text2 4.00 KB 2.30 KB 42.5%
Text3 6.99 KB 4.01 KB 42.63%
Text4 29.9 KB 15.3 KB 48.83%

Table 4: Compression rates for the LZW algorithm

Secret Message Size of Secret Message(Arabic text file) Text size AfterCompression Compression (%)
Text1 2.00 KB 932 Byte 53.4%
Text2 4.00 KB 1.90 KB 52.5%
Text3 6.99 KB 3.25 KB 53.51%
Text4 29.9 KB 10.3 KB 65.55%

10. Comparative Performance Analysis:

The experiments used cover audio files and Arabic text files (secret messages) of various sizes. The Arabic character strings were encoded, compressed using lossless compression algorithms, and embedded in the cover audio files.

The compression rates were calculated, yielding the following results:

– Huffman compression reduced the file size but was less efficient, especially for larger texts. For example, it reduced a 29.9 KB file to 15.3 KB, a reduction of approximately 48.8%.
– LZW compression was more efficient than Huffman, particularly for larger texts. For example, it reduced a 29.9 KB file to 10.3 KB, a reduction of 65.6%.

– Using Huffman alone is less efficient than using LZW.

– Applying Huffman followed by LZW offered little improvement over the individual algorithms. In some cases, it slightly increased the compressed file size. For example, the hybrid approach reduced a 29.9 KB file to 15.2 KB, close to the result with Huffman alone.

11. Conclusion

1. LZW is the most efficient, achieving the highest compression ratios in all cases.

2. Lossless compression algorithms improve the storage capacity within host files, which helps make the process of steganography happen in less time and faster.

3. The audio signal samples don’t change much when we embed the message into the audio signal.

4. The audio quality after embedding is excellent regardless of the type of compression used.

12. References:

[1] Arwa Aleryani “The Scientific Contribution of Arabic to Information Technology Research compared to other Languages”, Computer and Information Technology, Sana’a, Yemen,2022.

[2] Reema Thabit, Nur Izura Udzir, Sharifah Md Yasin, Aziah Asmawi, Nuur Alifah Roslan, Roshidi Din” A Comparative Analysis of Arabic Text Steganography”, Universiti Putra Malaysia, 2021.

[3] Abdennour Boulesnane, Adel Beggag, Mustapha Zedadik “A New Steganography Technique Based on Dotted Arabic Letters Features”, Constantine, Algeria,2021.

[4] Malak G Alkhudaydi, Adnan A. Gutub” Integrating Light-Weight Cryptography with Diacritics Arabic Text Steganography Improved for Practical Security Applications”, UMM Al-QURA University, Makkah, Saudi Arabia,2020.

[5] Ali A. Hamzah (&) and Hanaa Bayomi “Text Steganography with High Embedding Capacity Using Arabic Calligraphy”, Faculty of Computers and Artificial Intelligence, Cairo University, Giza, Egypt, 2020.

[6] Tariq, Hasan Abu Hilal“Arabic Text Lossless Compression by Character Encoding”, Higher Colleges of Technology, Abu Dhabi, United Arab Emirates,2019.

[7] Hala Mustafa Abdalraheem” The Effect of Compression on Audio Steganography”, Sudan University of Science and Technology, 2017.

[8] Hedaya Ghanim Alshammar1, Dina Hamad Alghurair” Improving Compression Methods for Arabic Text Using Dedicated Character Mapping”, Higher Institute of Telecommunication and Navigation, Kuwait, 2016.

[9] Rubby Garg1, Dr. Vijay Laxmi “Various audio Steganography techniques for audio signals“, Guru Kashi University, India, 2016.

[11] Akeel A. Thulnoon, ” Watermarking in WAV File Based on Phase Coding”, Al-Anbar University College of Computer 2005.

[10] Chintan R. Nagrecha, Prof. Prashant, B. Swadas “Audio
Steganography with Various Compression Algorithms to Improve
Robustness and Capacity”, India, 2014.

[11] Text Book Rob Conery, Scott Hanselman, Phil Haack, Scott Guthrie, “Professional ASP.NET MVC 1.0 (Wrox Programmer to Programmer)”, Publisher Wrox.

[12] Tamanna Garg, Sonia Vatta “Research paper on enhancing data compression rate using steganography”, Bahara, India, 2014.

[13] Ziad M. Alasmer, Bilal M. Zahran, Belal A. Ayyoub, Monther A. Kanan, “A Comparison between English and Arabic Text Compression”, Contemporary Engineering Sciences, Vol. 6, 2013.

[14] Shahad Abdul Rahman” إخفاء النصوص المكبوسة في ملف صوتي”, University of Mosul, 2013.