The application discloses an AI image discrimination method based on
frequency domain and
noise domain consistency, and belongs to the technical field of
image processing,
computer vision and
artificial intelligence security. The method comprises the following steps: acquiring an image to be discriminated and performing pretreatment, converting the image into a brightness channel and acquiring
frequency spectrum information; inputting the image into a dual-domain physical guidance
feature extraction module to extract directional spectrum features and multi-scale
noise flow features; inputting the directional spectrum features and the multi-scale
noise flow features into a cross-domain physical consistency module to generate a
local consistency distance map and a
global consistency score through shared embedding mapping and feature distance calculation, and obtaining consistency
perception features; inputting the directional spectrum features, the multi-scale noise flow features and the consistency
perception features into a dual-flow fusion module for cross-flow interactive fusion and global
feature aggregation to obtain discrimination feature representation; and inputting the discrimination feature representation into a classification head to output a discrimination result of whether the image to be discriminated is a
real image or an AI generated image. The application realizes effective discrimination of AI generated images by jointly modeling the physical consistency relationship between
frequency domain features and noise domain features, and improves the robustness and generalization ability of the model under the conditions of cross-generator, cross-dataset and
image compression, blurring and other post-
processing conditions while ensuring detection accuracy.