Skip to Content
ElectronicsElectronics
  • Article
  • Open Access

24 June 2026

23 Pages

Deep Learning Image Steganography Based on Dual-Path Fusion in Frequency and Spatial Domains

,
,
,
,
and
College of Computer, Jilin Normal University, Siping 136000, China
*
Authors to whom correspondence should be addressed.

Abstract

Contemporary deep learning-based image steganography techniques for embedding images within images are hindered by inadequate utilization of frequency-domain features and limited steganographic security, restricting their effectiveness in practical privacy protection contexts. To mitigate these limitations, we introduce a frequency–spatial dual-path fusion-based deep steganography approach, termed FS-Stego. This method incorporates a frequency–spatial dual-path architecture within the generator network. Specifically, the frequency-domain processing module facilitates feature embedding in the complex domain, while the spatial-domain processing module maintains the image’s structural integrity, thereby enabling the co-optimization of multi-dimensional features. Second, an adaptive fusion module is developed to dynamically adjust the weights of the two paths, while residual connections and attention mechanisms are utilized to mitigate feature loss. Third, a multi-objective loss function is implemented to simultaneously optimize the quality of the stego images and the reconstruction accuracy of the secret images. The proposed method utilizes three open-source datasets as cover images and the LFW dataset as the secret images. Experimental results demonstrate that, compared to existing deep steganographic techniques, the stego and recovered images achieve superior peak signal-to-noise ratios (PSNR) and structural similarity (SSIM). Regarding model efficiency, the number of parameters is reduced to below 0.98 million, significantly enhancing practical performance. The proposed method ensures high-quality image recovery while maintaining steganographic security, thereby offering an effective solution for privacy protection.

1. Introduction

The rapid advancement of digital multimedia technologies and the widespread use of network communications have heightened concerns regarding information security [1]. Image steganography, a significant aspect of information hiding, discreetly embeds secret information within cover images to facilitate covert communication and safeguard copyright. Consequently, it plays a vital role in various applications, including military communications, privacy protection, and digital rights management.
Traditional image steganography methods predominantly depend on manually crafted embedding rules, such as least significant bit (LSB) substitution and DCT-domain modulation [2,3]. These techniques involve meticulous adjustments of pixels or transform coefficients in either the spatial or transform domain [4] to achieve a balance between imperceptibility and visual quality. In contrast, deep learning–based steganographic methods utilize end-to-end [5] encoder–decoder architectures [6] or adversarial frameworks, capitalizing on the feature learning capabilities of deep networks [7] to autonomously develop embedding strategies. Recent advancements in memristive chaotic encryption techniques further underscore the necessity of incorporating robust security primitives into multimedia protection systems. For instance, discrete memristive neuron–based chaotic models have been effectively employed in video and image encryption tasks, exemplified by the method proposed in Encrypt a Story [8] and the 3D memristive cubic map introduced in related work [9]. Both approaches exhibit significant randomness, a large key space, and resilience against statistical attacks. Compared to traditional methods, their advantages are primarily manifested in:
(1)
Enhanced adaptability and concealment: they can selectively and adaptively choose embedding regions and strengths based on image content, which renders steganographic traces more aligned with the natural statistical properties of images, thus increasing resistance to steganalysis [10];
(2)
Enhanced embedding capacity and robustness while maintaining visual quality, with adversarial training improving resilience to operations such as compression and noise;
(3)
Integrating the embedding, extraction, and adversarial processes within a fully differentiable framework to facilitate end-to-end global optimization, thereby mitigating the suboptimality associated with disjoint multi-module designs.
However, current deep steganography methods face three primary limitations:
(1)
Inadequate feature utilization. Most approaches depend solely on either spatial-domain or frequency-domain features, which constrains steganographic security. Spatial-domain techniques can better maintain visual quality but are more susceptible to steganalysis based on pixel statistics [11]. Conversely, frequency-domain methods typically excel in resisting statistical detection; however, they often create unnatural boundaries in regions with complex textures. To more effectively leverage multi-domain features [12], it is essential to not only ensure efficient extraction and fusion but also to allocate domain-specific weights judiciously and avoid redundant embedding.
(2)
Limited adaptability. Many current models utilize fixed fusion weights, resulting in inadequate adaptation to varying image characteristics. For low-contrast or highly noisy images, this limitation may compromise robustness, while high-contrast images can produce noticeable artifacts. Improving adaptability frequently requires additional overhead from online learning [13] or meta-learning [14]. The challenge lies in dynamically adjusting the embedding strategy without substantially increasing complexity.
(3)
High model complexity. Many methods involve a substantial number of parameters, which complicates deployment in resource-constrained environments. Consequently, there is an urgent need to compress models while preserving performance.
To tackle these challenges, this paper introduces a lightweight deep steganography model, FS-Stego, which is based on frequency–spatial dual-path fusion. The primary contributions are as follows:
(1)
A frequency–spatial dual-path cooperative architecture is proposed. This model comprises a frequency-domain processing module and a spatial-domain processing module. The frequency-domain module employs the Fast Fourier Transform (FFT) [15] to map carrier and secret features into the frequency domain, conducts weighted fusion of the real and imaginary components, and subsequently transforms them back to the spatial domain using the inverse transform (IFFT). A simplified frequency-domain attention mechanism is introduced to emphasize key frequency components, resulting in the generation of final frequency-enhanced features through residual connections. The spatial-domain module operates directly in the pixel domain [16], applying two convolutional layers to the carrier and secret features. It also incorporates a convolution-based spatial attention map [17,18] to learn local texture complexity and dynamically adjust the spatial embedding strength [19], thereby maintaining texture consistency.
(2)
A content-aware adaptive dynamic [20] fusion strategy is developed. The core adaptive capability is facilitated by the Adaptive Fusion Module [21,22]. This module accepts features from both frequency and spatial paths as input and employs a lightweight network comprising 1 × 1 convolutions, batch normalization, ReLU, and Softmax to generate a spatially adaptive weight map [23] of shape [B, 2, H, W]. This weight map corresponds to the weights of the frequency and spatial domains, respectively [24]. During training, an entropy-based regularization term is incorporated into the weight distribution to promote balanced weight allocation and to prevent convergence to a solution dominated by a single path [25]. This process is fully end-to-end and does not depend on complex online or meta-learning algorithms, thereby enabling fine-grained adaptive fusion tailored to various local image characteristics while maintaining low computational overhead.
(3)
A deployment-oriented lightweight design is implemented, significantly reducing model complexity while preserving performance.
(4)
Experiments are conducted on three public datasets, from which 10,000 images are randomly selected for each dataset to construct the experimental corpus, followed by an 80:20 split into training and validation sets. In the validation sets, FS-Stego significantly outperforms single-domain methods: the average PSNR [26] between the cover images and the stego images reaches 38.52 dB, while the SSIM [26] is 0.9824, indicating that the impact of steganography on visual quality [27] is minimal. For the secret images recovered from the stego images, the average PSNR is 34.17 dB and the SSIM is 0.9568, demonstrating high fidelity in information extraction. The model comprises only 0.968 million parameters, which substantially enhances the practicality and deployability of the method while maintaining high steganographic performance.

