Hybrid ConvNeXt-Swin Model for AI Image Detection
The rapid advancement of generative artificial intelligence has made it possible to produce highly realistic images that can be difficult to distinguish from authentic ones. This study presents a deep learning framework for detecting AI-generated images by combining complementary visual representations. To improve the robustness of the model, data augmentation is applied during training, while a four-channel input representation is introduced by combining the original RGB channels with an additional grayscale channel. This allows the model to capture both color information and luminance-based structural patterns that may help reveal subtle image artifacts. The proposed framework employs two pretrained backbones, ConvNeXt-Tiny and Swin-Tiny, in parallel to learn complementary features, with ConvNeXt-Tiny focusing on local spatial patterns and Swin-Tiny capturing broader contextual relationships. An attention-based feature fusion module is then used to adaptively combine the features learned by the two networks before classification. The fused representation is finally passed to a fully connected classifier to distinguish between AI-generated and human-created images. Experimental results show that the proposed approach can identify subtle visual artifacts and structural inconsistencies while achieving better generalization than the individual backbone models. Overall, the findings demonstrate the potential of combining multi-channel image representations with complementary CNN and Transformer-based features for more reliable AI-generated image detection.