Abstract
Text steganography aims to hide secret messages within natural language carriers to avoid detection. Traditional methods often suffer from low capacity or produce linguistically unnatural text. This paper proposes a generative method combining a second-order Markov chain model with dynamic Huffman coding. By mapping secret bits to word choices based on their conditional probabilities, the system generates fluent text that mimics the statistical properties of natural language. Experimental results on diverse datasets show that the proposed method achieves superior imperceptibility and significantly higher embedding rates than previous state-of-the-art techniques.
Introduction
Steganography is the practice of concealing a message within another non-secret medium. While images and audio are common carriers, text remains the most ubiquitous form of human communication. However, text steganography is challenging due to the lack of redundancy in language; even minor changes can disrupt grammar or semantics, making the hidden message obvious to human readers or statistical analysis (steganalysis).
Existing "format-based" methods are fragile, while "content-based" methods often produce awkward phrasing. The challenge is to generate text that is both high-capacity and statistically indistinguishable from human writing.
Methodology
The proposed system utilizes a two-stage generative process to ensure both data embedding and linguistic fluency.
Markov Chain Language Modeling
The system first learns the statistical patterns of a target text style (e.g., news articles or social media posts) using a second-order Markov model. This model calculates the probability of a word appearing given the two preceding words, capturing local linguistic structures.
Dynamic Huffman Coding
To embed secret data, the system identifies a Candidate Pool (CP) of the $m$ most probable next words. Instead of a simple fixed-length mapping, it constructs a dynamic Huffman tree based on the conditional probabilities of these candidates.
As shown in Figure 1, secret bits determine the path taken through the Huffman tree. A '0' corresponds to a left branch and a '1' to a right branch. Because Huffman coding assigns shorter paths to more frequent words, the resulting word distribution in the steganographic text closely matches the natural language model, maintaining high imperceptibility.
Experimental Evaluation
The model was evaluated on three datasets: Twitter (Sentiment140), IMDB movie reviews, and a News dataset comprising articles from major US publications.
Performance and Naturalness
A key metric for naturalness is perplexity, which measures how "surprising" a text is to a language model. Lower perplexity indicates more natural text.
As illustrated in Figure 5, the proposed method ("Ours") maintains significantly lower perplexity across all datasets compared to baseline methods. For instance, on the IMDB dataset at an embedding rate of 1 bit per word, the model achieved a perplexity of ~15.47, whereas earlier methods exceeded 400.
Capacity and Security
The system reached an embedding rate of 7.34% (at 3 bits per word), roughly seven times higher than traditional non-generative methods. Furthermore, when tested against state-of-the-art steganalysis tools, the detection accuracy was approximately 0.5, indicating that the generated text is statistically indistinguishable from normal text.
Conclusion
By combining Markov models with probability-aware Huffman coding, this research provides a robust framework for high-capacity text steganography. While the current model relies on local context, future work could integrate advanced architectures like Transformers to improve global coherence and further increase embedding efficiency without sacrificing naturalness.
Summary updated