2. Materials and Methods

2.1. Overall Architecture

Figure 1 illustrates the overall architecture of the proposed image steganography model. The Cover Encoder and Secret Encoder are responsible for extracting multi-scale features from the cover image and the secret image, respectively [28]. Both encoders employ standard convolution, batch normalization, and activation operations, together with downsampling to reduce spatial resolution. They finally output deep feature representations with 64 channels and a spatial size one quarter of the original images. The extracted features are then fed into a dual-path module composed of a frequency-domain branch and a spatial-domain branch [29]. The frequency branch integrates the cover and secret features in the spectral domain through a frequency attention mechanism and FFT–IFFT operations, thereby enhancing the model’s capability to embed high-frequency and detail-related information. The spatial branch uses a spatial attention mechanism [30] to focus on structure-sensitive local regions to preserve visual consistency. After obtaining the two sets of features, the model introduces an adaptive fusion module to dynamically and pixel-wise integrate the frequency-domain and spatial-domain representations. Specifically, the outputs of the two branches are first concatenated along the channel dimension and then passed through a lightweight 1 × 1 convolutional network. This network adaptively predicts two fusion weights, w f r e q ( i , j ) and w s p a t i a l ( i , j ) , based on local feature distributions, and uses a softmax operation to ensure that they satisfy w f r e q ( i , j ) + w s p a t i a l ( i , j ) = 1 at each spatial location. Since the weight prediction directly relies on contextual information from both branches, the network automatically increases the contribution of the frequency features in texture-rich, high-frequency dominant regions, while assigning higher weights to spatial features in smooth or structure-sensitive regions. This dynamic mechanism avoids simple averaging of the two feature types and instead allocates an optimal local fusion ratio, enabling more fine-grained and adaptive steganography.
Figure 1. Overall framework of the FS-Stego model.
The fused features are then combined with the output of the cover encoder in a residual manner and fed into the stego-image generator to produce a stego residual map. Adding this residual map to the original cover image yields a stego image that is almost visually indistinguishable from the cover. Finally, the Extractor module decodes the stego image to recover the embedded secret image, ensuring high reconstruction accuracy. By incorporating dual-path frequency–spatial feature modeling, an adaptive fusion strategy, and pixel-level dynamic weight assignment, the proposed model effectively leverages the complementary strengths of multiple domains. It achieves excellent embedding imperceptibility and high-quality secret image reconstruction, demonstrating the advanced capabilities of deep learning in image steganography tasks.

2.2. Frequency-Domain Processing Module

Figure 2 presents the network model results of the frequency-domain module. In the frequency-domain path, the model first applies a 2D Fast Fourier Transform (FFT2) to the cover and secret features, mapping them from the spatial domain to the complex-valued frequency spectrum for frequency-level information injection. The resulting spectra are decomposed into real and imaginary parts, and a fixed-ratio linear combination is applied to inject the secret frequency components into the cover spectrum. Specifically, the fusion is performed as follows:
f u s e d _ r e a l = x _ r e a l + 0.3 ∗ sec r e t
F _ f u s e d = w _ f r e q ∗ F _ f r e q + w _ s p a t i a l ∗ F _ s p a t i a l
Figure 2. Architecture of the frequency-domain module.
To determine an appropriate injection strength, we conducted extensive experiments with the fusion coefficient ranging from 0.1 to 0.8. The results show that the system remains stable within the range of 0.2–0.4, and the coefficient 0.3 achieves the best or second-best performance on most datasets. Therefore, we adopt 0.3 as the final value, achieving a balance between embedding effectiveness and generalization stability.
An inverse FFT (IFFT2) is then applied to return the fused spectrum to the spatial domain, producing fused features that contain partial secret information. Next, the original cover feature x and the fused feature from the frequency processing branch are concatenated along the channel dimension and passed through a three-layer convolutional refinement network: the first layer reduces the channel dimension from 2C to C, the second layer refines it further to C/2, and the third layer restores it to C while applying a Sigmoid activation to control feature amplitude. The resulting frequency-enhanced features are then fed into a channel attention module to reweight important channels [31], highlighting effective frequency-domain embedding information. Finally, a residual connection [32] injects the frequency-enhanced features back into the original cover features, and the enhancement is formulated as:
s t e g o _ f e a t u r e s = x + 0.4 ∗ f r e q _ f e a t
where the scalar 0.4 represents the frequency-domain residual ratio, balancing the contribution of frequency-guided steganographic signals against the original cover structure. This design preserves structural integrity while seamlessly integrating frequency-modulated steganographic information, forming the final output of the frequency-domain path.

2.3. Spatial-Domain Processing Module

