IDEAS home Printed from https://ideas.repec.org/a/gam/jmathe/v13y2025i9p1372-d1640280.html
   My bibliography  Save this article

Hierarchical Feature Fusion and Enhanced Attention Mechanism for Robust GAN-Generated Image Detection

Author

Listed:
  • Weinan Zhang

    (Faculty of Data Science, City University of Macau, Macau SAR, China)

  • Sanshuai Cui

    (Faculty of Data Science, City University of Macau, Macau SAR, China)

  • Qi Zhang

    (Faculty of Data Science, City University of Macau, Macau SAR, China)

  • Biwei Chen

    (Belt and Road School, Beijing Normal University at Zhuhai, Zhuhai 519088, China)

  • Hui Zeng

    (School of Computer Science and Technology, Southwest University of Science and Technology, Mianyang 621010, China)

  • Qi Zhong

    (Faculty of Data Science, City University of Macau, Macau SAR, China)

Abstract

In recent years, with the rapid advancement of deep learning technologies such as generative adversarial networks (GANs), deepfake technology has become increasingly sophisticated. As a result, the generated fake images are becoming more difficult to visually distinguish from real ones. Existing deepfake detection methods primarily rely on training models with specific datasets. However, these models often suffer from limited generalization when processing images of unknown origin or across domains, leading to a significant decrease in detection accuracy. To address this issue, this paper proposes a deepfake image-detection network based on feature aggregation and enhancement. The key innovation of the proposed method lies in the integration of two modules: the Feature Aggregation Module (FAM) and the Attention Enhancement Module (AEM). The FAM effectively aggregates both deep semantic information and shallow detail features through a multi-scale feature-fusion mechanism, overcoming the limitations of traditional methods that rely on a single-level feature. Meanwhile, the AEM enhances the network’s ability to capture subtle forgery traces by incorporating attention mechanisms and filtering techniques, significantly boosting the model’s efficiency in processing complex information. The experimental results demonstrate that the proposed method achieves significant improvements across all evaluation metrics. Specifically, on the StarGAN dataset, the model attained outstanding performance, with accuracy (Acc) and average precision (AP) both reaching 100%. In cross-dataset testing, the proposed method exhibited strong generalization ability, raising the overall average accuracy to 87.0% and average precision to 92.8%, representing improvements of 5.2% and 6.7%, respectively, compared to existing state-of-the-art methods. These results show that the proposed method can not only achieve optimal performance on data with the same distribution, but also demonstrate strong generalization ability in cross-domain detection tasks.

Suggested Citation

  • Weinan Zhang & Sanshuai Cui & Qi Zhang & Biwei Chen & Hui Zeng & Qi Zhong, 2025. "Hierarchical Feature Fusion and Enhanced Attention Mechanism for Robust GAN-Generated Image Detection," Mathematics, MDPI, vol. 13(9), pages 1-16, April.
  • Handle: RePEc:gam:jmathe:v:13:y:2025:i:9:p:1372-:d:1640280
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2227-7390/13/9/1372/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2227-7390/13/9/1372/
    Download Restriction: no
    ---><---

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jmathe:v:13:y:2025:i:9:p:1372-:d:1640280. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.