In the spatial-domain path, the inputs—cover_features and secret_features—are concatenated along the channel dimension to form a combined (B × 2C × H × W). This tensor is processed by two spatial convolution layers in sequence: spatial_conv1 (Conv2d 2C→C, 3 × 3, BN, ReLU) and spatial_conv2 (Conv2d C→C, 3 × 3, BN, ReLU), which jointly fuse low-frequency structural information and local textures to produce spatial_feat. In parallel, an attention_map is generated solely from cover_features using a 3 × 3 convolution followed by a Sigmoid activation. This map estimates the “embedding capacity” of each spatial location, guiding the distribution of secret information toward regions that are safer and less perceptible, without disrupting salient image structures. The spatial_feat is then multiplied elementwise with the attention_map to obtain weighted_feat, which highlights the critical regions while suppressing sensitive ones. Finally, a lightweight fusion head composed of a 1 × 1 convolution, batch normalization, and Sigmoid nonlinearity performs channel recalibration and compression, producing the final output of the spatial-domain path (B × C × H × W). Figure 3 shows the network structure of the spatial-domain module.
Figure 3. Architecture of the spatial-domain module.

2.4. Adaptive Fusion Module

The adaptive fusion module explicitly learns the optimal weights between frequency-domain and spatial-domain features for each input sample, enabling dynamic selection and combination [33] of the two steganographic branches. Concretely, the outputs of the frequency and spatial branches, denoted as F_freq and F_spatial, are first concatenated along the channel dimension and fed into a weight prediction subnetwork composed of two 1 × 1 convolution layers followed by a Softmax operation. This subnetwork yields normalized weights w_freq and w_spatial, which are then used to perform a weighted summation of the two feature streams as follows:
F _ f u s e d = w _ f r e q ∗ F _ f r e q + w _ s p a t i a l ∗ F _ s p a t i a l
The resulting fused representation F_fused integrates complementary cues from both domains and is further lightly recalibrated by a 1 × 1 convolution followed by Batch Normalization and a Sigmoid activation. Formally, this recalibration can be expressed as:
o u t p u t = cov e r _ f e a t u r e s + 0.5 ∗ S i g m o i d ( C o n v 1 × 1 ( F _ f u s e d ) )
Finally, this fused result is added to the original cover features in a residual manner [34], producing a steganographic representation that simultaneously leverages the advantages of both domains while preserving the structural stability of the cover. By adaptively adjusting the contributions of frequency-domain and spatial-domain signals, the module achieves a flexible balance between imperceptibility and secret recoverability across different images and scenarios.

2.5. Entropy-Based Regularization for Adaptive Fusion

To avoid ambiguous fusion decisions and encourage the adaptive fusion module to make clearer choices between the frequency and spatial paths, we introduce an entropy-based regularization term. Let the predicted fusion weights at spatial location (i,j) be:
w k ( i , j ) ∈ [ 0 , 1 ] , ∑ k = 1 2 w k ( i , j ) = 1 , k ∈ 1 , 2
where w 1 and w 2 correspond to the weights assigned to the frequency-domain and spatial-domain branches, respectively. Since the weights come from a softmax function, they form a valid categorical distribution at each pixel.
To quantify the uncertainty of the fusion decision, we compute the Shannon entropy at each spatial position:
H ( i , j ) = − ∑ k = 1 2 w k ( i , j ) log ( w k ( i , j ) )
The global average entropy over a batch is defined as:
H ¯ = 1 B H W ∑ b = 1 B ∑ i = 1 H ∑ j = 1 W − ∑ k = 1 2 w k ( b ) ( i , j ) log w k ( b ) ( i , j )
The entropy regularization term is incorporated into the total loss:
L e n t r o p y = − λ H H ¯

3. Loss Function and Optimization Strategy

3.1. Multi-Objective Loss Function Design

The FS-Stego model adopts a specially designed loss function, FS-StegoLoss, which jointly accounts for stego image quality, secret image reconstruction accuracy, structural consistency, and fusion weight regularization, thereby enabling comprehensive optimization of the dual-path frequency–spatial network.

3.1.1. Stego Image Quality Loss

To ensure that the generated stego image S is visually indistinguishable from the original cover image C, a composite loss based on mean squared error (MSE) and L1 loss is employed. The corresponding formulation is:
L s t e g o = 1 N ∑ i = 1 N C i ′ − C i 2 + 0.1 × 1 N ∑ i = 1 N C i ′ − C i

3.1.2. Secret Image Reconstruction Loss

To ensure that the secret image extracted from the stego image is reconstructed as faithfully as possible to the original secret image while preserving information integrity, we employ a combination of MSE and L1 losses. However, a larger weighting coefficient is assigned to this reconstruction term to emphasize the critical importance of secret recovery. The formulation is as follows:
L sec r e t = 1 N ∑ i = 1 N S i ′ − S i 2 + 0.1 × 1 N ∑ i = 1 N S i ′ − S i

3.1.3. Perceptual Loss

To enforce structural consistency and preserve edge details between the stego image and the cover image C, we compute the gradients along the horizontal and vertical axes. This enhances the visual fidelity of the hidden content. The calculation is defined as follows:
Horizontal Gradient:
∇ x I i , j = I i , j − I i , j + 1
Vertical Gradient:
∇ y I i , j = I i , j − I i + 1 , j
The Mean Absolute Error (MAE) is computed between the gradients of the stego image and the cover image:
L g r a d = ∑ i , j ∇ x C ′ i , j − ∇ x C i , j + ∇ y C ′ i , j − ∇ y C i , j

3.1.4. Regularization of Fusion Weights

To encourage a uniform distribution and prevent the fusion weights wfrom over-emphasizing a specific path, we regularize the frequency-domain and spatial-domain fusion weights to achieve a more balanced feature integration. This is implemented by maximizing the entropy of the weights. Specifically, the entropy is defined as:
H ( w x , y ) = − ∑ k = 1 2 w k ( x , y ) log ( w k ( x , y ) + ∈ )
where ϵ = 1 × 10−8 is a numerical stability term. The loss is calculated by taking the mean across spatial locations, multiplying by a coefficient of 0.01, and applying a negative sign to maximize the entropy.
L f u s i o n = − 0.01 × 1 W × H ∑ x = 1 W ∑ y = 1 H H ( w x , y )

3.1.5. Total Loss Function

Combining the aforementioned components with assigned weights, the total loss function is defined as:
L t o t a l = 0.5 × L s t e g o + 3.0 × L sec r e t + 0.3 × L g r a d + L f u s i o n

3.2. AdamW Optimizer

In deep neural network training, the choice of optimization algorithm is critical to convergence speed, final performance, and generalization capability. The FS-Stego model employs the AdamWoptimizer, an improved variant of the classical Adam method. By correcting the implementation of weight decay, AdamW preserves the advantages of Adam’s adaptive learning rates while providing more effective regularization, thereby enhancing model generalization. Adam itself combines the ideas of momentum and RMSProp by maintaining estimates of the first-order moment (mean) and second-order moment of the gradients, and adaptively adjusting the learning rate for each parameter. Its parameter update rule can be briefly written as:
m t = β 1 m t − 1 + 1 − β 1 g t   v t = β 2 v t − 1 + 1 − β 2 g t 2   m ^ t = m t 1 − β 1 t   v ^ t = v t 1 − β 2 t   θ t = θ t − 1 − η m ^ t v ^ t + ϵ
where m t and v t   are the first- and second-moment estimates, m ^ t   and v ^ t are their bias-corrected versions, η is the learning rate, g t is the gradient at time step t, and θ t   denotes the model parameters. In the original Adam algorithm, L2 regularization is typically implemented by adding a penalty term λ 2 ∥ θ ∥ 2 to the loss function. This causes the weight decay to affect the gradients g t , and consequently, the moment estimates m t   and v t . Such a coupled form of weight decay may lead to suboptimal regularization effects and can even counteract the intended behavior due to the interaction with adaptive learning rate scaling.
AdamW introduces a key improvement by decoupling weight decay from the gradient-based update (decoupled weight decay). Specifically, weight decay is no longer applied via the loss function and the gradients, but directly imposed on the parameters during the update step. The update rule becomes:
θ t = 1 − η λ θ t − 1 − η m ^ t v ^ t + ϵ
where the weight decay term λ θ t − 1 acts directly on the parameters and is handled separately from the gradient-based term m ^ t V ^ t + ϵ . This decoupling makes the effect of weight decay more direct and stable, and prevents it from being distorted by the adaptive learning rate mechanism.

4. Experiments

4.1. Experimental Setup and Datasets

4.1.1. Dataset Description

The 256_ObjectCategories, Mini-ImageNet, and CelebA datasets were selected as the cover image datasets, and the LFW dataset was used as the secret image dataset. The 256_ObjectCategories dataset is primarily used for image classification, object recognition, image segmentation, and other computer-vision tasks. This dataset covers a wide range of object categories and provides diverse cover images for steganalysis. The Mini-ImageNet dataset is a benchmark image dataset that was specifically designed for few-shot learning research. It is a carefully curated subset of the large-scale ImageNet dataset, consisting of 100 categories of images. The images in this dataset are of uniform size, have high visual clarity, and span multiple semantic categories, such as animals, plants, and everyday objects. The CelebA (CelebFaces Attributes) dataset is a large-scale facial attribute dataset containing the faces of celebrities with diverse identities. The LFW (Labeled Faces in the Wild) dataset is a widely used benchmark dataset for face recognition, comprising face images collected from the internet. It exhibits substantial variability in real-world scenarios, including differences in pose, expression, illumination conditions, and background environments. The aforementioned raw datasets are extremely large in scale, and processing all the images incurs substantial computational time and storage overhead. To ensure experimental feasibility while reducing the computational cost, this study randomly sampled 10,000 images from each of the four datasets for experimentation.

4.1.2. Experimental Settings

In this study, the AdamW optimizer is employed to optimize the parameters of the proposed frequency–spatial dual-path steganography network (FS-Stego), with an initial learning rate of 0.01 and a weight decay of 1 × 10−5. A cosine annealing scheduler is utilized to dynamically adjust the learning rate, with the minimum learning rate set to 1 × 10−6. To ensure stable training, gradient clipping is applied via clip_grad_norm_, constraining the maximum gradient norm to 1.0. The secret image and the cover image have the same dimensions;both use RGB images with spatial dimensions of 128 × 128 pixels and three color channels.The approximate steganographic payload can be regarded as embedding a 128 × 128 RGB secret image into a cover image of identical dimensions, corresponding to a data volume ratio of nearly 1:1 at the image level. A total of 10,000 images are sampled from the dataset and randomly divided into training and validation sets at a ratio of 8:2. Furthermore, an independent test set comprising 1000 images is randomly selected from the remaining data to ensure no overlap with the training or validation sets. The model is trained with a batch size of 32 for 30 epochs.

4.2. Evaluation Metrics

In the domain of image processing and steganalysis, objective evaluation metrics are essential for quantifying the performance of steganographic algorithms and for assessing the effects of information hiding on cover images. These metrics, grounded in mathematical models, offer quantitative evaluations of both visual quality and structural fidelity in stego images. Notably, the Structural Similarity Index Measure (SSIM) and Peak Signal-to-Noise Ratio (PSNR) are two widely utilized core metrics that assess image quality from the viewpoints of structural information and noise-induced error, respectively. PSNR and SSIM are solely employed to assess the visual quality of stego-images and extracted images, thereby demonstrating their similarity to the original image.
(1)
Structural Similarity Index Measure (SSIM): SSIM is a metric for evaluating the similarity between two images, based on comparisons of luminance, contrast, and structural information between the two samples. The SSIM between two images x and y can be computed using the following formula:
S S I M x , y = 2 μ x μ y + c 1 σ x y + c 2 μ x 2 + μ y 2 + c 1 σ x 2 + σ y 2 + c 2
(2)
Peak Signal-to-Noise Ratio (PSNR): PSNR is one of the most widely used objective image quality assessment metrics based on the Mean Squared Error (MSE). It measures the discrepancy between the stego image and the cover image. Given a cover image I and a stego image K of size m × n , the MSE is first computed as:
P S N R = 10 · log 10 M A X I 2 M S E

4.3. Quality of Stego Images

We conducted experiments to evaluate the steganographic performance of our method on the 256_ObjectCategories, CelebA, and Mini-ImageNet datasets. The visual quality of the generated steganographic images was assessed using the SSIM and PSNR metrics. Experimental results demonstrate that the proposed method consistently achieves high SSIM and PSNR values across all datasets, indicating robust performance in maintaining visual quality. Visual inspection further confirms that even when residual images are magnified, no discernible outlines of the hidden information can be observed, thereby validating the strong visual imperceptibility of the steganographic images. In addition, the recovered secret images are able to reconstruct the original information with high fidelity. To further assess the effectiveness of our method, we compared it with classical steganographic techniques and deep learning-based approaches. WOW and RISS fall under the traditional “fixed payload” paradigm, whose core objective is to minimize spatial-domain distortion at a given embedding rate. Therefore, in this experiment, WOW and RISS are used only as references for the level of visual distortion, not as strict baselines for “equal effective payload.” Table 1 below presents the SSIM and PSNR values for the five methods across the three datasets.
Table 1. Comparative results of different methods (SteganoGAN, WOW, RISS, UDH).
Figure 4, Figure 5 and Figure 6 respectively present the detailed experimental results on the three datasets, including the secret images, cover images, generated stego images, extracted decrypted images, and the corresponding amplified residual maps.
Figure 4. Results on the 256_ObjectCategories dataset.
Figure 5. Results on the CelebA dataset.
Figure 6. Results on the Mini-ImageNet dataset.

4.4. Ablation Study and Module Performance Analysis

4.4.1. Analysis of Evaluation Metrics

To validate the effectiveness of the proposed frequency–spatial dual-path steganography model (FS-Stego), we conduct systematic ablation studies with six configurations: the full FS-Stego, No_Frequency, No_Spatial, No_Adaptive Fusion, No_frequency attention and No_spatial attention. As shown in Table 2, the full FS-Stego achieves the highest PSNR and SSIM values across the 256_ObjectCategories, CelebA, and Mini-ImageNet datasets, demonstrating consistent advantages in visual fidelity and structural consistency. Removing the frequency branch (No_Frequency) leads to a significant drop in PSNR, indicating that relying solely on spatial features is insufficient for reconstructing fine structural details. Similarly, discarding the spatial branch (No_Spatial) also degrades performance, highlighting the model’s dependence on local texture and spatial information. This trend reveals the complementary nature of the two feature domains: while the spatial domain preserves local structures, the frequency domain enhances global consistency. Optimal fusion performance is achieved only when both are integrated. Furthermore, theablation of the adaptive fusion module underscores its critical role. In this configuration, although both frequency and spatial features are extracted, they are combined via fixed or simplistic weighting, preventing dynamic adjustment of feature contributions. Consequently, the model exhibits decreased PSNR and SSIM across all datasets, with performance falling between the No_Frequency and No_Spatial variants. This demonstrates that the adaptive fusion module effectively coordinates frequency and spatial information through learnable dynamic weights, significantly enhancing both stego image quality and secret recovery capability. In summary, the synergy among frequency features, spatial features, and adaptive fusion is the key driver of the superior performance of the FS-Stego model.
Table 2. Results of the ablation study.

4.4.2. Analysis of the Impact of Frequency-Domain Features on Model Performance

The first row of Figure 7 displays the cover images, secret images, and the phase spectra of the output features from the frequency-domain module. A comparison of these phase features reveals that, during frequency-domain embedding, the model employs an additive fusion strategy for the real and imaginary components to induce phase shifts. This approach facilitates the reconstruction of the hidden signal during the extraction stage by utilizing phase differences.
Figure 7. Phase comparison.
The distribution of channel-wise attention weights illustrates the ability of the frequency-domain attention mechanism to process feature channels differentially. As demonstrated in Figure 8 and Figure 9, the colors in Figure 8 distinguish the levels of channel attention weights, ranging from low to high, as indicated by the transition from dark blue to green and then to yellow. In Figure 9, the colors vary from light to dark to represent attention weights from high to low, providing an intuitive visualization of the relative importance of the different channels, the experimental results reveal a pronounced long-tail distribution of attention weights, with the top 10 high-attention channels (e.g., channel 57: 0.9741, channel 46: 0.9662) comprising 68.3% of the total attention weight. This finding indicates that the network effectively identifies and prioritizes critical frequency-domain feature channels, thereby enhancing the efficiency of feature utilization. This mechanism of selective focus establishes a foundation for validating the effectiveness of subsequent frequency-domain feature fusion.
Figure 8. Channel attention weights.
Figure 9. Top-10 attention weights.
The radial frequency distribution plot in Figure 10 effectively demonstrates the significant enhancements afforded by the frequency-domain attention mechanism. The blue curve displays reduced energy in the high-frequency region and elevated peaks in the low-frequency region, which is typical of natural images and suggests that the original cover images predominantly consist of smooth low-frequency components. In contrast, the orange curve reveals a notable increase in energy within the mid- and high-frequency regions, particularly at the higher frequencies. This observation indicates that the model incorporates additional high-frequency feature components during the steganographic fusion process. Such alterations suggest that the network amplifies high-frequency details during frequency-domain embedding, thereby broadening the energy distribution’s bandwidth to enhance the embeddability and stability of the secret information. By employing frequency-domain convolutions and attention mechanisms, the network executes nuanced adjustments in the high-frequency regions, ensuring that the image retains a natural appearance in the spatial domain while the spectrum reflects a richer level of detail. This design guarantees the preservation of perceived quality in the spatial domain, while the frequency domain offers increased information-carrying capacity, thus achieving a balance between imperceptibility and robustness.
Figure 10. Radial frequency distribution.
Figure 11 and Figure 12 present an independent analysis of the high-weight channels, which predominantly convey texture details and edge information within the images. The attention mechanism allocates greater weights to these channels, indicating that the network inherently formulates a feature selection strategy aligned with principles of image processing. This strategy prioritizes high-frequency components that are essential for both the human visual system and steganalysis. Consequently, it not only improves the steganographic capacity of the images but also effectively preserves their visual quality.
Figure 11. Highly attended Channel 57.
Figure 12. Highly attended Channel 46.

4.4.3. Analysis of the Impact of Spatial Features on Model Performance

The spatial module utilizes convolutions and attention mechanisms to produce perceptually weighted feature response maps, which identify optimal regions for information embedding within the image. The adaptive fusion module subsequently learns fusion weights based on the complementary relationship between frequency-domain and spatial-domain features, thereby optimizing information distribution while maintaining visual consistency. As illustrated in Figure 13, the left image represents the original cover image, featuring a jellyfish against a dark background; the middle image displays the spatial attention map, which emphasizes regions of strong response on the jellyfish’s main body, particularly its bell and tentacles. These high-intensity areas are marked in red and yellow, indicating that the model preferentially embeds information in regions characterized by complex textures and pronounced perceptual masking. The right image presents the attention heatmap overlaid on the original image, revealing that the steganographic information is primarily concentrated in high-frequency details and structural edges, while the background region exhibits low responses, effectively minimizing visual distortion. This outcome demonstrates that the model adeptly balances the imperceptibility and robustness of embedding locations, thereby facilitating efficient and stable image steganography while preserving high-fidelity visual quality.
Figure 13. Results of the spatial-domain analysis.
Figure 14 below displays cover images characterized by three distinct levels of texture complexity (low, medium, high), along with their associated spatial- and frequency-domain residual heatmap features. Notably, the spatial module demonstrates superior performance in smooth regions. In the low-texture jellyfish image, the spatial residual heatmap reveals pronounced and regular responses, suggesting that the spatial module is adept at detecting subtle variations in pixel intensity and effectively characterizing local perturbations introduced by embedding. In the medium-texture human portrait, the residual signals remain concentrated in smooth areas, such as the skin and background. Conversely, in the highly textured fireworks scene, this structured response is increasingly obscured by texture noise, leading to a more dispersed energy distribution. This observation indicates that the spatial module excels at extracting embedding traces in smooth, low-frequency regions of the image and is capable of capturing fine-grained pixel-level differences.
Figure 14. Residual heatmap comparison between spatial and frequency domains.

4.5. Analysis of Anti-Detection Performance

4.5.1. ROC-Based Evaluation of Stego Detectability

This study utilizes three detection models—ResNet-18, ZhuNet, and SRNet—to assess the anti-steganalysis capability of the proposed method. All detectors are trained on the same dataset within a fully supervised binary classification framework to differentiate between cover and stego images. The training procedure employs the BCEWithLogitsLoss function and the Adam optimizer, without incorporating data augmentation or adversarial training strategies; network parameters are updated exclusively through standard backpropagation. A total of 1000 images are randomly sampled from the 256_ObjectCategories dataset as original images, while another 1000 images are randomly selected from the LFW dataset as ciphertext images. These images are paired to create 1000 mask–ciphertext combinations. All samples are randomly shuffled prior to training and divided into training and testing sets in an 80:20 ratio. Stego images produced by five distinct network models serve as detection targets. The ROC curves for all methods are presented in Figure 15, Figure 16 and Figure 17.
Figure 15. ROC curve of the ResNet18 analysis results.
Figure 16. ROC curve of the ZhuNet analysis results.
Figure 17. ROC curve of the SRNet analysis results.
The random-guess curve represents the performance level at which the probability of correctly identifying stego images from an evenly mixed set of mask and stego images is 50% (i.e., random selection). Therefore, the closer an ROC curve is to the random-guess line, the higher the security level. As illustrated, the ROC curves of the proposed method are consistently closer to the random-guess line compared with the four baseline methods across all three detectors. These results demonstrate that none of the detectors can reliably determine whether an image produced by the proposed algorithm contains hidden information, thereby indicating that the proposed model exhibits higher security than the comparison methods under the three evaluated detectors.

4.5.2. Comparison of Stego Detection Metrics

We also recorded the detection AUC, detection accuracy, false positive rate (FPR), false negative rate (FNR), and overall error probability (PE) when the model proposed in this paper and the four comparison models were evaluated using three deep steganalysis detectors: ResNet-18, ZhuNet, and SRNet. All metrics are reported with two decimal places. Table 3, Table 4 and Table 5 below present the corresponding results for ResNet-18, ZhuNet, and SRNet, respectively.
Table 3. ResNet-18 results.
Table 4. ZhuNet results.
Table 5. SRNet results.

4.6. Robustness Evaluation

We further evaluated the robustness of the proposed model to common image distortions, including salt-and-pepper noise (intensity = 0.03), color adjustment (luminance = 1.1, saturation = 1.1, hue = 0.03), and Gaussian noise (standard deviation = 0.03). Figure 18, Figure 19 and Figure 20 respectively, present the experimental results under these three attacks. Overall, although these distortions will affect the visual quality of steganographic images to varying degrees, this model can still continuously achieve effective ciphertext reconstruction when facing such unstructured interferences. In all three interference scenarios, the recovered ciphertext images maintained the overall structure and color distribution of the original ciphertext images, and no obvious decoding failure or structural damage occurred. These results demonstrate promising robustness under the evaluated distortions.
Figure 18. Salt-and-pepper noise attack result.
Figure 19. Color adjustment attack result.
Figure 20. Gaussian noise attack result.

5. Conclusions

This study presents a deep steganographic method, FS-Stego, which is founded on frequency–spatial dual-path fusion. By incorporating complex-domain frequency processing alongside spatial-domain structure-preserving mechanisms, this method facilitates the collaborative optimization of multi-dimensional features. The adaptive fusion module dynamically modifies the feature weights between the two paths, effectively minimizing information loss. Additionally, the multi-objective loss function further balances the quality of stego images with the accuracy of secret image recovery. While the proposed method exhibits promising performance, several avenues for further exploration remain. First, the fusion strategy between frequency and spatial features could be enhanced, potentially through the introduction of finer-grained cross-domain interaction mechanisms to improve robustness in complex scenarios. Second, the current model is primarily tailored for natural images, and its applicability to multimodal data, such as video and medical images, has yet to be assessed. Third, regarding steganographic security, the incorporation of adversarial training or steganalysis models could enhance the method’s resilience against active attacks and detection. Furthermore, the method demonstrates competitive stego quality and decryption performance while maintaining a relatively low parameter count, which suggests commendable model efficiency and application potential. Overall, FS-Stego presents an effective strategy for enhancing the quality and security of deep learning–based image steganography, establishing a robust foundation for research and applications in privacy protection. By integrating more diverse modalities, stronger adversarial defenses, and broader application scenarios, the proposed method has the potential to further advance the practical deployment of deep steganographic techniques.

Author Contributions

Conceptualization, X.M.; methodology, X.M.; software, Y.L.; validation, X.M. and W.L.; formal analysis, X.M.; investigation, Y.G.; resources, Y.D.; data curation, X.M.; writing— original draft preparation, X.M.; writing—review and editing, H.S.; visualization, X.M. and Y.L.; supervision, H.S.; project administration, Y.D.; funding acquisition, Y.D. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Science and Technology Development Project of the Department of Education of Jilin Province (JJKH20250945KJ). Jilin Province Science and Technology Development Plan Project—Youth Growth Science and Technology Plan Project (20220508038RC).

Data Availability Statement

The original data presented in the study are openly available in the 256_ObjectCategories dataset at http://www.vision.caltech.edu/Image_Datasets/Caltech256/ (accessed on 16 October 2025); in the Mini-ImageNet dataset at https://www.kaggle.com/datasets/whitemoon/miniimagenet (accessed on 16 October 2025); in the CelebA dataset at http://mmlab.ie.cuhk.edu.hk/projects/CelebA.html (accessed on 16 October 2025); and in the Labeled Faces in the Wild (LFW) dataset at http://vis-www.cs.umass.edu/lfw/ or https://doi.org/10.1109/TPAMI.2008.79 (accessed on 16 October 2025).

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Provos, N.; Honeyman, P. Hide and seek: An introduction to steganography. IEEE Secur. Priv. 2003, 1, 32–44. [Google Scholar] [CrossRef] [Scilit]
  2. Pevný, T.; Fridrich, J. Merging Markov and DCT features for multi-class JPEG steganalysis. IEEE Trans. Inf. Forensics Secur. (TIFS) 2007, 2, 3–14. [Google Scholar] [CrossRef] [Scilit]
  3. Deeksha, R.B.; Adiga, S.A.; Nisa; Dhanush, K.R.; Kumar, P.R. MediCrypt: NROI-based LSB and DCT Embedding for Medical Image Steganography. In Proceedings of the 2025 International Conference on Knowledge Engineering and Communication Systems (ICKECS), Chickballapur, India, 28–29 April 2025; pp. 1–6. [Google Scholar]
  4. Filler, T.; Judas, J.; Fridrich, J. Minimizing additive distortion in steganography using syndrome-trellis codes. IEEE Trans. Inf. Forensics Secur. (TIFS) 2011, 6, 920–935. [Google Scholar] [CrossRef] [Scilit]
  5. Mehta, K.; Yadav, A.; Arora, D. Meda Encryption for Content Moderation Over E2EE Platforms. In Proceedings of the 2025 IEEE International Conference on Advances in Computing Research On Science Engineering and Technology (ACROSET), Indore, India, 27–28 September 2025; pp. 1–6. [Google Scholar]
  6. Baluja, S. Hiding images in plain sight: Deep steganography. In Proceedings of the Advances in Neural Information Processing Systems (NeurIPS), Long Beach, CA, USA, 4–9 December 2017; Volume 30. [Google Scholar]
  7. Bengio, Y.; Courville, A.; Vincent, P. Representation learning: A review and new perspectives. IEEE Trans. Pattern Anal. Mach. Intell. (TPAMI) 2013, 35, 1798–1828. [Google Scholar] [CrossRef] [Scilit]
  8. Gao, S.; Zhang, Z.; Li, Q.; Ding, S.; Iu, H.H.-C.; Cao, Y.; Xu, X.; Wang, C.; Mou, J. Encrypt a Story: A Video Segment Encryption Method Based on the Discrete Sinusoidal Memristive Rulkov Neuron. IEEE Trans. Dependable Secur. Comput. 2025, 22, 8011–8024. [Google Scholar] [CrossRef] [Scilit]
  9. Gao, S.; Iu, H.H.-C.; Erkan, U.; Simsek, C.; Toktas, A.; Cao, Y.; Wu, R.; Mou, J.; Li, Q.; Wang, C. A 3D Memristive Cubic Map With Dual Discrete Memristors: Design, Implementation, and Application in Image Encryption. IEEE Trans. Circuits Syst. Video Technol. 2025, 35, 7706–7718. [Google Scholar] [CrossRef] [Scilit]
  10. Hayes, J.; Danezis, G. Generating steganographic images via adversarial training. In Proceedings of the Advances in Neural Information Processing Systems (NeurIPS), Long Beach, CA, USA, 4–9 December 2017; Volume 30. [Google Scholar]
  11. Fridrich, J.; Kodovsky, J. Rich models for steganalysis of digital images. IEEE Trans. Inf. Forensics Secur. (TIFS) 2012, 7, 868–882. [Google Scholar] [CrossRef] [Scilit]
  12. Li, H.; Pan, S.J.; Wang, S.; Kot, A.C. Domain generalization with adversarial feature learning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Salt Lake City, UT, USA, 18–22 June 2018; pp. 5400–5409. [Google Scholar]
  13. Zinkevich, M. Online convex programming and generalized infinitesimal gradient ascent. In Proceedings of the International Conference on Machine Learning (ICML), Washington, DC, USA, 21–24 August 2003; pp. 928–936. [Google Scholar]
  14. Finn, C.; Abbeel, P.; Levine, S. Model-agnostic meta-learning for fast adaptation of deep networks. In Proceedings of the International Conference on Machine Learning (ICML), Sydney, Australia, 6–11 August 2017; pp. 1126–1135. [Google Scholar]
  15. Chi, L.; Jiang, B.; Mu, Y. Fast Fourier convolution. Adv. Neural Inf. Process. Syst. (NeurIPS) 2020, 33, 4479–4488. [Google Scholar]
  16. Lu, S.; Wang, R.; Zhong, T.; Rosin, P.L. Large-capacity image steganography based on invertible neural networks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Virtual, 19–25 June 2021; pp. 10816–10825. [Google Scholar]
  17. Woo, S.; Park, J.; Lee, J.Y.; Kweon, I.S. CBAM: Convolutional Block Attention Module. In Computer Vision–ECCV 2018; Ferrari, V., Hebert, M., Sminchisescu, C., Weiss, Y., Eds.; Lecture Notes in Computer Science; Springer: Cham, Switzerland, 2018; Volume 11211. [Google Scholar]
  18. Li, F.; Sheng, Y.; Zhang, X.; Qin, C. iSCMIS:Spatial-Channel Attention Based Deep Invertible Network for Multi-Image Steganography. IEEE Trans. Multimed. 2024, 26, 3137–3152. [Google Scholar]
  19. Li, B.; Ming, J.; Huang, J.; Li, X. A new cost function for spatial image steganography. IEEE Trans. Image Process. (TIP) 2011, 23, 1649–1663. [Google Scholar]
  20. Li, X.; Wang, W.; Hu, X.; Yang, J. Selective kernel networks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Long Beach, CA, USA, 16–20 June 2019; pp. 510–519. [Google Scholar]
  21. Yu, S.; Wei, Y. Multi-focus image fusion method based on deep residual shrinkage network. In Proceedings of the 2024 7th International Conference on Computer Information Science and Application Technology (CISAT), Hangzhou, China, 12–14 July 2024; pp. 392–395. [Google Scholar]
  22. Zhao, H.; Xu, Y. Research on Re-recognition Method of Multi-branch Fusion Attention Mechanism for Occluded Pedestrian. In Proceedings of the 2023 8th International Conference on Cloud Computing and Big Data Analytics (ICCCBDA), Chengdu, China, 26–28 April 2023; pp. 477–480. [Google Scholar]
  23. Kurth, P.; Leuschner, M.; Stamminger, M.; Bauer, F. Content-Aware Brightness Solving and Error Mitigation in Large-Scale Multi-Projection Mapping. IEEE Trans. Vis. Comput. Graph. 2022, 28, 3607–3617. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  24. Li, F.; Sheng, Y.; Wu, K.; Qin, C.; Zhang, X. LiDiNet: A Lightweight Deep Invertible Network for Image-in-Image Steganography. IEEE Trans. Inf. Forensics Secur. 2024, 19, 8817–8831. [Google Scholar] [CrossRef] [Scilit]
  25. Ding, X.; Zhang, X.; Ma, N.; Han, J.; Ding, G.; Sun, J. RepVGG: Making VGG-style ConvNets great again. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Virtual, 19–25 June 2021; pp. 13733–13742. [Google Scholar]
  26. Wang, Z.; Bovik, A.C.; Sheikh, H.R.; Simoncelli, E.P. Image quality assessment: From error visibility to structural similarity. IEEE Trans. Image Process. (TIP) 2004, 13, 600–612. [Google Scholar] [CrossRef] [Scilit]
  27. Zhang, R.; Isola, P.; Efros, A.A.; Shechtman, E.; Wang, O. The unreasonable effectiveness of deep features as a perceptual metric. In Proceedings of the IEEE conference on Computer Vision and Pattern Recognition (CVPR), Salt Lake City, UT, USA, 18–22 June 2018; pp. 586–595. [Google Scholar]
  28. Lin, T.-Y.; Dollár, P.; Girshick, R.; He, K.; Hariharan, B.; Belongie, S. Feature Pyramid Networks for Object Detection. In Proceedings of the 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Honolulu, HI, USA, 21–26 July 2017; pp. 2117–2125. [Google Scholar]
  29. Kuznetsov, A.; Luhanko, N.; Frontoni, E.; Romeo, L.; Rosati, R. Deep Learning Based Image Steganalysis. In Proceedings of the 2022 IEEE 9th International Conference on Problems of Infocommunications, Science and Technology (PIC S&T), Kharkiv, Ukraine, 10–12 October 2022; pp. 364–368. [Google Scholar]
  30. Fu, J.; Liu, J.; Tian, H.; Li, Y.; Bao, Y.; Fang, Z.; Lu, H. Dual Attention Network for Scene Segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Long Beach, CA, USA, 16–20 June 2019; pp. 3146–3154. [Google Scholar]
  31. Hu, J.; Shen, L.; Albanie, S.; Sun, G.; Wu, E. Squeeze-and-Excitation Networks. IEEE Trans. Pattern Anal. Mach. Intell. 2020, 42, 2011–2023. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  32. He, K.; Zhang, X.; Ren, S.; Sun, J. Deep Residual Learning for Image Recognition. In Proceedings of the 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA, 27–30 June 2016; pp. 770–778. [Google Scholar]
  33. Wang, X.; Han, X.; Huang, W.; Dong, D.; Scott, M.R. Multi-Similarity Loss With General Pair Weighting for Deep Metric Learning. In Proceedings of the 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Long Beach, CA, USA, 16–20 June 2019; pp. 5017–5025. [Google Scholar]
  34. Lu, H.; Zou, Y.; Zhang, Z.; Wang, Y. Adaptive Bidirectional Asymptotic Feature Pyramid Network for Object Detection. In Proceedings of the 2024 4th International Conference on Robotics, Automation and Intelligent Control (ICRAIC), Changsha, China, 6–9 December 2024; pp. 562–567. [Google Scholar]
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.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.